pub enum Graph {
Wave(Vec<f32>),
Response {
points: Vec<(f32, f32)>,
cutoff: f32,
unity: f32,
},
Envelope([(f32, f32); 5]),
Levels(Vec<f32>),
Effects {
taps: Vec<(f32, f32)>,
tail: Option<(f32, f32)>,
sweep: Option<(f32, f32)>,
},
Voices(Vec<Note>),
}Expand description
An illustrative picture of part of a program, as plain numbers the apps draw. Coordinates are 0..1 unless noted; none of it claims to match the synth’s audio.
Variants§
Wave(Vec<f32>)
Samples of a waveform, −1..1.
Response
A filter response: (x, y) points, the cutoff’s x, and the y of
unity gain.
Fields
Envelope([(f32, f32); 5])
Envelope corners as (time, level): start, attack peak, decay end,
sustain end, release end.
Levels(Vec<f32>)
Source levels.
Effects
Echo taps (time, level), a reverb tail (length, level) and a
modulation sweep (cycles, depth), each when on.
Fields
Voices(Vec<Note>)
What each voice plays.
Trait Implementations§
impl StructuralPartialEq for Graph
Auto Trait Implementations§
impl Freeze for Graph
impl RefUnwindSafe for Graph
impl Send for Graph
impl Sync for Graph
impl Unpin for Graph
impl UnsafeUnpin for Graph
impl UnwindSafe for Graph
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more