diff options
| author | Robert Jonsson <spamatica@gmail.com> | 2011-09-15 12:14:55 +0000 | 
|---|---|---|
| committer | Robert Jonsson <spamatica@gmail.com> | 2011-09-15 12:14:55 +0000 | 
| commit | b0546e5e7f7044019892543c6c82029db8d564a7 (patch) | |
| tree | 1b96a6260900f3fbf3513fb48a5a72aa89052dc8 /attic/muse_qt4_evolution/midiplugins/drumglue/drumglue.h | |
| parent | 583c73d1a07154d3d2672d65d8cce6495f490454 (diff) | |
moved attic to a branch of it's own
Diffstat (limited to 'attic/muse_qt4_evolution/midiplugins/drumglue/drumglue.h')
| -rw-r--r-- | attic/muse_qt4_evolution/midiplugins/drumglue/drumglue.h | 86 | 
1 files changed, 0 insertions, 86 deletions
diff --git a/attic/muse_qt4_evolution/midiplugins/drumglue/drumglue.h b/attic/muse_qt4_evolution/midiplugins/drumglue/drumglue.h deleted file mode 100644 index 49a19b55..00000000 --- a/attic/muse_qt4_evolution/midiplugins/drumglue/drumglue.h +++ /dev/null @@ -1,86 +0,0 @@ -//========================================================= -//  MusE -//  Linux Music Editor -// -//    drumglue - filter -// -//  (C) Copyright 2008 Robert Jonsson (rj@spamatica.se) -//  (C) Copyright 2005- Werner Schweer (ws@seh.de) -// Copyright: See COPYING file that comes with this distribution -//========================================================= - -#ifndef __DRUMGLUE_H__ -#define __DRUMGLUE_H__ - -#include <QtGui> - -#include "../libmidiplugin/mempi.h" - -#include "drumgluegui.h" -//--------------------------------------------------------- -//   drumglue - filter -//--------------------------------------------------------- - -struct DrumOutputInstrument { -	int outKey;		// key to send -	int lowestVelocity;  // lower velocity valid for this instrument -	int highestVelocity; // highest velocity valid for this instrument -	bool prefer;		 // true if this instrument is preferred -	bool preferFast;	 // true if this instrument is preferred for fast transitions -}; - -class DrumInstrument { -	public: -	DrumInstrument()  -	{  -		inKey=0; -		lastOutputIndex=0; -		outputTime=0; -	} -	 -	int getNextIndex(int velocity); -	int getVelocity(int index, int velocity); -	 -	 -	int inKey;		// the key which triggers this instrument -	QString name; -	QList <DrumOutputInstrument *> outputInstruments; - -//  storage of runtime variables -    int lastOutputIndex; -    unsigned int outputTime; -}; - - - - -class DrumGlue : public Mempi { -      friend class DrumGlueGui; -      friend class GlobalInstrumentView; -      friend class OutputInstrumentView; -       -      QList<DrumInstrument *> drumInstruments; - -      DrumGlueGui* gui; -       -      mutable unsigned char *saveData; - -      virtual void process(unsigned, unsigned, MidiEventList*, MidiEventList*); - -   public: -      DrumGlue(const char* name, const MempiHost*); -      ~DrumGlue(); -      virtual bool init(); - -      virtual bool hasGui() const      { return true;             } -      virtual bool guiVisible() const  { return gui->isVisible(); } -      virtual void showGui(bool val)   { gui->setShown(val);      } -      virtual void getGeometry(int* x, int* y, int* w, int* h) const; -      virtual void setGeometry(int, int, int, int); - -      virtual void getInitData(int*, const unsigned char**) const; -      virtual void setInitData(int, const unsigned char*); -      }; - -#endif -  | 
