MCPcopy Create free account
hub / github.com/Wohlstand/OPL3BankEditor / findNoteOffChannel

Method findNoteOffChannel

src/opl/generator.cpp:1267–1276  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1265}
1266
1267int8_t Generator::NotesManager::findNoteOffChannel(int note)
1268{
1269 // find the first active note not in held state (delayed noteoff)
1270 for(uint8_t chan = 0; chan < channels.size(); chan++)
1271 {
1272 if(channels[chan].note == note && !channels[chan].held)
1273 return (int8_t)chan;
1274 }
1275 return -1;
1276}
1277
1278void Generator::NotesManager::hold(int ch, bool h)
1279{

Callers 1

StopNoteFMethod · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected