Multiple notes off
-
Dealing with this. But can't get all of the notes off. Always some one still sounding. (using noteOffByEventId)
Any clue?HiseSnippet 1117.3oc4W0saiSDEdbSLhDnH1UKHtbtfKRTW5lzVfEEp5OooqhX6OpoTPppZYp8IIip8LF6wAhV063AgGItlmh8M.NiGmXmE2RRgsHwNWXo47624Lm4LGebnzAhhjgDqJmNN.HVuucuwB0v1CYbAo6dDqO19.tKm5G6o3AdbHjpfHEY2wArnHvkXYU5YZYspTlPH+5u7veeqcYdLgCjRJYclj6.Om6yUYT+gs+Ftm29LW3TteNo2X6tNRQaomLFwUI6Fj.lyUrAvgLsXKYSrdmNtbkLrmhgfgXUdWo63dCk+jvH+Y7H9kdfdSSROzPFx6K8b0HVSkzdH2y83IweDgXYebV1njIa7njfeJ8rrxGZxJYZjOeXszsAul4gWi4FdjbnqrAcHHjtwdL0rHSebjxfKEyfrtBEHh3pwYY6Ws0+ov8A1GyUNCKFuKU.dwCp2z3M8veY6N86CNpLvV1d+u+98j9CLP48r6wEPxMyDf7QI6oeGaDPeFHfPcR8ltShqe6e+6jG4nPueZHSDEHilwv8.e9oRgNgjQ7aif8Cge7D8gbd5skrvBY8ps1GiwB0oGSEGlTsriuLVnlo5nzbejTbugFE0an7apdCklO3U.jr9q2vdfcOmPdfJiiFOOLk5MfHCSxRWW1dDKjJjHtnaRO+hV8iEN5jLUJNDodjnV8purRUJtzRBi.gJpqapzUqLkvpAwQCqkTttZfGarV6ZGftFahu5.Po2eXr+kPXs5OlliwYfmzAutWqd85snO4IZAoZK.tHHnWc4czIzUnMW6V8zHdnJl4kD9zl+CbyWM+tYs6taVai42Mqu7c2Oq279wOa7zExOnmRpSMd47arzZJbtndqpWWs5qWQ2uutjd4okzI1eS5MXuVFA6KCqIPoZzRP+Zy8kU8.w.0vVhUVoNM0d5EuesD9mKt37FWP2byDwmQjoVL0jSsoVmlWL0xutomrLoXgIZ1cbGcD20sVNSbtPnC+7Jc8r1wDCgfubDTSjS1qqZ9NapqsTnBkdd5bR0WVsBxNGW8CGExHUsZhjz4iwDtWLLQNrG1rMFqNeMFwWkvQDT4F9SJ5J3piBfo6MMulPoIY5gedgxBp7TSBlBDKiTAue21fI8idc2ioX5l0ozP4BfPEWGgV6AivWfMstqXuGDckRFbONnWo4aZk+l2dpLAi839AdPGwH7xKRwLc2dPeF9qCSolGjGHExfgRA2I+C3m.pP9fAPXdhEFO6nT3OFjQ4QaeB3Ar7Ci7oa+bbHBVHllf6XpXweFtviqOw1.Wptjh9+i4yK81474mHiUbwfCXXg5Oi+2H99PObtXG.QhP.dnirsVR2HvrugduYvXgaxl+.WoLap2akxr4Dl2K9vm4DJegioiltV9cSnfwsH4OsqXefdOsIIoUsI23iy19BGGcx9yvrSwZr1Bqw5KrFarvZ74KrFewBqwWtvZ7zaQC8ORrSrR5at5gDNtSxKJVVcDLrxMoJm7m.iS.6ZC
-
I got a little hack for you, but I don't know if the outcome is the intended sound :)
Problem is, that the maximum
Message.getNoteNumber()
is 127 and you can't exceed that limit.
Also quite a lot offor
loops in the NoteOff Callback. That's not very performant. I guess Chris has a better solution for this. + i guess that there are better solutions for adding sine overtones to your sounds. Hraw seems to be a better way to do this in the future.All the best,
DHiseSnippet 1153.3oc4X1saiTCE.1SSFDYfhXWsf3ReAWjntzMosvtKgp9SZ5pH19iZ5VPppZwcFmDqNi8fGOAhV063AgGItlmh8M.Nd7jLSXmzMgxVjf4hH4yO1e9XerONGKEtznHgDYU4zQgTj0GZ2cDWMn0.Bii5rGx5SsOf4wvAw9JVnOiJwJZjBs6nPRTD0CYYU5YZaspTFgP+5ub+eeqcI9DtKMUTx2YBlK84r.lJS5Or82x782m3QOkEjy5M1tiqf2R3KhAtJYWGERbuhzmdHQa1R1Hq2qsGSIjcUD.FjU4cEdi5NP7Sbi8mwhXW5S0MZf5BcjQ79BeOMwZonVCX9dGOd9GgPV1GmEMJYhFOHYxOQdVT4iMQkLOxGOrV5lvqQd7pO23gxQWYCc.DBuXehZZxzKGoJXB9Tj0gqn7HlZTVz90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vd7javC8Cj1IVIBLodffiambihkUaNA14lrKG8mDb7IgC
ps: for getting this HiseSnippet in the one-liner format your have to surround it with three back ticks ` ::)
greets,d
-
Why not use
Engine.allNotesOff()
? -
Are we allowed to create variables outside of OnInit?
I see errors in the Console pointing here:
var eventsIds = []; in onNoteOn()
and
var note = Message.getNoteNumber(); in onNoteOff()In the ScriptWatchTable, I don't see anything getting stored in your "notes" array... so it looks like you're making references to something that doesn't exist.
-
@dustbro Yes we can create variables almost anywhere but usually they should be either local or reg variables. I think the only time to use var is inside panel callbacks.