Skip to content

Instantly share code, notes, and snippets.

@francoisgeorgy
francoisgeorgy / midi-frequency-voct.cpp
Created November 21, 2021 06:36
C++ MIDI Frequency V/oct #cc #audio #cpp #midi
/* https://onecompiler.com/cpp/3xhec63fj */
#include <cstdint>
#include <cmath>
/*
Examples for converting between note numbers, frequencies, and Volts/octave.
If you're unfamiliar with MIDI note numbers, they are integers that
correspond to semitones (half steps). For example, MIDI note 12 is