Hello everybody!
I came across something that I thought being pretty straight forward to implement, but somehow is getting me crazy.
I’d like to calculate the dot product between an x number of signals and an x*x Matrix. Something that in the language I would write like this:
(
var dot = {
|m,v|
m.collect({
|i|
(i*v).sum
})
};
dot.value([[0.5,0],[0.5,0.5]], [3,4]) // -> [1.5, 3.5]
)
But how could I multiply the output of a UGen with a Matrix?
DC.ar([3,4])*[[0.5,0],[0.5,0.5]]
Any suggestion? thank you!
ddgg