Hi guys im having a world of trouble doing simple JS in Quartz. I’m very new to this. All I need is a patch that will add two values and then output them. one value is an input which is constantly chamging from 0 – 1 with an audio peek and the other is just a number that I can set myself. this is a patch but it seems far too basic.
function (__number outputNumber) main (
{
var result = new Object();
result.outputNumber = inputNumber[0] + inputNumber[1];
return result;
}
Is there a way to ammend this to use the Math object? (I need to use JS, I know I could use a math patch from Quartz but JS is something I need to use within this patch).
Sorry for asking a probably simple question.