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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user