HISE Logo Forum
    • Categories
    • Register
    • Login

    Save Parameter in Engine vs User Preset

    Scheduled Pinned Locked Moved Scripting
    4 Posts 2 Posters 195 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.
    • Casey KolbC
      Casey Kolb
      last edited by

      Hello all!

      This might be obvious, but I'm still not sure how to do this. Is there a way to save a custom setting / parameter in the engine as a whole instead of in individual user presets? Basically, save something in the same way the settings are saved per device in the GeneralSettings.xml (like DiskMode or ScaleFactor). Not sure if this requires some cpp editing or not.

      Casey Kolb
      Founder & CEO of Lunacy Audio
      Composer | Producer | Software Developer

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

        You can save to a json file

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

        Casey KolbC 1 Reply Last reply Reply Quote 1
        • Casey KolbC
          Casey Kolb @d.healey
          last edited by

          @d-healey Ah good call. How do you load again on compile? Is it just Engine.loadFromJSON(String fileName) with a static file name you set in a variable?

          Casey Kolb
          Founder & CEO of Lunacy Audio
          Composer | Producer | Software Developer

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

            @Lunacy-Audio You don't need to put the filename in a variable, you can just pass it directly to the function.

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

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

            56

            Online

            1.7k

            Users

            11.7k

            Topics

            102.1k

            Posts