HISE Logo Forum
    • Categories
    • Register
    • Login

    .setPostCallback:

    Scheduled Pinned Locked Moved Unsolved Scripting
    13 Posts 2 Posters 76 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 @d.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);
      d.healeyD 1 Reply Last reply Reply Quote 0
      • d.healeyD
        d.healey @Chazrox
        last edited by d.healey

        @Chazrox yes

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

        ChazroxC 1 Reply Last reply Reply Quote 1
        • ChazroxC
          Chazrox @d.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.

          d.healeyD 1 Reply Last reply Reply Quote 0
          • ChazroxC Chazrox marked this topic as a question
          • d.healeyD
            d.healey @Chazrox
            last edited by

            @Chazrox said in .setPostCallback::

            getting an error here.

            Helps if you tell me what the error is ;)

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

            ChazroxC 1 Reply Last reply Reply Quote 0
            • ChazroxC
              Chazrox @d.healey
              last edited by

              @d-healey unknown function 'setUseStaticMatrix'.

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

                @Chazrox What is Sampler1?

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

                ChazroxC 1 Reply Last reply Reply Quote 0
                • ChazroxC
                  Chazrox @d.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.

                  d.healeyD 1 Reply Last reply Reply Quote 0
                  • d.healeyD
                    d.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.

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

                    ChazroxC 1 Reply Last reply Reply Quote 0
                    • ChazroxC
                      Chazrox @d.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?

                      d.healeyD 1 Reply Last reply Reply Quote 0
                      • d.healeyD
                        d.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).

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

                        ChazroxC 1 Reply Last reply Reply Quote 0
                        • ChazroxC
                          Chazrox @d.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

                          45

                          Online

                          1.7k

                          Users

                          11.7k

                          Topics

                          101.8k

                          Posts