From 22cb7d7cbcacbfe3a7d3a2d454e6b8cf49ae989c Mon Sep 17 00:00:00 2001 From: Graham Northup Date: Fri, 13 Oct 2017 12:54:04 -0400 Subject: Added LUTs and ControlRate; improved parser --- src/synth/saw.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/synth/saw.rs') diff --git a/src/synth/saw.rs b/src/synth/saw.rs index 054b3c8..3e30ca6 100644 --- a/src/synth/saw.rs +++ b/src/synth/saw.rs @@ -31,7 +31,7 @@ impl GeneratorFactory for SawFactory { fn new(&self, params: &mut FactoryParameters) -> Result { Ok(Box::new(Saw { freq: params.remove_param("freq", 0)?.into_gen()?, - phase: params.get_param("phase", 1, &ParamValue::Float(0.0)).as_f32()?, + phase: params.get_param("phase", 1, &mut ParamValue::Float(0.0)).as_f32()?, buf: SampleBuffer::new(params.env.default_buffer_size), })) } -- cgit v1.2.3-70-g09d2