Struct midi_file::core::PitchBendMessage
source · pub struct PitchBendMessage { /* private fields */ }
Expand description
Provides the ability to pitch bend a channel by specifying a pitch bend value between 0 and 16383 where 8192 (the middle) is no pitch bend. Above 8192 bends the note up and below bends the note down. The actual pitch change depends upon the device (e.g. synth) but by default the range is +/- 2 semitones around the standard note pitch.
Implementations§
source§impl PitchBendMessage
impl PitchBendMessage
sourcepub fn pitch_bend(&self) -> &PitchBendValue
pub fn pitch_bend(&self) -> &PitchBendValue
Get the pitch bend value (0 - 16383).
Trait Implementations§
source§impl Clone for PitchBendMessage
impl Clone for PitchBendMessage
source§fn clone(&self) -> PitchBendMessage
fn clone(&self) -> PitchBendMessage
Returns a copy of the value. Read more
1.0.0 · 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 PitchBendMessage
impl Debug for PitchBendMessage
source§impl Default for PitchBendMessage
impl Default for PitchBendMessage
source§fn default() -> PitchBendMessage
fn default() -> PitchBendMessage
Returns the “default value” for a type. Read more
source§impl Hash for PitchBendMessage
impl Hash for PitchBendMessage
source§impl Ord for PitchBendMessage
impl Ord for PitchBendMessage
source§fn cmp(&self, other: &PitchBendMessage) -> Ordering
fn cmp(&self, other: &PitchBendMessage) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for PitchBendMessage
impl PartialEq for PitchBendMessage
source§fn eq(&self, other: &PitchBendMessage) -> bool
fn eq(&self, other: &PitchBendMessage) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for PitchBendMessage
impl PartialOrd for PitchBendMessage
source§fn partial_cmp(&self, other: &PitchBendMessage) -> Option<Ordering>
fn partial_cmp(&self, other: &PitchBendMessage) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for PitchBendMessage
impl Eq for PitchBendMessage
impl StructuralEq for PitchBendMessage
impl StructuralPartialEq for PitchBendMessage
Auto Trait Implementations§
impl RefUnwindSafe for PitchBendMessage
impl Send for PitchBendMessage
impl Sync for PitchBendMessage
impl Unpin for PitchBendMessage
impl UnwindSafe for PitchBendMessage
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