loop_sync

if 'wait' is high,'loop_sync' will wait until the signal at 'pos' reaches the value defined by 'start'. the, a pulse is put out at outlet 'trig'.
Author: robert schirmer
License: who cares
Github: rbrt/old/loop_sync.axo

Inlets

frac32.positive sync position

bool32.risingfalling wait

frac32buffer.positive phase in

Outlets

bool32.pulse sync trigger

Audio Rate
int csample = (inlet_pos >> 13);
int spos = (inlet_start >> 13);

if ((inlet_wait) && ((csample > (spos - 24)) && (csample < (spos + 24)))) {
  outlet_trig = 1;
} else
  outlet_trig = 0;

Privacy

© 2024 Zrna Research