diff options
author | Graham Northup <grissess@nexusg.org> | 2017-10-13 12:54:04 -0400 |
---|---|---|
committer | Graham Northup <grissess@nexusg.org> | 2017-10-13 12:54:04 -0400 |
commit | 22cb7d7cbcacbfe3a7d3a2d454e6b8cf49ae989c (patch) | |
tree | 4d2d8cb2ce9c4441ce5cc525375665c44c31f9fb /src/synth/square.rs | |
parent | 255f0aa6de604e0bf9d37ba0ee5362ef3b9f235f (diff) |
Added LUTs and ControlRate; improved parser
Diffstat (limited to 'src/synth/square.rs')
-rw-r--r-- | src/synth/square.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/synth/square.rs b/src/synth/square.rs index 9b4374f..4b01e07 100644 --- a/src/synth/square.rs +++ b/src/synth/square.rs @@ -35,7 +35,7 @@ impl GeneratorFactory for SquareFactory { fn new(&self, params: &mut FactoryParameters) -> Result<GenBox, GenFactoryError> { Ok(Box::new(Square { 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), })) } |