We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Sorry I'm new to programming but I've searched the forums and generally online, with no useful answer to this... I can get videos playing and have managed to use other peoples shared games and generative code to input midi into Logic and record... I'm just having trouble combining the two.
So... how would I go about using light information such as brightness of a video to influence midi note on/off... would anyone share such code with me?
Any info would be greatly appreciated! sorry if this seems obvious to you.
Thanks,
bmz
Answers
Do you mean something like if the average brightness of the video reaches a threshold value it sends a note on and when it goes below it sends a note off? Or do you want a specific pixel or region? Or detect a bright flash?
@bmz --
I think the term you are looking for is "sonification" -- turning-into-sound (like visualization is turning-into-visuals).
Since you are interested in midi specifically, the library you want is probably:
Look at the MidiBus example sketches -- once you can send a note on/off, you can send it based on anything.
Your examples inputs all seem to be based on computing the average of pixels from a video frame or frame the canvas, and then either mapping that to a note (see map()) or using an if.
For MIDI also see: http://explodingart.com/soundcipher/tutorials.html
Thanks for all the help!