From 4cc23077f23d6e40d04cc15f0e7c5a720d1fbb5f Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Sat, 12 Jan 2019 20:26:22 +0100 Subject: [PATCH] Turn off guessing if the source bus contains the pitch bend controller. --- nageru/midi_mapping_dialog.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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) { -- 2.39.2