JSyn
 
Tutorial
 

Using an Envelope to Control Amplitude

Let's use an envelope to control the amplitude of a sine wave. To do this, we must connect the "output" port of the envelope to the "amplitude" port of the sine wave oscillator.
    myEnvPlayer.output.connect( sineOsc.amplitude );
This applet has two buttons. The "Queue" button queues the envelope to the envelopePort. The "Clear" button clears that port.

To Do:

Here is the source code for this program.

[TOP]  [PREVIOUS]  [NEXT]

© 1997-2008 Mobileer Inc All Rights Reserved