How to stop MIDI note from playing indefinitely?
Hey everyone. Noob to Max/MSP here. Having an issue with my first patch using MIDI. When the Stop/start toggle is hit when the "Choir" instrument is ringing, it's impossible to stop until the program is terminated. I've tried using various Gates, but to no avail.
Thank you to anyone who takes the time to look through this!
Hi, easiest fix might be to just send the 'stop' message to 'makenote'(see helpfile) whenever the main toggle registers '0' (i'd add an extra 'sel 0' attached to the 'Stop/start' and use that to trigger 'stop' message to [makenote] ...otherwise, you have to get specific about being careful to track each note-on so that it's corresponding note-off is sent despite all the gating prior to the makenote objects...)
edit: oh, i see you have a weird extra gate that will gate out even the makenote response to 'stop', haha, you got a little too creative with all these gates 😁
s'all good, though, as long as you can still track the data-flow, you'll keep working out better ways... i would at least remove that one gate before makenote on the choir instrument and do something like this:
Hope it helps!