Sound and music
Last updated at 12:40 pm UTC on 13 February 2017
Squeak has amazing sound capabilities, from playing MIDI files (via an internal synthesizer or via a MIDI-compatible external synthesizer), to generating multiple instruments with multiple voices at once (see AbstractSound and FMSound, especially the class methods), and even recording sound and playing a wide variety of sampled sound files (including WAV, AIFF, and u-law files).
Lex Spoon January 31, 2004 Here are some quick pointers that should be useful:
- To read sound, use SoundRecorder.
- To write one buffer of sound, make an instance of SampledSound and then tell it to #play. To stream sound, you will need to do a little more programming.