diff options
author | Robert Jonsson <spamatica@gmail.com> | 2011-04-15 18:52:45 +0000 |
---|---|---|
committer | Robert Jonsson <spamatica@gmail.com> | 2011-04-15 18:52:45 +0000 |
commit | 47a10173ea203de2036dd00791fe5c24fb673135 (patch) | |
tree | 6cb2e59a1e099adb30ec4f394097e33974c54ac4 /attic/muse_qt4_evolution/midiplugins/drumglue/drumglue.h | |
parent | 8edb9ca0e8e056faa0b488c947e7447a8148f880 (diff) |
removing unnecessary duplication
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 - |