Access sample value with index


#1

Hi,
I'm new to axoloti but used to program with Max and Pd. I'd like to access the table values with index but can not find any object for this. I Tried table/alloc object, but didn't work. Is the input for indexes?


#2

You have to create a table (table/alloc) and then you use table/read (which takes an index in) and table/write (index and value in) to write to the table.


64-Step-Sequencer
#3

also Id recommend looking at the 'help' patches, they have examples of usage. (similar to Max)
they are not brilliantly commented, and not 100% complete, but are a good first place to check.


#4

Thanks for the help. Another question: What is the format of the table we can load ? I'd like to make my own tables in a text editor, is it possible ?? I tried a series of floats separated with coma, but the loaded waveform doesn't look like expected ( a simple sine).


#5

the load will loading anything, its binary... but the read object only does floats currently.

text loading would be inappropriate for a real time platform such as axoloti (its why there are very limited string functions) ... the best approach would be to covert the data to an appropriate format on the computer, and then upload the binary data to the Axoloti SDCard.

if your doing waves then you can use any wave editor, and save it as a 16 bit RAW audio data file.

if your interested in wavetables there are quite a few thread here on doing this with axoloti:
https://sebiik.github.io/community.axoloti.com.backup/search?q=wavetable


#6

Thanks it works! But I experienced some issues. sometime when I change the table the table doesn't update and the display scope freezes. Another probleme with loading long wav files about one minutes with sdram load, it disconnects the hardware ...
any idea?