HISE Logo Forum
    • Categories
    • Register
    • Login

    3 Quick Questions about Expansions!

    Scheduled Pinned Locked Moved General Questions
    84 Posts 6 Posters 6.3k 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.
    • d.healeyD
      d.healey @A Former User
      last edited by

      @iamlamprey

      I do have multiple HISE builds...

      Why? Use git.

      Free HISE Bootcamp Full Course for beginners.
      YouTube Channel - Public HISE tutorials
      My Patreon - HISE tutorials

      ? 1 Reply Last reply Reply Quote 0
      • ?
        A Former User @d.healey
        last edited by

        @d-healey Never understood how it worked but I guess now's as good a time as any to learn it 😲

        d.healeyD 1 Reply Last reply Reply Quote 0
        • d.healeyD
          d.healey @A Former User
          last edited by

          @iamlamprey

          https://www.youtube.com/watch?v=Bs3zI5Dtvn0

          Free HISE Bootcamp Full Course for beginners.
          YouTube Channel - Public HISE tutorials
          My Patreon - HISE tutorials

          ? 2 Replies Last reply Reply Quote 0
          • ?
            A Former User @d.healey
            last edited by

            @d-healey Oh dude coming in hot with the "here's one i prepared earlier" 😁 thanks so much for helping me out again

            1 Reply Last reply Reply Quote 0
            • ?
              A Former User @d.healey
              last edited by

              @d-healey am I doing something wrong?

              d96c07d7-bd3a-4ec6-8195-24aaa62e347b-image.png

              It's not automatically switching to the newer branches

              d.healeyD 1 Reply Last reply Reply Quote 0
              • d.healeyD
                d.healey @A Former User
                last edited by

                @iamlamprey

                It's not automatically switching to the newer branches

                Branch switching isn't automatic, you need to use the checkout command to switch to the branch you want.

                Free HISE Bootcamp Full Course for beginners.
                YouTube Channel - Public HISE tutorials
                My Patreon - HISE tutorials

                ? 1 Reply Last reply Reply Quote 0
                • ?
                  A Former User @d.healey
                  last edited by

                  @d-healey I did, it's just not in the screenshot

                  the asterisk is on codegen but the compiled version is missing scriptnode (so it's the master branch from like 16 years ago)

                  1 Reply Last reply Reply Quote 0
                  • ?
                    A Former User
                    last edited by

                    Ok I deleted the repo and redownloaded it and now it seems to be working :)

                    1 Reply Last reply Reply Quote 0
                    • ?
                      A Former User
                      last edited by

                      @d-healey IT WORKS DAVID YOU ABSOLUTE MADMAN THANK YOU

                      a029c4b6-370d-4054-8aaa-623bfe353608-image.png

                      LindonL 1 Reply Last reply Reply Quote 1
                      • LindonL
                        Lindon @A Former User
                        last edited by

                        @iamlamprey so can you post the code that works?

                        HISE Development for hire.
                        www.channelrobot.com

                        d.healeyD ? 2 Replies Last reply Reply Quote 0
                        • d.healeyD
                          d.healey @Lindon
                          last edited by

                          @Lindon https://forum.hise.audio/topic/3959/3-quick-questions-about-expansions/28?_=1617874170786

                          Free HISE Bootcamp Full Course for beginners.
                          YouTube Channel - Public HISE tutorials
                          My Patreon - HISE tutorials

                          LindonL 1 Reply Last reply Reply Quote 0
                          • LindonL
                            Lindon @d.healey
                            last edited by

                            @d-healey said in 3 Quick Questions about Expansions!:

                            @Lindon https://forum.hise.audio/topic/3959/3-quick-questions-about-expansions/28?_=1617874170786

                            err that points me further up this thread at a post that says its not working...

                            HISE Development for hire.
                            www.channelrobot.com

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

                              @Lindon Yup, didn't do what I thought it did. Scroll up until you find my post with a link to a demo project, wasn't that far back.

                              @Christoph-Hart We need a way to accurately link to other posts in a thread, clicking the timestamp appears not to work.

                              Free HISE Bootcamp Full Course for beginners.
                              YouTube Channel - Public HISE tutorials
                              My Patreon - HISE tutorials

                              LindonL 1 Reply Last reply Reply Quote 1
                              • LindonL
                                Lindon @d.healey
                                last edited by

                                @d-healey said in 3 Quick Questions about Expansions!:

                                @Lindon Yup, didn't do what I thought it did. Scroll up until you find my post with a link to a demo project, wasn't that far back.

                                OK thanks.

                                HISE Development for hire.
                                www.channelrobot.com

                                1 Reply Last reply Reply Quote 0
                                • ?
                                  A Former User @Lindon
                                  last edited by

                                  @Lindon Here's where I'm at so far, note that it's still very much a WIP (loaded expansions aren't persistent in a DAW yet, for example)

                                  /*Basic Player plugin with on-the-fly sample-loading and image-changing + hiding of GUI elements.
                                  
                                  I've also hidden the init sample locate dialog with:
                                  
                                  HISE_SAMPLE_DIALOG_SHOW_INSTALL_BUTTON=0
                                  HISE_SAMPLE_DIALOG_SHOW_LOCATE_BUTTON=0
                                  
                                  In the Extra Definitions [Your OS] Preferences
                                  */
                                  const var expHandler = Engine.createExpansionHandler();
                                  const var SamplerRR = Synth.getChildSynth("SamplerRR");
                                  var currentExpansion = "";
                                  
                                  expHandler.setAllowedExpansionTypes([expHandler.FileBased, 
                                                                       expHandler.Intermediate, 
                                                                       expHandler.Encrypted]);
                                  
                                  var expansionDirectory = FileSystem.getFolder(FileSystem.Samples); //Changes using the Custom Setting FloatingTile
                                  reg hr;
                                  
                                  const var Image_BG = Content.getComponent("Image_BG");
                                  
                                  //Set Sample Folder Button (Just shows a panel, which contains the CustomSettings FloatingTile)
                                  
                                  inline function onButton1Control(component, value)
                                  {
                                      Panel_ChangeSampleFolder.showControl(value);
                                  };
                                  
                                  Content.getComponent("Button1").setControlCallback(onButton1Control);
                                  
                                  //Install Library Button
                                  
                                  inline function onButton2Control(component, value)
                                  {
                                      if (value)
                                      {    
                                          FileSystem.browse(expansionDirectory, false, "", function(result) 
                                      {
                                          hr = result;
                                          expHandler.installExpansionFromPackage(hr,FileSystem.getFolder(FileSystem.Samples));
                                          expHandler.refreshExpansions(); 
                                      });
                                      };
                                  };
                                  
                                  Content.getComponent("Button2").setControlCallback(onButton2Control);
                                  
                                  //Library Select (Like Kontakt's Browser)
                                  
                                  //Bloom
                                  
                                  inline function onExpansions_ButtonBloomControl(component, value)
                                  {
                                      Engine.setCurrentExpansion("Bloom");
                                      currentExpansion = "Bloom"; //This is used in other functions elsewhere.
                                      //Put Stuff Under This
                                  
                                      //Setting Background Image
                                      backgroundImage = ("{EXP::Bloom}bg_bloom.png");
                                      Image_BG.setAlpha(1);
                                      Image_BG.set("fileName", backgroundImage);  
                                  
                                      //Hiding/Showing UI Elements for Specific Libraries
                                      ComboBox_Atlas.set("visible", 0);
                                  
                                      //Setting up different Samplers
                                      SamplerRR.setAttribute(12, 0);
                                      Sampler_NoRR.setAttribute(12, 1);    
                                      SamplerRR.setBypassed(1-value);
                                      Sampler_NoRR.setBypassed(value);
                                  
                                      //Loading the sample map into the right sampler    
                                      SamplerRR.asSampler().loadSampleMap("{EXP::Bloom}Bloom_SampleMap");
                                  };
                                  
                                  LindonL 1 Reply Last reply Reply Quote 1
                                  • LindonL
                                    Lindon @A Former User
                                    last edited by

                                    @iamlamprey - thanks - looks not "too" complex...

                                    HISE Development for hire.
                                    www.channelrobot.com

                                    1 Reply Last reply Reply Quote 0
                                    • ?
                                      A Former User
                                      last edited by A Former User

                                      How would I make the loaded expansion re-load on DAW close/reopen?

                                      Making currentExpansion a const var obviously breaks the button functions that change it, and it doesn't default to a string unless I give it an initial value of "", which means calling that won't load the right expansion..

                                      d.healeyD 1 Reply Last reply Reply Quote 0
                                      • d.healeyD
                                        d.healey @A Former User
                                        last edited by

                                        @iamlamprey Expansions are automatically loaded when one of the expansion's presets is used, so as long as the DAW is saved and closed after a preset has been selected it "should" be there when you reopen the DAW.

                                        Free HISE Bootcamp Full Course for beginners.
                                        YouTube Channel - Public HISE tutorials
                                        My Patreon - HISE tutorials

                                        ? 1 Reply Last reply Reply Quote 0
                                        • ?
                                          A Former User @d.healey
                                          last edited by

                                          @d-healey Guess it's time to add a preset system then...

                                          1 Reply Last reply Reply Quote 0
                                          • ?
                                            A Former User
                                            last edited by

                                            Unrelated but has anyone else had the Custom Keyboard FloatingTile randomly play a high F and stick when clicking GUI elements?

                                            I thought was my old midi controller but it only happens when I click something on the GUI, both in HISE and in DAW.

                                            Super weird 😧

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

                                            29

                                            Online

                                            2.0k

                                            Users

                                            12.7k

                                            Topics

                                            110.1k

                                            Posts