Support Center

Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

Custom scripted midi noteoff for a pads vector

Goordano Wolf Sep 28, 2016 05:08AM CEST

No matter whether I use note out with vel=0 or midiout with note off message I can't get it to work!


I've created a pads object and scripted the scale with a vector so I don't have to create each key separately for a typical midi keyboard... everything works great for note on, velocity etc... but when I release I get a hung note of pitch "0" instead of a note off.

With logic X will it not recognize note out with v=0 as a note off? How does one script a custom midi note off in this case?? Please help!

here is my script in simplest form

decl index= firstof(keys.x);
decl p=notes[index];
MonitorN.value=p;
if (p>0) noteout (0,p,98,1);
else noteout (0, p, 1,1);

...I have also tried a for loop where the size of the loop = nonnull(x) to handle multiple notes Nd that works for the noteoff... nowever imstill get funky results.

how do you script noteoffs andnoteo s for a pads object using a vector for the notes???!


Please and Thanks! By the way I LOVE Lemur... it is becoming an obsession.

Up 0 rated Down
Liine Support Nov 09, 2016 08:12AM CET Liine Agent
Hi

I'm afraid this type of programming question is beyond the capacity of tech support. There are many examples in the User Library, you can also pull apart some of the Premium Content templates and see how they work. Hope that helps.

This question has received the maximum number of answers.

support@liine.net
http://assets3.desk.com/
false
desk
Loading
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
about
false
Invalid characters found
/customer/en/portal/articles/autocomplete