Ardour  9.0-pre0-582-g084a23a80d
TestSMF Class Reference

#include <SMFTest.h>

Inheritance diagram for TestSMF:
[legend]

Public Member Functions

std::string path () const
 
int open (const std::string &path)
 
void close ()
 
int read_event (uint32_t *delta_t, uint32_t *size, uint8_t **buf) const
 
- Public Member Functions inherited from Evoral::SMF
 SMF ()
 
virtual ~SMF ()
 
virtual Temporal::Beats duration () const
 
int open (const std::string &path, int track=1, bool scan=true)
 
int create (const std::string &path, int track=1, uint16_t ppqn=19200)
 
void close ()
 
void seek_to_start () const
 
int seek_to_track (int track)
 
int read_event (uint32_t *delta_t, uint32_t *size, uint8_t **buf, event_id_t *note_id) const
 
uint16_t num_tracks () const
 
uint16_t ppqn () const
 
bool is_empty () const
 
void begin_write ()
 
void append_event_delta (uint32_t delta_t, uint32_t size, const uint8_t *buf, event_id_t note_id)
 
void end_write (std::string const &)
 
void flush ()
 
void set_length (Temporal::Beats const &)
 
double round_to_file_precision (double val) const
 
int smf_format () const
 
Temporal::Beats file_duration () const
 
int num_channels () const
 
UsedChannels const & used_channels () const
 
void set_used_channels (UsedChannels used)
 
uint64_t n_note_on_events () const
 
bool has_pgm_change () const
 
void track_names (std::vector< std::string > &) const
 
void instrument_names (std::vector< std::string > &) const
 
int num_tempos () const
 
Temponth_tempo (size_t n) const
 
Markers const & markers () const
 
void load_markers ()
 
std::shared_ptr< Temporal::TempoMaptempo_map (bool &provided) const
 

Private Attributes

std::string _path
 

Additional Inherited Members

- Public Types inherited from Evoral::SMF
typedef std::bitset< 16 > UsedChannels
 
typedef std::vector< MarkerAtMarkers
 
- Static Public Member Functions inherited from Evoral::SMF
static bool test (const std::string &path)
 
- Protected Attributes inherited from Evoral::SMF
uint64_t _n_note_on_events
 
bool _has_pgm_change
 
int _num_channels
 
UsedChannels _used_channels
 

Detailed Description

Definition at line 33 of file SMFTest.h.

Member Function Documentation

◆ close()

void TestSMF::close ( void  )
inline

Definition at line 42 of file SMFTest.h.

◆ open()

int TestSMF::open ( const std::string &  path)
inline

Definition at line 37 of file SMFTest.h.

◆ path()

std::string TestSMF::path ( ) const
inline

Definition at line 35 of file SMFTest.h.

◆ read_event()

int TestSMF::read_event ( uint32_t *  delta_t,
uint32_t *  size,
uint8_t **  buf 
) const
inline

Definition at line 46 of file SMFTest.h.

Member Data Documentation

◆ _path

std::string TestSMF::_path
private

Definition at line 52 of file SMFTest.h.


The documentation for this class was generated from the following file: