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
      last edited by Chazrox

      I want to use this API to recall 'Routing Options' current state because when I save/load preset, my combobox values reset back to default. If im in 24/out mode, I have to re-click my routing options button to desired routing settings after every preset/samplemap load/save.

      My question about .setPostCallback is;

      Do I have to completely use....

      .setUseCustomUserPresetModel
      

      is this API only available this way?
      I've tried using it and it doesnt respond. I dont want to ditch the inbuilt preset browser.
      What are my options?

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

        @Chazrox said in .setPostCallback::

        when I save/load preset, my combobox values reset

        Disable saveInPreset on the combo box?

        Also this might help

        62624a62-2a8a-4686-b39b-ecf223bab190-image.png

        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

          @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

                              50

                              Online

                              1.7k

                              Users

                              11.7k

                              Topics

                              101.8k

                              Posts