MCPcopy Create free account
hub / github.com/LabSound/LabSound / MidiToFrequency

Method MidiToFrequency

examples/src/ExamplesCommon.h:56–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54 virtual void play(int argc, char** argv) = 0;
55
56 float MidiToFrequency(int midiNote)
57 {
58 return 440.0f * pow(2.0f, (midiNote - 57.0f) / 12.0f);
59 }
60
61 void Wait(uint32_t ms)
62 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected