Reference scale()

scale()

Scale this oscillator's amplitude values to a given range, and return the oscillator. Calling this method again will override the initial scale() with new values.

Syntax

scale(inMin, inMax, outMin, outMax)

Parameters

inMin

input range minumum

inMax

input range maximum

outMin

input range minumum

outMax

input range maximum

Notice any errors or typos? Please let us know. Please feel free to edit lib/addons/p5.sound.js and open a pull request!

Related References