Forums > Max For Live

Midi Channel Dispatcher – Note-Offs?

November 14, 2010 | 8:58 pm

HI all,
I am building a patch which dispatches incoming midi notes to virtual "send" channels. this works fine, see attached patch. However, when the step-sequencer triggers a different channel while a note is playing, i get a hanging note.
So what i want to do: send the according note-off of the hanging note to the channel which was active at the time of the note-on. get my question? :) any help appreciated.

— Pasted Max Patch, click to expand. —
November 15, 2010 | 7:28 pm

ok to make the patch more clear: The makenote part is obsolete, and onebang and midiflush are workarounds, but they flush all the notes upon channel change. apart of that, the patch is still correct.

anyone can help?

November 15, 2010 | 7:50 pm

You could store the location value in a table with every note-on and retrieve that value when a note-off happens.


— Pasted Max Patch, click to expand. —
November 22, 2010 | 7:52 pm

Hi Johan,

thanks a lot for your help here at the cycling74 forum.

however, i have a problem, because I dont want to got random midi channels with my patch, but advance with a stepsequencer.
i have attached this, and tried to implement your solution you indicated.
I am somehow stuck on how to send the notes to the channels indicated (they are not midi channels), and the note offs do not seem to be send back to the right channels, but to different channels when the step sequencer advanded its steps.

— Pasted Max Patch, click to expand. —

I hope you can have a look at it
many thanks.

November 22, 2010 | 10:50 pm

I think you were pretty close. The midiparse and midiformat just after each other is not necessary. As a matter of fact, I never tested the patch, but it seems conceptually correct. The gate and many sends could be replace with a forward object, that can be set dynamically.


— Pasted Max Patch, click to expand. —
November 29, 2010 | 12:11 am

Hi Johan,

really almost there, thanks so far.

The remaining problem is, that note offs are not sent correctly. The note on triggers note number 1, for example, on channel 1. Then the stepseq moves on to channel 2. Then the note off of note number 1 should be triggered on channel 1, because it originally was sent on there. The patch doesn’t do this now, note ons stay always way too long, result is arbitrary.

What do you think that is?

December 5, 2010 | 8:44 pm

hey johan,
did you already have a look at the last issue here?
greatly appreciated…
greetings manu

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

Forums > Max For Live