pub enum loop_mode {
no_loop,
one_shot,
loop_continuous,
loop_sustain,
}
Expand description
Allows playing samples with loops defined in the unlooped mode.
- info: loop_mode
Variants
no_loop
no looping will be performed. Sample will play straight from start to end, or until note off, whatever reaches first.
This is the default.
one_shot
sample will play from start to end, ignoring note off. This is commonly used for drums. This mode is engaged automatically if the count opcode is defined.
loop_continuous
once the player reaches sample loop point, the loop will play until note expiration. This includes looping during the release phase.
loop_sustain
the player will play the loop while the note is held, by keeping it depressed or by using the sustain pedal (CC64). During the release phase, there’s no looping.
Implementations
Trait Implementations
impl Copy for loop_mode
impl Eq for loop_mode
impl StructuralEq for loop_mode
impl StructuralPartialEq for loop_mode
Auto Trait Implementations
impl RefUnwindSafe for loop_mode
impl Send for loop_mode
impl Sync for loop_mode
impl Unpin for loop_mode
impl UnwindSafe for loop_mode
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