HISE Logo Forum
    • Categories
    • Register
    • Login

    load preset

    Scheduled Pinned Locked Moved General Questions
    7 Posts 3 Posters 246 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.
    • MikeBM
      MikeB
      last edited by

      Is it possible to load a preset with a combobox?
      so without preset browser

      "One hour of trial and error can save 10 minutes of reading the manual."
      "It's easier to hit the developer with feature requests than to spend 10 minutes reading the manual. :-)))"
      HISE Develop - Mac Pro 5.1, OS X 10.14.6, Projucer 6.02, Xcode 10.3

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

        @MikeB With a comboBox, this means you have to populate it with all the presets you want first
        Engine.getUserPresetList()

        then you can use from the combobox callback
        Engine.loadUserPreset(var relativePathOrFileObject)

        Have you tried with two buttons first, it's easier to begin
        Engine.loadNextUserPreset(bool stayInDirectory)
        Engine.loadPreviousUserPreset(bool stayInDirectory)

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

        MikeBM 1 Reply Last reply Reply Quote 0
        • callybeatC
          callybeat
          last edited by

          Hello!., I also have that doubt friend, because I still cannot save my presets in the already compiled complement, I think I am missing some function :grinning_face_with_sweat:

          IBM Netvista A40 PIII 1000 MHz

          1 Reply Last reply Reply Quote 0
          • MikeBM
            MikeB @ustk
            last edited by

            @ustk said in load preset:

            @MikeB With a comboBox, this means you have to populate it with all the presets you want first
            Engine.getUserPresetList()

            then you can use from the combobox callback
            Engine.loadUserPreset(var relativePathOrFileObject)

            Have you tried with two buttons first, it's easier to begin
            Engine.loadNextUserPreset(bool stayInDirectory)
            Engine.loadPreviousUserPreset(bool stayInDirectory)

            @ustk - thanks for that - but no - I meant loading non-user presets.
            The problem is that there is no way so far
            a. Separate factory from user presets (they are both in the "UserPreset" folder)
            b. To prevent the user from overwriting factory presets.

            Therefore my approach is to manage Factory-Presets in a separate folder and
            and call them via a combo box.

            The user presets are managed as usual via the preset browser.

            Thus the factory presets are not changeable for the user.

            "One hour of trial and error can save 10 minutes of reading the manual."
            "It's easier to hit the developer with feature requests than to spend 10 minutes reading the manual. :-)))"
            HISE Develop - Mac Pro 5.1, OS X 10.14.6, Projucer 6.02, Xcode 10.3

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

              @MikeB they are in the user preset folder, but inside subfolders you can discriminate with a custom made preset browser using panels and the filesystem. Just don't authorize overwriting if the sub folder is "Factory"
              This might not be easy at first, not impossible for sure

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

              1 Reply Last reply Reply Quote 0
              • MikeBM
                MikeB
                last edited by

                I don't quite get you.

                At the moment in HISE it is not possible to prevent the user from overwriting a factory preset.
                See feature request.

                So there must be a workaround here.

                I think a folder in the project folder - not in user preset folder - but outside.

                In this folder are the factory presets.
                They do NOT appear in the preset browser

                There appear ONLY the user presets.

                The question is how can I use a ComboBox on
                Access my factory presets?

                "One hour of trial and error can save 10 minutes of reading the manual."
                "It's easier to hit the developer with feature requests than to spend 10 minutes reading the manual. :-)))"
                HISE Develop - Mac Pro 5.1, OS X 10.14.6, Projucer 6.02, Xcode 10.3

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

                  @MikeB oh sorry, my bad! You mean overwriting the file manually? Then you're right… but is it not the case of almost all plugins? You can provide factory presets as a download in the user account to prevent losing them…
                  I don't know if it is possible to embed them in the plugin itself …

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

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

                  28

                  Online

                  1.8k

                  Users

                  12.0k

                  Topics

                  104.3k

                  Posts