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/old/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

int32.positive playmode

frac32 additional info

Attributes

objref smplr

objref wave

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

Privacy

© 2024 Zrna Research