MidiPlayers NoteOff message?

  • I am unable to get NoteOff messages when playing sequences from the MidiPlayer, NoteOn messages is visible in the NoteOn Callback but there is no NoteOff messages in the NoteOff Callback, is this a bug?

  • Are you sure? Of course there are note-off messages - still no CC messages though 🙂

    How did you test it? Console.print() in the noteOff callback?

  • @Christoph-Hart Yes that's how I tested it

  • If you create the MIDI sequence programatically like this:


    Does it still not fire the noteOff callback?

  • @Christoph-Hart It still doesn't send NoteOff

    HiseSnippet 1405.3ocsWstaaaCEVJIpXwccnEXO.D4OSAwi014hCPvPqiuzXjDW23rthNLTvHQYwTIRMJpj4MzGp8l02fsCEkskScJxLv7er44B4224b34POTJ7nooBok8lWNIgZY+sNilvUgsCILtU+NV1emy4jTEUhLhNdRBIMk5aYau9qzBr2bCq7Oe9EGShHbO5bQVVuUv7nmwhYp4RG9xSYQQ8H9zKYwkrduW12SvaKhDY.dV2olUBw6ijwzADsYq4XY+nt9LkPNRQTzTvliE9SFEJtkar+srT1UQT8h5VifMxH1pcHKxe3TtlZYYuwv4LecCy+dmyY9rYxmGAdZtBzbOJGCrWaQHswBPp98AodhHe8FbOvasRv6QSSL4vKhLgJmlX52oOxHo9BfpclTR4pQzeOitPB4yunP0kRHzVV9YBQRWNAfpeYw1q+0h30e3QbKM56whnZ5YOcAXslJPpsCQQrrScNrAle4AmdX6KtneeL972z88W2BiwuCiagGhiYWL5x9MdOHAOAiutYyFiwsN40vxq2oYiffV6l+6VG9KA3VuaH9jSNY3f+j193dAsacCnu+E63cxPbXGLt4NmhwVZbLuByVWSNhMlSTYRPlyfr3iI.CJETFHhYf97aMEBe5K6P4KSrNtBAOop7sBSvdg.sUoL9FlL9ybF4IYIp4ZzwpG6zmCWGCHPdsbN2Xq0Z+siSaAXAWgiIej1SBKl4g6A0pUEsesZaezSp7jJAYbOESvQDe+ABE0Mhkpph7BIbNMpJhmEeEUVEcCMR3wTSphRDoLsGUQQT9XU31U9qJH3yMDIJF8Snt7wLNE6IoP8x4.pgqumnq0ktaeTtkw3TpRSP2Xr9LeMurBsjA4mpq4vKq7sEvvcJdJqrsAztEfegSCRooJRbhaA7FSUifkPwXOg7MYP1gJOFPbp6T9scg+yHm3AQNwLxILjKHnrl6ich6m.hUj.ncllgJyDc9EmjkF5FWHdtDAH4S5phm+bzkgrTzsPWZTHvODzPFwAriRK5nfqniIQPL4W+sipn8nkuOhftBJnBQhfbqSqLqrpJpdUzAPoW8FMqhzeCG1cztagV320v6+k52epd79ZKZ7kVzrvhFKeGZ1nP+t4meAUeEUA.WRCnRMyPJARERQ48VSx6shq.ikRU4kAZwEcbAxmOpTmLl2Z1cqxck2ZaSzoevc2Tjuflx+AEJjbCEQ3SPdlasnHALYzuJ5Vp1SNk5qwjonCPJMNQMYVh.EvjopJr.2RHCyR6psxc6oWOgMpsYCDbJ5JfH2xTgn8d9dHETagRm1vK25xak4bc2qJZOSV6S4DZf3V.fnqyf3htGTN8z0RKI9AryGJFUHlpfF5cffRjhDpIjVhORQLXHtRYPDDAEnEW3NCNDW31wrdWBtoMhqlraB89REQTbhjwUtaYTsUNtQ20kff62mffuzIceUoHJReeW62cTquktbMEN5NqeJIJiNyPng+hCYe7CaHaQASICE79bl50Izh0yekgVmIVLUaMqYQgxhlywxRyo1RLatnkLwuXLD7qete93cXLUgrg4odESyV6NzafGIZl4soSGZ5GUhDqkLPDdHlvOKROhs7qyzOCsPADtWXnndvGGZHNYg2z7vexVsk9js5KisOP39LmgLkW3xw6ZKAu5WC9+LdKd.7Sb5FDP8TyA6FN8d2p9Z2+CP4BQlhwGeNQIY+g4IWifQNdzhQhvA4XulthxrtldsNxLhx8yW7OvmBk00qsKTVepRqXhmT7AOSYq9MneStD.S7729sI72bf0n5V4WNA+bpgqYECM1+fmmNT7i.1WtOMVAe1cE7YuUvm8WAeNXE7o4J3ygeUezyTakoDwlqIffgcM+KA6Y+QE60s9W.NG7HhA

  • @Christoph-Hart Have you had the time to fix this issue?

  • @Christoph-Hart Bump! and continuous controllers 🙂

  • Ah, now I get it. It will not fire the onNoteOff callback if the script processor is in the same MIDI chain as the MIDI Player (= a sibling of the MIDI Player). If you add a Sine wave to the example and put the logger script into the Sine Wave's slot, it will fire both callbacks.

    The reason is that the note offs will be pushed to a "future" buffer holding all upcoming notes, which will not be processed by the script processors of the same sibling (because otherwise Message.delayEvent(441000) would cause an infinite loop).

    Can you work around this?

  • @Christoph-Hart could you provide a small snippet of how to do that?

  • I am not sure what you're trying to do so not sure how a snippet could help. If you want to react to MIDI note offs coming from a MIDI player you need to put that processing into a child containers MIDI processor slot.

  • @Christoph-Hart Ok, now I understand what you mean, I managed to set it up so that I can receive NoteOff messages.
    I just have to make another solution to what I want to do, I think it will work if I manage to route the midi messages from a child containers MIDI processor slot to a sampler located in the main container, any advise?

    " If you want to react to MIDI note offs coming from a MIDI player you need to put that processing into a child containers MIDI processor slot."

    Yes that is what I want to do.

  • @ulrik said in MidiPlayers NoteOff message?:

    Just put everything except for the MIDI Player (and the interface script) into a new container, so:

    - Root Container
    - MIDI Player
    -- Content Container
    -- Sampler
    -- ...

  • @Christoph-Hart Beautiful, I will try that, thanks a lot! 🙂

  • @Christoph-Hart after a hard struggle I managed to get this working 😅
    The struggle was about, how to make references between ScriptProcessors and the Interface, it was not so intuitive for me, is there some tutorials regarding this subject, or demo projects that I can study? 🤔

  • @ulrik

    make references between ScriptProcessors and the Interface

    What do you mean?

  • @d-healey in this case I had a MidiPlayer in the root container and all samplers in a child container, just to get the NoteOff values from the midi sequence and use the NoteOff values to set some values in the GUI.
    Just as Christoph-Hart explains above this post.
    I was not able to use the MidiPlayers NoteOff values to trigger buttons or knobs in the Interface GUI, (maybe it's possible but I could not figure it out how to do it), so I created those knobs and buttons in a ScriptProcessor in the same thread as the samplers and controlled them with the NoteOff values.
    Then I had to connect them to the knobs and buttons I had in the GUI to get it to work as I wanted.
    Maybe I'm overdoing everything but I could not find an easy way to make the connection.

    I should say that the MidiPlayers NoteOff values doesn't show up in the main NoteOff Callback, so that's why I had to move the samplers.

    You can check the snippet above to see that there's no response in NoteOff CB

Log in to reply