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

Function ImMidiNoteOff

TheForceEngine/TFE_Jedi/IMuse/imuse.cpp:2183–2198  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2181 }
2182
2183 void ImMidiNoteOff(ImMidiPlayer* player, u8 channelId, u8 arg1, u8 arg2)
2184 {
2185 s32 instrumentId = arg1;
2186 ImMidiOutChannel* channel = &player->channels[channelId];
2187 if (channel->partStatus)
2188 {
2189 if (channel->data)
2190 {
2191 ImHandleNoteOff(channel->data, instrumentId);
2192 }
2193 }
2194 else
2195 {
2196 ImNoteOff(imOutDrumChannel, instrumentId);
2197 }
2198 }
2199
2200 void ImMidiNoteOn(ImMidiPlayer* player, u8 channelId, u8 arg1, u8 arg2)
2201 {

Callers 4

ImUpdateSustainedNotesFunction · 0.85
ImJumpSustainFunction · 0.85
ImMidiNoteOnFunction · 0.85
ImRemoveInstrumentSoundFunction · 0.85

Calls 2

ImHandleNoteOffFunction · 0.85
ImNoteOffFunction · 0.85

Tested by

no test coverage detected