Please help with this patch, when a soundfile ends it clicks
i dont do pd every day but now i need it but i do some shit
im always looking at helpfiles and patches but i just dont understand millers example
i just dont understand how to cut the sound off before playing it again
sorry if im stupid
please help
-
PLEASE HELP
-
This is the solution provided in the 'loadbang' book (if I'm not mistaken)...
The 'crown' table smooths entries and exits by sliding down to zero and to one again at the end and beginning of every loop. -
thanks alexandros, yeah i already tried that, but somehow its only a workaround and not too smooth in this case , im just looking for millers way to send the [line~] a 5ms 0 and 1 but aargh i dont get it, too many trees
-
Ah, c'mon, no one?
Is it really that difficult to have a phasor-based fileplayer that doesn't loop and click? -
your problem is that you send the [0 5( message to the [line~] at the same time as file starts playing again. you need to ramp to 0, and THEN trigger the loop.
you need to do it like this:
at the start of the loop, don't delay the [1 5( ramp.
at 5 milliseconds before the end of the loop, send a [0 5 ( ramp.
you already have your [expr 44100/$f1] object there to get the sample time in seconds, so just mulitiply that by 1000 to get the time in milliseconds, and then subtract 5 milliseconds to get the delay time before you need to send the [0 5( message. -
shit, that was easy, and it works!!
thanks thanks thanksi feel ashamed now...
-
oh no no no no, i made a big mistake, i had forgotten what i wanted to do, but now i remember
the original intention was to ramp down to 0 5ms before every bang/trigger, you know, maybe you have a file that is 4000 ms, but you bang it every 400 ms and so on, i mean, you could make an adsr or some sort, but for some reason i don#t want to do that
so is there a way just to ramp down every 5ms before every bang/trigger regardless of when it comes or how often without having to use a time machine ?