Position within sample of arbitrary length


#1

I am using a footswitch to record audio to a table. That table is 524288 samples long. Then I would like to use the slicer to cut pieces of it out. The slicer would cut pieces from the entire table length, not just the part I recorded into it.

Using timer, I can get the length of my footswitch press in ticks. Multiplied by 16, that gives me the number of samples I have recorded to the table.

Then I am lost. Without a division object I have no way to calculate what percentage of the table is filled with my sound, so I cannot get slices only from that part.

What other options would I have to do this? Thanks!


#2

I really can recomend using @rbrt's looper objects for this. They have timers and info what part of the table you are using already built in and you can build your own slicer by offsetting the startposition of the loop play objects and triggering it at the specific offsettet start positions.


#3

Good tip, I will investigate it thanks!


#4

there is also rbrt/math/div fff. divides float by float.


#5

Good to know. I've been wondering for a week now why simple math has to be so damned confusing in Axo!


#6

I guess you miss some pd stuff like I did in the beginning. but at the end, there is always a way around..
Btw, looking forward to your Benjoloti. I'm sure you will be able to make it in no-time and still having lots of room to add some more instances..


#7

I just miss numbers behaving in a predictable way.......


#8

Modulars don't spit numbers out and sure you don't miss that feature, right?
What I'm doing when I need precision / conditions its to use displays, the bool display, bipolar / polar dials & so. Mind that there are converters bipolar / polar, etc. and you can always amplify or attenuate signals until you get the desired behavior.


#9

Modulars spit out voltages whose levels I can understand. Here, 64 is sometimes 1 and sometimes not, etc etc. Plus all this bitshifting nonsense one has to try and understand...