I'm looking to use a 2D array but can't figure out how. I'd like to have two columns or rows of data read from a text file and put into a 2D array.
x1 y1
x2 y2
x3 y3
Any tips?
2D array
I'm looking to use a 2D array but can't figure out how. I'd like to have two columns or rows of data read from a text file and put into a 2D array.
x1 y1
x2 y2
x3 y3
Any tips?
I thought 2D arrays weren't possible just like that in pd, unless you're going to look into datastructures. But then that's a whole different story.
You can however fake it by using... tadaaa : 2 arrays!
Look at the attached example.
D.
|] [] |.| ][|-| -- http://soundcloud.com/domxh
Or if your not using signals, just multiplex your array; read every OTHER value. 1,3,5,7... for the first dimension and 2,4,6,8... for the second.
[int]X[+ 1]
|
[tabread foo]
|
[alternate] <---from GEM
| |
| |
1d 2d
Oops! Looks like something went wrong!