Struct rsynth::note::NoteData [−][src]
Contains all data needed to play a note
Fields
note: u8
An integer from 0-127 defining what note to play based on the MIDI spec
velocity: u8
An 8-bit unsigned value that can be used for modulating things such as amplitude
state: NoteState
The On/Off state for a note
channel: u8
the intended channel
Methods
impl NoteData
[src]
impl NoteData
This contains all data that can be constructed from a MIDI note signal.
pub fn data(data: [u8; 3]) -> NoteData
[src]
pub fn data(data: [u8; 3]) -> NoteData
Convert note data obtained from the host into a NoteData
structure.
Trait Implementations
impl Clone for NoteData
[src]
impl Clone for NoteData
fn clone(&self) -> NoteData
[src]
fn clone(&self) -> NoteData
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Default for NoteData
[src]
impl Default for NoteData
Return a default NoteData
object, with full velocity and a note of middle C.