soundchip 0.4.61

Software sinth with configurable channels for authentic sounding virtual sound chips.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use super::{Knot, KnotValue, LoopKind};

/// Allows Envelope presets to be defined as consts, and the resulting envelope
/// (which calls non-const functions) can be initialized at runtime.
#[derive(Debug, Clone, PartialEq)]
pub struct EnvelopePreset<T>
where
    T: KnotValue + 'static + Clone,
{
    pub knots: &'static [Knot<T>],
    pub time_scale: f32,
    pub value_scale: f32,
    pub value_offset: f32,
    pub loop_kind: LoopKind,
}