Sorry--<br><br>Something somewhere is amiss with my image. If I use a clean 3.8 image, my example below works as expected, but still does not output properly to a WAV...<br><br>Rob<br><br><div><span class="gmail_quote">On 5/5/06,
<b class="gmail_sendername">Rob Rothwell</b> <<a href="mailto:r.j.rothwell@gmail.com">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;">Dean,<br><br>Thanks for all your help trying to figure this out. However, I am still not able to create any effect on even a SampledSound with a VolumeEnvelope like you suggested. To help hear what is going on I have created a new method, newExponentialDecay in the Envelope class where I have changed:
<br><br> mSecsPerStep := 10. <br><br> to: mSecsPerStep := 50.<br><br>just to drag out the decay a little longer. When I do that,<br><br>snd := FMSound new.<br>snd addEnvelope: (VolumeEnvelope newExponentialDecay:
0.96).<br>snd setPitch: 200 dur: 5.0 loudness: 0.25.<br>snd play.<br><br>fades out as expected, but then when I turn that tone into a WAV and read it back in:<br><br>snd := FMSound new.<br>snd setPitch: 200 dur: 5.0 loudness:
0.25.<br>snd storeWAVOnFileNamed: 'tone.wav'.<br>snd := (SampledSound fromWaveFileNamed: 'tone.wav').<br>snd addEnvelope: (VolumeEnvelope newExponentialDecay: 0.96).<br>snd play.<br><br>The tone just plays at a constant volume! Things that make you go...hmm...
<br><br>Thanks again,<br></div><div style="direction: ltr;"><span class="sg"><br>Rob</span></div></blockquote></div><br>