13
0

stop using pitch bend strip for shuttle control (it sucks, and messes up using it for MIDI performance)

This commit is contained in:
Paul Davis 2016-07-10 11:00:01 -04:00
parent 8e63685724
commit 6b080bf6ec

View File

@ -900,16 +900,6 @@ Push2::handle_midi_note_off_message (MIDI::Parser&, MIDI::EventTwoBytes* ev)
void void
Push2::handle_midi_pitchbend_message (MIDI::Parser&, MIDI::pitchbend_t pb) Push2::handle_midi_pitchbend_message (MIDI::Parser&, MIDI::pitchbend_t pb)
{ {
if (!session) {
return;
}
float speed;
/* range of +1 .. -1 */
speed = ((int32_t) pb - 8192) / 8192.0;
/* convert to range of +3 .. -3 */
session->request_transport_speed (speed * 3.0);
} }
void void