LJJL6IBEQCCIVNJHDMXA7HBVI3CVROFUSFTXB3CSARCMJFM25Z5AC
fundsp_output.play(
&fundsp_kira::Machine {
machine: pink() * 0.2 * envelope(|t| exp(-0.1 * t)),
// machine: pink() * 0.5 * envelope(|t| exp(-10.0 * t)),
// machine: pink() * 0.2,
},
fundsp_kira::AudioNodeSettings { ..default() },
);
fundsp_output.play(&fundsp_kira::Machine::new(
pink() * 0.2 * envelope(|t| exp(-0.1 * t)),
// pink() * 0.5 * envelope(|t| exp(-10.0 * t)),
// pink() * 0.2,
));
/// The desired noise floor (RMS)
pub noise_floor: f32,
}
impl<T: AudioUnit32 + 'static> Machine<T> {
#[allow(dead_code)]
pub const DEFAULT_NOISE_FLOOR: f32 = 0.001;
#[allow(dead_code)]
pub fn new(machine: T) -> Self {
Self::with_noise_floor(machine, Self::DEFAULT_NOISE_FLOOR)
}
pub fn with_noise_floor(machine: T, noise_floor: f32) -> Self {
Self {
machine,
noise_floor,
}
}