From 16aebe03dfae93a4cfb8a980ab218133e666f60c Mon Sep 17 00:00:00 2001 From: Austin Hicks Date: Fri, 20 Dec 2024 17:24:26 -0800 Subject: [PATCH] clean up and rename two_sine_waves --- .../synthizer/examples/{two_sine_waves.rs => sin_chords.rs} | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) rename crates/synthizer/examples/{two_sine_waves.rs => sin_chords.rs} (92%) diff --git a/crates/synthizer/examples/two_sine_waves.rs b/crates/synthizer/examples/sin_chords.rs similarity index 92% rename from crates/synthizer/examples/two_sine_waves.rs rename to crates/synthizer/examples/sin_chords.rs index 92d4c2a..fcdf4e4 100644 --- a/crates/synthizer/examples/two_sine_waves.rs +++ b/crates/synthizer/examples/sin_chords.rs @@ -21,11 +21,11 @@ fn main() -> Result<()> { freq3 = b.allocate_slot::(); } - let note1_start = read_slot(&freq1, C_FREQ) + let note1 = read_slot(&freq1, C_FREQ) .divide_by_sr() .periodic_sum(1.0f64, 0.0f64) - * Chain::new(pi2); - let note1 = note1_start.sin(); + .inline_mul(Chain::new(pi2)) + .sin(); let note2 = read_slot(&freq2, E_FREQ) .divide_by_sr() .periodic_sum(1.0f64, 0.0)