1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<!-- HTML file produced from file: UserManual.tex --
-- using Hyperlatex v 2.3.1 (c) Otfried Cheong--
-- on Emacs 21.1 (patch 4) "Arches" XEmacs Lucid, Sun Apr 30 20:50:10 2000 -->
<HEAD>
<TITLE>Tao User Manual -- Locking parts of an instrument - lock.tao</TITLE>
<link rel=stylesheet href="../../taomanual.css" type="text/css">
</HEAD><BODY BACKGROUND="bg.gif">
<table width="500" border="0" align="left" cellspacing="2" cellpadding="2"><tr><td class="nav" valign="top"><!-- top panel --><A HREF="UserManual_102.html"><IMG ALT="Up" ALIGN=BOTTOM BORDER=0 SRC="up.gif"></A>
<BR><A HREF="UserManual_102.html">Tutorial</A><BR><IMG width="167" height="1" SRC="trans1x1.gif">
</td><td class="nav" valign="top"><A HREF="UserManual_137.html"><IMG ALT="Back" ALIGN=BOTTOM BORDER=0 SRC="back.gif"></A>
<BR><A HREF="UserManual_137.html">Using the Hammer device - hammer.tao</A><BR><IMG width="167" height="1" SRC="trans1x1.gif">
</td><td class="nav" valign="top"><A HREF="UserManual_139.html"><IMG ALT="Forward" ALIGN=BOTTOM BORDER=0 SRC="forward.gif"></A>
<BR><A HREF="UserManual_139.html">Arrays of Output devices - outputarray.tao</A><BR><IMG width="167" height="1" SRC="trans1x1.gif">
</td></tr><!-- end top panel --><tr><td colspan="3" class="main"><!-- main text --><br><br>
<H2>Locking parts of an instrument - lock.tao</H2>
This script illustrates the use of the various <EM>locking</EM><A NAME="1">
instrument</A> methods. These include <CODE>lockCorners</CODE>,
<CODE>lockLeft</CODE>, <CODE>lockRight</CODE>, <CODE>lockTop</CODE>,
<CODE>lockPerimeter</CODE>, and <CODE>lock</CODE>. It creates six
rectangular instruments and locks each one in a slightly different
way. It then applies short impulse to each instrument so as to allow
a side by side comparison of the effects on each.
<P><PRE>
Audio rate: 44100;
Rectangle rect1(500 Hz, 600 Hz, 20 secs);
Rectangle rect2(500 Hz, 600 Hz, 20 secs);
Rectangle rect3(500 Hz, 600 Hz, 20 secs);
Rectangle rect4(500 Hz, 600 Hz, 20 secs);
Rectangle rect5(500 Hz, 600 Hz, 20 secs);
Rectangle rect6(500 Hz, 600 Hz, 20 secs);
Init:
rect1.lockCorners();
rect2.lockLeft().lockRight();
rect3.lockTop().lockBottom();
rect4.lockPerimeter();
rect5.lock(0.2,0.4);
rect6.lock(0.7, right, 0.7, top);
...
Score 5 secs:
At 0 secs for 1 msecs:
rect1(0.1,0.1).applyForce(linear(30,0));
rect2(0.1,0.1).applyForce(linear(50,0));
rect3(0.1,0.1).applyForce(linear(50,0));
rect4(0.1,0.1).applyForce(linear(50,0));
rect5(0.1,0.1).applyForce(linear(20,0));
rect6(0.1,0.1).applyForce(linear(30,0));
...
...
</PRE>
<P>
<BR></td></tr><!-- end main text --><tr><td class="nav" align="left" valign="top"><!-- bottom matter --><A HREF="UserManual_102.html"><IMG ALT="Up" ALIGN=BOTTOM BORDER=0 SRC="up.gif"></A>
<BR><A HREF="UserManual_102.html">Tutorial</A><BR><IMG width="167" height="1" SRC="trans1x1.gif">
</td><td class="nav" align="left" valign="top"><A HREF="UserManual_137.html"><IMG ALT="Back" ALIGN=BOTTOM BORDER=0 SRC="back.gif"></A>
<BR><A HREF="UserManual_137.html">Using the Hammer device - hammer.tao</A><BR><IMG width="167" height="1" SRC="trans1x1.gif">
</td><td class="nav" align="left" valign="top"><!-- bottom matter --><A HREF="UserManual_139.html"><IMG ALT="Forward" ALIGN=BOTTOM BORDER=0 SRC="forward.gif"></A>
<BR><A HREF="UserManual_139.html">Arrays of Output devices - outputarray.tao</A>
<IMG width="167" height="1" SRC="trans1x1.gif">
</td></tr><!-- end bottom matter -->
<tr><td colspan="3" class="addr"><!-- bottom panel --><ADDRESS><FONT SIZE=-1>©1999,2000 Mark Pearson
<A HREF="mailto:m.pearson@ukonline.co.uk">m.pearson@ukonline.co.uk</A> April 30, 2000</ADDRESS><BR></td></tr><!-- end bottom panel --></table></BODY></HTML>
|