MidiPlayers NoteOff message?
-
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:
https://docs.hise.audio/tutorials/recipes/event-processing/create-midi-sequence.html
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? -
-
@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
-
@Christoph-Hart I'm bumping this after a long time :)
Is it possible to have the MidiPlayer to output NoteOff messages and also support for continuous controller messages?
-
Yes @Christoph-Hart I second this. Trying to get this to work in this example using keys made from Blender.
Hi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