diff options
author | Grant Shangreaux <grant@unabridgedsoftware.com> | 2021-11-09 21:07:24 -0600 |
---|---|---|
committer | Grant Shangreaux <grant@unabridgedsoftware.com> | 2021-11-09 21:07:24 -0600 |
commit | 2b22b39b08c499798efcb874db6e6268eef43a52 (patch) | |
tree | 1515e6f416ee7a6c647dc43265a55806a24cd19b /klangfarbrs/src/adsr.rs | |
parent | e2aec3161f791614fc19fc50a4dadf239d7422ad (diff) |
Fix: module visibility warnings, Add: MonoSynth::envelope stub
Diffstat (limited to 'klangfarbrs/src/adsr.rs')
-rw-r--r-- | klangfarbrs/src/adsr.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/klangfarbrs/src/adsr.rs b/klangfarbrs/src/adsr.rs index ca03735..682cc8a 100644 --- a/klangfarbrs/src/adsr.rs +++ b/klangfarbrs/src/adsr.rs @@ -7,7 +7,7 @@ pub struct Envelope { } impl Envelope { - fn new(attack: Millisecond, decay: Millisecond, sustain: Amplitude, release: Millisecond) -> Self { + pub fn new(attack: Millisecond, decay: Millisecond, sustain: Amplitude, release: Millisecond) -> Self { let attack = vec![sustain; attack as usize]; let decay = vec![sustain; decay as usize]; let release = vec![sustain; release as usize]; |