Just wondering if anyone here has any experience syncing or working with both processing and supercollider, and if so, if there are any bridges, libraries or tips that could get me headed in the right direction.
I'm a big fan of the Minim library and using Processing to analyse and display input sounds. However, it'd be nice to have a go at developing a work that actually generates interactive music and visuals simultaneously.
Been trying to solve this one for a couple of hours, but no luck so far.
The program below should draw a line constructed from a number of 'Movers' (really basic physics-y particles), storing the most recent lines in a buffer then drawing them. The end effect should be a trail of lines that bounces around the screen and creates pretty based patterns :3
Unfortunately all is not as it seems - instead of drawing a trail, all the lines are drawn at the most recent location. I've tried using println statements to check that the buffer values are ok, and nothing seems to be wrong there, so I think it must be a problem with the way that I'm drawing the lines. But I've used this drawing method before and it's worked fine.
Any ideas why it's not working? Thanks in advance!
int resolution = 32; //Number of vertices per line
int trails = 128; //Number of lines to store in buffer
float patternWidth; //Width of initial line
Mover[] linePoint = new Mover[resolution]; //Particles in line
PVector[][] storage = new PVector[trails][resolution]; //Keep old locations in here