ok, so i'm trying to create a motion tracking system using two microphone inputs(using a 4 channel mic pre on Windows XP) and a GEM with just a small moving sphere. The idea is to have the sphere move on the x axis depending on the volume levels of each microphone.(ie. as the volume increases on the left microphone, the sphere moves left, and visa versa). So far I have created a very crude version, but I am using two separate Pd consoles to separate the audio outputs, therefore I have two separate GEM screens with a sphere in each. Ideally I would like to have one GEM screen with both mics effecting the single GEM. Is this possible, or am I stuck with two screens.
-
Motion tracking in Pd?
-
one screen should be as easy as using 2 channels of audio input in one instance of pd. Go to media-> select your audio driver and tell it 2 channels of input, and then combine your patches. you can use multiple adc~, [adc~ 1] for the first channel and [adc~ 2] for the second. one gemwin then, right? Or am I misreading the problem?
any technology distinguishable from magic
is insufficiently advanced. -
something like this might work, but you'll have problems with execution order undefinedness [1] (see attached patch for workaround using subpatches):
[adc~]
/ \
[env~] [env~]
| |
[- ]
|
[some arbitrary scaling maths]
|
Gem stuff[1] /usr/lib/pd/doc/3.audio.examples/G05.execution.order.pd
-
Thanks guys, that helped tremendously. I attached the audio patch if anyone is interested.