Posted: May 6th, 2009 | Author: admin | Filed under: code | No Comments »
this is the super collider code (unzip and open in super collider)
supercolliderinclassrtf
this is the OF source code that controls the last synthDef (put this source in the addonsExamples/oscSenderExample , even better, duplicate that example before hand)
supercollidercontrolsrc_putinoscsenderexample
enjoy!
Posted: April 29th, 2009 | Author: admin | Filed under: code | No Comments »
this is some opencv -> audio synthesis code:
graphicsImageAnalysis3
enjoy!
Posted: April 22nd, 2009 | Author: admin | Filed under: code | No Comments »
here’s intro to opencv code:
graphicsImageAnalysis2
have fun !
Posted: April 18th, 2009 | Author: admin | Filed under: Uncategorized | No Comments »
this homework is optional
— but it will be nice if you want to try to do these things by hand.
try to implement convolution with a 3×3 kernel, ie, blurring the image with a kernel as we looked at in class (you can try in photoshop, under filter -> custom). some kernels can be found online, but a common one is:
1 2 1
2 4 2
1 2 1
(weight is 16)
Try doing a sharpen and blur filter. Don’t worry about the edge pixels for now, so you can write for loops like:
for (int i = 1; i < width - 1; i++)
instead of
for (int i = 0; i < width; i++)
try also implementing the “erosion” and “dilation” algorithms we talked about in class. Can you make a white region grow bigger or smaller ?
some links might help:
http://docs.gimp.org/en/plug-in-convmatrix.html
http://www.gamedev.net/reference/articles/article2007.asp
http://www.dspguide.com/ch25/4.htm
http://www.mathworks.com/access/helpdesk/help/toolbox/images/index.html?/access/helpdesk/help/toolbox/images/f18-12508.html&http://www.google.com/search?hl=en&q=erosion+dilation+example&btnG=Search
have fun !
Posted: April 18th, 2009 | Author: admin | Filed under: Uncategorized | No Comments »
here is some basic code showing loading an image via OF and getting the pixels into a texture, and performing some processing along the way: imageanalysis1
also, the pitch detection drawing code is part of this code samples from the drawing+- class:
cumulative drawing
Posted: April 12th, 2009 | Author: admin | Filed under: homework | No Comments »
Image drives Sound.
create 4 different audio visual apps which use graphical synthesis as a basis for creating sound. For example, we looked at using raster data to synthesize sound. Think about the relationships between the techniques we’ve talked about (how graphical and audio synthesis techniques relate), and particularly, how image can drive sound. Make relationships that are tight and meaningful.
Please ask questions as you go — make sketches on paper, work on something you have no idea how to do, and push yourself. Use me as an independent homework advisor.
Posted: April 12th, 2009 | Author: admin | Filed under: code | No Comments »
here is the code from class, plus the gesure recording code (from ALGO). I will be crafting a simpler gesture recording code (that doesn’t use time) and will throw that up on the blog later today. for now, I thought I’d post the more complex code, because it’s good stuff:
graphicsbasics2_and_pointrecording
for inspiration on gesture recording, check out scott snibbe’s motionsketch
Posted: April 5th, 2009 | Author: admin | Filed under: homework | No Comments »
this week, since I’m away doing stuff on the tempt one project, there is no homework…
please, however, take a moment to get into the pixel / raster code and experiment with it basic graphics synthesis. also, if your white square homework wasn’t as great as you want it, please take the time to put some extra love in it.
Posted: April 2nd, 2009 | Author: admin | Filed under: code | No Comments »
here’s 1st part of graphical synthsis — raster pixels basics + some audio synthesis basically hooked up…
graphicalsynthesisbasics
have fun !
Posted: March 29th, 2009 | Author: admin | Filed under: homework | No Comments »
audio analysis meets white square (200px x 200px)
in this homework, I want you to have the same basic rules:
a) start with a white square, 200px x 200px, centered on the screen *
b) start with a blackbackground
c) draw nothing else on screen
note, to center on the screen, you can use
ofSetRectMode(OF_RECTMODE_CENTER);
ofRect(ofGetWidth()/2, ofGetHeight()/2, 200,200);
or
ofRect(ofGetWidth()/2 - 100, ofGetHeight()/2 - 100, 200,200);
then, based on sonic input, manipulate the square (or the scene). what happens to the square is up to you, does it rotate? does it change in color? grow? bounce? explode? life off the screen?
think specifically about sonic qualities, like pitch, and frequency information, and think about “performing” your white square.
make 3 different examples using the variety of techniques of analysis we talked about, pitch detection, fft, autocorrelation, and volume detection.
have fun!