These pages are auto-generated from self-documenting comments embedded in class files.
For more information on breve and steve, refer to the breve homepage.

Abstract : Tone

This class is included as part of the file Tone.tz.
To use this class in a simulation, include the line "@use Tone."

Class description:

A Tone is an object which plays a constant tone. You can set the volume, frequency and left-right balance of the tone. Creating the object will automatically start playing the tone. Deleting the object will cause the tone to stop playing.

A tone can also be effectively stopped by setting its volume to 0.

Class methods:


set-balance to newBalance (double)

Sets the left/right balance of the sinewave to newBalance, a value between 0 and 1. .5 is perfectly balanced, while 1.0 plays the tone completely on the right channel and 0.0 plays the tone entirely on the left channel.


set-frequency to newFrequency (double)

Sets the frequency of the tone to newFrequency.


set-volume to newVolume (double)

Sets the volume of the tone to newVolume. Volume is specified on a scale from 0.0 to 1.0.


Documentation created Sun Oct 7 19:13:03 2007