Annoying clicks with a line~ object
Hi all,
anyone knows why this patch doesn't work?
Basically is a random envelope with three phases (attack, sustain and release) for a couple of cycle~. The delay object after the line~ is just a random silence between two events. In the second outlet i send a bang to the main patch so that the two cycle~ can receave two new frequencies.
The problem is that i hear often "clicks" as if some values change too fast without an interpolation.
I think that the issue is due to the priority of bang messages or something like that but i cannot solve it.
Thanks for your help!
Tommaso
The non-signal lines are not helping you at all. Try getting rid of those. "del 1" is also a suspicious object. Why are you using that?
Hello, I had same problem on Mac computer. I've adjusted windowing of audio and it didn't get better. I suppose @mzed del 1 it's to delay signal for preventing any errors on max/msp process. It's true that all down part, I think it will be better on message to line like "0, 1 $1 1 $2 0 $3 0 $4" where $4 should be time delayed for next attack.
I had same problem years a go, and I solved just delaying time for next note. However, on this patch it seems to attack directly next note just it will be done the time.
Perevicalet,
I may be off, but I believe that you should sum all of your time values $1+$2+$3+$4 to make your next attack time. Seems if you use only $4 as the next attack time, the event will occur early creating the click.
For example your message "0, 1 $1 1 $2 0 $3 0 $4" means: go from 0 to 1 in $1 time, stay at 1 for $2 time, go to 0 in $3 time, and stay at zero for $4 time. So, I believe the full time of your message will take $1+$2+$3+$4 to happen.
Hope this helps,
Mitch
others have said it already in other ways: there is no need to use the flag output from line - just add the time values of the current envelope in order to know how long it will be.
on a side note, you dont need that +~ there. just connect both sound sources into the *~ 0.5