Skip to content

setFrequency()

Set the note's pitch from a frequency.

note.setFrequency(frequency)

Setting a frequency lets the note land between the standard pitches.

Parameters

note.setFrequency(frequency)
Parameter Type Default Description
frequency float required The new pitch as a frequency, in hertz (8.17 to 12600.0).