void buttonChanged(PatchButtonId bid, uint16_t value, uint16_t samples){ if(bid == PUSHBUTTON){ eg1.gate(value, samples); eg2.gate(value, samples); } }
void gate(bool state){ env.gate(state); }