pub enum Atom {
Note(Note),
Degree(i32),
Trigger,
Rest,
Hold,
Group(Group),
Alternation(Alternation),
Solo(Solo),
}Expand description
The core building blocks of the mini-notation.
Variants§
Note(Note)
A pitched note: c4, eb3, f#5
Degree(i32)
A scale degree: 0, 3, 7
Trigger
A drum trigger: x, or X for the accented spelling — which is stored
as this atom with Step::velocity set to 1.0, so a consumer that
honours :v honours X without knowing it exists.
Rest
Silence for this slot: ~
Hold
Hold/tie the previous event: _
Group(Group)
A grouped subsequence [c4 e4 g4], a chord [c4,e4,g4], or a random
choice [c4|e4|g4] — see GroupMode.
Alternation(Alternation)
Cycle through alternatives: <c4 e4 g4>
Solo(Solo)
A generated melody: solo(0..7, 8) — see Solo.
Trait Implementations§
impl StructuralPartialEq for Atom
Auto Trait Implementations§
impl Freeze for Atom
impl RefUnwindSafe for Atom
impl Send for Atom
impl Sync for Atom
impl Unpin for Atom
impl UnsafeUnpin for Atom
impl UnwindSafe for Atom
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