From 2b22b39b08c499798efcb874db6e6268eef43a52 Mon Sep 17 00:00:00 2001 From: Grant Shangreaux Date: Tue, 9 Nov 2021 21:07:24 -0600 Subject: Fix: module visibility warnings, Add: MonoSynth::envelope stub --- klangfarbrs/src/adsr.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'klangfarbrs/src/adsr.rs') 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]; -- cgit v1.2.3