Forum

    • Register
    • Login
    • Search
    • Categories

    isPlugin, isHise, isStandalone?

    General Questions
    3
    11
    62
    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.
    • ulrik
      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 13, Xcode 14.0.1
      http://musikboden.se

      d.healey 1 Reply Last reply Reply Quote 0
      • d.healey
        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

        ulrik 1 Reply Last reply Reply Quote 0
        • ulrik
          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 13, Xcode 14.0.1
          http://musikboden.se

          d.healey 1 Reply Last reply Reply Quote 0
          • d.healey
            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

            ulrik 1 Reply Last reply Reply Quote 1
            • ulrik
              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 13, Xcode 14.0.1
              http://musikboden.se

              ulrik 1 Reply Last reply Reply Quote 0
              • ulrik
                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 13, Xcode 14.0.1
                http://musikboden.se

                DanH 1 Reply Last reply Reply Quote 0
                • DanH
                  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?

                  ulrik 2 Replies Last reply Reply Quote 0
                  • ulrik
                    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 13, Xcode 14.0.1
                    http://musikboden.se

                    1 Reply Last reply Reply Quote 0
                    • ulrik
                      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 13, Xcode 14.0.1
                      http://musikboden.se

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

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

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

                          @DanH no problems, thanks anyway 👍

                          Hise Develop branch
                          MacOs 13, Xcode 14.0.1
                          http://musikboden.se

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

                          3
                          Online

                          1.2k
                          Users

                          7.0k
                          Topics

                          64.8k
                          Posts