Swadge ESP32-S2
APIs to develop for the Magfest Swadge
Toggle main menu visibility
Loading...
Searching...
No Matches
midiUtil.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <stdint.h>
4
#include "
fp_math.h
"
5
13
uq16_16
bendPitchWheel
(uint8_t noteId, uint16_t pitchWheel);
14
22
uq16_16
bendPitchFreq
(
uq16_16
freq, int32_t bendCents);
fp_math.h
uq16_16
uint32_t uq16_16
unsigned 16 bits integer, 16 bits fraction
Definition
fp_math.h:42
bendPitchFreq
uq16_16 bendPitchFreq(uq16_16 freq, int32_t bendCents)
Calculate the new note frequency resulting from a pitch bend.
Definition
midiUtil.c:368
bendPitchWheel
uq16_16 bendPitchWheel(uint8_t noteId, uint16_t pitchWheel)
Calculate the frequency of a MIDI note bent by a pitch wheel setting.
Definition
midiUtil.c:347
main
utils
midi
midiUtil.h
Generated by
1.17.0