Skip to content

Commit

Permalink
Adjust knob and slider scaling for stage master
Browse files Browse the repository at this point in the history
  • Loading branch information
thgrund committed Oct 13, 2024
1 parent 2c6781e commit 22ca15d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions classes/uiComponents/MasterUI.sc
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,12 @@ MasterUI : UIFactories {

uiKnobFactories.knobWithValueLabelFactory3( stageMaster
, \limiterLevel, "Limiter Level"
, {|value| value.linlin(0.0,1.0,0.001, 10.0).round(1e-2)} //knobToSynthValue
, {|value| value.ampdb.round(1e-2)} //knobToSynthValue
, {|value| value} // synthToKnobValue
, "%ms"
, (2.0).linlin(0.001, 10.0, 0.0,1.0)
, "%dB"
, 1
, {|value|
synth.set(\limiterLevel, stageMaster[\limiterLevel][\knobToSynthValue].value(value));
synth.set(\limiterLevel, value);
}
);

Expand Down
2 changes: 1 addition & 1 deletion synths/synth.scd
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ SynthDef("stageMaster", {

// Limiter
input = Limiter.ar(input, limiterLevel);
ReplaceOut.ar(0, input);
ReplaceOut.ar(out, input);
}).add;

}.value
Expand Down

0 comments on commit 22ca15d

Please sign in to comment.