HISE Logo Forum
    • Categories
    • Register
    • Login

    DAW state restoration of plugins for controls not saveInPreset

    Scheduled Pinned Locked Moved General Questions
    3 Posts 2 Posters 75 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.
    • ustkU
      ustk
      last edited by

      So I have my pref file restoring a few parameters at init.
      But for multiple instances, you might want oversampling here but not there... I thought DAWs were restoring the state as it was the last time when saving/closing a project, and not performing a "real init" when opening again.

      And that's the case for ProTools. But not for Logic or Reaper (probably others), where the pref file is reapplied to all instances...

      Is the only way to prevent this to set those parameters to saveInPreset?

      Can't help pressing F5 in the forum...

      orangeO 1 Reply Last reply Reply Quote 0
      • orangeO
        orange @ustk
        last edited by orange

        @ustk Is this valid for all ui elements or only for buttons?

        Even if you set the default value of buttons to 1, in Pro Tools, they always initialize at 0. This has been a bug for years. Maybe that might be the reason.

        develop Branch / XCode 13.1
        macOS Monterey / M1 Max

        ustkU 1 Reply Last reply Reply Quote 0
        • ustkU
          ustk @orange
          last edited by

          @orange Well I'm not sure this applies, because ProTools does load with the previous state of each instance, be it on or off.
          While in other DAWs, all instances get initialised with the pref file, be it on or off...
          So the default value seems to have no effect on this.

          UserPresetHandler.isInternalPresetLoad() might help to decide if it's a DAW state that is restored or not... But a pre/post load callback is for preset loading, so if this applies to instance restoration I don't know, I have to experiment... Maybe it's a matter of creating a flag that authorises or not the loading of the pref file, hopping this won't interfere when first inserting the plugin on a track.

          Can't help pressing F5 in the forum...

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

          15

          Online

          1.7k

          Users

          11.8k

          Topics

          102.7k

          Posts