Quantcast
Channel: Processing Forum
Viewing all articles
Browse latest Browse all 1768

Processing + Jitter — Is there a simple solution?

$
0
0
Hey Guys


I'm writing some code to produce live visuals for electronic music.
This is something that I have been doing professionally for some time now,
but, this time, I want to try something new, video.

So, the work flow is rather simple…
I'll be using Ableton Live with a simple patch that detects the beat's MIDI signal
and sends a "bang" to Processing via M4L. Done.

Using Processing's Video library, I use the jump() method to get back to
the beginning of the video every time a beat takes places. This occurs 120/140
times every minute.
  1. void draw() {
  2.  if(loops[thisLoop].available())loops[thisLoop].read();
  3.  background(0);
  4.  if(oscVals[0]==MIDIval)loops[thisLoop].jump(0);
  5.   image(loops[thisLoop], (width/2)-loops[thisLoop].width/2, 0);
  6. }
The fact is that this approach seems to work, however, I get a lot of delay from
the jump() method, so the syncing between sound and image gets lost.

I'm thinking about using Jitter, in order to handle this video part, and then, somehow,
include a processing sketch, in a mxj object perhaps, that will be responsible for the 
other graphical features.

I searched and found inconclusive and fragmented information on this matter, on how
to include a p5 sketch on a mxj object. Does anyone knows how to do this, or where 
I can learn how to do it? 

By the way, does this seems like a viable solution? Should I give another shot to the
video library?

Thank you all for your time!

Best Regards,
Diogo Tudela
////////////////////////////////////
www.diogotudela.com

Viewing all articles
Browse latest Browse all 1768

Trending Articles