multiple notes in makenote

roarbear m's icon

hello all !

i am working on a max7 instrument for the monome, and ran into an issue that i can't seem to work around.

i am using a 12•note keyboard i designed in Max7, sending midi-notes out to a VST.

with the hardware you can control the note length and velocity, however i have run into issue with playing multiple notes through this object.

for instance, if i set the duration to 2 seconds (2000ms) and play a C and then a second later i play a D, the note-off for the C-note will shorten the D-note to one second. rather, it bangs a "0" for note-off for the C-note in the middle of the D-note's duration. this has proven super-frustrating, and i have looked into the "xformat" object and the "midiformat" object for ways around, but would have to do some serious re-configuring if i were to abandon the "makenote" object.

am i missing something basic here? i overthink things a lot, but this (for some reason) has me at stalemate.

hopefully you can help, let me know if you need to know anything else!
(macbook pro 2014 / max 7.2.2 / monome40h / arc 2)

roarbear m's icon

bumping for help !

thank u thank u
in advance,
in advance.

ak's icon

I'm not shure what you want to achieve. What you describe is the way [makenote] object works, ie plays each note independently. If you post a patch it will be easier to help you.

roarbear m's icon

hi AK ! thanks for chiming in, i appreciate it.

in the most basic terms:

i have a hardware piece that use toggles (instead of regular midi keys) that i am using for push-button data.

i am taking the incoming data from the hardware, controlling the length and velocity within MAX, and sending it to a VST outside of MAX.

the trouble is, when i play one note and then a second right after, the first note's "note-off" message is prematurely ending the second note. i am trying to find a way to isolate the note-off if there is another incoming note such that the first note plays for it's intended duration and the second note can play on.

it may make more sense looking at the thing:

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

ak's icon

I played a little with your patch and makenote works as it should. If you are listening to piano sound from AU DLS there could be an impression that the first note ends when the next one starts. Also [if $i1 > 0 then bang else 0] -> [toggle] doesn't show anything useful, and probably contributed to above impression.

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

I’m not shure (...)

neither DPA...