pub struct Part { /* private fields */ }Expand description
Defines a part of a sequence pattern
Implementations§
Source§impl Part
impl Part
pub fn for_sample(sample_num: u16) -> Result<Self, SyroError>
pub fn with_steps(&mut self, steps: Steps) -> &mut Self
pub fn motion(&mut self, value: Toggle) -> &mut Self
pub fn looped(&mut self, value: Toggle) -> &mut Self
pub fn reverb(&mut self, value: Toggle) -> &mut Self
pub fn reverse(&mut self, value: Toggle) -> &mut Self
pub fn mute(&mut self, value: Toggle) -> &mut Self
pub fn level(&mut self, level: u8) -> Result<&mut Self, SyroError>
pub fn pan(&mut self, pan: u8) -> Result<&mut Self, SyroError>
pub fn speed(&mut self, speed: u8) -> Result<&mut Self, SyroError>
pub fn amp_eg_attack( &mut self, amp_eg_attack: u8, ) -> Result<&mut Self, SyroError>
pub fn amp_eg_decay(&mut self, amp_eg_decay: u8) -> Result<&mut Self, SyroError>
pub fn pitch_eg_attack( &mut self, pitch_eg_attack: u8, ) -> Result<&mut Self, SyroError>
pub fn pitch_eg_int(&mut self, pitch_eg_int: u8) -> Result<&mut Self, SyroError>
pub fn pitch_eg_decay( &mut self, pitch_eg_decay: u8, ) -> Result<&mut Self, SyroError>
pub fn starting_point( &mut self, starting_point: u8, ) -> Result<&mut Self, SyroError>
pub fn length(&mut self, length: u8) -> Result<&mut Self, SyroError>
pub fn hi_cut(&mut self, hi_cut: u8) -> Result<&mut Self, SyroError>
Sourcepub fn level_start_motion_seq(
&mut self,
sequence: [u8; 16],
) -> Result<&mut Self, SyroError>
pub fn level_start_motion_seq( &mut self, sequence: [u8; 16], ) -> Result<&mut Self, SyroError>
Valid values in the sequence are 0-127
Sourcepub fn level_end_motion_seq(
&mut self,
sequence: [u8; 16],
) -> Result<&mut Self, SyroError>
pub fn level_end_motion_seq( &mut self, sequence: [u8; 16], ) -> Result<&mut Self, SyroError>
Valid values in the sequence are 0-127
Sourcepub fn pan_start_motion_seq(
&mut self,
sequence: [u8; 16],
) -> Result<&mut Self, SyroError>
pub fn pan_start_motion_seq( &mut self, sequence: [u8; 16], ) -> Result<&mut Self, SyroError>
Valid values in the sequence are 1-127
Sourcepub fn pan_end_motion_seq(
&mut self,
sequence: [u8; 16],
) -> Result<&mut Self, SyroError>
pub fn pan_end_motion_seq( &mut self, sequence: [u8; 16], ) -> Result<&mut Self, SyroError>
Valid values in the sequence are 1-127
Sourcepub fn speed_start_motion_seq(
&mut self,
sequence: [u8; 16],
) -> Result<&mut Self, SyroError>
pub fn speed_start_motion_seq( &mut self, sequence: [u8; 16], ) -> Result<&mut Self, SyroError>
Valid values in the sequence are 40-88 for semitones, and 129-255 for continuous
Sourcepub fn speed_end_motion_seq(
&mut self,
sequence: [u8; 16],
) -> Result<&mut Self, SyroError>
pub fn speed_end_motion_seq( &mut self, sequence: [u8; 16], ) -> Result<&mut Self, SyroError>
Valid values in the sequence are 40-88 for semitones, and 129-255 for continuous
Sourcepub fn amp_eg_attack_motion_seq(
&mut self,
sequence: [u8; 16],
) -> Result<&mut Self, SyroError>
pub fn amp_eg_attack_motion_seq( &mut self, sequence: [u8; 16], ) -> Result<&mut Self, SyroError>
Valid values in the sequence are 0-127
Sourcepub fn amp_eg_decay_motion_seq(
&mut self,
sequence: [u8; 16],
) -> Result<&mut Self, SyroError>
pub fn amp_eg_decay_motion_seq( &mut self, sequence: [u8; 16], ) -> Result<&mut Self, SyroError>
Valid values in the sequence are 0-127
Sourcepub fn pitch_eg_int_motion_seq(
&mut self,
sequence: [u8; 16],
) -> Result<&mut Self, SyroError>
pub fn pitch_eg_int_motion_seq( &mut self, sequence: [u8; 16], ) -> Result<&mut Self, SyroError>
Valid values in the sequence are 1-127
Sourcepub fn pitch_eg_attack_motion_seq(
&mut self,
sequence: [u8; 16],
) -> Result<&mut Self, SyroError>
pub fn pitch_eg_attack_motion_seq( &mut self, sequence: [u8; 16], ) -> Result<&mut Self, SyroError>
Valid values in the sequence are 0-127
Sourcepub fn pitch_eg_decay_motion_seq(
&mut self,
sequence: [u8; 16],
) -> Result<&mut Self, SyroError>
pub fn pitch_eg_decay_motion_seq( &mut self, sequence: [u8; 16], ) -> Result<&mut Self, SyroError>
Valid values in the sequence are 0-127
Sourcepub fn start_point_motion_seq(
&mut self,
sequence: [u8; 16],
) -> Result<&mut Self, SyroError>
pub fn start_point_motion_seq( &mut self, sequence: [u8; 16], ) -> Result<&mut Self, SyroError>
Valid values in the sequence are 0-127
Sourcepub fn length_motion_seq(
&mut self,
sequence: [u8; 16],
) -> Result<&mut Self, SyroError>
pub fn length_motion_seq( &mut self, sequence: [u8; 16], ) -> Result<&mut Self, SyroError>
Valid values in the sequence are 0-127
Sourcepub fn hi_cut_motion_seq(
&mut self,
sequence: [u8; 16],
) -> Result<&mut Self, SyroError>
pub fn hi_cut_motion_seq( &mut self, sequence: [u8; 16], ) -> Result<&mut Self, SyroError>
Valid values in the sequence are 0-127
pub fn build(self) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Part
impl RefUnwindSafe for Part
impl Send for Part
impl Sync for Part
impl Unpin for Part
impl UnsafeUnpin for Part
impl UnwindSafe for Part
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