コード例 #1
0
ファイル: Conductor.cpp プロジェクト: edisonm/pianobooster
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
}
コード例 #2
0
ファイル: Conductor.cpp プロジェクト: inniyah/pianobooster
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();
}
コード例 #3
0
ファイル: Conductor.cpp プロジェクト: edisonm/pianobooster
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);
}
コード例 #4
0
ファイル: Conductor.cpp プロジェクト: inniyah/pianobooster
void CConductor::trackSoundOff(int trackNumber)
{
        channelSoundOff( track2Channel( trackNumber ));
}