pub struct Midi { /* fields omitted */ }
An actual Midi file, capable of producing a PCM output.
Returns a Vec containing 'len' bytes of PCM data.
Resets all note specific midi states and active notes before scanning to
sample_pos samples from the beginning taking note of any changes to midi
channel states.
Returns a string containing any copyright MIDI events, if any were
found.
The number of stereo samples the player has processed so far. Dividing
this value by the player's 'rate' determines the current playing time.
The number of stereo samples the player expects to process. Dividing
this value by the player's 'rate' determines the MIDI's total length.
This is the total time of MIDI events in 1/1000's of a second. It
differs from 'total_samples' in that it only states the total time
within the MIDI file, and does not take into account the extra bit of
time to finish playing sampling smoothly.
Executes the destructor for this type. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static