Midi Channel Dispatcher – Note-Offs?

Nov 14, 2010 at 8:58pm

Midi Channel Dispatcher – Note-Offs?

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. –
#53314
Nov 15, 2010 at 7:28pm

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?

#191793
Nov 15, 2010 at 7:50pm

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

_
johan

– Pasted Max Patch, click to expand. –
#191794
Nov 22, 2010 at 7:52pm

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.
Emanuel

#191795
Nov 22, 2010 at 10:50pm

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.

_
johan

– Pasted Max Patch, click to expand. –
#191796
Nov 29, 2010 at 12:11am

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?
Thanks!!
manu

#191797
Dec 5, 2010 at 8:44pm

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

#191798

You must be logged in to reply to this topic.