Struct rsynth::note::NoteData[][src]

pub struct NoteData {
    pub note: u8,
    pub velocity: u8,
    pub state: NoteState,
    pub channel: u8,
}

Contains all data needed to play a note

Fields

An integer from 0-127 defining what note to play based on the MIDI spec

An 8-bit unsigned value that can be used for modulating things such as amplitude

The On/Off state for a note

the intended channel

Methods

impl NoteData
[src]

This contains all data that can be constructed from a MIDI note signal.

Convert note data obtained from the host into a NoteData structure.

Trait Implementations

impl Clone for NoteData
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Default for NoteData
[src]

Return a default NoteData object, with full velocity and a note of middle C.

Returns the "default value" for a type. Read more

Auto Trait Implementations

impl Send for NoteData

impl Sync for NoteData