Forum
    • Categories
    • Register
    • Login

    Change VoiceLimit and VoiceAmount with a Button

    Scheduled Pinned Locked Moved Unsolved Scripting
    26 Posts 2 Posters 1.2k 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.
    • M
      meto396 @David Healey
      last edited by

      @d-healey but when I use childsynth I get error after error because functions are not found

      David HealeyD 1 Reply Last reply Reply Quote 0
      • David HealeyD
        David Healey @meto396
        last edited by

        @meto396 Check out the snippet I posted above.

        Free HISE Bootcamp Full Course for beginners.
        YouTube Channel - Public HISE tutorials
        My Patreon - HISE tutorials

        M 1 Reply Last reply Reply Quote 0
        • M
          meto396 @David Healey
          last edited by

          @d-healey I did already but this doesn't change my problems as soon as I change the getSampler to ChildSynth the whole code that works doesn't work anymore: screen1.png

          David HealeyD 1 Reply Last reply Reply Quote 0
          • David HealeyD
            David Healey @meto396
            last edited by

            @meto396 said in Change VoiceLimit and VoiceAmount with a Button:

            the whole code that works doesn't work anymore

            That's because those other parts (the line numbers in the error messages) need the Sampler reference, so that's where you use .asSampler()

            Free HISE Bootcamp Full Course for beginners.
            YouTube Channel - Public HISE tutorials
            My Patreon - HISE tutorials

            M 1 Reply Last reply Reply Quote 0
            • M
              meto396 @David Healey
              last edited by

              @d-healey so all of them functions must be look like this?

              Sampler1.asSampler().clearSampleMap();
              
              David HealeyD 1 Reply Last reply Reply Quote 0
              • David HealeyD
                David Healey @meto396
                last edited by

                @meto396 Correct

                You can see in the API browser that function is part of the Sampler class

                7f65115e-337c-49c7-85e7-ef816fea4781-image.png

                Free HISE Bootcamp Full Course for beginners.
                YouTube Channel - Public HISE tutorials
                My Patreon - HISE tutorials

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

                28

                Online

                2.1k

                Users

                13.1k

                Topics

                113.4k

                Posts