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 : Sound

Class description:

The Sound class allows sound files to be loaded and played in a simulation. The sound file, in WAV or AIFF format, is loaded using the method METHOLD(load). The sound can then be played using play. The same sound effect can be played several times simultaneously by making repeated calls to play.

Methods:

  • load
  • play
    load( self, file )

    Loads the sound-file filename using the current breve search path. Returns self.


    play( self, speed )

    Begins playing this sound. The optional argument speed specifies the speed (and accompanying frequency change) of the sound.