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

      @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

                        15

                        Online

                        1.8k

                        Users

                        12.0k

                        Topics

                        104.4k

                        Posts