From: Steinar H. Gunderson Date: Sat, 12 Jan 2019 19:26:22 +0000 (+0100) Subject: Turn off guessing if the source bus contains the pitch bend controller. X-Git-Tag: 1.8.2~21 X-Git-Url: https://git.sesse.net/?p=nageru;a=commitdiff_plain;h=4cc23077f23d6e40d04cc15f0e7c5a720d1fbb5f;hp=beead04c23b42c815f448cd0126d87f9627bbfde Turn off guessing if the source bus contains the pitch bend controller. --- diff --git a/nageru/midi_mapping_dialog.cpp b/nageru/midi_mapping_dialog.cpp index 7eec6d2..0c7683c 100644 --- a/nageru/midi_mapping_dialog.cpp +++ b/nageru/midi_mapping_dialog.cpp @@ -543,6 +543,10 @@ pair MIDIMappingDialog::guess_offset(unsigned bus_idx, MIDIMappingDial // The bus has a controller set that the source bus doesn't set. return not_found; } + if (source_spinner->value() == MIDIReceiver::PITCH_BEND_CONTROLLER) { + // It's impossible to interpolate across the pitch bend. + return not_found; + } int candidate_offset = spinner->value() - source_spinner->value(); if (!found_offset) {