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), } } 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,