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 &quot;rules:&quot;<br><br>1.&nbsp; Envelopes are not rules that you apply to a sound, they are objects that &quot;go with&quot; the sound, and you must have a separate envelope for each sound.&nbsp; You can't apply the same envelope twice (
i.e. to the left channel and right channel of a MixedSound).&nbsp; 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.&nbsp; MixedSounds are just weird.&nbsp; Don't mix two MixedSounds.&nbsp; It will dilute the volume or the time of the final product, depending on how you do it.&nbsp; Mix &quot;pure&quot; sounds instead.&nbsp; 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.&nbsp; Sometimes they force them into MONO because they are derived from AbstractSound, which returns isStereo := false.&nbsp; 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.&nbsp; 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.&nbsp; 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> &lt;<a href="mailto:r.j.rothwell@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
r.j.rothwell@gmail.com</a>&gt; 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.&nbsp; 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!&nbsp; 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>&quot;This works when creating a mono sound&quot;</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;">&quot;It does not work for stereo...&quot;
</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;">&quot;Turn the sound into a stereo sound and save it as a WAV&quot;
<br>mix := MixedSound new.<br>mix add: snd.<br>mix storeWAVOnFileNamed: 'stereotone.wav'.<br><br>&quot;Read a STEREO sound from a WAV as a SampledSound and try to modify it&quot;<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>