pub enum trigger {
attack,
release,
first,
legato,
release_key,
}
Expand description
Sets the trigger which will be used for the sample to play.
- info: trigger
Variants
attack
(Default): Region will play on note-on.
release
Region will play on note-off or sustain pedal off. The velocity used to play the note-off sample is the velocity value of the corresponding (previous) note-on message.
first
Region will play on note-on, but if there’s no other note going on (comoonly used for or first note in a legato phrase).
legato
Region will play on note-on, but only if there’s a note going on (notes after first note in a legato phrase).
release_key
Region will play on note-off. Ignores sustain pedal.
Implementations
Trait Implementations
impl Copy for trigger
impl Eq for trigger
impl StructuralEq for trigger
impl StructuralPartialEq for trigger
Auto Trait Implementations
impl RefUnwindSafe for trigger
impl Send for trigger
impl Sync for trigger
impl Unpin for trigger
impl UnwindSafe for trigger
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more