HISE Logo Forum
    • Categories
    • Register
    • Login

    Round Robin per sampler

    Scheduled Pinned Locked Moved General Questions
    6 Posts 2 Posters 349 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.
    • gorangroovesG
      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.healeyD
        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

        gorangroovesG 1 Reply Last reply Reply Quote 0
        • gorangroovesG
          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.healeyD 1 Reply Last reply Reply Quote 0
          • d.healeyD
            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

            gorangroovesG 1 Reply Last reply Reply Quote 0
            • gorangroovesG
              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.healeyD 1 Reply Last reply Reply Quote 0
              • d.healeyD
                d.healey @gorangrooves
                last edited by

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

                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

                29

                Online

                1.7k

                Users

                11.8k

                Topics

                102.9k

                Posts