--- ./src/deluge/gui/ui/menus.cpp (original) +++ ./src/deluge/gui/ui/menus.cpp (reformatted) @@ -613,8 +613,8 @@ //MIDI menu MenuItem* midiMenuItems[] = { - &midiClockMenu, &midiThruMenu, &midiTakeoverMenu, &midiCommandsMenu, &midiInputDifferentiationMenu, - &midi::devicesMenu, NULL}; + &midiClockMenu, &midiThruMenu, &midiTakeoverMenu, &midiCommandsMenu, &midiInputDifferentiationMenu, + &midi::devicesMenu, NULL}; Submenu midiMenu{"MIDI", midiMenuItems}; // Trigger clock in menu --- ./src/deluge/model/mod_controllable/mod_controllable_audio.cpp (original) +++ ./src/deluge/model/mod_controllable/mod_controllable_audio.cpp (reformatted) @@ -1460,10 +1460,12 @@ } //Here we obtain the current Parameter Value on the Deluge - int32_t previousValue = modelStackWithParam->autoParam->getValuePossiblyAtPos(modPos, modelStackWithParam); + int32_t previousValue = + modelStackWithParam->autoParam->getValuePossiblyAtPos(modPos, modelStackWithParam); //Here we convert the current Parameter Value on the Deluge to a Knob Position Value - int knobPos = modelStackWithParam->paramCollection->paramValueToKnobPos(previousValue, modelStackWithParam); + int knobPos = modelStackWithParam->paramCollection->paramValueToKnobPos(previousValue, + modelStackWithParam); //Here is where we check if the Knob/Fader on the Midi Controller is out of sync with the Deluge Knob Position @@ -1513,7 +1515,7 @@ midiKnobPosChangePercentage = (midiKnobPosChange << 20) / midiKnobMaxPosDelta; newKnobPos = - knobPos + ((delugeKnobMaxPosDelta * midiKnobPosChangePercentage) >> 20); + knobPos + ((delugeKnobMaxPosDelta * midiKnobPosChangePercentage) >> 20); } //if midi knob position change is less than 0, then the midi knob position has decreased (e.g. turned knob left) else if (midiKnobPosChange < 0) { @@ -1522,13 +1524,12 @@ midiKnobPosChangePercentage = (midiKnobPosChange << 20) / midiKnobMinPosDelta; newKnobPos = - knobPos + ((delugeKnobMinPosDelta * midiKnobPosChangePercentage) >> 20); + knobPos + ((delugeKnobMinPosDelta * midiKnobPosChangePercentage) >> 20); } //if midi knob position change is 0, then the midi knob position has not changed and thus no change in deluge knob position / parameter value is required else { newKnobPos = knobPos; } - } } 0s 0s Midi Takeover Mode ยท SynthstromAudible/DelugeFirmware@6108390