HISE Logo Forum
    • Categories
    • Register
    • Login

    Locking parameters out of Presets...

    Scheduled Pinned Locked Moved General Questions
    6 Posts 3 Posters 309 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 1 Reply 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
                • First post
                  Last post

                50

                Online

                1.7k

                Users

                11.7k

                Topics

                102.1k

                Posts