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§
source§impl Clone for KeyBasedTuningDump
impl Clone for KeyBasedTuningDump
source§fn clone(&self) -> KeyBasedTuningDump
fn clone(&self) -> KeyBasedTuningDump
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 KeyBasedTuningDump
impl Debug for KeyBasedTuningDump
source§impl PartialEq for KeyBasedTuningDump
impl PartialEq for KeyBasedTuningDump
source§fn eq(&self, other: &KeyBasedTuningDump) -> bool
fn eq(&self, other: &KeyBasedTuningDump) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for KeyBasedTuningDump
impl StructuralPartialEq for KeyBasedTuningDump
Auto Trait Implementations§
impl Freeze for KeyBasedTuningDump
impl RefUnwindSafe for KeyBasedTuningDump
impl Send for KeyBasedTuningDump
impl Sync for KeyBasedTuningDump
impl Unpin for KeyBasedTuningDump
impl UnwindSafe for KeyBasedTuningDump
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