|
Sound Byte Libs 0.5.1-121-g3358a44
C++ firmware library for audio applications on 32-bit ARM Cortex-M processors
|
Definition at line 224 of file smf_reader.hpp.
#include <smf_reader.hpp>
Public Member Functions | |
| SmfError | parse (const uint8_t *data, size_t size) |
| Check the header and find the tracks. The bytes must outlive the reader and its tracks. | |
| SmfError | error () const |
| uint16_t | format () const |
| uint8_t | track_count () const |
| uint16_t | ticks_per_quarter () const |
| SmfTrack | track (uint8_t index) const |
A fresh cursor at the start of track index; an empty one if out of range. | |
Static Public Attributes | |
| static constexpr uint8_t | MAX_TRACKS = 16 |
|
inline |
Check the header and find the tracks. The bytes must outlive the reader and its tracks.
Definition at line 229 of file smf_reader.hpp.
References sbl::midi::BadHeader, format(), MAX_TRACKS, sbl::midi::None, sbl::midi::NotSmf, sbl::midi::SmpteDivision, sbl::midi::TooManyTracks, sbl::midi::Truncated, and sbl::midi::UnsupportedFormat.
|
inline |
Definition at line 264 of file smf_reader.hpp.
Referenced by sbl::midi::Sequencer< Outputs >::load().
|
inline |
Definition at line 265 of file smf_reader.hpp.
Referenced by sbl::midi::Sequencer< Outputs >::load(), and parse().
|
inline |
Definition at line 266 of file smf_reader.hpp.
Referenced by sbl::midi::Sequencer< Outputs >::load().
|
inline |
Definition at line 267 of file smf_reader.hpp.
Referenced by sbl::midi::Sequencer< Outputs >::load().
|
inline |
A fresh cursor at the start of track index; an empty one if out of range.
Definition at line 270 of file smf_reader.hpp.
Referenced by sbl::midi::Sequencer< Outputs >::load().
|
staticconstexpr |
Definition at line 226 of file smf_reader.hpp.
Referenced by parse().