Forum

    • Register
    • Login
    • Search
    • Categories

    How to get number of RR groups

    Scripting Forum
    2
    5
    42
    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.healey
      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 Hart
        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.healey
          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.healey
            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 Hart
              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

              26
              Online

              803
              Users

              5.5k
              Topics

              51.8k
              Posts