HISE Logo Forum
    • Categories
    • Register
    • Login

    Engine.addModuleStateToUserPreset("name here");

    Scheduled Pinned Locked Moved General Questions
    4 Posts 2 Posters 224 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 do I only need to issue this commend once in my app, or each time the user wants to save a preset?

      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 Just once, in on init.

        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
          last edited by

          If you have several modules to do you can use a loop:

          // Save EQs with presets
          const eqIds = Synth.getIdList("Parametriq EQ");
          
          for (id in eqIds)
              Engine.addModuleStateToUserPreset(id);
          

          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

            @d-healey thanks.

            HISE Development for hire.
            www.channelrobot.com

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

            38

            Online

            1.8k

            Users

            12.0k

            Topics

            104.4k

            Posts