implement macro masking
This commit is contained in:
parent
f5667fac1f
commit
9da46ee8ba
64 changed files with 760 additions and 268 deletions
|
|
@ -27,7 +27,7 @@ class DivEngine;
|
|||
struct DivMacroStruct {
|
||||
int pos, lastPos, lfoPos, delay;
|
||||
int val;
|
||||
bool has, had, actualHad, finished, will, linger, began;
|
||||
bool has, had, actualHad, finished, will, linger, began, masked;
|
||||
unsigned int mode, type;
|
||||
void doMacro(DivInstrumentMacro& source, bool released, bool tick);
|
||||
void init() {
|
||||
|
|
@ -52,6 +52,7 @@ struct DivMacroStruct {
|
|||
will(false),
|
||||
linger(false),
|
||||
began(true),
|
||||
masked(false),
|
||||
mode(0),
|
||||
type(0) {}
|
||||
};
|
||||
|
|
@ -105,6 +106,11 @@ class DivMacroInt {
|
|||
// state
|
||||
bool hasRelease;
|
||||
|
||||
/**
|
||||
* set mask on macro.
|
||||
*/
|
||||
void mask(unsigned char id, bool enabled);
|
||||
|
||||
/**
|
||||
* trigger macro release.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue