Hello, I am trying to build a granular synthesis engine and I am have some difficulties. I am use the grain.phase~ external from the Nathan Wolek's granular toolkit. I am trying to manipulate the output of a phasor~ object so the I can maintain it's frequency, while changing the length of its slope. This will allow me to change the length of the grain, while maintain a constant frequency of grains per second. I believe there are two problem's with how I am approaching it: The first is that the grain.phase~ object will continue to produce a sound even if it is sent a signal with a value of 0. The second problem comes from how I am changing the phasor~ signal. First I clip the signal, the multiple it by the reciprocal of the amount I clip it. (for example, I clip it by .5, then multiply by 2) This gives me a slope a slope of exactly have the frequency of the phasor object. Then I apply a !=~ 1. object to the signal, so that it will go back down to 0. But i think the last step causes a problem because I want the signal to hit 1. first and then go back to zero. I hope that the above makes sense, any advice will be appreciated. Thanks!
I have included the patch with grain.phase~ and the files that are sent to the necessary buffers.