setFrequency()
Set the note's pitch from a frequency.
Setting a frequency lets the note land between the standard pitches.
Parameters
Once an object note has been created, you can use the following function:
note.setFrequency(frequency)
| Parameter | Type | Default | Description |
|---|---|---|---|
frequency |
float |
required | The new pitch as a frequency, in hertz (8.17 to 12600.0). |