peakamp~ acting up when synced to jit.world

stefano's icon

hello everyone!

i was working on basic envelope follower for visuals and i noticed that if the peakamp~ is "banged" by the world -instead of having a ms output value written inside- it throws out lots of zeroes, anyone knows how to deal with it? i need a simple envelope follower thats synced with jit.world:

Max Patch
Copy patch and select New From Clipboard in Max.



stefano's icon

i see it is also related with I/O buffersize, the lower i go with that the better it gets, so i guess its the relation between the world fps (output frequency of the peakamp~) and the buffersize.
But the problem exists only when the peakamp~ is triggered by the jit.world as if the ms output interval is written inside, it can go pretty fast and with no problems.
i guess its related to the scheduler thread.