pub struct Note {
pub voct: f64,
pub on_s: f64,
pub off_s: f64,
pub chord: Vec<f64>,
}Expand description
One note of the phrase.
Fields§
§voct: f64Pitch as V/Oct offset from C4.
on_s: f64Gate-on duration, seconds.
off_s: f64Gate-off duration after the note, seconds.
chord: Vec<f64>Additional simultaneous pitches (V/Oct from C4), each rendered by its own compiled voice, gate-synced with this note. Empty for a mono note.
Chord voices start cold at this note’s onset (exactly how live voice allocation behaves) and, after the shared gate closes, keep ticking until their own output parks on silence — a truncated release tail is a broadband click that would poison every spectral feature.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Note
impl<'de> Deserialize<'de> for Note
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Note
Auto Trait Implementations§
impl Freeze for Note
impl RefUnwindSafe for Note
impl Send for Note
impl Sync for Note
impl Unpin for Note
impl UnsafeUnpin for Note
impl UnwindSafe for Note
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