Forum
    • Categories
    • Register
    • Login

    Latest version of HISE breaks existing presets....

    Scheduled Pinned Locked Moved General Questions
    74 Posts 7 Posters 7.9k 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.
    • Christoph HartC
      Christoph Hart @JulesV
      last edited by

      @JulesV Are you using plugin parameters? And is this affecting only controls that are linked to plugin parameters or all values?

      JulesVJ 1 Reply Last reply Reply Quote 0
      • JulesVJ
        JulesV @Christoph Hart
        last edited by

        @Christoph-Hart In the plugin, all controls are set to plugin parameters. Also most of them are set to isMetaParameter. And all controls are initializing with default values

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

          @Christoph-Hart said in Latest version of HISE breaks existing presets....:

          @Lindon yes send over.

          So your particular problem is that plugin parameters + macros + preset recall is not working (mastervolume +30 = 1.0 normalized)?

          yes that about sums it up - I will send it over...

          HISE Development for hire.
          www.channelrobot.com

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

            @Lindon Would it be possible that the single error that both you and @JulesV are experiencing is because of a drift between the plugin parameter value stored in the DAW project and the internal preset?

            Whenever you save a DAW preset, it will

            • create a .preset containing the plugin state (exactly as if you would save a user preset)
            • store the values of all registered plugin parameters

            and dump that into the binary data blob stored as DAW project.

            In a "healthy" plugin, these values should not drift - the plugin parameter value is the value stored into the preset. But if there is a mismatch (either because of a new plugin parameter that wasn't stored or because of some initialisation error at startup, it might create these issues.

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

              @Christoph-Hart I think not. As this is showing up in HISE as well as compiled plugins.... see my posts at the start about using Console.print to tell me whats happening...

              Sent you the project link to your email

              HISE Development for hire.
              www.channelrobot.com

              JulesVJ 1 Reply Last reply Reply Quote 0
              • JulesVJ
                JulesV @Lindon
                last edited by

                @Lindon Is it fixed on your side?

                LindonL 1 Reply Last reply Reply Quote 0
                • LindonL
                  Lindon @JulesV
                  last edited by

                  @JulesV I haven't heard back from Christoph so I assume not...

                  HISE Development for hire.
                  www.channelrobot.com

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

                    @Christoph-Hart - is there any chance of ever getting a fix for this?

                    HISE Development for hire.
                    www.channelrobot.com

                    dannytaurusD 2 Replies Last reply Reply Quote 0
                    • dannytaurusD
                      dannytaurus @Lindon
                      last edited by

                      @Lindon Without me having to read 4 pages of posts about this, what's the outstanding issue?

                      HISE dev latest / super.engineering + Claude Fable / Figma + Affinity
                      Meat Beats: https://meatbeats.com
                      Klippr Video: https://klippr.video

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

                        I've let the robot loose on it. "Read this topic and propose a fix. Make no mistake."

                        ChazroxC David HealeyD dannytaurusD 3 Replies Last reply Reply Quote 3
                        • ChazroxC
                          Chazrox @Christoph Hart
                          last edited by

                          @Christoph-Hart said in Latest version of HISE breaks existing presets....:

                          Make no mistake

                          😆 💯

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

                            @Christoph-Hart said in Latest version of HISE breaks existing presets....:

                            Make no mistake

                            Proceeds to hack huggingface

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

                            1 Reply Last reply Reply Quote 1
                            • dannytaurusD
                              dannytaurus @Lindon
                              last edited by dannytaurus

                              @Lindon Looks like there's a related commit for this, have you tried with this commit in place?

                              • e1fb54695 (May 2026) — "fixed macro controller controlling first plugin parameter control inside HISE"

                              HISE dev latest / super.engineering + Claude Fable / Figma + Affinity
                              Meat Beats: https://meatbeats.com
                              Klippr Video: https://klippr.video

                              1 Reply Last reply Reply Quote 0
                              • dannytaurusD
                                dannytaurus @Christoph Hart
                                last edited by dannytaurus

                                @Christoph-Hart Here's what 'my' Claude says:

                                The pattern so far

                                Since a92a701de (the unified automation base class), every automation actor - host parameter, macro, MIDI automation, UI widget, script, preset restore - is both a reader and a writer of shared values, connected through the dispatch library. The regressions since then have all been the same bug wearing different hats: a listener can't tell an echo of its own write from a real change, so it feeds the value back around the loop. Each fix so far suppresses one specific edge:

                                • 633626eeb - gate refreshParameterValue() on enablePluginParameterUpdate, and switch MIDI automation's setAttribute from async to sync notification
                                • e1fb54695 - carve the backend macro-to-parameter-slot routing out behind HISE_MACROS_ARE_PLUGIN_PARAMETERS

                                Alongside the pre-existing guards (recursive, sendToHost per parameter, deferNotifyHostFlag, the exclusive-mode conditionals in loadUserPresetInternal()), that's now seven or so overlapping mechanisms all answering the same question by inference: "is this change an echo?"

                                Why I think flags can't fully close this

                                Two structural limits:

                                1. The global flag suppresses the wrong scope. enablePluginParameterUpdate is one boolean for all parameters. While parameter A's update is dispatching (flag false), a legitimate concurrent change to parameter B hits the early return in refreshParameterValue() and is silently dropped -the internal value updates but the host never hears it. I suspect this is exactly the DAW-project-vs-internal-preset drift you were hypothesizing about at the end of the thread. The guard isn't just failing to fix that bug, it's a source of it.
                                2. Scoped guards can't survive deferred dispatch. A ScopedValueSetter protects a call stack, but this system defers across threads by design. By the time an async-queued listener runs, the guard is long restored and the echo sails through. That's why 633626eeb had to change MIDI automation to sync notification - to drag the callback inside the guard's scope. Changing threading semantics to make a boolean reachable feels like the approach hitting its ceiling.

                                Proposal: make provenance explicit

                                The class structure from the rewrite is good - I'd keep all of it. The change is to what a notification is: value plus origin, instead of value alone.

                                1. Add a small source token (Host, Macro, MidiAutomation, UI, Script, PresetRestore) to SlotSender::sendChangeMessage() and the listener callbacks, threaded through CustomAutomationData::call(). Because the token travels with the queued message, it survives deferral and thread hops - the thing no scoped flag can do.
                                2. Each writer passes its own token and ignores incoming messages carrying it. MacroPluginParameter::setValue() writes as Host and skips Host-tagged notifications; same pattern in HisePluginParameterBase, MidiControllerAutomationHandler, CustomAutomationParameter.
                                3. recursive, sendToHost and the global enablePluginParameterUpdate then become deletable. (deferNotifyHostFlag can stay - batching host notifications is an optimization, not a correctness guard.)
                                4. Preset restore becomes a first-class source: "macros must not clobber freshly restored widget values" becomes a one-line filter rule instead of an ordering convention plus exclusive-mode conditionals, and the MIDI sync/async choice stops mattering for correctness.

                                For precedent: JUCE's own ParameterAttachment solves the identical loop the same way - each attachment filters its own echoes at the attachment point.

                                HISE dev latest / super.engineering + Claude Fable / Figma + Affinity
                                Meat Beats: https://meatbeats.com
                                Klippr Video: https://klippr.video

                                dannytaurusD LindonL 2 Replies Last reply Reply Quote 0
                                • dannytaurusD
                                  dannytaurus @dannytaurus
                                  last edited by

                                  image.jpeg

                                  😂 😂 😂

                                  HISE dev latest / super.engineering + Claude Fable / Figma + Affinity
                                  Meat Beats: https://meatbeats.com
                                  Klippr Video: https://klippr.video

                                  Christoph HartC 1 Reply Last reply Reply Quote 3
                                  • Christoph HartC
                                    Christoph Hart @dannytaurus
                                    last edited by

                                    Alright, I've performed a bunch of fixes:

                                    • there was in fact an issue where the macro restoring used the parameter index as raw macro control value which could have created some restore issues (although that was only in the HISE backend path and shouldn't affect compiled plugins.
                                    • a few other low risk fixes that might cause other glitches

                                    Lindon can you check if that still persists or if we're chasing ghosts? There have been a few fixes to this system this year so I'd like to know whether this still applies.

                                    The analysis from Dan looks like a good redesign plan but it's a bit overly aggressive and I don't trust it to not yield any side effects that we'll chase a few months later down the line.

                                    LindonL 1 Reply Last reply Reply Quote 2
                                    • LindonL
                                      Lindon @Christoph Hart
                                      last edited by

                                      @Christoph-Hart yep, as soon as I can I will test it out, though I did send you a version of the project and I think the thread documents the problem well enough....

                                      HISE Development for hire.
                                      www.channelrobot.com

                                      1 Reply Last reply Reply Quote 0
                                      • LindonL
                                        Lindon @dannytaurus
                                        last edited by

                                        @dannytaurus said in Latest version of HISE breaks existing presets....:

                                        @Christoph-Hart Here's what 'my' Claude says:

                                        The pattern so far

                                        Since a92a701de (the unified automation base class), every automation actor - host parameter, macro, MIDI automation, UI widget, script, preset restore - is both a reader and a writer of shared values, connected through the dispatch library. The regressions since then have all been the same bug wearing different hats: a listener can't tell an echo of its own write from a real change, so it feeds the value back around the loop. Each fix so far suppresses one specific edge:

                                        • 633626eeb - gate refreshParameterValue() on enablePluginParameterUpdate, and switch MIDI automation's setAttribute from async to sync notification
                                        • e1fb54695 - carve the backend macro-to-parameter-slot routing out behind HISE_MACROS_ARE_PLUGIN_PARAMETERS

                                        Alongside the pre-existing guards (recursive, sendToHost per parameter, deferNotifyHostFlag, the exclusive-mode conditionals in loadUserPresetInternal()), that's now seven or so overlapping mechanisms all answering the same question by inference: "is this change an echo?"

                                        Why I think flags can't fully close this

                                        Two structural limits:

                                        1. The global flag suppresses the wrong scope. enablePluginParameterUpdate is one boolean for all parameters. While parameter A's update is dispatching (flag false), a legitimate concurrent change to parameter B hits the early return in refreshParameterValue() and is silently dropped -the internal value updates but the host never hears it. I suspect this is exactly the DAW-project-vs-internal-preset drift you were hypothesizing about at the end of the thread. The guard isn't just failing to fix that bug, it's a source of it.
                                        2. Scoped guards can't survive deferred dispatch. A ScopedValueSetter protects a call stack, but this system defers across threads by design. By the time an async-queued listener runs, the guard is long restored and the echo sails through. That's why 633626eeb had to change MIDI automation to sync notification - to drag the callback inside the guard's scope. Changing threading semantics to make a boolean reachable feels like the approach hitting its ceiling.

                                        Proposal: make provenance explicit

                                        The class structure from the rewrite is good - I'd keep all of it. The change is to what a notification is: value plus origin, instead of value alone.

                                        1. Add a small source token (Host, Macro, MidiAutomation, UI, Script, PresetRestore) to SlotSender::sendChangeMessage() and the listener callbacks, threaded through CustomAutomationData::call(). Because the token travels with the queued message, it survives deferral and thread hops - the thing no scoped flag can do.
                                        2. Each writer passes its own token and ignores incoming messages carrying it. MacroPluginParameter::setValue() writes as Host and skips Host-tagged notifications; same pattern in HisePluginParameterBase, MidiControllerAutomationHandler, CustomAutomationParameter.
                                        3. recursive, sendToHost and the global enablePluginParameterUpdate then become deletable. (deferNotifyHostFlag can stay - batching host notifications is an optimization, not a correctness guard.)
                                        4. Preset restore becomes a first-class source: "macros must not clobber freshly restored widget values" becomes a one-line filter rule instead of an ordering convention plus exclusive-mode conditionals, and the MIDI sync/async choice stops mattering for correctness.

                                        For precedent: JUCE's own ParameterAttachment solves the identical loop the same way - each attachment filters its own echoes at the attachment point.

                                        Hmm, I must give this Claude malarky a bit of a go......

                                        HISE Development for hire.
                                        www.channelrobot.com

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

                                        25

                                        Online

                                        2.5k

                                        Users

                                        13.9k

                                        Topics

                                        121.1k

                                        Posts