Forum
    • Categories
    • Register
    • Login

    .setPostCallback:

    Scheduled Pinned Locked Moved Unsolved Scripting
    13 Posts 2 Posters 1.4k 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.
    • ChazroxC
      Chazrox @David Healey
      last edited by

      @d-healey
      These comboboxes aren't being saved in preset which is why it was throwing me off.

      Also this might help

      ahh...let me try that. Do I just call that in Oninit like this?

      MySampler.setUseStaticMatrix(true);
      David HealeyD 1 Reply Last reply Reply Quote 0
      • David HealeyD
        David Healey @Chazrox
        last edited by David Healey

        @Chazrox yes

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

        ChazroxC 1 Reply Last reply Reply Quote 1
        • ChazroxC
          Chazrox @David Healey
          last edited by Chazrox

          @d-healey Do I need something set before this is called?

          getting an error here.

          Screenshot 2025-04-28 at 4.38.14 AM.png

          also tried this.

          const var routingSampler1 = Synth.getRoutingMatrix("Sampler1");
          routingSampler1.setUseStaticMatrix(true);
          

          doesnt work.

          David HealeyD 1 Reply Last reply Reply Quote 0
          • ChazroxC Chazrox marked this topic as a question on
          • David HealeyD
            David Healey @Chazrox
            last edited by

            @Chazrox said in .setPostCallback::

            getting an error here.

            Helps if you tell me what the error is ;)

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

            ChazroxC 1 Reply Last reply Reply Quote 0
            • ChazroxC
              Chazrox @David Healey
              last edited by

              @d-healey unknown function 'setUseStaticMatrix'.

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

                @Chazrox What is Sampler1?

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

                ChazroxC 1 Reply Last reply Reply Quote 0
                • ChazroxC
                  Chazrox @David Healey
                  last edited by Chazrox

                  @d-healey Sampler 1 is my first Sampler. (idk how else to answer that lol I think thats what you're asking) I have a combobox that has routing options for Sampler1 (and so on for tracks 1-9). Whenever a preset loads, these comboboxes go back to default channels(0,1). Im trying to stop that because if im in 24 track mode I have to go and reset these every time.

                  The first example is written out that way because I already have Sampler1 declared in the script above it. I tried doing 'routingSampler1' (example2) just to see if that would work. I dont know what im doing, just experimenting.

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

                    @Chazrox said in .setPostCallback::

                    Sampler 1 is my first Sampler. (idk

                    Show me where you are declaring it in the script please.

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

                    ChazroxC 1 Reply Last reply Reply Quote 0
                    • ChazroxC
                      Chazrox @David Healey
                      last edited by

                      @d-healey

                      Screenshot 2025-04-28 at 7.05.53 AM.png

                      I was writing 'setUseStaticMatrix' way down from this... like line 1500. Could that have been the problem?

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

                        @Chazrox You're getting it as a childSynth, but the setUseStaticMatrix function is for a sampler.

                        So you either need to get another reference as a sampler (I wouldn't do this).
                        Or you use Sampler1.asSampler().setUseStaticMatrix(true); (I would do this).

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

                        ChazroxC 1 Reply Last reply Reply Quote 0
                        • ChazroxC
                          Chazrox @David Healey
                          last edited by Chazrox

                          @d-healey aahh. ok. I just did that and I didnt get an error. I'll find out if it works on the next export. Thank You!

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

                          20

                          Online

                          2.1k

                          Users

                          13.1k

                          Topics

                          113.3k

                          Posts