void CConductor::muteChannel(int channel, bool state) { if (channel < 0 || channel >= MAX_MIDI_CHANNELS) return; m_muteChannels[ channel] = state; if (state == true) channelSoundOff(channel); // fixme this is called too often }
void CConductor::allSoundOff() { int channel; for ( channel = 0; channel < MAX_MIDI_CHANNELS; channel++) { if (channel != m_pianistGoodChan) channelSoundOff(channel); } m_savedNoteQueue->clear(); m_savedNoteOffQueue->clear(); }
void CConductor::mutePart(int part, bool state) { int channel; if ( part < MAX_MIDI_CHANNELS) { muteChannel(part, state); return; } for ( channel = 0; channel < MAX_MIDI_CHANNELS; channel++) { muteChannel( channel, state); } if (state == true) channelSoundOff(channel); }
void CConductor::trackSoundOff(int trackNumber) { channelSoundOff( track2Channel( trackNumber )); }