slot params

reference sample information created by 'smplr'. 'slot' sets the sample bank slot to refer to. 'offset' returns the start of the slot in fraction of the table's size, 'range' returns the length. 'playmode' returns the playmode the slot has been recorded with. 'Aux' returns auxiliary information,like the recording startpoint.
Author: robert schirmer
License: BSD
Github: rbrt/lpr/slot params.axo

Inlets

int32 read sample data of the set slot

Outlets

frac32.positive sample start in fraction of the table

frac32.positive sample length in fraction of the table

frac32.positive startpoint

int32.positive playmode

Attributes

objref lpr

objref wave

Declaration
uint8_t shift;
Init
shift = (27 - attr_wave.LENGTHPOW);
Control Rate
outlet_offset = attr_lpr.array[inlet_slot << 2] << shift;
outlet_range =
    (attr_lpr.array[(inlet_slot << 2) + 1] - attr_lpr.array[inlet_slot << 2])
    << shift;
outlet_playmode = attr_lpr.array[(inlet_slot << 2) + 2];
outlet_startpoint = attr_lpr.array[(inlet_slot << 2) + 3];

Privacy

© 2024 Zrna Research