Forums > MaxMSP

Bug in matrix~ (object or doc?) – maxmsp 457

March 14, 2006 | 10:49 am

Hello,

I have a problem with matrix~

it is said in the doc that if a thrid optional float is provided,
matrix~ works in non binary mode. Otherwise, binary is used with gain 0
or 1.

But the object behaves exactly in reversed. BIN is NONBIN and NONBIN is
BIN mode.

See the patch, which is giving results:
NONBINMODE: 0 0 0.000000
NONBINMODE: 0 1 0.000000
BINMODE: 0 0 0.500000
BINMODE: 0 1 0.000000


March 14, 2006 | 11:02 am

Works just as expected here: see patch below.
cheers
Roger

max v2;
#N vpatcher 60 203 804 612;
#P user ezdac~ 464 193 508 226 0;
#P user meter~ 275 226 355 239 50 0 168 0 103 103 103
255 153 0 255 0 0 217 217 0 153 186 0 12 3 3 3 3;
#P user meter~ 164 226 244 239 50 0 168 0 103 103 103
255 153 0 255 0 0 217 217 0 153 186 0 12 3 3 3 3;
#P window setfont "Sans Serif" 9.;
#P flonum 331 88 35 9 0. 1. 35 3 0 0 0 221 221 221 222
222 222 0 0 0;
#P window linecount 1;
#P newex 287 124 55 196617 pak 0 0 1.;
#P newex 165 130 41 196617 sig~ 1.;
#P newex 275 185 77 196617 matrix~ 2 2 0.;
#P newex 164 184 65 196617 matrix~ 2 2;
#P connect 3 0 0 0;
#P connect 2 0 0 0;
#P connect 0 0 5 0;
#P connect 3 0 1 0;
#P connect 2 0 1 0;
#P connect 1 0 6 0;
#P connect 4 0 3 2;
#P pop;


March 14, 2006 | 12:05 pm

Yes, you’re right…

In fact, I found the problem :

if audio is OFF, then nonbinary matrix coefficients are not updated when
triplet is received (dump shows the previous coefs, so thrid param at
startup), while binary matrix coefficients are updated immediatly.

and binary matrix is not binary at all, as if it receives a triplet with
a float gain, it uses it.

Regards
Chris


March 14, 2006 | 12:12 pm

> and binary matrix is not binary at all, as if it receives a triplet with
> a float gain, it uses it.
sorry, I mean internal coefficients are not 0/1, but the received float.
But outputs are muted if coef is zero, unmuted otherwise, as stated in
the doc.

Regards,
Chris


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