|   Object Method Reference   |   Output Methods   |   Pitch Methods   | 
| Access Point MethodsThese methods are some of the most important since they are the ones which allow simulated physical interaction with Tao's cellular material.
    getPosition()
    getVelocity()
    getForce()
    getInstrument()
    applyForce(<force>)
    clear()   
The  The  The  The following example illustrates the use of the access point methods (although I don't know whether it would produce interesting sounds or not). 
    Audio rate: 44100;
    
    String s(200 Hz, 20 secs);
    AccessPoint p1, p2;
    Param x1, x2;
    
    Init:
        s.lockEnds();
        ...
    
    Score 10 secs:
        x1=0.5+0.5*cos(Time*1000.0);
        x2=0.5+0.5*cos(Time*1100.0);
        p1=s(x1);
        p2=s(x2);
        
        Every 0.01 secs:
            Print "At time ", Time, ", position=", p1.getPosition(), 
                  " velocity=", p1.getVelocity(),  newline;
            ...
    
        If p1.getForce() < 1:
            p2.applyForce(1.0);
            ...
        If p2.getVelocity() > -1:
            p1.applyForce(-1.0);
            ...
        ...
Finally, the  
     | ||
|   Object Method Reference   |   Output Methods   |   Pitch Methods   | 
| ©1999,2000 Mark Pearson
m.pearson@ukonline.co.uk April 30, 2000 | ||