mc.line not going past channel 4

Bradley Korth's icon

No matter what I do, any time I use setvalue or target with an index higher than 4, mc.line will not give out any output for channels higher than 4. It will for 1-4, but not 5-7 or above. The target index does update in the object, but it's like mc.line ignores it. I suspect this is a bug. Any solutions other than using mc.line~ and using mc.snapshot~? Or perhaps using mc.*~ and vexpr'ing the gain values? (The reason I want to use mc.line instead is because I'm setting mc.gain~ slider values.)

mc line bug.maxpat
text/plain 4.00 KB

David Zicarelli's icon

MC wrapped objects have four channels by default. Non-signal MC objects such as mc.line do not auto-adapt the way signal MC objects do. You'll need to specify the @chans attribute in mc.line, like this (I used @chans 7 because that's what it looks like you want):

Max Patch
Copy patch and select New From Clipboard in Max.

Bradley Korth's icon

Huh, I thought for sure I used @chans at least to try, cause I know about @chans. Oh well, it works, thank you for your help.