Err ChangeScorePitchBend( ScoreContext *scon,int32 Channel, int32 Bend )
The Bend argument ranges from 0x0 to 0x3FFF. A setting of 0x2000 means that instrument pitch values aren't bent up or down. A setting of 0x0 means that instrument pitches are bent as far down as possible. A setting of 0x3FFF means that instrument pitches are bent as far up as possible.
The pitch bend value supplied by ChangeScorePitchBend()
works within a pitch bend range, which is contained in the score context. If the range is 8 semitones, for example, the score voices can be bent up a maximum of 8 semitones or down a minimum of 8 semitones. You can set the pitch bend range using SetScoreBendRange()
and read the current pitch bend range using GetScoreBendRange()
.
Note that ChangeScorePitchBend()
only affects notes whose pitches are specified by MIDI note values (0127). It doesn't affect the pitch of notes specified by frequency.
ChangeScoreControl
(), ChangeScoreProgram(), ConvertPitchBend(), GetScoreBendRange(), InterpretMIDIMessage(), StartScoreNote(), SetScoreBendRange()