Dean,<br><br>Ok, I *think* I can probably do this on my own now...<br><br>I was just not understanding some of the basic "rules:"<br><br>1. Envelopes are not rules that you apply to a sound, they are objects that "go with" the sound, and you must have a separate envelope for each sound. You can't apply the same envelope twice (
i.e. to the left channel and right channel of a MixedSound). I did this by accident with PitchEnvelopes, because I needed separate envelopes for each channel to do what I wanted to do, but I didn't make the connection.<br>
<br>2. MixedSounds are just weird. Don't mix two MixedSounds. It will dilute the volume or the time of the final product, depending on how you do it. Mix "pure" sounds instead. Also, many classes like SampledSound and RepeatingSound actually return MixedSounds upon creation, depending on whether or not you are working with stereo sounds or not. Sometimes they force them into MONO because they are derived from AbstractSound, which returns isStereo := false. Anyway, you need to break them down into their left and right channels before mixing them with other sounds or else you run into the MixedSound dilution problem.
<br><br>3. All in all, it is best just to create a separate envelope for each channel of each sound you are working with when dealing with stereo sounds, and then mix them together at the end. Of course, you can create classes that do some of this for you, but they need to make a COPY of the envelope you wish to apply to both channels, not use the same one twice.
<br><br>Thank again for all your help; I'm pretty sure I can get there from here!<br><br>--Rob<br><br><div><span class="gmail_quote">On 5/6/06, <b class="gmail_sendername">Rob Rothwell</b> <<a href="mailto:r.j.rothwell@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
r.j.rothwell@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div style="direction: ltr;">Hello Dean,<br><br>As I said before, something was funky with my image. In a clean 3.8 image (although I have changed the SoundPlayer SamplingRate to 44100), I created a new storeWAVOnFileNamed method for a SampledSound as you suggested, and that worked! However, when I tried it with the pre-existing WAV sample I originally wanted to use, it didn't work--which led me to the following:
<br><br>"This works when creating a mono sound"</div><div style="direction: ltr;"><span><br>snd := FMSound new.<br>snd setPitch: 200 dur: 5.0 loudness: 0.25.<br></span></div><div style="direction: ltr;">
snd storeWAVOnFileNamed: 'monotone.wav'.<br>snd := (SampledSound fromWaveFileNamed: 'monotone.wav
').</div><div style="direction: ltr;"><span><br>snd addEnvelope: (VolumeEnvelope newExponentialDecay: 0.96).<br>snd play.<br><br></span></div><div style="direction: ltr;">"It does not work for stereo..."
</div><div style="direction: ltr;"><span><br>snd := FMSound new.<br>snd setPitch: 200 dur: 5.0 loudness: 0.25.<br><br></span></div><div style="direction: ltr;">"Turn the sound into a stereo sound and save it as a WAV"
<br>mix := MixedSound new.<br>mix add: snd.<br>mix storeWAVOnFileNamed: 'stereotone.wav'.<br><br>"Read a STEREO sound from a WAV as a SampledSound and try to modify it"<br>snd := (SampledSound fromWaveFileNamed: '
stereotone.wav').</div><div style="direction: ltr;"><span><br>snd addEnvelope: (VolumeEnvelope newExponentialDecay: 0.96).<br>snd play.<br><br></span></div></blockquote></div>