Struct rsynth::backend::combined::midly::MidlyMidiReader[][src]

pub struct MidlyMidiReader<'a, 'b> { /* fields omitted */ }

Read from midi events as parsed by the midly crate.

Implementations

impl<'a, 'b> MidlyMidiReader<'a, 'b> where
    'b: 'a, 
[src]

pub fn new(smf: &'b Smf<'a>) -> Result<Self, ()>[src]

Create a new MidlyMidiReader that will read all tracks together (interleaved).

pub fn new_with_track_mask(
    smf: &'b Smf<'a>,
    track_mask: &[bool]
) -> Result<Self, ()>
[src]

Create a new MidlyMidiReader that will read only the masked tracks (interleaved).

Parameters

smf: the Smf for reading the midi file track_mask: a slice of booleans, only the tracks that correspond to true will be read.

Trait Implementations

impl<'a, 'b> Iterator for MidlyMidiReader<'a, 'b>[src]

type Item = DeltaEvent<RawMidiEvent>

The type of the elements being iterated over.

Auto Trait Implementations

impl<'a, 'b> !RefUnwindSafe for MidlyMidiReader<'a, 'b>

impl<'a, 'b> !Send for MidlyMidiReader<'a, 'b>

impl<'a, 'b> !Sync for MidlyMidiReader<'a, 'b>

impl<'a, 'b> Unpin for MidlyMidiReader<'a, 'b>

impl<'a, 'b> !UnwindSafe for MidlyMidiReader<'a, 'b>

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<S, T> Duplex<S> for T where
    T: FromSample<S> + ToSample<S>, 

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

impl<S> FromSample<S> for S

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

impl<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

impl<T> Itertools for T where
    T: Iterator + ?Sized
[src]

impl<T, U> ToSample<U> for T where
    U: FromSample<T>, 

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.