HISE Logo Forum
    • Categories
    • Register
    • Login

    Why does this work for UI elements but not for samplers?

    Scheduled Pinned Locked Moved General Questions
    6 Posts 3 Posters 290 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.
    • O
      observantsound
      last edited by

      It says the "enableRoundRobin" function is unknown.
      It works if I save the reference to the type in a variable though, so why not in an array?

      Screenshot 2022-12-30 094650.jpg

      Matt_SFM ? 2 Replies Last reply Reply Quote 0
      • O
        observantsound
        last edited by

        Also, while we're at it:
        What difference does it make referencing a sampler as a ChildSynth or as a type?

        Started with Hise a few days ago so very new to this!

        Matt_SFM 1 Reply Last reply Reply Quote 0
        • Matt_SFM
          Matt_SF @observantsound
          last edited by

          @observantsound you have an array called 'samplers' and you're calling the function with 'sampler'
          Misspelling happens à lot, always check it when facing an error 🙂

          Develop branch
          Win10 & VS17 / Ventura & Xcode 14. 3

          1 Reply Last reply Reply Quote 0
          • Matt_SFM
            Matt_SF @observantsound
            last edited by

            @observantsound it depends on the functions you want to use. Take a look at the API to see which reference you need

            Develop branch
            Win10 & VS17 / Ventura & Xcode 14. 3

            1 Reply Last reply Reply Quote 0
            • ?
              A Former User @observantsound
              last edited by A Former User

              @observantsound Try

              samplers[i].asSampler().enableRoundRobin(false);
              

              Edit: and fix the typo sampler*

              1 Reply Last reply Reply Quote 0
              • O
                observantsound
                last edited by

                Ah yes, indeed a typo. Embarassing!!

                Makes sense that some built in functions only work with certain target types.

                Thanks!

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

                15

                Online

                1.7k

                Users

                11.8k

                Topics

                102.4k

                Posts