drumstick 2.9.0
C++ MIDI libraries using Qt objects, idioms, and style.
Standard MIDI Files Management (I/O)

Provides a mechanism to parse and encode Standard MIDI Files. More...

Classes

class  QSmf
 Standard MIDI Files input/output. More...
 

Functions

QString drumstickLibraryVersion ()
 drumstickLibraryVersion provides the Drumstick version as an edited QString More...
 

Variables

const quint32 MThd = 0x4d546864
 SMF Header prefix.
 
const quint32 MTrk = 0x4d54726b
 SMF Track prefix.
 
const quint8 meta_event = 0xff
 SMF Meta Event prefix.
 
const quint8 sequence_number = 0x00
 SMF Sequence number.
 
const quint8 text_event = 0x01
 SMF Text event.
 
const quint8 copyright_notice = 0x02
 SMF Copyright notice.
 
const quint8 sequence_name = 0x03
 SMF Sequence name.
 
const quint8 instrument_name = 0x04
 SMF Instrument name.
 
const quint8 lyric = 0x05
 SMF Lyric.
 
const quint8 marker = 0x06
 SMF Marker.
 
const quint8 cue_point = 0x07
 SMF Cue point.
 
const quint8 forced_channel = 0x20
 SMF Forced MIDI channel.
 
const quint8 forced_port = 0x21
 SMF Forced MIDI port.
 
const quint8 end_of_track = 0x2f
 SMF End of track.
 
const quint8 set_tempo = 0x51
 SMF Tempo change.
 
const quint8 smpte_offset = 0x54
 SMF SMPTE offset.
 
const quint8 time_signature = 0x58
 SMF Time signature.
 
const quint8 key_signature = 0x59
 SMF Key signature.
 
const quint8 sequencer_specific = 0x7f
 SMF Sequencer specific.
 
const quint8 note_off = 0x80
 MIDI event Note Off.
 
const quint8 note_on = 0x90
 MIDI event Note On.
 
const quint8 poly_aftertouch = 0xa0
 MIDI event Polyphonic pressure.
 
const quint8 control_change = 0xb0
 MIDI event Control change.
 
const quint8 program_chng = 0xc0
 MIDI event Program change.
 
const quint8 channel_aftertouch = 0xd0
 MIDI event Channel after-touch.
 
const quint8 pitch_wheel = 0xe0
 MIDI event Bender.
 
const quint8 system_exclusive = 0xf0
 MIDI event System Exclusive begin.
 
const quint8 end_of_sysex = 0xf7
 MIDI event System Exclusive end.
 
const quint8 midi_command_mask = 0xf0
 Mask to extract the command from the status byte.
 
const quint8 midi_channel_mask = 0x0f
 Mask to extract the channel from the status byte.
 
const quint8 major_mode = 0
 Major mode scale.
 
const quint8 minor_mode = 1
 Minor mode scale.
 

Detailed Description

Provides a mechanism to parse and encode Standard MIDI Files.

QSmf provides a mechanism to parse and encode Standard MIDI Files, without the burden of a policy forcing to use some internal sequence representation.

This class is not related or based on the ALSA library.

Function Documentation

◆ drumstickLibraryVersion()

QString DRUMSTICK_FILE_EXPORT drumstickLibraryVersion ( )

drumstickLibraryVersion provides the Drumstick version as an edited QString

Returns
Drumstick library version

Definition at line 1248 of file qsmf.cpp.