how do I get jitter matrix to control audio

Sep 15, 2008 at 7:19pm

how do I get jitter matrix to control audio

Hi all,

I can get jitter to track movements and color within a matrix and I can see it displayed in a matrix window, but how do I get that info into say an oscillator or a sampler? What object do I use to convert jit.matrix data into useable numbers?

thanks,
Chad

#39707
Sep 15, 2008 at 8:50pm

it’s all numbers.

jit.iter might be your friend?
or getcell message to jit.matrix?

#140013
Sep 16, 2008 at 8:41am

I use jit.spill and then unpack.
hope that helps.

2008/9/15 Robert Ramirez

>
> it’s all numbers.
>
> jit.iter might be your friend?
> or getcell message to jit.matrix?
>

#140014
Sep 16, 2008 at 6:14pm

Ah, yes, that is great, but how do you manage that many number boxes? do you set up jit spill into an unpack of 256 integers?

or is there a better way to see access all the numbers at once?

basically I want to track shapes as they move and send their movement to some synths to controll pitch and such, pretty basic I think in jitter, but I’m still learning.

thanks,
Chad

#140015
Sep 16, 2008 at 7:12pm

entirely depends on what you’re doing.

if you want to monitor the contents of a jitter matrix, jit.cellblock and jit.print can help. or jit.pwindow for that matter.

jit.3m might also be of use.

if you need to do calculations of the matrix, look at jit.op.

are you using cv objects to do the tracking? jit.findbounds?

need more info to be of help.

#140016
Sep 16, 2008 at 7:16pm

Yes,

I am using the cv objects. they are very cool, but I can’t figure out how to translate that info into usable data. For instance if I track the movement of a centroid how do i separate the movement of each centroid to separate objects? It’s just that I’m new to this.

for instance, if I wanted to pan an object tat is being tracked to a surround speaker based on it’s position in the matrix.

Hope that makes sense

Thanks for helping!

–Chad

#140017
Sep 20, 2008 at 9:24pm

here is a previous discussion that might be useful…

http://www.cycling74.com/forums/index.php?t=msg&th=35323&start=0&rid=3434&S=eacc5344f60753644b0b4fbe41f27138

I also suggest doing some searches… there have been many threads in the past

#140018
Sep 21, 2008 at 12:15am

jit.spill into multislider is good for visualization of the values, or if you go into a table you can do sum, etc. You can also easily see the peak or trough of lists using those objects, or maximum, etc. Use iter to spit out the list one at a time, if needed, though zl can do some great stuff with the list as a whole, very very handy, that zl.

I think the centroid data with cv.jit is already formatted into index/position (?), so if you use a route object for the index, the various positions (up to however many you want to track) can be sent elsewhere (i.e., freq/amplitude of synths etc.) route 1 2 3 4 5 —> each list of position/size (or however it does it) comes out the corresponding outlet, then unpack to send the coords where you want. If the numbers are in an unusable range, use a scale object on them to map them to something better (like pixel position —> usable frequencies). As long as you get the indexed lists, you’re good to go.

–CJ

#140019

You must be logged in to reply to this topic.