HISE Logo Forum
    • Categories
    • Register
    • Login

    when you want to go too fast ... you regret it quickly ^^

    Scheduled Pinned Locked Moved General Questions
    19 Posts 3 Posters 565 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.
    • Y
      yall
      last edited by

      @Lindon @d-healey I intend to use the expansions suddenly, I will provide the "mini project". so there will be the sample map, preset, sample ....

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

        @yall You should use the new expansion installer system that wraps the expansion folder into a single data file.

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

        Y 1 Reply Last reply Reply Quote 0
        • Y
          yall @d.healey
          last edited by

          @d-healey so i tried, but i don't seem to really understand. I saw on the forum when christoph was talking about .hxi files but it is very vague for me

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

            @yall https://docs.hise.audio/working-with-hise/project-management/expansions/encrypted_expansion.html#implementation-/-steps-to-do

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

            1 Reply Last reply Reply Quote 0
            • Y
              yall
              last edited by

              @d-healey get this error in i want to encode my expansion>
              you have not yet defined an encryption key.
              I put 12345678 in the parameters of the project.
              I have to use EncryptionHandler.setEncryptionKey () ...
              I don't really know what to do

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

                @yall
                Are you using the latest version of HISE?
                The .setEncryptionKey() function is no longer required, just set the key in project properties.
                Have you set the expansion type to Encrypted?
                Also try resaving, closing, and reopening HISE after you set the expansion key.

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

                Y 1 Reply Last reply Reply Quote 0
                • Y
                  yall
                  last edited by

                  @d-healey
                  i have the latest scriptnode version. I chose custom in the hise parameter list then 12345678. when I go to encrypt in the sampler, I first have a success message, then the error I quoted above. you haven't set a encryption key yet

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

                    @yall Why did you choose custom?

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

                    1 Reply Last reply Reply Quote 0
                    • Y
                      yall @d.healey
                      last edited by

                      @d-healey I tried everything without really understanding we said that ^^ but I came back to encrypted. I just saw that my version of hise was 3 months old finally, I take the last one, I will try

                      1 Reply Last reply Reply Quote 0
                      • Y
                        yall
                        last edited by

                        @d-healey I just got there. so my end user I just have to give him the .hxi file, the sample folder and the user preset folder is that right?

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

                          @yall No, you just give them the .hr file(s)

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

                          1 Reply Last reply Reply Quote 0
                          • Y
                            yall
                            last edited by

                            @d-healey okay, well in any case that solved my problematic at first, the samples map are well hidden. :) I'll look after how to import the hr1 samples because I guess we still have to write a bunch of script ^^

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

                              @yall

                              we still have to write a bunch of script ^^

                              About 5 lines. Open a file browser for the user to select the .hr1 file, then run the installer function (can't remember the name of it but just search for installer in the API).

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

                              1 Reply Last reply Reply Quote 0
                              • Y
                                yall
                                last edited by

                                "ExpansionHandler.installExpansionFromPackage(var packageFile, var sampleDirectory)"

                                it seems to me that it is. remains to know how to use it now
                                @d-healey

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

                                  @yall That's the one. packageFile is the .hr1 and sampleDirectory is the place you want to put the samples. You need to use the FileSystem api to get the file and directory, you can use file browsers to prompt the user to select them.

                                  Here's an example that uses two nested file browser calls. You could put this in a button callback for example. You can also use the global sample directory if you wish, in which case you don't need the second file browser.

                                  reg hr;
                                  
                                  FileSystem.browse("", false, "", function(result)
                                  {
                                       	hr = result;
                                  	        
                                         	FileSystem.browseForDirectory("", function(dir)
                                         	{
                                         	    expHandler.installExpansionFromPackage(hr, dir);
                                         	});
                                  });
                                  

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

                                  1 Reply Last reply Reply Quote 0
                                  • Y
                                    yall
                                    last edited by

                                    thank you very much I will look at all this tomorrow, I have already made good progress today;)

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

                                    23

                                    Online

                                    1.8k

                                    Users

                                    12.0k

                                    Topics

                                    104.4k

                                    Posts