Hi
One option, if you want an automated fade out at the end of your file would be to use two readsf~ objects loading/reading the same file but delayed by the duration of the desired fade. The first reader would send a bang when it's finished reading the file and that bang coud be used to trigger the second reader's fade out. Of course, only the second of these readers would be connected to dac~ Hope I'm making myself clear (!)
David
http://www.flickr.com/photos/schafferdavid/ https://soundcloud.com/schafferdavid
Date: Tue, 22 Apr 2014 13:49:29 +0200 From: colet.patrice@free.fr To: pd-list@iem.at Subject: Re: [PD] Controlling amplitude with readsf~
fade in and out is quite easy to do with a toggle, a [pack f 1000] for setting the line time, and [line~] to do the ramp on the [*~] that is multiplying [readfs~] signal, but for automatic fadeout there is a need to know the length of the sound file obviously.
Le 22/04/2014 13:33, Simon Wise a écrit :
On 22/04/14 21:12, Claire O'Connor wrote:
I am still having a bit of trouble. I am using another line object to ramp up the number box to fade in my .wav file but when I go to ramp it back down, it jumps straight to zero. I have also tried to 'reset' the line object but that involves sending a message '0' which makes the amplitude of the .wav file jump down again. Any ideas as to how this issue might be resolved? I have a line of .wav files that I want to fade in and fade out as they each play.
sending a single number [0( will jump straight to that value, a pair will ramp so [0 2000( goes from current value to 0 in 2 seconds then [1 3000( goes to 1 in 3 seconds ... play around with the help patch.
Simon
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list