Skip to content

Commit

Permalink
Fixed stutter display
Browse files Browse the repository at this point in the history
When pressing down on the stutter mod encoder and turning the knob, the knob now displays the fine tuned stutter amounts rather than the quantized amounts.
  • Loading branch information
seangoodvibes committed Oct 27, 2023
1 parent 4c4db23 commit 727cc61
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/deluge/gui/views/view.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -889,7 +889,8 @@ void View::modEncoderAction(int32_t whichModEncoder, int32_t offset) {
&& (soundEditor.getCurrentMenuItem()->getPatchedParamIndex() != modelStackWithParam->paramId)))
&& !(modelStackWithParam->paramId == Param::Unpatched::STUTTER_RATE
&& (runtimeFeatureSettings.get(RuntimeFeatureSettingType::QuantizedStutterRate)
== RuntimeFeatureStateToggle::On))) {
== RuntimeFeatureStateToggle::On)
&& !isUIModeActive(UI_MODE_STUTTERING))) {

char buffer[5];
int32_t valueForDisplay;
Expand All @@ -906,9 +907,10 @@ void View::modEncoderAction(int32_t whichModEncoder, int32_t offset) {

//if turning stutter mod encoder and stutter quantize is enabled
//display stutter quantization instead of knob position
if ((modelStackWithParam->paramId == Param::Unpatched::STUTTER_RATE
&& (runtimeFeatureSettings.get(RuntimeFeatureSettingType::QuantizedStutterRate)
== RuntimeFeatureStateToggle::On))) {
if (modelStackWithParam->paramId == Param::Unpatched::STUTTER_RATE
&& (runtimeFeatureSettings.get(RuntimeFeatureSettingType::QuantizedStutterRate)
== RuntimeFeatureStateToggle::On)
&& !isUIModeActive(UI_MODE_STUTTERING)) {
char buffer[10];
if (newKnobPos < -39) { // 4ths stutter: no leds turned on
strncpy(buffer, "4ths", 10);
Expand Down

0 comments on commit 727cc61

Please sign in to comment.