From df9f00cb43de2044df85599f22d1c824b4936487 Mon Sep 17 00:00:00 2001 From: Bart Brouns Date: Tue, 30 Apr 2024 19:19:36 +0200 Subject: [PATCH] time_scale: decrease range --- src/lib.rs | 2 -- src/params.rs | 6 ------ 2 files changed, 8 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index bb467f2..81d936a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -291,14 +291,12 @@ impl Plugin for Lamb { if self.params.editor_state.is_open() { if self.should_update_time_scale.load(Ordering::Relaxed) { let time_scale = match self.params.time_scale.value() { - TimeScale::HalfSec => 0.5, TimeScale::OneSec => 1.0, TimeScale::TwoSec => 2.0, TimeScale::FourSec => 4.0, TimeScale::EightSec => 8.0, TimeScale::SixteenSec => 16.0, TimeScale::ThirtytwoSec => 32.0, - TimeScale::SixtyfourSec => 64.0, }; self.level_buffer_l.lock().unwrap().set_duration(time_scale); self.level_buffer_r.lock().unwrap().set_duration(time_scale); diff --git a/src/params.rs b/src/params.rs index b9a7eea..776593e 100644 --- a/src/params.rs +++ b/src/params.rs @@ -69,9 +69,6 @@ enum ZoomMode { #[derive(Enum, Debug, PartialEq)] enum TimeScale { - #[id = "0_5s"] - #[name = "0.5 seconds"] - HalfSec, #[id = "1s"] #[name = "1 second"] OneSec, @@ -90,9 +87,6 @@ enum TimeScale { #[id = "32s"] #[name = "32 seconds"] ThirtytwoSec, - #[id = "64"] - #[name = "64 seconds"] - SixtyfourSec, } #[derive(Enum, Debug, PartialEq)]