InstrumentTrack: send RPN update in updatePitchRange()
When changing the pitch range all we can do for MIDI is to update the MIDI pitch bend sensitivity RPN even though this is only supported by some MIDI instruments. Closes #129.
This commit is contained in:
@@ -543,7 +543,13 @@ void InstrumentTrack::updatePitch()
|
||||
void InstrumentTrack::updatePitchRange()
|
||||
{
|
||||
const int r = m_pitchRangeModel.value();
|
||||
m_pitchModel.setRange( -100 * r, 100 * r );
|
||||
m_pitchModel.setRange( -MinPitchDefault * r, MaxPitchDefault * r );
|
||||
|
||||
processOutEvent( MidiEvent( MidiControlChange, midiPort()->realOutputChannel(),
|
||||
MidiControllerRegisteredParameterNumberLSB, MidiPitchBendSensitivityRPN & 0x7F ) );
|
||||
processOutEvent( MidiEvent( MidiControlChange, midiPort()->realOutputChannel(),
|
||||
MidiControllerRegisteredParameterNumberMSB, ( MidiPitchBendSensitivityRPN >> 8 ) & 0x7F ) );
|
||||
processOutEvent( MidiEvent( MidiControlChange, midiPort()->realOutputChannel(), MidiControllerDataEntry, midiPitchRange() ) );
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user