loop_drive

drives the transport for reading/writing data from/to tables. tempo in hz and length of the recording is translated to index in fraction of table size
Author: robert schirmer
License: who cares
Github: rbrt/old/loop_drive.axo

Inlets

frac32 length in fraction of the table

frac32 tempo in hz

bool32.rising reset phase

Outlets

frac32buffer index in fraction of table size

Declaration
uint32_t Phase;
uint32_t r;
Init
Phase = 0;
r = 1;
Audio Rate
{
  if (inlet_reset && r) {
    Phase = 0;
    r = 0;
  } else {
    if (!inlet_reset)
      r = 1;
    Phase += inlet_freq >> 6;
  }
  outlet_pos = ___SMMUL(inlet_range, (Phase >> 5)) << 5;
}

Privacy

© 2024 Zrna Research