| 96 | } |
| 97 | |
| 98 | stChannelID CNoteChannelQueue::Release(int Note, stChannelID Channel) |
| 99 | { |
| 100 | auto it = m_iNoteState.find(Note); |
| 101 | if (it != m_iNoteState.end()) { |
| 102 | if (it->second == note_state_t::HOLD) |
| 103 | it->second = note_state_t::RELEASE; |
| 104 | for (int i = 0; i < m_iChannelCount; ++i) |
| 105 | if (m_iCurrentNote[i] == (unsigned)Note) |
| 106 | return m_iChannelMapID[i]; |
| 107 | } |
| 108 | return { }; |
| 109 | } |
| 110 | |
| 111 | stChannelID CNoteChannelQueue::Cut(int Note, stChannelID Channel) |
| 112 | { |
no test coverage detected