Get note off messages from midi file loaded into MIDI Player
-
function onNoteOn() { Console.print("note on"); // works } function onNoteOff() { Console.print("note off"); // not working }
When I load a midi file into midi player I get note on messages but no note off message. How can I get note off messages from the midi file loaded into MIDI Player?
-
@mehmethand if you add a container after the midi player, and in the container add a script processor and read the note on and offs from there, it will work
HiseSnippet 1091.3oc6WssbaSDFd23nPSnvzNvCfldUxPFI6VSbX5EM1V1MhjXqwxI8vEzYszJ6sQZWwpUgXX3BtiGKdC3UouAvtVNVxD0fGOkNbQ0Ed7+Iou+SeqjCm4gSRXb.b6gSiw.380bmRESZOAQn.aK.7K0NCkHvb8LUslFiRRv9.HrxyUJfauIX106dVKTHh5gyUA.WvHd3SIQDQtVmiNgDF1E4iGRhJ3c8ir8Xz1rPVpDOUzpBhQdWhFi6gTtsgF.tUGehfwcEHANA.2rEyep6D1OQy7+BRBYTHVITC3JuQYp6xB8UHV8eP6IjPemax6D..p4jWEpjUE9ZsyH9jE5yqFOXlA87HJVOfabWvq1ZBuMJ.uO6llzL3Ehlh42zjrsr0yzTaIP0NkywTgK9GSwK0bd2ylaZHWVlKp+TFKtCEIgpeQ0p69Hoqtw3kM.qrbdWY0x6amq.UZ0kDhU4M7FAo2pbT1+sPBD.96Ze2gFzgGbxgsm7hyNwv3sCbbGNt6qLjWcMbLLrtpN8msN+5jtJUCLLr623viMLt18UOuk0aaPqEDz7390O83W5bcauKZYEzfdgWmVcBZb5EAW0zt+zDWORcaYLSegQiu4DigFMa9jymbPmg7KecuGOpuAPAtrYyeSy77DLOwLMjStbDyGSMOKMg3YdLIAadrsaGcmA8+9NsG5Z1rm0fltlNxrWWVKkNvMy6m5sYTgbbSc2VTNLGLYpXRjo6vycrsLqOBwSBYzwISXbgQDQ0oUKStjwTjHkKgzV8RiZIcKuQs+Q8XQDo8Yq6yU9firvzxTqFBjMTtn35b1jwRM+g3nXVthe3HPg40MylWenlqGmDKxsnZnetlMURrDfjSkEmXy7E.+CMUoPNfZDgtD2kKEVDvtGTs595xe16oAoTOAgQ0YzdLAtOc2814W1Y6c90cz+mlBBJ0l5wvYggXdolUEV9cE3tzznQX995WgBSwKbTl9KuWr0psW3kk0EbjQsoDQ+X7b4bFiZksEMurI+241yVYjU045j9Ei4BhBNPK7UR14rVz1ZV3jKErXPI8OIqGyOMTMhTjJTw+O2frdrTOT0nnIDwzk3IVc9wpkxOVZ1thv8gZNDg2jxw6FkfWE06+w3c9oMegVmf.rmHGrap08kq6QKqGTt2643+6qsfOp1GhC+iW4C+u6SUpt5mp.27+2GvCWUByuZt1bzUqThy+TS+8PJJ6kIrPrQLmPE69HpzjziGs2SuK1xRCJH31Q8whGU6CEO5m3N+D245BkArTAgN9LjfStVNSJecKWI2kGVhDJEGplSganlnxjqpjUUFWL0elveIularlRFN2XsaL9Q4YDg73r23ksApnit2LMx7lN6Ua2V98eRY8ZfYakE6wx26j7FOukuU2JvGutA9j0Mv5qafe65F3AqafMV2.O7eOP0AYMSErnrUV4WW4zI6KnfK95NXEveCb1Ln4E
-
@ulrik thanks for the reply. Yes it works for the containers but I need to get note off messages right after MIDI Player. Is there a way to get it?
-
@mehmethand Do you have a snippet of what you're planning to do?
-
I have 20 samplers. All samplers have script processor and they all receive note off messages from MIDI player as normal. I need note off messages to trigger some functions, show some panel on interface and hide sum.
in stead of putting this note off stuff into each sampler's midi processor, I want to put it into only one script processor right after the MIDI player. But unfortunately that script processor is not receiving note off messages.
HiseSnippet 1441.3oc6X0sbSaDEdUbTfjRY.JWza5LZX5LMLvnXGBIzxE3X6Xvj3DWKSZnWTOajWYuDocUVsxIlN8x99zGAttOD8Yf2f1yJIaKY7Db8.jNs0W3wmyd1Ueme1y4ypgfaSBB3Bj1xsF3SPZWS2Z.S1qbOLkgpUAocc853.IQXDqpz.ebP.oCRSK2SUJzVdQTzm29jRXWLylLVEBcHmZS1i5Qki01n3tTW2p3NjVTuTVuQwZ1bVYtKODvSN87Her8I3tj8wJyVPGoszNcnRtvRhkj.j1hk3cFX0ieFK19CoAzicIJgBHK3f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