What’s the best way to plot a randomly generated envelope curve?
I have a function setup to randomly generate: 1) number of points on the envelope 2) x-values (time values) and 3) y values (between 0-1)
So far, the most likely object seems to be jit.mgraphics. However, it requires that information be sent to it point by point.
Is there a function that would allow me to send it N number of x/y pairs, and plot the resulting shape?
Have a look at the function object, which does what you describe and is designed to control the line~ object (or curve~ object) to make envelopes.
Thanks, Chris, but the function object won’t accept a list of x/y pairs as input.
I could feed them directly to the line~ object, but I wanted to have a graphic image to show my students on how the envelope plot is changing.
Could you do it with LCD? That would definitely allow you to use XY pairs
No problem, just break your list up into x-y pairs with zl, like this.
Thank you Christopher!
That was exactly what I needed!
Log in to reply
SUBSCRIBE TO OUR NEWSLETTER
C74 RSS Feed | © Copyright Cycling '74 | Terms & Conditions