From 5651af2ac504244b2d29d5a5b987982e9c9ff6d0 Mon Sep 17 00:00:00 2001 From: brevalferrari Date: Thu, 5 Jun 2025 19:46:23 +0200 Subject: [PATCH] fix audio --- src/compiler.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler.rs b/src/compiler.rs index 31a25df..670fd84 100644 --- a/src/compiler.rs +++ b/src/compiler.rs @@ -426,7 +426,7 @@ impl Context { length } > *self.get("t")? - curr_t + (1f64 / SAMPLE_RATE as f64) { - result.push(Self::eval_with(&self.instrument, &mut self.variables)? * f64::MAX); + result.push(Self::eval_with(&self.instrument, &mut self.variables)?); self = self.tick()?; } Ok((self, result))