the values read by the muxer are stored as elements in the bela_multiplexer
array/table, so you can use tabread
or array get
to read them off, you just need to produce the right indeces. The number of elements in the array is 8*bela_multiplexerChannels
, where bela_multiplexerChannels
is 4 when you have 32 analog ins or 8 when you have 64 analog ins. The example patch generates numbers from 0 to bela_multiplexerChannels * 8 - 1
and it prints for each row n
the values corresponding to the following indeces:
n * 8 + 0, n * 8 + 1, n * 8 + 2, n * 8 + 3, n * 8 + 4, n * 8 + 5, n * 8 + 6, n * 8 + 7
To get only the second element from the column you need to pass to [tabread]
only values of the form n * 8 + 1
. If you have 32 channels, that means: 1, 9, 17, 25. E.g.:
