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 ✌


Log in to reply
 

17
Online

1.2k
Users

3.8k
Topics

33.7k
Posts