From 90da8a1842456326a3f2dd725802376d1a827407 Mon Sep 17 00:00:00 2001 From: Weird Constructor Date: Wed, 27 Jul 2022 06:08:54 +0200 Subject: [PATCH] format --- src/dsp/helpers.rs | 2 +- src/dsp/mod.rs | 8 ++++---- src/scope_handle.rs | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/dsp/helpers.rs b/src/dsp/helpers.rs index 9725a04..6ce44b5 100644 --- a/src/dsp/helpers.rs +++ b/src/dsp/helpers.rs @@ -741,7 +741,7 @@ impl CustomTrigger { /// surpassed the high threshold and has not fallen below low threshold yet. #[inline] pub fn check_trigger(&mut self, input: f32) -> bool { -// println!("TRIG CHECK: {} <> {}", input, self.high_thres); + // println!("TRIG CHECK: {} <> {}", input, self.high_thres); if self.triggered { if input <= self.low_thres { self.triggered = false; diff --git a/src/dsp/mod.rs b/src/dsp/mod.rs index 6972f2a..219c707 100644 --- a/src/dsp/mod.rs +++ b/src/dsp/mod.rs @@ -522,6 +522,8 @@ mod node_rndwk; #[allow(non_upper_case_globals)] mod node_sampl; #[allow(non_upper_case_globals)] +mod node_scope; +#[allow(non_upper_case_globals)] mod node_sfilter; #[allow(non_upper_case_globals)] mod node_sin; @@ -535,8 +537,6 @@ mod node_tseq; mod node_tslfo; #[allow(non_upper_case_globals)] mod node_vosc; -#[allow(non_upper_case_globals)] -mod node_scope; pub mod biquad; pub mod dattorro; @@ -573,13 +573,13 @@ use crate::fa_quant; use crate::fa_sampl_dclick; use crate::fa_sampl_dir; use crate::fa_sampl_pmode; +use crate::fa_scope_tsrc; use crate::fa_sfilter_type; use crate::fa_smap_clip; use crate::fa_smap_mode; use crate::fa_test_s; use crate::fa_tseq_cmode; use crate::fa_vosc_ovrsmpl; -use crate::fa_scope_tsrc; use node_ad::Ad; use node_allp::AllP; @@ -601,6 +601,7 @@ use node_pverb::PVerb; use node_quant::Quant; use node_rndwk::RndWk; use node_sampl::Sampl; +use node_scope::Scope; use node_sfilter::SFilter; use node_sin::Sin; use node_smap::SMap; @@ -608,7 +609,6 @@ use node_test::Test; use node_tseq::TSeq; use node_tslfo::TsLFO; use node_vosc::VOsc; -use node_scope::Scope; pub const MIDI_MAX_FREQ: f32 = 13289.75; diff --git a/src/scope_handle.rs b/src/scope_handle.rs index ec5337e..23895b4 100644 --- a/src/scope_handle.rs +++ b/src/scope_handle.rs @@ -3,7 +3,7 @@ // See README.md and COPYING for details. use crate::nodes::SCOPE_SAMPLES; -use crate::util::{AtomicFloatPair, AtomicFloat}; +use crate::util::{AtomicFloat, AtomicFloatPair}; use std::sync::atomic::{AtomicBool, Ordering}; use std::sync::Arc;