| 58 | } |
| 59 | |
| 60 | bool 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 | |
| 72 | int NoteOptions::_getClosestMidiNoteInKey(int inMidiNote, const std::vector<int>& inKeyVector, bool inAdjustUp) |
| 73 | { |
nothing calls this directly
no outgoing calls
no test coverage detected