HISE Logo Forum
    • Categories
    • Register
    • Login

    Data Persistence 2023

    Scheduled Pinned Locked Moved Scripting
    2 Posts 2 Posters 205 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.
    • A
      aaronventure
      last edited by

      What's the latest news on this? I see old topics from 7 years ago about creating a panel where I store all my persistent data and that seems super hacky, and I say that as a Kontakt dev. Kontakt offers a simple make_persistent() function for any variable and that variable will be saved into the user project with whatever is loaded into it at the time of saving, to be loaded again on next plugin load.

      How's HISE standing with this in 2023?

      User-facing controls are not necessarily the only data values I'd want carrying over. E.g. if I have a control that can have multiple modes which are triggered with keyboard callbacks or something like that, I need that flag to carry over.

      Thanks!

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

        Those early posts of mine were from when I was fresh off the KSP boat. Since then I haven't needed any KSP style variable persistence.

        With your multiple modes example just have a hidden knob on the UI that stores the selected mode. Slider packs are also a great option if you have a lot of data to store/restore.

        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

        48

        Online

        1.7k

        Users

        11.7k

        Topics

        101.8k

        Posts