slot length

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/smplr/slot length.axo

Inlets

int32 read sample data of the set slot

Outlets

int32.positive offset

int32.positive range

Attributes

objref smplr

Declaration
uint16_t t_slot;
uint32_t preo;
uint32_t prer;
Control Rate
t_slot = inlet_slot << 5;

if (!attr_smplr.REC) {
  preo = attr_smplr.array[t_slot + 28];
  prer = (attr_smplr.array[t_slot + 29] - attr_smplr.array[t_slot + 28]);
}

outlet_offset = preo;
outlet_range = prer;

Privacy

© 2024 Zrna Research