I just discovered that I can easily export tables from Csound to a scalable vector graphic (SVG) format thanks to Processing. I’m really excited about this since I’ll be able to generate nice looking graphs in the future, both for this blog and for The Csound Journal. This all comes from work I’m doing in my spare time; I’m exploring the idea of creating a proper Csound library to use with Processing.
The picture above showcases two tables generated using two different methods. The top wave simply draws the contours of a table storing a band-limited sawtooth wave. The bottom displays discrete points in a table storing randomly generated noise. Nothing too fancy, yet, but the possibilities are there.
Wow, what a terrific idea! Love it. Sharing code soon? (Actually need to double-check that all our syntax highlighting is working correctly here…)
@Peter_Kirn: I’m doing my best to get the code up soon. Will probably have stuff up by next week. Actually reading up on how to build a Processing library right now.
Wow, excellent work again Jacob!
You can also generate postscript files with nice graphs directly from Csound with the -G option. I think. That may only work for the version I’m using. Anyway, it produces a nice .ps file that includes graphics. See here: (ftable 263) http://bumpermusic.blogspot.com/2010/07/amazing-grace-transformation-8.html
@Prent Rodgers: I did not know that. I gave it a try, and it does output an eps file on OS X, which I can then open in Illustrator. Though it’s only generating the first table. Even then, what a convenient way for generating hi-resolution graphs, even if one has to generate one graph at a time.
Thanks for the tip!