diff --git a/synth/tx_macro.h b/synth/tx_macro.h new file mode 100644 index 0000000..f3936f0 --- /dev/null +++ b/synth/tx_macro.h @@ -0,0 +1,22 @@ +#include + +const size_t NUM_PARAMS = 128; + +// Define the bitmask flags for different controls +enum ControlFlags { + OP1_ENVELOPE_ATTACK1 = 0, + + NUM_FLAGS = 128 +}; + +namespace trnr { + struct tx_macro { + float range_min; + float range_max; + float exponent; + std::bitset control_flags; // bitset flags indicating which parameters this control affects + + tx_macro(float _range_min, float _range_max, float _exponent, const std::bitset& _flags) + : range_min(_range_min), range_max(_range_max), exponent(_exponent), control_flags(_flags) {} + } +} \ No newline at end of file