mc function always outputs last channel

ward de jager's icon

If I create multiple channels in the mc function (attr. 4 channel ) , it's always the last channel that is outputed from the 'all points in line format socket ' , the channel output socket clearly shows this .

Sending a message integer ''line out$1 ' mometarily switches to that channel but then back again to the last channel .

The dot's at the bottom of the mc function are just for visual editing I presume .
So my simple question is , how to change channel and stay there ?
By the way , the mc function is triggered by metro

ward de jager's icon
Chris Rolfe's icon

Post a working patcher, rather than a picture.

ward de jager's icon

Here's the patch , it s' pretty self explanatory , changing the channel ( the right one ) of the mc function only changes it for a brief period and then switches back to the last channel ( 4 )
The mc function is great for sequencing the different channels , but sometimes I wish to switch between them manually , and sadly this doesn't happen

FMsimple2.maxpat
text/plain 31.83 KB

ward de jager's icon

double post

Chris Rolfe's icon

Aah... the output from the mc.function (like most mc-related helper objects) is outputting a series of lists, chans 1... 4. Watch the print objects output in the Max Console in the modded patcher:

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

You may find target and related objects useful. Also, you'd need an mc.line~ naturally to drive a 4-channel control signal.

ward de jager's icon

I still don't understand why it ouputs the last channel ( or rather the last channel that has information )when banged

Brendan Sweeney's icon

I'm having the same issue with asimilar patcher, does anyone know how to get the output channel from mc function to only put out 1 channel at a time when banging the object with metro?

Brendan Sweeney's icon

mcfunction.maxpat
Max Patch

riccardo dapelo's icon

Maybe I'm not understanting your question, but if you bang a mc.function you'll always get all the channels of mc.function.
Do you want to have 1 channel at time?

I see two solutions:
1 connect your metro to the message lineout n (number of channel), not directly banging the mc.function

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

2 use proper unpack to keep the envelopes separate

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

Brendan Sweeney's icon

The first solution of not directly banging mc function worked! thank you!