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/sine.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/synth/sine.rs') diff --git a/src/synth/sine.rs b/src/synth/sine.rs index 66f29ef..4476d4a 100644 --- a/src/synth/sine.rs +++ b/src/synth/sine.rs @@ -34,7 +34,7 @@ impl GeneratorFactory for SineFactory { fn new(&self, params: &mut FactoryParameters) -> Result { Ok(Box::new(Sine { 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