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/param.rs | |
parent | 255f0aa6de604e0bf9d37ba0ee5362ef3b9f235f (diff) |
Added LUTs and ControlRate; improved parser
Diffstat (limited to 'src/synth/param.rs')
-rw-r--r-- | src/synth/param.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/synth/param.rs b/src/synth/param.rs index b020574..602be1d 100644 --- a/src/synth/param.rs +++ b/src/synth/param.rs @@ -24,7 +24,7 @@ impl GeneratorFactory for ParamFactory { fn new(&self, params: &mut FactoryParameters) -> Result<GenBox, GenFactoryError> { Ok(Box::new(Param { name: params.get_req_param("name", 0)?.as_string()?, - default: params.get_param("default", 1, &ParamValue::Float(0.0)).as_f32()?, + default: params.get_param("default", 1, &mut ParamValue::Float(0.0)).as_f32()?, buf: SampleBuffer::new(1), })) } |