Public Member Functions | Public Attributes | List of all members
universal_midi_packets::ToBytestreamConverter Struct Reference

Allows conversion from bytestream- or Universal MIDI Packet-formatted messages to bytestream format. More...

Public Member Functions

 ToBytestreamConverter (int storageSize)
 
template<typename Fn >
void convert (const MidiMessage &m, Fn &&fn)
 
template<typename Fn >
void convert (const View &v, double time, Fn &&fn)
 
void reset ()
 

Public Attributes

Midi1ToBytestreamTranslator translator
 

Detailed Description

Allows conversion from bytestream- or Universal MIDI Packet-formatted messages to bytestream format.

Constructor & Destructor Documentation

◆ ToBytestreamConverter()

universal_midi_packets::ToBytestreamConverter::ToBytestreamConverter ( int  storageSize)
explicit

Member Function Documentation

◆ convert() [1/2]

template<typename Fn >
void universal_midi_packets::ToBytestreamConverter::convert ( const MidiMessage m,
Fn &&  fn 
)

References gl::m.

◆ convert() [2/2]

template<typename Fn >
void universal_midi_packets::ToBytestreamConverter::convert ( const View v,
double  time,
Fn &&  fn 
)

◆ reset()

void universal_midi_packets::ToBytestreamConverter::reset ( )

Member Data Documentation

◆ translator

Midi1ToBytestreamTranslator universal_midi_packets::ToBytestreamConverter::translator

Referenced by reset().


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