drumstick 2.9.0
C++ MIDI libraries using Qt objects, idioms, and style.
ALSA Sequencer Output

ALSA Sequencer easy playback functionality. More...

Classes

class  SequencerOutputThread
 Sequence player auxiliary class. More...
 

Detailed Description

ALSA Sequencer easy playback functionality.

SequencerOutputThread provides MIDI sequence playback.

This is an abstract class that must be extended providing an implementation for the pure virtual methods: SequencerOutputThread::hasNext() and SequencerOutputThread::nextEvent() before using it for MIDI sequence playback. You can use any structure or class you prefer to store the SequencerEvent objects, but they must be provided ordered by time. A simplistic Song definition may be:

typedef QList<SequencerEvent> Song;

Using this class is optional. You may prefer another mechanism to manage playback actions. This class uses a thread to manage the sequence playback as a background task.