Mo wrote:another way to do it?
Yes, that can be done quite easily (as long as you are using code), by using stages. The trick is to read the subtraction value during stage(0). A stage(0) section of code only runs once, whenever a new note is initialised - though it does behave strangely sometimes with stolen notes, so make sure you have enough voices to avoid stealing.
If you don't specify stages in the code, then it will automatically default to stage(1), which always processes every single sample. You can put as much or as little code as you like inside the curly brackets - but you always need the brackets for the syntax to be correct.
Something like this...
- Code: Select all
streamin PPQin;
streamout PPQout;
float SubValue;
stage(0) //Initialise Values
{
SubValue=PPQin;
}
stage(1) //Every Sample
{
PPQout=PPQin-SubValue;
}
















