Sound.mix
Revision as of 23:03, 1 April 2020 by 71.226.33.30 (talk)
Sound.mix
mixes another synthesized sound into this one, producing a more
complex sound.
Arguments
Parameter Name | Type | Default Value | Meaning |
---|---|---|---|
sound | Sound Object | Other sound (already prepared with sound.init) to mix in | |
level | number | 1 | volume of other mixed-in sound relative to this one |
Example
daDing = new Sound
// daDing.init 0.5, noteFreq(72), [1, 1, 0]
// dd2 = new Sound
// dd2.init 0.5, noteFreq(84), [0]*40 + range(1, 0, -0.01)
// daDing.mix dd2
// daDing.play