Tone.Normalize

↳ EXTENDS Tone.SignalBase

Normalize takes an input min and max and maps it linearly to NormalRange [0,1]

CONSTRUCTOR

new Tone.Normalize (
inputMin
,
inputMax
)
inputMin

the min input value

type: number
inputMax

the max input value

type: number

EXAMPLE

var norm = new Tone.Normalize(2, 4);
var sig = new Tone.Signal(3).connect(norm);
//output of norm is 0.5. 

Members

.max

number #

The maximum value the input signal will reach.

</>

.min

number #

The minimum value the input signal will reach.

</>

Methods

.dispose ( )

#
↪ returns Tone.Normalize

this

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