Struct midi_msg::KeyBasedTuningDump
source · [−]pub struct KeyBasedTuningDump {
pub tuning_program_num: u8,
pub tuning_bank_num: Option<u8>,
pub name: [u8; 16],
pub tunings: Vec<Option<Tuning>>,
}
Expand description
Set the tunings of all 128 notes.
Used by UniversalNonRealTimeMsg
.
Fields
tuning_program_num: u8
Which tuning program is targeted, 0-127. See Parameter::TuningProgramSelect
.
tuning_bank_num: Option<u8>
Which tuning bank is targeted, 0-127. See Parameter::TuningBankSelect
.
name: [u8; 16]
An exactly 16 character name
tunings: Vec<Option<Tuning>>
Should be exactly 128 Tunings with the index of each value = the MIDI note number being tuned.
Excess values will be ignored. If fewer than 128 values are supplied, equal temperament
will be applied to the remaining notes.
A None
value represents “No change”.
Trait Implementations
sourceimpl Clone for KeyBasedTuningDump
impl Clone for KeyBasedTuningDump
sourcefn clone(&self) -> KeyBasedTuningDump
fn clone(&self) -> KeyBasedTuningDump
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for KeyBasedTuningDump
impl Debug for KeyBasedTuningDump
sourceimpl PartialEq<KeyBasedTuningDump> for KeyBasedTuningDump
impl PartialEq<KeyBasedTuningDump> for KeyBasedTuningDump
sourcefn eq(&self, other: &KeyBasedTuningDump) -> bool
fn eq(&self, other: &KeyBasedTuningDump) -> bool
impl Eq for KeyBasedTuningDump
impl StructuralEq for KeyBasedTuningDump
impl StructuralPartialEq for KeyBasedTuningDump
Auto Trait Implementations
impl RefUnwindSafe for KeyBasedTuningDump
impl Send for KeyBasedTuningDump
impl Sync for KeyBasedTuningDump
impl Unpin for KeyBasedTuningDump
impl UnwindSafe for KeyBasedTuningDump
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