Swadge 2024 2.0.0
APIs to develop games for the Magfest Swadge
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
13uq16_16 bendPitchWheel(uint8_t noteId, uint16_t pitchWheel);
14
22uq16_16 bendPitchFreq(uq16_16 freq, int32_t bendCents);
uint32_t uq16_16
unsigned 16 bits integer, 16 bits fraction
Definition fp_math.h:42
uq16_16 bendPitchFreq(uq16_16 freq, int32_t bendCents)
Calculate the new note frequency resulting from a pitch bend.
Definition midiUtil.c:368
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