improved MIDI-support

git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@429 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
Tobias Doerffel
2006-11-19 22:25:03 +00:00
parent 43d119d21e
commit d537337cb0
9 changed files with 108 additions and 9 deletions

View File

@@ -55,6 +55,7 @@
// forward-declarations
class instrumentTrack;
class notePlayHandle;
class midiEvent;
class instrument : public QWidget, public plugin
@@ -98,6 +99,14 @@ public:
return( TRUE );
}
// sub-classes can re-implement this for receiving all incoming
// MIDI-events except NoteOn and NoteOff
inline virtual bool handleMidiEvent( const midiEvent & _me,
const midiTime & _time )
{
return( FALSE );
}
// instantiate instrument-plugin with given name or return NULL
// on failure
static instrument * FASTCALL instantiate( const QString & _plugin_name,