MCPcopy Create free account
hub / github.com/DamRsn/NeuralNote / midiNoteToStr

Function midiNoteToStr

Lib/Utils/NoteUtils.h:55–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53enum SnapMode { Adjust = 0, Remove };
54
55static String midiNoteToStr(int inNoteNumber)
56{
57 const int octave = (inNoteNumber / 12) - 1;
58 const int noteIndex = (inNoteNumber + 3) % 12;
59 auto noteName = RootNotesSharpStr[noteIndex];
60 noteName += String(octave);
61 return noteName;
62}
63
64/**
65 * Return closest midi note number to frequency

Callers 1

paintMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected