guitarAllocation

allocation module to use with the guitarTableOsc and guitarTable modules. The table is saved monophonically, so in a polyphonic patch, the table won't be copied for each extra voice. They all just read from the same table! The "size" sets the size of the waveforms that are created (8192 is a nice very-low-distortion size) The "preset" control sets how many waveforms can be created
Author: Remco van der Most
License: BSD
Github: sss/osc/guitarAllocation.axo

Inlets

None

Outlets

None

Attributes

combo size

spinner presets

Declaration
static const uint32_t LENGTHPOW = attr_size;
static const uint32_t LENGTH = 1 << attr_size;
static const uint32_t LENGTHMASK = (1 << attr_size) - 1;
static const uint32_t BITS = 32;
static const uint32_t GAIN = 0;
int32_t *array;
int32_t presets = attr_presets;
int32_t Waveforms = attr_presets;
int Do;
Init
static int32_t _array[LENGTH * attr_presets] __attribute__((section(".sdram")));
array = &_array[0];
{
  int i;
  for (i = 0; i < LENGTH * attr_presets; i++)
    array[i] = 0;
}

Privacy

© 2024 Zrna Research