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

Method _isInKey

Lib/MidiPostProcessing/NoteOptions.cpp:60–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58}
59
60bool NoteOptions::_isInKey(int inMidiNote, const std::vector<int>& inKeyArray)
61{
62 auto note_index = _midiToNoteIndex(inMidiNote);
63
64 for (auto& inKey: inKeyArray) {
65 if (note_index == inKey)
66 return true;
67 }
68
69 return false;
70}
71
72int NoteOptions::_getClosestMidiNoteInKey(int inMidiNote, const std::vector<int>& inKeyVector, bool inAdjustUp)
73{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected