pub struct MetronomeConfig {
pub channel: u8,
pub accent_pitch: u8,
pub beat_pitch: u8,
pub accent_velocity: u8,
pub beat_velocity: u8,
}Expand description
Click-track injected into to_playback_events output.
Metronome events are tagged with PlaybackEvent.is_metronome = true and can be
routed separately by checking channel (default 9 = GM drums).
Fields§
§channel: u8MIDI channel for the click track. Default 9 (GM drum channel).
accent_pitch: u8MIDI note for the accented first beat. Default 76 (High Wood Block).
beat_pitch: u8MIDI note for regular beats. Default 77 (Low Wood Block).
accent_velocity: u8Velocity for the accented first beat. Default 100.
beat_velocity: u8Velocity for regular beats. Default 70.
Trait Implementations§
Source§impl Clone for MetronomeConfig
impl Clone for MetronomeConfig
Source§fn clone(&self) -> MetronomeConfig
fn clone(&self) -> MetronomeConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MetronomeConfig
impl Debug for MetronomeConfig
Source§impl Default for MetronomeConfig
impl Default for MetronomeConfig
Source§impl<'de> Deserialize<'de> for MetronomeConfig
impl<'de> Deserialize<'de> for MetronomeConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for MetronomeConfig
impl RefUnwindSafe for MetronomeConfig
impl Send for MetronomeConfig
impl Sync for MetronomeConfig
impl Unpin for MetronomeConfig
impl UnsafeUnpin for MetronomeConfig
impl UnwindSafe for MetronomeConfig
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