implement macro masking

This commit is contained in:
tildearrow 2022-12-17 00:09:56 -05:00
parent f5667fac1f
commit 9da46ee8ba
64 changed files with 760 additions and 268 deletions

View file

@ -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.
*/