Stopping play~ clicks and pops :(
Hey folks,
I am experimenting with the polybuffer, which proves very efficient specially for a sampler instrument I am working on whereas I do not want different triggered samples to overlap each other.
I came up with a patch - there is only one small problem - retriggering/replaying (well, actually stopping them) always create some clicks and pops, and I understand why: the buffer gets stopped immediately regardless of its phase (without waiting for a 0 crossing point).
I have done some research and apparently using line~ should quickly fade the sound in and out thus sorting the problem but it is not working! 😧😧
You guys know how to come up with a solution (or any advice)?
The patch basically lets you scan a folder and load sounds from it into a polybuffer, then, changing a number (the integer object box) you can choose which buffer to play from, pressing the bang will play the buffer if it is the first to get played otherwise it will stop the current buffer and play the newly chosen one, that is when it clicks (I suggest using long samples in order to test it), here is the patcher:
Thanks in advance!!
You need 2 players .
playing next stops previous using some fade time
Line object bangs when done
use that for stop
Hey, thanks for the reply!!
could you be a bit more specific as I didn't quite get it?!
cheers
I understand I have to use the bang outputted by the line object when done working but i can't make it work

in case you need start & stop fades
