-
-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Midi Pickup Mode Midi Pickup Mode enables the Deluge to ignore Midi CC Values from Controllers that are out of Sync with the Deluge. For example, if an External Midi Controller is sending a Midi CC Value of 0 to the Deluge for a Parameter on the Deluge that is currently set to an equivalent Midi CC Value of 127, then the devices are out of sync. The Deluge will ignore Midi CC Values from the Midi Controller until the Midi Controller has been "reset" / matches the current Parameter Value on the Deluge. It does this by comparing the incoming Midi CC Value with the Deluge's internal Knob Position (which is derived from the Current Parameter Value). The Deluge Internal Knob Position can be converted to a Midi CC Value and Vice Versa by subtracting 64 from the Midi CC Value or adding 64 to the Deluge's Knob Position. If the difference between the Deluge's Internal Knob Position and the Midi CC Value is greater than +/- 1, then the Midi CC Value is ignored the Parameter's Value will not be changed. The feature can be disabled using the Community Features menu in Settings. on the Deluge. * Update to Midi Takeover Updated the code to: - Move Midi Takeover Mode settings from Community Menu to Midi Menu - Add Value Scaling mode - Save Midi Takeover Settings to Midi XML file - Load Midi Takeover Settings from Midi XML file * Resolved runtime_feature_settings.h file conflict Replaced file with latest version from community * Corrections made based on feedback Per m-m-adams feedback, I have made the following changes: 1) moved takeover mode description to community features.md 2) replaced * 1000000 multiplication with << 20 3) replaced / 1000000 division with >> 20 * Fixed formatting issues Corrected formatting issues identified by clang-format style check * Trying again to fix formatting! Hopefully this works! * Fixed clang format issues Ok now I think I've got it! Let's try this :)! I ran the clang format script this time. --------- Co-authored-by: Jamie Fenton <jamie@fentonia.com>
- Loading branch information
1 parent
7efd754
commit 1124f4a
Showing
10 changed files
with
204 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/* | ||
* Copyright (c) 2014-2023 Synthstrom Audible Limited | ||
* | ||
* This file is part of The Synthstrom Audible Deluge Firmware. | ||
* | ||
* The Synthstrom Audible Deluge Firmware is free software: you can redistribute it and/or modify it under the | ||
* terms of the GNU General Public License as published by the Free Software Foundation, | ||
* either version 3 of the License, or (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; | ||
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
* See the GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License along with this program. | ||
* If not, see <https://www.gnu.org/licenses/>. | ||
*/ | ||
#pragma once | ||
#include "gui/menu_item/selection.h" | ||
#include "io/midi/midi_engine.h" | ||
#include "gui/ui/sound_editor.h" | ||
|
||
namespace menu_item::midi { | ||
class Takeover final : public Selection { | ||
public: | ||
using Selection::Selection; | ||
void readCurrentValue() { soundEditor.currentValue = midiEngine.midiTakeover; } | ||
void writeCurrentValue() { midiEngine.midiTakeover = soundEditor.currentValue; } | ||
char const** getOptions() { | ||
static char const* options[] = {"Jump", "Pickup", "Scale", NULL}; | ||
return options; | ||
} | ||
int getNumOptions() { return NUM_MIDI_TAKEOVER_MODES; } | ||
}; | ||
} // namespace menu_item::midi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters