Multiply audio signal in javascript

Oct 27, 2013 at 11:50am

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.

Oct 27, 2013 at 11:58am

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?

Oct 27, 2013 at 12:10pm

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?

Oct 27, 2013 at 5:09pm

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…


You must be logged in to reply to this topic.