MCPcopy Create free account
hub / github.com/TheForceEngine/TheForceEngine / ImHandleNoteOff

Function ImHandleNoteOff

TheForceEngine/TFE_Jedi/IMuse/imuse.cpp:2319–2333  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2317 }
2318
2319 void ImHandleNoteOff(ImMidiChannel* midiChannel, s32 instrumentId)
2320 {
2321 if (midiChannel)
2322 {
2323 const u32 channelMask = c_channelMask[midiChannel->channelId];
2324 if (midiChannel->instrumentMask[instrumentId] & channelMask)
2325 {
2326 midiChannel->instrumentMask[instrumentId] &= ~channelMask;
2327 if (!midiChannel->sustain)
2328 {
2329 ImNoteOff(midiChannel->channelId, instrumentId);
2330 }
2331 }
2332 }
2333 }
2334
2335 ///////////////////////////////////////////////////////////
2336 // Initialization Functions

Callers 1

ImMidiNoteOffFunction · 0.85

Calls 1

ImNoteOffFunction · 0.85

Tested by

no test coverage detected