XS02 Script Production Example: Combine Float Signals
This example
shows how to combine float signals.

// input: an array of all input signals // in0: primary input of type ISamplePointer,IReadableSamples // in1..: additional inputs of type ISamplePointer,IReadableSamples // out: output signal of type IFloatSamplesWriter // console: console output of type MessageConsoleStream // iter: iterator of type ISamplesIterator // progress: progess control of type IScriptProgress progress.cont(); while ( iter.hasNext()) { var current <:Long:> = iter.next(out); out.write(current, false, input[0].floatValue() + input[1].floatValue()); }About Signal Scripts Open JavaDoc Reference
Result
