File: connector.tao

package info (click to toggle)
taopm 1.0-7
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 6,972 kB
  • sloc: sh: 9,809; cpp: 5,161; yacc: 2,298; lex: 464; makefile: 434; ansic: 57
file content (24 lines) | stat: -rwxr-xr-x 362 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Audio rate: 44100;

String string1(200 Hz, 30 secs);
String string2(200 Hz, 30 secs);

Connector conn;

Param x1,x2;

Init:
    string1.lockEnds();
    string2.lockEnds();
    ...

Score 1 secs:
    At start for 1 msecs:
        string1(0.1).applyForce(1.0);
	...

    x1 = linear(0,1);
    x2 = linear(1,0);

    string1(x1) -- conn -- string2(x2);
    ...