rec wait

inlet wait toggles wait-state;if waiting,a pulse at inlet go sets outlet rec to high.another pulse at inlet wait will reset rec to 0. when waiting,a pulse at inlet wait will reset wait to 0.
Author: Robert Schirmer
License: BSD
Github: rbrt/control/rec wait.axo

Inlets

bool32.risingfalling recording starts as soon as there's a trigger at inlet wait

bool32.rising toggle wait / rec

bool32.rising trigger rec

Outlets

bool32.pulse go

bool32 rec

bool32 wait state

Declaration
bool wtrig;
bool wait;
bool rec;
Control Rate
outlet_go = 0;
if ((wait && inlet_wait) && (!wtrig)) {
  wtrig = 1;
  wait = 0;
}
if (inlet_wait && (!wtrig)) {
  wtrig = 1;
  wait = 1;
}

if ((wait && inlet_go) || (wait && inlet_nowait)) {
  rec = 1;
  wtrig = 1;
}
if (rec && inlet_wait) {
  rec = 0;
}
if (rec)
  wait = 0;

if ((!inlet_wait) && (!rec))
  wtrig = 0;

outlet_waitstate = wait;
outlet_rec = rec;
outlet_go = inlet_go;

Privacy

© 2024 Zrna Research