Tone.Expr

↳ EXTENDS Tone.SignalBase

Evaluate an expression at audio rate.

Parsing code modified from https://code.google.com/p/tapdigit/ Copyright 2011 2012 Ariya Hidayat, New BSD License

CONSTRUCTOR

new Tone.Expr (
expr
)
expr

the expression to generate

type: string

EXAMPLE

//adds the signals from input[0] and input[1].
var expr = new Tone.Expr("$0 + $1");

Members

.input

Array #

The inputs. The length is determined by the expression.

</>

.output

Tone #

The output node is the result of the expression

</>

Methods

.dispose ( )

#

clean up

</>
inherited from Tone.SignalBase

.connect ( )

#
node
type: AudioParam or AudioNode or Tone.Signal or Tone
outputNumber

The output number to connect from.

type: number
default: 0
inputNumber

The input number to connect to.

type: number
default: 0
↪ returns Tone.SignalBase

this

When signals connect to other signals or AudioParams, they take over the output value of that signal or AudioParam. For all other nodes, the behavior is the same as a default connect.

</>
docs generated Sep 15 2019