HISE Logo Forum
    • Categories
    • Register
    • Login

    MIDI Routing - Floating Tile Keyboard Retrigering (strategy help)

    Scheduled Pinned Locked Moved Scripting
    7 Posts 2 Posters 379 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.
    • F
      fellowfinch
      last edited by

      Have a rather simple setup,

      • sample player for instrument samples "controlled" by floating tile keyboard
      • two audio loop players for atmos controlled by two buttons

      Whenever I play through the floating tile keyboard it also retriggers the Audio Loop Player. Both of the Audio Loop Players are connected via Buttons on the main interface and I use a MIDI Processor to specifically trigger those two players.

      I assume I would need to MIDI map the keyboard just to the sampler but am thinking what would be the best way to do it? Through MIDI Processor? Channel selection?

      Any help greatly appreciated!

      1 Reply Last reply Reply Quote 0
      • d.healeyD
        d.healey
        last edited by

        All the keyboard does is send out MIDI notes. Anything in the chain that can receive those notes will respond. If you don't want something to respond then you need to place a MIDI processor at that point in the chain and in it's on note on and on note off callback's you ignore the incoming events.

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

        F 1 Reply Last reply Reply Quote 0
        • F
          fellowfinch @d.healey
          last edited by

          @d-healey said in MIDI Routing - Floating Tile Keyboard Retrigering (strategy help):

          it's on note on and on note off callback's you ignore the incoming events.

          thank you as always @d-healey! I assume this is done by using the following command?

          Settings.toggleMidiInput( String midiInputName, bool enableInput)
          

          however, aren't the Audio Loop Players also triggered by MIDI note 64? - which is connected to the button?

          d.healeyD 1 Reply Last reply Reply Quote 0
          • d.healeyD
            d.healey @fellowfinch
            last edited by

            @fellowfinch

            however, aren't the Audio Loop Players also triggered by MIDI note 64? - which is connected to the button?

            No idea, is that what you've done?

            I assume this is done by using the following command?

            Not quite. In those callbacks you need to ignore the incoming messages. This is done using Message.ignoreEvent(true);

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

            F 2 Replies Last reply Reply Quote 0
            • F
              fellowfinch @d.healey
              last edited by

              @d-healey said in MIDI Routing - Floating Tile Keyboard Retrigering (strategy help):

              No idea, is that what you've done?

              yeah, I'm using a button connected to the MIDI Processor to trigger a note on event, kickstarting the Audio Loop Player. Should I done it a bit differently? :)

              const var processorButton = Content.addButton("processorButton", 0, 0);
              const var AudioLoopPlayer1 = Synth.getChildSynth("Audio Loop Player1");
               
              reg eventId; 
               
              processorButton.setControlCallback(playAtmo);
               
              inline function playAtmo(component, value)
              {
              	if (value)
              	{
              		eventId = Synth.playNote(64, 100);
              	}
              	else 
              		
              		Synth.noteOffByEventId(eventId);
              };
              

              hope this is ok?

              @d-healey said in MIDI Routing - Floating Tile Keyboard Retrigering (strategy help):

              This is done using Message.ignoreEvent(true);

              great! will try it with this tomorrow!

              d.healeyD 1 Reply Last reply Reply Quote 0
              • d.healeyD
                d.healey @fellowfinch
                last edited by

                @fellowfinch You could probably just put your trigger script after the ignore events script.

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

                1 Reply Last reply Reply Quote 0
                • F
                  fellowfinch @d.healey
                  last edited by

                  @d-healey said in MIDI Routing - Floating Tile Keyboard Retrigering (strategy help):

                  Message.ignoreEvent(true);

                  This works perfectly! Thank you @d-healey

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

                  57

                  Online

                  1.7k

                  Users

                  11.7k

                  Topics

                  101.8k

                  Posts