#[repr(C)]pub struct MusicDeviceStdNoteParams {
pub argCount: u32,
pub mPitch: f32,
pub mVelocity: f32,
}
Available on crate feature
MusicDevice
only.Expand description
convenience struct for specifying a note and velocity
This struct is the common usage for MusicDeviceStartNote, as most synths that implement this functionality will only allow for the specification of a note number and velocity when starting a new note.
Should be set to 2
The pitch of the new note, typically specified using a MIDI note number (and a fractional pitch) within the range of 0 < 128. So 60 is middle C, 60.5 is middle C + 50 cents.
The velocity of the new note - this can be a fractional value - specified as MIDI (within the range of 0 < 128)
See also Apple’s documentation
Fields§
§argCount: u32
§mPitch: f32
§mVelocity: f32
Trait Implementations§
Source§impl Clone for MusicDeviceStdNoteParams
impl Clone for MusicDeviceStdNoteParams
Source§fn clone(&self) -> MusicDeviceStdNoteParams
fn clone(&self) -> MusicDeviceStdNoteParams
Returns a duplicate 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 MusicDeviceStdNoteParams
impl Debug for MusicDeviceStdNoteParams
Source§impl Encode for MusicDeviceStdNoteParams
impl Encode for MusicDeviceStdNoteParams
Source§impl PartialEq for MusicDeviceStdNoteParams
impl PartialEq for MusicDeviceStdNoteParams
Source§impl RefEncode for MusicDeviceStdNoteParams
impl RefEncode for MusicDeviceStdNoteParams
Source§const ENCODING_REF: Encoding
const ENCODING_REF: Encoding
The Objective-C type-encoding for a reference of this type. Read more
impl Copy for MusicDeviceStdNoteParams
impl StructuralPartialEq for MusicDeviceStdNoteParams
Auto Trait Implementations§
impl Freeze for MusicDeviceStdNoteParams
impl RefUnwindSafe for MusicDeviceStdNoteParams
impl Send for MusicDeviceStdNoteParams
impl Sync for MusicDeviceStdNoteParams
impl Unpin for MusicDeviceStdNoteParams
impl UnwindSafe for MusicDeviceStdNoteParams
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> EncodeArgument for Twhere
T: Encode,
impl<T> EncodeArgument for Twhere
T: Encode,
Source§const ENCODING_ARGUMENT: Encoding = T::ENCODING
const ENCODING_ARGUMENT: Encoding = T::ENCODING
The Objective-C type-encoding for this type.
Source§impl<T> EncodeReturn for Twhere
T: Encode,
impl<T> EncodeReturn for Twhere
T: Encode,
Source§const ENCODING_RETURN: Encoding = T::ENCODING
const ENCODING_RETURN: Encoding = T::ENCODING
The Objective-C type-encoding for this type.