Forum

    • Register
    • Login
    • Search
    • Categories

    Round Robin per sampler

    General Questions
    2
    6
    104
    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.
    • gorangrooves
      gorangrooves last edited by

      Hey guys,
      I just realized a shortcoming of the built-in round robin- it progresses regardless of whether a note present in the sampler exists or not. Here is the problem:

      Say you have 3 samplers and each one them has a single note mapped (A, B, and C) and has 3 round-robin groups. Every time any note is triggered, the round-robin counter progresses. So, if you were to play notes A, B, C, A, B, C... then always note A=RR1, B=RR2, and C=RR3. Therefore the round-robin would not work.

      I came up with a workaround by placing the following Midi script in each sampler.

      function onNoteOn()
      {
          local number = Message.getNoteNumber();
      	if (!Sampler.isNoteNumberMapped(number))
      	    Message.ignoreEvent(true);
      }
       
      

      To my wonderful amazement, it works.

      Great, but I have a ton of samplers being that they are drums and percussion. Is there a way to apply such logic on a global level, quickly and efficiently?

      Goran Rista
      https://gorangrooves.com

      Handy Drums and Handy Grooves
      https://library.gorangrooves.com

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

        What's wrong with a separate script for each sampler?

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

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

          @d-healey Only the sheer number. 50+ samplers x 16 plugins 🙂

          Goran Rista
          https://gorangrooves.com

          Handy Drums and Handy Grooves
          https://library.gorangrooves.com

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

            @gorangrooves That's a lot of samplers!

            Put all samplers into an array then you can apply the RR to them in a loop. Think I have videos about this on YouTube

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

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

              @d-healey Thanks, Dave. Yes, there a lot. I limit each to only 3-6 voices.
              I will look for your video. Would I be putting the array in the mean script? Your video will cover that, right?

              Goran Rista
              https://gorangrooves.com

              Handy Drums and Handy Grooves
              https://library.gorangrooves.com

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

                @gorangrooves I can't remember exactly what's in my videos 😛

                I wouldn't put it in the main interface script because that script should be deferred and round robin will need to be real-time. So add another script for the RR.

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

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

                7
                Online

                1.2k
                Users

                7.0k
                Topics

                64.8k
                Posts