sound generation question
Dan Ingalls
Dan.Ingalls at disney.com
Wed Nov 22 17:19:37 UTC 2000
>How do I use the internal FM sound generator to play sounds without
>predetermined duration?
>
>That is, something like:
> aSound pitch: aPitch volume: aVolume play
> aSound stop
>
>I had a look through AbstractSound, LoopedSampleSound and various other
>classes but couldn't seem to find anything that has protocol something like
>'start' and 'stop'.
>
>But as this is how MIDI works, I guess it must be possible?
Daniel -
Yes it is. You might want to look at PianoKeyboardMorph.
It's a complete keyboard UI and synthesizer in 5 methods.
- Dan
[the ability to drag along the keyboard which works in 2.8 is currently broken in 2.9alpha, but I'll put out a fix soon]
More information about the Squeak-dev
mailing list
|