From 61b473c31662b85b3477d4989ac0404e165e3cd0 Mon Sep 17 00:00:00 2001 From: gsspdev Date: Wed, 17 Jul 2024 07:39:55 -0700 Subject: [PATCH 1/2] Tuned default frequencies to A standard tuning --- src/components/sorting/audio_controls.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/sorting/audio_controls.rs b/src/components/sorting/audio_controls.rs index aa9850d..20df1b1 100644 --- a/src/components/sorting/audio_controls.rs +++ b/src/components/sorting/audio_controls.rs @@ -19,8 +19,8 @@ impl Default for AudioConfig { Self { enabled: true, sound_type: OscillatorType::Sine, - min_frequency: 50.0, - max_frequency: 800.0, + min_frequency: 55.0, // A1 in standard tuning + max_frequency: 880.0, // A5 in standard tuning note_duration: Duration::from_millis(200), } } From 8433d527e256454672af38fad0909f6615be8f47 Mon Sep 17 00:00:00 2001 From: gsspdev Date: Wed, 17 Jul 2024 07:43:43 -0700 Subject: [PATCH 2/2] Tuned default input_len to a signifigant value --- src/pages/sorting.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/sorting.rs b/src/pages/sorting.rs index 095dde4..a7921ba 100644 --- a/src/pages/sorting.rs +++ b/src/pages/sorting.rs @@ -119,7 +119,7 @@ pub struct SortConfig { impl Default for SortConfig { fn default() -> Self { Self { - input_len: 100, + input_len: 96, // LCM of 12 & 32; useful for pitch and computation sorting_algorithm: SortingAlgorithm::default(), audio_enabled: true, playback_time: 10.0,