Ingnoring notes
-
I am trying to ignore the notes below 36 and above 95. This is not working. How can we handle that?
function onNoteOn() { if (Message.getNoteNumber() < 36 || Message.getNoteNumber() > 95) { Message.ignoreEvent(true); } }
-
According to my friend, Console.print(), it's working. The problem must be some other part of your project.
if (Message.getNoteNumber() < 36 || Message.getNoteNumber() > 95) { Console.print(Message.getNoteNumber()); Message.ignoreEvent(true); }
I have a module that does this btw, it also takes into account transposed notes.
-
@d-healey said in Ingnoring notes:
if (Message.getNoteNumber() < 36 || Message.getNoteNumber() > 95)
{
Console.print(Message.getNoteNumber());
Message.ignoreEvent(true);
}Thank you! I inserted that code into onNoteOn function, and it worked