diff options
Diffstat (limited to 'src/synth/triangle.rs')
-rw-r--r-- | src/synth/triangle.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/synth/triangle.rs b/src/synth/triangle.rs index 19a2296..944c539 100644 --- a/src/synth/triangle.rs +++ b/src/synth/triangle.rs @@ -39,7 +39,7 @@ impl GeneratorFactory for TriangleFactory { fn new(&self, params: &mut FactoryParameters) -> Result<GenBox, GenFactoryError> { Ok(Box::new(Triangle { 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), })) } |