Midi -> ~vst note cutoff problem


    Jan 27 2022 | 7:06 pm
    I'm having an issue where formatted midi notes are randomly cut off ... at least it seems random to me. Patch below, a simple midi setup. Sometimes it'll play the whole duration sent to makenote, sometimes it'll just cut off the previous note, sometimes it'll play a fragment of the total duration, etc. Tried with various plugins, polyphony settings etc., always same issue. What's wrong here?
    Max Patcher
    In Max, select New From Clipboard.

    • Feb 06 2022 | 1:43 am
      This is happening because [makenote] allows for playing the same note multiple times in parallel. Assume that you play note 60 with a duration of 1000 ms, and play it again after 900 ms, the note off of the first note will turn of the second one, this means that the second one will last for 1000 - 900 = 100 ms. This becomes more complex with more notes. If you are planning to play only a single pitch you could send a "stop" message to [makenote] before each new note. Otherwise you'll need to find a more elaborate solution.
      Max Patcher
      In Max, select New From Clipboard.