Skip to content

Commit

Permalink
dry/wet FromLeft, mutes -> mute mode
Browse files Browse the repository at this point in the history
  • Loading branch information
magnetophon committed Dec 19, 2024
1 parent 4c9b5eb commit 0acfc29
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions src/editor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,12 @@ fn full_parameters(cx: &mut Context) {
HStack::new(cx, |cx| {
Label::new(cx, "dry/wet").class("slider-label");
ParamSlider::new(cx, Data::params, |params| &params.global.dry_wet)
.set_style(ParamSliderStyle::FromLeft)
.class("widget");
})
.class("row");
HStack::new(cx, |cx| {
Label::new(cx, "mutes").class("slider-label");
Label::new(cx, "mute mode").class("slider-label");
ParamSlider::new(cx, Data::params, |params| &params.global.mute_is_toggle)
.set_style(ParamSliderStyle::CurrentStepLabeled { even: true })
.class("widget");
Expand Down Expand Up @@ -319,6 +320,7 @@ fn filter_parameters(cx: &mut Context) {
HStack::new(cx, |cx| {
Label::new(cx, "cutoff").class("slider-label");
ParamSlider::new(cx, Data::params, |params| &params.taps.cutoff_main)
.set_style(ParamSliderStyle::FromLeft)
.class("widget");
})
.class("row");
Expand Down Expand Up @@ -379,11 +381,12 @@ fn minimal_parameters(cx: &mut Context) {
HStack::new(cx, |cx| {
Label::new(cx, "dry/wet").class("slider-label");
ParamSlider::new(cx, Data::params, |params| &params.global.dry_wet)
.set_style(ParamSliderStyle::FromLeft)
.class("widget");
})
.class("row");
HStack::new(cx, |cx| {
Label::new(cx, "mutes").class("slider-label");
Label::new(cx, "mute mode").class("slider-label");
ParamSlider::new(cx, Data::params, |params| &params.global.mute_is_toggle)
.set_style(ParamSliderStyle::CurrentStepLabeled { even: true })
.class("widget");
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ struct GlobalParams {
impl GlobalParams {
pub fn new(enabled_actions: Arc<AtomicBoolArray>, learned_notes: Arc<AtomicByteArray>) -> Self {
Self {
dry_wet: FloatParam::new("mix", 1.0, FloatRange::Linear { min: 0.0, max: 1.0 })
dry_wet: FloatParam::new("mix", 0.5, FloatRange::Linear { min: 0.0, max: 1.0 })
.with_unit("%")
.with_smoother(SmoothingStyle::Linear(15.0))
.with_value_to_string(formatters::v2s_f32_percentage(0))
Expand Down

0 comments on commit 0acfc29

Please sign in to comment.