-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathArpMatrix.h
47 lines (35 loc) · 1.11 KB
/
ArpMatrix.h
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
#pragma once
#include "IControl.h"
class Sequence;
class ArpMatrix : public IControl
{
public:
/**
* Constructor
*
* @param bgID background bitmap resource ID
* @param cursorID cursor bitmap resource ID
*/
ArpMatrix(IPlugBase* pPlug, Sequence* sequence, int x, int y);
virtual ~ArpMatrix() { };
virtual void OnMouseDown(int x, int y, IMouseMod* pMod);
virtual void OnMouseDrag(int x, int y, int dX, int dY, IMouseMod* pMod);
//virtual void OnMouseDblClick(int x, int y, IMouseMod* pMod);
//virtual void OnMouseWheel(int x, int y, IMouseMod* pMod, int d);
virtual bool Draw(IGraphics* pGraphics);
virtual void SetDirty(bool pushParamToPlug);
void Rebuild();
protected:
// Track two parameters
// int mParamXIdx;
// double mValueX, mClampXLo, mClampXHi;
// double mMaxPadX;
// int mParamYIdx;
// double mValueY, mClampYLo, mClampYHi;
// double mMaxPadY;
int mMouseX;
int mMouseY;
void DrawNote(IGraphics* pGraphics, int iseq, int note);
private:
Sequence* sequence_;
};