pub enum Modifier {
Repeat(Ramp<u32>),
Slow(u32),
Replicate(u32),
Euclidean(Ramp<u32>, Ramp<u32>, Option<u32>),
Drop(Option<Ramp<f64>>),
Weight(u32),
}Expand description
Modifiers that can be appended to any atom.
Variants§
Repeat(Ramp<u32>)
*N — repeat within the time slot. May ramp: x*4..16.
Slow(u32)
/N — stretch over N cycles.
Replicate(u32)
!N — replicate as N separate equal steps.
Euclidean(Ramp<u32>, Ramp<u32>, Option<u32>)
(onsets, positions[, offset]) — Euclidean rhythm. Onsets and positions
may ramp, which is how a density crescendo is written: x(4..16,4).
Drop(Option<Ramp<f64>>)
? — chance of silence. None means the default 50%; ?0.25 carries
an explicit probability in 0.0..=1.0, which may ramp: ?0.1..0.9.
Weight(u32)
@N — proportional duration weight.
Trait Implementations§
impl StructuralPartialEq for Modifier
Auto Trait Implementations§
impl Freeze for Modifier
impl RefUnwindSafe for Modifier
impl Send for Modifier
impl Sync for Modifier
impl Unpin for Modifier
impl UnsafeUnpin for Modifier
impl UnwindSafe for Modifier
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