Using access points |
Example 1 - accesspoint1.tao |
An instrument with a single string |
Example 2 - accesspoint2.taoThis example illustrates the use of access points to connect together two components to form a more interesting compound instrument. It does so by creating two strings and applying a short impulse to one of them. A Connector device is used to connect together two access points, one on each string. The access points are not fixed but move along their respective strings as the performance progresses.// accesspoint2.tao // // Create two strings and implement a connection between them using // two moving access points. Audio rate: 44100; String string1(200 Hz, 20 secs); String string2(200 Hz, 20 secs); AccessPoint point1, point2; Connector connector; Init: string1.lockEnds(); string2.lockEnds(); ... Score 5.0 secs: At 0 secs for 0.1 msecs: string1(0.05).applyForce(1.0); ... ControlRate 100: point1=string1(linear(0,1)); point2=string2(linear(1,0)); ... point1 -- connector -- point2; ...
| ||
Using access points |
Example 1 - accesspoint1.tao |
An instrument with a single string |
©1999,2000 Mark Pearson
m.pearson@ukonline.co.uk April 30, 2000 |