lfsr

linear feedback shift register cyclic pattern audio rate
Author: Johannes Taelman
License: BSD
Github: other/lfsr.axo

Inlets

None

Outlets

frac32buffer.bipolar lfs pattern

Attributes

combo polynomial

Declaration
uint32_t state;
Init
state = 1;
Audio Rate
if (state & 1) {
  state = (state >> 1) ^ attr_polynomial;
  outlet_out = 1 << 27;
} else {
  state = (state >> 1);
  outlet_out = -1 << 27;
}

Privacy

© 2024 Zrna Research