HISE Logo Forum
    • Categories
    • Register
    • Login

    How to get number of RR groups

    Scheduled Pinned Locked Moved Scripting
    5 Posts 2 Posters 226 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.
    • d.healeyD
      d.healey
      last edited by

      Is there a way to get the number of groups in the current sample map? I know we have getRRGroupsForMessage(); but I don't know if that can be used for this purpose, any ideas?

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

      1 Reply Last reply Reply Quote 0
      • Christoph HartC
        Christoph Hart
        last edited by

        Sampler1.getAttribute(Sampler1.RRGroupAmount) should always return the current number of RR groups.

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

          Oh duh of course! Thank you.

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

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

            @Christoph-Hart Is it okay to call this function in an audio callback?

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

            1 Reply Last reply Reply Quote 0
            • Christoph HartC
              Christoph Hart
              last edited by

              Yes as long as you create the reference to the sampler before ;)

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

              17

              Online

              1.8k

              Users

              12.1k

              Topics

              104.9k

              Posts