| 70 | } |
| 71 | |
| 72 | int NoteOptions::_getClosestMidiNoteInKey(int inMidiNote, const std::vector<int>& inKeyVector, bool inAdjustUp) |
| 73 | { |
| 74 | if (_isInKey(inMidiNote, inKeyVector)) |
| 75 | return inMidiNote; |
| 76 | |
| 77 | if (inAdjustUp) { |
| 78 | if (inMidiNote < MAX_MIDI_NOTE - 1) |
| 79 | return inMidiNote + 1; |
| 80 | else |
| 81 | return inMidiNote - 1; |
| 82 | } else { |
| 83 | if (inMidiNote > MIN_MIDI_NOTE) |
| 84 | return inMidiNote - 1; |
| 85 | else |
| 86 | return inMidiNote + 1; |
| 87 | } |
| 88 | } |
| 89 | |
| 90 | int NoteOptions::_midiToNoteIndex(int inMidiNote) |
| 91 | { |
nothing calls this directly
no outgoing calls
no test coverage detected