Hello, I am making some good progress with my sonification patch, and can now load values and send them to oscillators etc. I have been recommended to use openpanel which I have set up to read an array, and send it to an oscillator. my issue is I can only get it to send the whole array, rather than each value in the array, so my oscillators are only playing the first value in the array. How can I tell it I want it to cycle through the data? I have a counter, and mod in operation. my console prints all values each time the toggle prompts it to change values.
-
cycling through arrays
-
@kkl the patch flow is the following for the oscillator part: Metro -> float_> +1 Counter -> Mod 96 -> Array Get -> Oscillator -> DAC
My data has 96 integers.
-
[tabread] instead of [array get] !?
(Long time ago arrays where called tables in Pd.)
Read their helpfiles. You can use [array get] too, but more complicated for this.In Pd Vanilla, right click on the blank canvas > help shows all build-in objects.
-
@kkl You need to tell the [array get] how many elements to get, either a 1 sent to the second inlet or through arguments [array get array1 0 1]. Your counter likely also has an issue if you have sent a value other than 0 to the first inlet, if the counter works sending a 1 to the first inlet should send the first element through to the last element. Along with @lacuna's recommendation of the help files also good to check the help browser, control-b or open it through the Help menu, first item is Pure Data and in there you have lots of examples and the like.
-
@oid ok thank you, yes I have been using the help function. I've fixed his now, the problem was making a loop back from mod to float to update the count. It now cycles through the array.