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;<br>snd := FMSound new.<br>snd setPitch: 200 dur: 5.0 loudness: 0.25.<br>snd storeWAVOnFileNamed: 'monotone.wav'.<br>snd := (SampledSound fromWaveFileNamed: 'monotone.wav
').<br>snd addEnvelope: (VolumeEnvelope newExponentialDecay: 0.96).<br>snd play.<br><br>&quot;It does not work for stereo...&quot;<br>snd := FMSound new.<br>snd setPitch: 200 dur: 5.0 loudness: 0.25.<br><br>&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').<br>snd addEnvelope: (VolumeEnvelope newExponentialDecay: 0.96).<br>snd play.<br><br>It would seem that the answer lies somewhere in how stereo vs mono sounds are handled.&nbsp; Ultimately, I want to use a VolumeEnvelope on a MixedSound that contains both a stereo RepeatingSound, a Left channel FMSound, and a Right channel FMSound.&nbsp; I am actually starting to think that will be possible!
<br><br>Thanks again.&nbsp; I feel like I am finally starting to &quot;understand&quot; Squeak a bit...thanks to a good problem that I have a desire to solve!<br><br>--Rob<br><br><div><span class="gmail_quote">On 5/5/06, <b class="gmail_sendername">
<a href="mailto:Dean_Swan@mitel.com">Dean_Swan@mitel.com</a></b> &lt;<a href="mailto:Dean_Swan@mitel.com">Dean_Swan@mitel.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;">
<br><font face="sans-serif" size="2">Hi Rob,</font>
<br>
<br><font face="sans-serif" size="2">This begs the question: &nbsp;&quot;What version of Squeak are you running, and on what platform?&quot;</font>
<br>
<br><font face="sans-serif" size="2">I just tried your example on Squeak 3.7-5989 on my G4 iBook (OS X 10.4.6, Squeak 3.8.12beta4U VM), and your example works fine. &nbsp;It writes out the tone to a file without any decay, then the SampledSound plays with the decay after reading the tone back in and adding the envelope.
</font>
<br>
<br><font face="sans-serif" size="2">Your earlier problem really is a problem. &nbsp;We'll have to see what the others say for future versions, but for now you could just make a new method on SampledSound, something like:</font>

<br>
<br><font face="sans-serif" size="2">&nbsp; &nbsp; &nbsp; &nbsp; SampledSound&gt;&gt;myStoreSampleCount: samplesToStore bigEndian: bigEndianFlag on: aBinaryStream</font>
<br><font face="sans-serif" size="2">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; super storeSampleCount: samplesToStore bigEndian: bigEndianFlag on: aBinaryStream.</font>
<br>
<br><font face="sans-serif" size="2">which would just execute the AbstractSound implementation.</font>
<br>
<br><font face="sans-serif" size="2">So, I'll need some help trying to reproduce your current problem.</font>
<br>
<br><font face="sans-serif" size="2">&nbsp; &nbsp; &nbsp; &nbsp; -Dean</font></div></blockquote></div><br>