waveform~ display as a circle
Jan 17 2011 | 8:18 pm
Has anyone managed to display waveform data in the shape of a circle? I would like to view, edit and display buffer data in the shape of a circle. (As opposed to the rectangular boxy format included in the waveform~ object.) Thanks for any insight.
- brendan mccloskeyJan 17 2011 | 8:24 pmYou mean, with the start of the buffer contents at 0deg, the middle at 180 and the end at 359deg?
- stanradJan 17 2011 | 8:28 pmYes.
- stanradJan 17 2011 | 8:40 pmSomething like this
- nick rothwell | project cassielJan 17 2011 | 9:34 pmYou mean like this?
- stanradJan 17 2011 | 10:24 pmYes, something like that. Unfortunately, don't have Max4 live or Abelton hoping there was a way to do it within Max 5.
- brendan mccloskeyJan 17 2011 | 11:09 pmI think I can safely say that, certainly in the past 3 years, this request has never appeared on the forum - and in my experience I know that this feature is not readily available in Max; the only objects that I can think of to get anywhere near a solution would be [lcd] or maybe [pictslider], but you would need a 360deg image rendered elesewhere first. Either that, or something like Processing, but your programming would need to be better than mine.....Brendan
- Tim LloydJan 18 2011 | 12:51 amIt's possible to do it in Jitter, but I'm not one of the ones who could put it together very easily. Search/ask on the Jitter forum, how to render a buffer in OpenGL......then do something like apply the formula for a circle to the matrix in some way....I'm being cryptic because I don't know how lol.All I know is that it IS doable in Max5, and not just because Nick posted a picture... :p
- Ben BrackenJan 18 2011 | 5:08 amGraham did a jit.buffer->jit.gl.mesh patch some time ago:You could use this as a jumping point, then capture/jit.gl.asyncread it to a texture and then use the texture on a jit.gl.gridshape @circle. I'd probably make the initial rendering/texture extra big so it will look decent when used on the gridshape.Coming up with a meaningful way to interact with it might be the trickier part.-Ben
- Emmanuel JourdanJan 18 2011 | 2:29 pmJust for the fun... an lcd example:
- Emmanuel JourdanJan 18 2011 | 3:21 pmand with the playhead...
- seejayjamesJan 18 2011 | 3:53 pmWHOA...and I was planning on doing other things today...How do you think this kind of approach could work with jit.gl.sketch? On the [lcd] it seems pretty snappy. Maybe the GL isn't needed after all... with jit.gl.sketch in the past I've noticed pretty bad response after this many lines are drawn on there. But it would be pretty rockin especially with the handle and other goodies the GL world would provide.New Max object: groovecirc~ !
- Tj ShredderJan 18 2011 | 4:52 pmWonderful Emmanuel. I think there is no need for Gl, as you only need to calculate it once. To draw the playhead isn't that expensive...
- stanradJan 18 2011 | 8:39 pmWow. Pretty Impressive and creative solution Emmanuel. Thanks for everyone else's valuable insight.
- lewis leptonJan 18 2011 | 9:06 pmyummy, that is pretty damn snappy if i do say so myself. just think on what you could do with sectioning off the waveform when you have a portion of it looping.
- Mike SJan 18 2011 | 9:22 pmEmmanuel bringing the pain hardcore from the brain
- Emmanuel JourdanJan 18 2011 | 11:38 pmThanks for the nice comments... Using sprites like in the second example makes it reasonably fast. The major problem we just take samples evenly spaced, and not because they are meaningful, one idea to go further would be to apply some filter lowpass filter, or something like that on the absolute value of the samples (or calculate a RMS) selecting the samples to display, easy to do in mxj for instance, but too complicated/slow in patch.
- Chris MuirJan 19 2011 | 12:26 amNice patch. Rather than calculate an RMS value, I think I would just try and find the minimum and maximum in a given batch of samples.
- nick rothwell | project cassielJan 19 2011 | 10:14 amNice, Emmanuel... lighter weight than my JS/OpenGL solution, I think. I should do some CPU comparisons.
- Roman ThileniusJan 20 2011 | 12:30 pmthat is definetly very easy to do with [lcd] or [jit.lcd].of course it will lack antialiasing so when you just draw lines to lcd you might want to make the display not too small.
- kp*Jan 21 2011 | 6:03 amThat is the freaking coolest thing I have seen in a really long time. Bravo. Oddly, I kinda like the java free version bettererer. That is seriously sexy and oddly relevant and helpful for the kind of thing I happend to be doing at the moment. Seriously wow.
- brendan mccloskeyJan 21 2011 | 10:42 am@kp*Actually, it should be "more bettererer"Brendan
- stanradJan 24 2011 | 11:24 pmThat looks much more bettererer than the rectangular waveform~ . Looks like a coffee cup stain (from Java nevertheless ;0.) I'm sure it will become of use in the future-seems much easier to navigate and lots of potential for development. nice to see so much interest in this topic.
- kp*Jan 25 2011 | 12:11 amWell paired with say named transports or loops of different lengths (or just different speeds) it just is so cool to watch the phasing and convergence points... or maybe 2 of them superimposed with waveforms in different colors. Sexy stuff.
- brendan mccloskeyFeb 10 2011 | 5:00 pmbumping this for a colleagueBrendan
- saulpimpsonFeb 10 2011 | 7:11 pmThis is really cool. Want to try with Elastic~ and It would be cool to be able to manipulate the loop with the playhead.
- vichugFeb 11 2011 | 11:08 pmmost interesting thing coming to my mind is : it really reminds me of the gamelan circular notation system
- OrkesterFeb 25 2011 | 5:05 pmI caught this thread when it first popped up, came across the patcher again cleaning up files. Would it be possible to do this with scope~ or with an overdubbing buffer? Same idea except realtime, I suppose, but would that be too resource heavy?Thanks.
- garykwan80sNov 24 2015 | 12:46 pmHow to use jit.lcd to replace the lcd,so that we can display the waveform through jit.qt.videoout.
- ygreqDec 13 2016 | 9:43 pmWow! Great find! Any Ideas how I can get this done with live sound and pushed in a matrix?
- ErnestDec 14 2016 | 4:44 pmWhat you can do is draw the wave into jit.gl.mesh and display in a jitter window rather than using scope. This draws two sines at 90-degree phase difference to make a circle (it's rendered at an angle to the viewplane (use the window handles to change the viewing angle).
- ErnestDec 14 2016 | 4:59 pmThen you can put in a waveform to modulate the circle in the 3rd dimension at a lower amplitude. Now the angled view actually works in your favor )
- ygreqMar 23 2017 | 11:02 amNever got to say THANK YOU, Ernest! This is exactly what I was searching for!
- NickSep 06 2017 | 4:39 amThis is an excellent thread, thanks Emmanuel & Ernest!