Forums > MaxMSP

controlling video attributes of QT movie

May 13, 2006 | 11:01 pm

Hi, I have a small patch, which I have attached to this message in ‘txt’ format.

I’m basically attempting to create a performance that involves playing a classical guitar piece into a microphone, which is connected to the MAX patch. I want to activate a quick time movie once some input is detected (this is working), however, I would live this activation to occur one I have played a particular frequency on the guitar. At the moment it the quick time file begins once any sound is detected but it would be great to control this by making it activate only once certain frequencies are detected.

The second even I would like to activate is the controlling of various attributes of the video, in particular the hue, saturation based on the DB level of the inputted sound. Again I’d like to be able to set some parameter here. Perhaps the saturation might change between a certain DB level?

If anyone has time to take a quick look at my patch and advice me that would be great! I’m new to MAX and so I’m struggling. Maybe it’s not possible to do what I’m attempting to do?


May 14, 2006 | 12:07 am

[fiddle~] is one option. Just use something like select to look for
the grequency/note that you want.
I’ve also done this kind of thing using fairly tightly tuned
resonant filters (I used fffb~ driven by fiddle~ to detect sung
harmonics above a sung root note – because the filter resonance is
turned up, you get a _lot_ more output from a frequency when the
selected note plays; then use a threshold detector to fire something
off. Hope that makes sense!)

David


May 14, 2006 | 6:38 am

That Job You can do with Jitter. The object spigot~ routes the Quicktime
audio into MSP. The level of sound you get with peakamp~, if you want it
in dB, use atodb object. Than You can use fiddle~ or pitch~ (Third Party
Objects, search form them on http://www.maxobjects.com and follow the links) for
a pitch detection, that can react to fade in the sound of your video.

Video live processing: Hue can you change with jit.hue, jit.brcosa changes
the brightness, contrast and saturation.

best regards
Hans-Gunter Lock


Viewing 3 posts - 1 through 3 (of 3 total)