Set rotation by 3x3 matrix?
so i found out that its possible to set a modelview matrix with glLoadMarix.
and that it looks like this
http://wiki.delphigl.com/index.php/Matrix#Aufbau_einer_OpenGL-Matrix
| 0 4 8 12 |
| 1 5 9 13 |
| 2 6 10 14 |
| 3 7 11 15 |
+- -+
where (i guess...)
0 = front X
1 = front Y
2 = front Z
3 = 0
4 = right X
5 = right Y
6 = right Z
7 = 0
8 = up X
9 = up Y
10 = up Z
11 = 0
12 = pos X
13 = pos Y
14 = pos Z
15 = 1
but i still dont have any idea how to patch it... 
i hope someone can help me
A Simple OSC controlled Video Mixer (GlovePIE + Wiimote)
Hey people, this is my first contribution to these great forums.
I've build a little video mixer controlled with OSC. Together with a GlovePIE script you can control it using a Wiimote.
It's a simple 2 video mixer with gain control, and you can select clips at random. For the basis of this patch I used a patch that I downloaded off these forums, but I can't seem to find the original post. If it looks familiar to anyone,please let me know.
For more info and to download the patch and script, please check my blog here:
http://megatroid.noisepages.com/2010/05/wiimote-osc-controlled-video-mixer-using-pure-data-glovepie/
It's pretty rudimentary, but it's a good place to start building something more impressive. Hope someone finds it handy!
Matrix10
has anyone used this attached object?
I don't know where I found it..
but it doesn't seem to work for me. seems that it doesn't create the matrix~ object at it's core. saw some posts about multiple objects from different libraries using a matrix~...
thanks..
db
correction:
it does create the matrix~ object.....so what's up? anyone ever use this? is there a matrix mixer that some one has implemented? i've been looking around to no avail..
Pd2d: Software that does not exist. Or does it?
I had this idea while driving to work...
Imagine if the dsp side of pd was multidemensional. If every tilde~ object's first two arguments described a matrix of objects, [osc~ x y] would be (x*y) sin oscillators, each with a unique ID (0-0, 0-1, 0-2, 1-0, 1-1, etc...). The entire matrix could be addressed with a control matrix, or a message/list of (x*y) components. Each matrixed object could be individually called or controlled by a specific message depending on it's location in the grid. Each matrix~ objects would have to have some sort of multiplexed or mixed i/o, as well as individual ins and outs.
A central object would be a matrix mixer, both 1d(x=1) and 2d. I feel that this kind of dataflow would help to easily bridge the gap between generative audio and video, as well as standard(16*n) sequencing; both of which work with matrices.
A quick hack could be accomplished with Pd's shaky-at-best dynamic object allocation, but the real answer is something I am incapable of creating at this time. Maybe the answer lies in another language?
Using regular mixer as a midi controller
Hey!
Moving this topic to its due place.
I took up the subject in the middle of the thread started by mattblack, regarding the analysis of a sound wave in several bands, so that he could milk out different midi information from each slice. He was going for visuals (the guy is in Coldcut!!!!).
Then I had the idea of using my dj mixer as a midi controller, using pretty much the same principle: feed two channels in the mixer with different sine waves and have them translated somehow into midi information.
This is what I have so far, simple as a newbie would do it:
The volume fader now convert to midi (0-127), and instead of using two different sine waves, I just sent one signal to the left channel and the other to the right. The whole processing is done like this, in parallel.
The output of the mixer is fed into the AUX input of my soundcard (it took me a while to realize the MIC input was mono!)
I still kept the sines far apart - the original idea - in their frequencies (200hz and 2khz), but I don't see any use now that the signal is separated like that. The crossfading works neatly.
I can't find the specs for my gemini mixer, or else i would have made three separate bands (cloning the specs) and send them to each channel, so that the eq knobs could be hacked into sending midi info, too. That would make the whole rig more than 2 faders!!
I ran into a lot of noise, and it takes some calibration.
The latency in PD had to go to 256ms so that it wouldn't go crazy as Ableton started, which makes the response laggy, in the end. Also (and most annoying of all) I don't know how to make the numbers calm down. Is there a way of rounding them down? They stay put in 127, for instance, but the decimals are always moving (like from 127.21 to 127.98)
And there's stuff I left undeleted so that I can go on experimenting.
My first patch, after all. And as a proof of concept, IT WORKS!
Any ideas, comments, suggestions, just shoot!
Ingo
Oh, and thanks for the tips, hardoff!
Multitrack Analysis Module
ha ha, nice idea.
i would go with feeding pure tones into the mixer. that way you can use the crossfader. if you just put noise into both channels, then you'd be crossfading noise->noise, which wouldn't really do anything.
for a 2 channel mixer, i'd go with 2 fairly seperate tones, say 200hz, and 2000hz
and feed those tones into the mixer..
then, take the audio output of the mixer, and run it through a couple of bandpass fllters with fairly sharp q values, that way you'd separate the two tines...then through an [env~] object to get the total level of each tone.
[bp~ 200 10]
|
[bp~ 200 10]
|
[env~]
then i would recommend using [dbtorms], which will convert the decibel output of [env~] into RMS, which is a bit easier to work with.
and then do some simple multiplications/divisions/additions/subtractions to scale the output of that into a nice range of values.
if you set up a patch and need some help, then let us know.
Matrix~ doesn't work
Hi Hardoff,
[mtx] works, i can print out the matrix message. [matrix~] doesn't, I can't control the coefficients. The helpfile für [matrix~] sucks.
For example, if I have a [matrix~ 2 2] object i'd expect a message like [1 0 0 1] but in most cases the matrix doesn't do anything.
Ok, to make it more precise. What I want to do is to play multiple VBAP-panned sources on a 16-speaker array. At the moment i work with [*~] and [throw~ ch01] [throw~ ch02]... for each source. This seems to be not very smart and my system goes down with more than 3 sources. I hope to implement VBAP for at least 8 sources.
So I'm looking for a way to process the signals more efficiently, theat means that only those channels are calculated which are really used (max. 3 channels per source , without Spreading). I thought [matrix~] to be a better way than [throw~]&[catch~].
Maybe there's another, better solution?
Bastian
Logic audio style matrix editor
hmm
im seeing the matrix but im not getting any sound . .
MATRIX 3 0 4 0 (send->send) connection failed
MATRIX 3 0 4 0 (send->send) connection failed
Ambisonics? and Matrix?
>>> OKAY HERE IS A NEW QUESTION <<<
I don't know if many people use the matrix objects, but I was asking myself what is the best (easiest, smallest and fastest) way to fill a matrix using a unique expr object which compute the matrix elements as function of the row and colomn index. I use to create for loop with metro object ... but I don't feel clean with this ... any suggestion?