HISE Logo Forum
    • Categories
    • Register
    • Login

    Locking parameters out of Presets...

    Scheduled Pinned Locked Moved General Questions
    8 Posts 4 Posters 359 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.
    • LindonL
      Lindon
      last edited by

      So I'd like to be able to "build" new random presets for a 4 voice system I have, so I'd like to lock(say) voice 1 and all its params and then randomly select and load a preset - which would load all the settings for voices 2 thru 4.

      So the way I'm thinking of doing this is pretty simple really - just setting saveInPreset to false for all the params of voice 1, selecting a random preset , loading it, and then in the postPreset callback setting all the params of voice1 back to saveInPreset=true

      Can any one think of a better way?

      HISE Development for hire.
      www.channelrobot.com

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

        @Lindon Try it and report back.

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

        LindonL 1 Reply Last reply Reply Quote 0
        • LindonL
          Lindon @d.healey
          last edited by Lindon

          @d-healey said in Locking parameters out of Presets...:

          @Lindon Try it and report back.

          well --sorta..... I can get it to work - but even staging the preset loads in the postPreset its a bit crashey....

          HISE Development for hire.
          www.channelrobot.com

          Christoph HartC 1 Reply Last reply Reply Quote 0
          • Christoph HartC
            Christoph Hart @Lindon
            last edited by Christoph Hart

            @Lindon nononono, saveInPreset is not a dynamic property and you'll run into undefined behaviour and glitches.

            Use the pre and post callbacks of the user preset handler to store and restore the values / settings, that's how I'm implementing the lock feature.

            LindonL bendursoB 2 Replies Last reply Reply Quote 0
            • LindonL
              Lindon @Christoph Hart
              last edited by

              @Christoph-Hart said in Locking parameters out of Presets...:

              @Lindon nononono, saveInPreset is not a dynamic property and you'll run into undefined behaviour and glitches.

              Use the pre and post callbacks of the user preset handler to store and restore the values / settings, that's how I'm implementing the lock feature.

              roger, roger - will do. thanks.

              HISE Development for hire.
              www.channelrobot.com

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

                @Lindon Oh yeah, looks like I'm doing the same thing - https://codeberg.org/LibreWave/RhapsodyBoilerplate/src/branch/main/includes/Presets.js#L26

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

                1 Reply Last reply Reply Quote 0
                • d.healeyD d.healey referenced this topic on
                • bendursoB
                  bendurso @Christoph Hart
                  last edited by bendurso

                  @Christoph-Hart said in Locking parameters out of Presets...:

                  saveInPreset is not a dynamic property and you'll run into undefined behaviour and glitches.

                  Is it a bad idea to use saveInPreset dynamically for dynamic modules? I mean, I’m adding the sliders dynamically to control the hardcoded master FXs, and I only want to enable saveInPreset when a slider is active. Is that a bad approach? I’ve been testing it and it seems to work fine.

                  I want to keep it dynamic because I have 216 sliders, and one of the beta testers occasionally experiences crashes when switching presets. I’m think it might be due to the large number of parameters that have saveInPreset enabled.

                  Edit: Nop, it doesnt work well using it dynamically :(

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

                    @bendurso said in Locking parameters out of Presets...:

                    Is it a bad idea to use saveInPreset dynamically

                    Yes

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

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

                    20

                    Online

                    1.7k

                    Users

                    11.8k

                    Topics

                    102.6k

                    Posts