HISE Logo Forum
    • Categories
    • Register
    • Login

    isPlugin, isHise, isStandalone?

    Scheduled Pinned Locked Moved General Questions
    11 Posts 3 Posters 244 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.
    • ulrikU
      ulrik
      last edited by

      In my preset browser (not the Hise factory one) I'm loading presets using the FileSystem
      so in my code I have a switch to check if I'm in Hise or if it's a compiled plugin, and direct where to look for the presets
      In Hise ("UserPresets)
      In compiled plugin ("User Presets")

      working great!

      but I compiled it as a standalone and it will not find any presets at all.

      How can I check if it's compiled as a standalone, and where will it look for presets?

      Engine.isPlugin()
      

      This is inside Hise:

      euclideanhise.gif

      As compiled plugin inside Logic

      euclideanplugin.gif

      As stand alone app

      euclideanapp.gif

      Any help will appreciated

      Hise Develop branch
      MacOs 15.3.1, Xcode 16.2
      http://musikboden.se

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

        @ulrik Can't you use Engine.getUserPresetList()?

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

        ulrikU 1 Reply Last reply Reply Quote 0
        • ulrikU
          ulrik @d.healey
          last edited by

          @d-healey said in isPlugin, isHise, isStandalone?:

          @ulrik Can't you use Engine.getUserPresetList()?

          Sorry no, that is not possible in this

          Hise Develop branch
          MacOs 15.3.1, Xcode 16.2
          http://musikboden.se

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

            @ulrik Actually in my compiled project it uses UserPresets

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

            ulrikU 1 Reply Last reply Reply Quote 1
            • ulrikU
              ulrik @d.healey
              last edited by

              @d-healey said in isPlugin, isHise, isStandalone?:

              @ulrik Actually in my compiled project it uses UserPresets

              Hmm, that is so strange, that is not working in my project.
              I think it should use "UserPresets" since Engine.isPlugin() will show false

              I'll investigate some more

              Hise Develop branch
              MacOs 15.3.1, Xcode 16.2
              http://musikboden.se

              ulrikU 1 Reply Last reply Reply Quote 0
              • ulrikU
                ulrik @ulrik
                last edited by

                @ulrik @d-healey Ok I have investigated some more and found out that the StandAlone app read and write presets to the same directory as the compiled plugin but, to the "UserPresets" folder, not the "User Presets" folder. 🤥

                This is how it looks like in my Application Support folder for this instrument, sooo strange

                This must be a bug right?

                Skärmavbild 2023-02-16 kl. 15.40.31.png

                Hise Develop branch
                MacOs 15.3.1, Xcode 16.2
                http://musikboden.se

                DanHD 1 Reply Last reply Reply Quote 0
                • DanHD
                  DanH @ulrik
                  last edited by

                  @ulrik that's strange, my standalone uses User Presets, but I haven't updated Hise in a few weeks.... what commit are you on?

                  DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
                  https://dhplugins.com/ | https://dcbreaks.com/
                  London, UK

                  ulrikU 2 Replies Last reply Reply Quote 0
                  • ulrikU
                    ulrik @DanH
                    last edited by

                    @DanH I'm on the latest commit, I should say that I'm using the "FileSystem" to read and write the presets, I'm not using the constant FileSystem.UserPresets

                    Hise Develop branch
                    MacOs 15.3.1, Xcode 16.2
                    http://musikboden.se

                    1 Reply Last reply Reply Quote 0
                    • ulrikU
                      ulrik @DanH
                      last edited by

                      @DanH said in isPlugin, isHise, isStandalone?:

                      @ulrik that's strange, my standalone uses User Presets, but I haven't updated Hise in a few weeks.... what commit are you on?

                      Is this using the built in preset system?

                      Hise Develop branch
                      MacOs 15.3.1, Xcode 16.2
                      http://musikboden.se

                      DanHD 1 Reply Last reply Reply Quote 0
                      • DanHD
                        DanH @ulrik
                        last edited by

                        @ulrik yes, sorry I hadn't read the opening thread!

                        DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
                        https://dhplugins.com/ | https://dcbreaks.com/
                        London, UK

                        ulrikU 1 Reply Last reply Reply Quote 0
                        • ulrikU
                          ulrik @DanH
                          last edited by

                          @DanH no problems, thanks anyway 👍

                          Hise Develop branch
                          MacOs 15.3.1, Xcode 16.2
                          http://musikboden.se

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

                          29

                          Online

                          1.7k

                          Users

                          11.7k

                          Topics

                          102.0k

                          Posts