[squeak-dev] Sound mixing makes nasty noises
Stéphane Rollandin
lecteur at zogotounga.net
Thu Dec 17 19:00:45 UTC 2020
> "no effect from adjustVol..."
> |snd |
> snd := FMSound organ1.
> snd
> duration: 5;
> play.
> 1 second wait.
> snd adjustVolumeTo: 1.0 overMSecs: 500.
> 1 second wait.
> FMSound brass1
> play.
>
> 1 second wait.
> snd stopGracefully.
There is no effect because amplitude change is supposed to be driven by
an AmplitudeEnvelope (these are the ones that send
#adjustVolumeTo:overMSecs:).
Unfortunately, there is already one such envelope active in FMSound
organ1, which uses amplitude modulation, so a second one would be
ignored anyway.
What we need is a way to combine several layers of amplitude control; we
could start by supporting several AmplitudeEnvelopes in a single
AbstractSound.
Stef
More information about the Squeak-dev
mailing list
|