length bpm

This object provides a length for the looper/pos object. Allows to use the looper in a kaoss pad / kaossilator fashion.
Author: Sputnki
License: BSD
Github: sptnk/looper/length bpm.axo

Inlets

None

Outlets

int32 provides an endpos value for looper/pos object

int32 quarters outlet (for click generation purposes)

Parameters

int32 length in quarters of the loop

int32 speed in bpm (coarse)

int32.mini fine adjustement for bpm speed

Attributes

objref 32b table in which the 4 tracks are stored

Displays

int32.label displays the length in seconds of the specified loop

bool32 endpos exceeds the size of the table

Control Rate
float length = 288000000.0f * param_quarters /
               (100 * param_bpm + param_fine); // f(bpm v, fcamp ^, nbeats ^)
disp_length = length / 48000.0f;
if (length > attr_table.LENGTHMASK)
  disp_warning = 1;
else
  disp_warning = 0;
outlet_length = length;
outlet_quarters = param_quarters;

Privacy

© 2024 Zrna Research