Example 2 - rectangle2.tao

This script is similar to the previous one except that the left and right sides of the rectangle are locked instead of all four corners.

    Audio rate: 44100;
        
    Rectangle rectangle2(150 Hz, 800 Hz, 20 secs);
        
    Init:
        rectangle2.lockLeft().lockRight();
        ...
        
    Score 5 secs:
        At 0 secs for 1 msecs:
            rectangle2(0.1,0.1).applyForce(linear(30,0));
            ...
        ...


©1999,2000 Mark Pearson m.pearson@ukonline.co.uk April 30, 2000