Tone.Modulo

↳ EXTENDS Tone.SignalBase

Signal-rate modulo operator. Only works in AudioRange [-1, 1] and for modulus values in the NormalRange.

CONSTRUCTOR

new Tone.Modulo (
modulus
)
modulus

The modulus to apply.

EXAMPLE

var mod = new Tone.Modulo(0.2)
var sig = new Tone.Signal(0.5).connect(mod);
//mod outputs 0.1

Members

.value

NormalRange #

The modulus value.

</>

Methods

.dispose ( )

#
↪ returns Tone.Modulo

this

clean up

</>
inherited from Tone.SignalBase

.connect ( )

#
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