Forums > Javascript

Multiply audio signal in javascript

Oct 27 2013 | 11:50 am

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 | 11:58 am

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 | 12:10 pm

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 | 5:09 pm

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…

Viewing 4 posts - 1 through 4 (of 4 total)

Forums > Javascript