From 2bb698a8f11d33474485bf6b2913d7333c20091d Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Wed, 6 Jul 2022 20:14:29 +0200 Subject: [PATCH] Mark the smoother's style field pub This is useful when using the smoother as a simple amplitude envelope. --- src/param/smoothing.rs | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/param/smoothing.rs b/src/param/smoothing.rs index f2c4d483..05a61385 100644 --- a/src/param/smoothing.rs +++ b/src/param/smoothing.rs @@ -36,7 +36,7 @@ pub enum SmoothingStyle { #[derive(Debug)] pub struct Smoother { /// The kind of snoothing that needs to be applied, if any. - style: SmoothingStyle, + pub style: SmoothingStyle, /// The number of steps of smoothing left to take. /// // This is a signed integer because we can skip multiple steps, which would otherwise make it @@ -119,13 +119,6 @@ impl Smoother { Default::default() } - /// Get the smoother's style. This is useful when a per-voice smoother wants to use the same - /// style as a parameter's global smoother. - #[inline] - pub fn style(&self) -> SmoothingStyle { - self.style - } - /// The number of steps left until calling [`next()`][Self::next()] will stop yielding new /// values. #[inline]