blob: b7635287d42875e85a2d013fc724cfcf9256891a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
//=========================================================
// MusE
// Linux Music Editor
// $Id: filter.h,v 1.4 2005/06/12 08:18:37 wschweer Exp $
//
// filter - simple midi filter
//
// (C) Copyright 2005 Werner Schweer (ws@seh.de)
//=========================================================
#ifndef __TRIGG_H__
#define __TRIGG_H__
#include "../libmidiplugin/mempi.h"
//---------------------------------------------------------
// filter - simple midi filter
//---------------------------------------------------------
class Trigg : public Mempi {
struct initData {
int note;
int velocity;
} data;
friend class TriggGui;
TriggGui* gui;
virtual void process(unsigned, unsigned, MPEventList*, MPEventList*);
public:
Trigg(const char* name, const MempiHost*);
~Trigg();
virtual bool init();
void setNote(int t) { data.note = t; }
void setVelocity(int t) { data.velocity = t; }
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
|