pub struct TriggerPart {
pub target: NodeId,
pub instrument: Graph,
pub notes: Vec<SongVoiceSpec>,
}Expand description
One sound’s worth of triggered notes within an arrangement: the instrument to instantiate, the arrangement node whose voice-bus its voices feed, and the notes (already resolved to seconds + transpose + gain).
Fields§
§target: NodeIdThe arrangement node id (an instrument-ref) whose voice-bus gain receives this part’s voices. Its audio then flows on through the arrangement graph.
instrument: GraphThe flattened instrument sample, instantiated once per note.
notes: Vec<SongVoiceSpec>Auto Trait Implementations§
impl Freeze for TriggerPart
impl RefUnwindSafe for TriggerPart
impl Send for TriggerPart
impl Sync for TriggerPart
impl Unpin for TriggerPart
impl UnsafeUnpin for TriggerPart
impl UnwindSafe for TriggerPart
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