Multiply audio signal in javascript


    Oct 27 2013 | 6:50 pm
    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 | 6:58 pm
      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 | 7: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 28 2013 | 12:09 am
      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...