[][src]Enum fpsdk::voice::Event

pub enum Event {
    Retrigger,
    GetLength,
    GetColor,
    GetVelocity,
    GetRelVelocity,
    GetRelTime,
    SetLinkVelocity(bool),
    Unknown,
}

Voice events.

Variants

Retrigger

Monophonic mode can retrigger releasing voices.

GetLength

Retrieve the note length in ticks. The result is not reliable.

Function result holds the length of the note, or -1 if it's not defined.

GetColor

Retrieve the color for a note. A note can currently have up to 16 colors in the pianoroll. This can be mapped to a MIDI channel.

Functions result holds the note color (0..15).

GetVelocity

(FL 7.0) Retrieve note on velocity. This is computed from Params.init_levels.vol. This should be called from trigger method.

Function result holds the f32 velocity (0.0..1.0).

GetRelVelocity

(FL 7.0) Retrieve release velocity (0.0..1.0) in result. Use this if some release velocity mapping is involved. This should be called from release method.

Function result holds the f32 velocity (0.0..1.0) (to be called from release method).

GetRelTime

(FL 7.0) Retrieve release time multiplicator. Use this for direct release multiplicator. This should be called from release method.

Function result holds the f32 value (0.0..2.0).

SetLinkVelocity(bool)

(FL 7.0) Call this to set if velocity is linked to volume or not. The default is on.

Unknown

Unknown event.

Trait Implementations

impl Debug for Event[src]

impl From<Event> for Option<FlMessage>[src]

Auto Trait Implementations

impl RefUnwindSafe for Event

impl Send for Event

impl Sync for Event

impl Unpin for Event

impl UnwindSafe for Event

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.