graphing numerical values from a coll object
Hi maxers,
I would like to 2-d plot some numerical values that are stored in a coll object. Can somebody help me make a 2-D graph, where X would be the index number and Y the numerical value? I need the solution to be flexible regarding the number of elements in the coll, because the number of elements will always change. I've tried to do this using the plot~ function, but I cannot find a parsimonious way of packing the hundreds of elements from my coll. Please help a max beginner out.
Thanks!
Ben
Here is an example of the type of data I want to plot.
An important thing to know about the coll object: It doesn't save its data unless you either a) 'write' its data out to a file and then read it back in the next time you open the patch or b) instruct Max to embed the data as part of the patch by setting the coll's 'embed' attribute. If I want to save the data of a coll as part of the patch, I immediately say so when I create the object: [coll @embed 1].
If your data are integers, the handiest object for plotting them is table or itable. For floats you can use buffer~ and waveform~. The multislider object is also pretty handy for plotting either ints or floats.
as per chris' suggestions:
You both are fantastic. So helpful.
Thank you