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.

シンタックス

scale(inMin, inMax, outMin, outMax)

パラメーター

inMin
Number:

input range minumum

inMax
Number:

input range maximum

outMin
Number:

input range minumum

outMax
Number:

input range maximum

リターン

p5.Oscillator: Oscillator Returns this oscillator with scaled output
Notice any errors or typos? Please let us know. Please feel free to edit lib/addons/p5.sound.js and open a pull request!

関連するリファレンス