HISE Logo Forum
    • Categories
    • Register
    • Login

    Get Modwheel value? (Callback)

    Scheduled Pinned Locked Moved Solved General Questions
    3 Posts 2 Posters 48 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.
    • griffinboyG
      griffinboy
      last edited by

      What's the modern way to get a callback for the modwheel in Hise?

      I found an old post about it, but it seems outdated.

      griffinboyG 1 Reply Last reply Reply Quote 0
      • griffinboyG
        griffinboy @griffinboy
        last edited by

        @griffinboy

        Nevermind I solved it

        function onController()
        {
        	if(Message.getControllerNumber() == 1) // Modwheel
        	{
        		
        		Console.print(Message.getControllerValue() / 127.0);
        	}
        	if(Message.getControllerNumber() == 128) // Pitchwheel
        	{
        	
        		Console.print(Message.getControllerValue() / 127.0 / 127.0);
        
        	}
        }
        
        d.healeyD 1 Reply Last reply Reply Quote 1
        • griffinboyG griffinboy marked this topic as a question on
        • griffinboyG griffinboy has marked this topic as solved on
        • d.healeyD
          d.healey @griffinboy
          last edited by

          @griffinboy said in Get Modwheel value? (Callback):

          if(Message.getControllerNumber() == 128) // Pitchwheel

          There's also a constant for this Message.PITCH_BEND_CC

          Libre Wave - Freedom respecting instruments and effects
          My Patreon - HISE tutorials
          YouTube Channel - Public HISE tutorials

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

          52

          Online

          1.7k

          Users

          11.7k

          Topics

          101.8k

          Posts