Makenote not working with plugsync~
Hey, I am trying to create a M4L patch that takes a midi note and outputs a very short (10ms) midi note whenever it starts or ends. I want the patch to create a small note when Ableton playback stops, so i created a plugsync~ device that sends pitch and velocity info to a makenote object, which gets packed and then goes into midiformat, then to midi out. Makenote works when the note starts and ends, but it does not create a note when playback is stopped in the middle of a sustained midi note. Here is my patch:
The patch:
Simplify the midi flow, and you will see the solution.
I am taking it that you want playback stop to trigger last received midi note

Check 2 repeat modes in makenote help file to choose right one for your needs
Thanks for providing that picture. In the original post, I meant to say that I want to activate the makenote object when playback stops in the middle of a midi note, which was not happening. I can already make makenotes activate at the beginning and ends of midi notes, but no midi notes are generated when I stop Live in the middle of the duration of a midi note in a clip.
ALSO
I isolated just the plugsync~ part of the patch, so that when I stop live it activates the makenote object, and all that happens is a faintly audible pop sound, and no indication of midi even being sent. I removed the change object, and then a million midi notes exploded endlessly into the midi piano I was using.
change object must remain there.
Then, the picture I posted must remain exactly as is,
if you try to modify something, without knowing what that causes, than it probably won't work.
I mean that velocity argument must remain there as only pitch is being sent to makenote.
Another thing is that Live is not allways doing what one thinks it should,
it could also be that one can't trust that transport stop, which might cause CPU
or whatever spikes, would not mess midi output ...
I don't use Live at all, In my eyes it is a toy, but the patch above if copied as is should work.
You could try to insert something like pipe or delay which in Max world would
lift the message to higher priority , but I have no idea if Live would take any notice
of that.
Honestly, yeah Live is pretty OK at best. I wanna switch to Bitwig at some point, it's just more practical and not as overly contended. But thanks for your help. I did copy your patch exactly and it did not work, so I will try the objects you suggested, and then if that doesn't work I am literally going to use the Monome Teletype to fix this issue. Thanks again.
You are welcome, here is what I meant,
you could try few miliseconds instead of 0 in del

Could it be that live would not allow sending of repeated note On
without it being turned Off first ?
Now that comes back from the memory - Live sends note Off
before resending note On.
Maybe that is your problem, timing of notes.
I would try to capture Midi Output to verify that
Hi, so everything works great, except I only want the makenote to be created when playback stops AND the playhead is in the middle of a midi note. How it's setup currently, a note plays whenever I stop playback anywhere, even if a MIDI note was not playing. After trying a billion other ways to do this myself to no avail, I a feeling kind of stuck. If you could help me with this last part of the problem, that would be much appreciated. Thanks.
To make sure - you want transport stop to make a short note
only for notes currently held, right ?
Or is it only to avoid hanging notes ?
How about polyphony ?
I don't know what Live does to held notes when transport stops - turns them off ?
check this :
bag is used here to keep only held notes
when transport stops it first bangs into bag to dump any currently stored notes, and clears it

I tried the patch, and it didn't work. It just played the MIDI note like it usually would without any M4L stuff. This seems so simple to do, it's like it's forbidden knowledge. I noticed the bang object works exactly how I would want this patch to when it it gets note on / off data. It bangs whenever you stop the midi note, and it bangs whenever it starts or ends. I just can't get this into MIDI notes.
Nvm I used the Eurorack to fix this issue. Thanks for your help again.
I have asked someone to check what live does when transport stops -
it turns all currently held notes off.
And it does it before plugsync~ reports it.
Which means that bag gets emptied before transport stop executes bang.
You would have to delay midi input to bag.
If you want to use such stuff in the future, you must find out about this things.

this patch is verified to work,
only delay time in pipe - currently 20 maybe needs to be adjusted,
it could depend on CPU load and other ongoings in live.
Works great with the rest of the patch added, and I learned some cool Max objects along the way! I appreciate you taking time to help me achieve this, thank you.
you are welcome, glad it worked at the end.
Usually Max object are predictable, but Live is unknown land for me.