HISE Logo Forum
    • Categories
    • Register
    • Login

    How to make smoother transitions between articulations when using MIDI Muters?

    Scheduled Pinned Locked Moved General Questions
    3 Posts 2 Posters 28 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.
    • lijas90L
      lijas90
      last edited by

      Hi friends,

      I’ve created a keyswitch setup using two MIDI Muters.
      When I switched articulations, the last note from the previous sampler kept ringing.

      To fix that, I used the function Engine.allNotesOff(); every time I press the keyswitch.
      It works, but it cuts the notes off very abruptly.

      Do you have any ideas on how to make the transition between articulations smoother?

      Thanks!

      const var articulacionTrGen = [36];
      const var articulacionTrCres = [38];
          
      const var MidiMuterTrGen = Synth.getMidiProcessor("MidiMuterTrGen");
      const var MidiMuterTrCres = Synth.getMidiProcessor("MidiMuterTrCres");
       
       
      inline function onmyButtonControl(component, value)
      {
          if (value)
              return;
      
          Engine.allNotesOff();
      }
      
      function onNoteOn()
      {
          local n = Message.getNoteNumber();
      
          if (articulacionTrGen.contains(n))
          {
              Engine.allNotesOff();
              MidiMuterTrGen.setAttribute(0, 0);
              MidiMuterTrCres.setAttribute(0, 1);
              Message.ignoreEvent(true);
              return;
          }
      
          if (articulacionTrCres.contains(n))
          {
              Engine.allNotesOff();
              MidiMuterTrGen.setAttribute(0, 1);
              MidiMuterTrCres.setAttribute(0, 0);
              Message.ignoreEvent(true);
              return;
          }
      
       
      }
      
      
      d.healeyD 1 Reply Last reply Reply Quote 0
      • d.healeyD
        d.healey @lijas90
        last edited by

        @lijas90 Enable the "Fix stuck notes" button of the MIDI muter

        Free HISE Bootcamp Full Course for beginners.
        YouTube Channel - Public HISE tutorials
        My Patreon - HISE tutorials

        lijas90L 1 Reply Last reply Reply Quote 1
        • lijas90L
          lijas90 @d.healey
          last edited by

          @d-healey That’s it! Thank you so much, David!

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

          15

          Online

          2.0k

          Users

          12.8k

          Topics

          111.3k

          Posts