|
Swadge 2024 2.0.0
APIs to develop games for the Magfest Swadge
|
Go to the source code of this file.
Functions | |
| uq16_16 | bendPitchWheel (uint8_t noteId, uint16_t pitchWheel) |
| Calculate the frequency of a MIDI note bent by a pitch wheel setting. | |
| uq16_16 | bendPitchFreq (uq16_16 freq, int32_t bendCents) |
| Calculate the new note frequency resulting from a pitch bend. | |
| uq16_16 bendPitchWheel | ( | uint8_t | noteId, |
| uint16_t | pitchWheel ) |
Calculate the frequency of a MIDI note bent by a pitch wheel setting.
| noteId | The MIDI note ID to bend |
| pitchWheel | The 14-bit MIDI pitch wheel value |
Calculate the new note frequency resulting from a pitch bend.
| freq | The frequency, in Hertz, of the note |
| bendCents | The number of cents to bend the note, between -100 and 100 inclusive |