Multiply audio signal in javascript
Is it possible for a javascript to receive audio signal and e.g multiply it or route it? I have been trying various options but I do not get it to work. This is in Ableton and I want to receive audio and based on some conditions I want to set the multiply factor for the signal going out.
You can't process audio signals in javascript. You could do this in java, but it might not be the most efficient way. Why don't you do it in plain max?
I am just checking my options I guess. But let's say I generate the multiply factor as a float number in js and outlet this to a [*~] that would be ok I guess. But the question I have then how should I connect the objects so that the js is continually evaluated and the [*~] updated?
JS is processed in the low priority thread and all input into a js module can be deffered, esp. by UI activity. You will not be able to accurately process audio rate data in js...