HISE Logo Forum
    • Categories
    • Register
    • Login

    Blocking All notes, and Letting only 2 notes go in?

    Scheduled Pinned Locked Moved Scripting
    4 Posts 2 Posters 219 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • NatanN
      Natan
      last edited by Natan

      Hey folks,

      Could you please help me here?

      I need only note 48 and note 64 to go throw, and Block other notes
      Appreciate your help

      1 Reply Last reply Reply Quote 0
      • NatanN
        Natan
        last edited by

        This only lets note 48 go in,

        Message.ignoreEvent(Message.getNoteNumber() != 48);

        What about the second note?

        LindonL 1 Reply Last reply Reply Quote 0
        • LindonL
          Lindon @Natan
          last edited by Lindon

          @Natan said in Blocking All notes, and Letting only 2 notes go in?:

          Message.ignoreEvent(Message.getNoteNumber() != 48);

          if(Message.getNoteNumber() == 48 || Message.getNoteNumber() ==64 )
          {
                //do something
          }else{
                 Message.ignoreEvent();
          }
          

          or

          if(Message.getNoteNumber() != 48 && Message.getNoteNumber() != 64 )
                 Message.ignoreEvent();
          

          HISE Development for hire.
          www.channelrobot.com

          NatanN 1 Reply Last reply Reply Quote 1
          • NatanN
            Natan @Lindon
            last edited by

            @Lindon 🙏 Cheers to you mate

            1 Reply Last reply Reply Quote 0
            • First post
              Last post

            41

            Online

            1.7k

            Users

            11.7k

            Topics

            102.1k

            Posts