Forum
    • Categories
    • Register
    • Login

    Full Instrument Expansions - how, what where....

    Scheduled Pinned Locked Moved General Questions
    64 Posts 2 Posters 344 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.
    • LindonL
      Lindon @David Healey
      last edited by

      @David-Healey Okay.... now nothing works from within the Players HISE project -- does this ONLY work in a compiled plugin?

      HISE Development for hire.
      www.channelrobot.com

      David HealeyD 1 Reply Last reply Reply Quote 0
      • David HealeyD
        David Healey @Lindon
        last edited by

        @Lindon No it will work in HISE if you've set the player project to use Full Expansions and the encryption key matches the one used for the expansion project.

        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 @David Healey
          last edited by Lindon

          @David-Healey well I have and it doesnt....now nothing happens at all...so Im still doing something wrong..

          HISE Development for hire.
          www.channelrobot.com

          David HealeyD 1 Reply Last reply Reply Quote 0
          • David HealeyD
            David Healey @Lindon
            last edited by

            @Lindon This is how my app data folder looks for Rhapsody, is your structure similar?

            dbe4cb1b-a0ef-466b-b3eb-de0f44a95526-image.png

            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 @David Healey
              last edited by

              @David-Healey yes:

              7323d09a-d7d6-4b72-8656-41e321487896-image.png

              Samples has only LinkWindows in it

              HISE Development for hire.
              www.channelrobot.com

              David HealeyD 1 Reply Last reply Reply Quote 0
              • David HealeyD
                David Healey @Lindon
                last edited by

                @Lindon No need for the sample maps folder, the sample maps are embedded in the hxi. How are you expecting the expansions to show up in your player HISE project?

                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 @David Healey
                  last edited by Lindon

                  @David-Healey it shows up as taking over the entire screen with a LOUD ui.....

                  heres what Im doing to call the expansion

                  reg eh = Engine.createExpansionHandler();
                  
                  function instrumentMouseCallBack(event,panel)
                  {
                  	if(event.doubleClick)
                  	{
                  		pos = InstrumentPanels.indexOf(panel);
                  		tempMouseJSON = getJSONforInstPanel(pos);
                  		//Content.getComponent("Label1").set("text", "here we load an expansion called:" + tempMouseJSON.ExpName);
                  		
                  		
                  		Console.clear();
                  		Console.print("loading an instrument........." + tempMouseJSON.ExpName);
                  		for(e in eh.getExpansionList())
                  		{
                  			Console.print("the name of the expansion is:" + e.getProperties().Name);
                  		}
                  		
                  		eh.setCurrentExpansion("KeyEngineTest");
                  	}
                  };
                  

                  ..and now its not printing "the name of the expansion is..."

                  So its not finding any expansions....

                  HISE Development for hire.
                  www.channelrobot.com

                  LindonL David HealeyD 2 Replies Last reply Reply Quote 0
                  • LindonL
                    Lindon @Lindon
                    last edited by

                    @Lindon right now the expansions own project cant even find the sample maps in its own project structure...this is getting silly.

                    HISE Development for hire.
                    www.channelrobot.com

                    David HealeyD 1 Reply Last reply Reply Quote 0
                    • David HealeyD
                      David Healey @Lindon
                      last edited by

                      @Lindon

                      You're loading the expansion directly after that loop so the loading of the expansion probably wipes out the output, not sure.

                      Try putting that loop in on init right after you declare your expansion handler.

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

                      1 Reply Last reply Reply Quote 0
                      • David HealeyD
                        David Healey @Lindon
                        last edited by

                        @Lindon said in Full Instrument Expansions - how, what where....:

                        right now the expansions own project cant even find the sample maps in its own project structure...this is getting silly.

                        Do you mean when you load it through the player project?

                        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 @David Healey
                          last edited by Lindon

                          @David-Healey no - just loading the expansion project...it cant find anything, rebuilding a new test expansion project now.... called Test2

                          ..ok thats back to working at least... now:

                          Building the hx1 file....
                          Expansion type = Full
                          Encryption key = Test

                          OK creating a new folder called Test2 in the AppData folder structure of the Player

                          Adding a Samples folder - with the LinkWindows file in it only...
                          Adding an empty UserPresets folder
                          putting my info.hxi that I just generated in the Test2 folder...

                          to get to this:

                          ab21842f-20f0-45ae-9d49-99d534ada489-image.png

                          I load the Player project and execute this code:

                          reg eh = Engine.createExpansionHandler();
                          reg expansionList = eh.getExpansionList();
                          function instrumentMouseCallBack(event,panel)
                          {
                          	//Console.print(trace(event));
                          	if(event.doubleClick)
                          	{
                          		pos = InstrumentPanels.indexOf(panel);
                          		tempMouseJSON = getJSONforInstPanel(pos);
                          		//Content.getComponent("Label1").set("text", "here we load an expansion called:" + tempMouseJSON.ExpName);
                          		Console.print("loading an instrument........." + tempMouseJSON.ExpName);
                          		Console.clear();
                          		for(e in expansionList)
                          		{
                          			Console.print("the name of the expansion is:" + e.getProperties().Name);
                          		}
                          		
                          		eh.setCurrentExpansion("Test2");
                          		//Console.print(trace(eh.getExpansionList()));
                          	}
                          };
                          

                          and nothing happens.......it cannot find the list of expansions in its AppData folder...

                          HISE Development for hire.
                          www.channelrobot.com

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

                            @Lindon

                            Interface: the app data folder is:C:\Users\Lindon\AppData\Roaming\NomadSounds\KeyEngine
                            Interface: the number of expansions found is:0
                            

                            😢

                            HISE Development for hire.
                            www.channelrobot.com

                            David HealeyD 2 Replies Last reply Reply Quote 0
                            • David HealeyD
                              David Healey @Lindon
                              last edited by

                              @Lindon Put this in on init after you declare the expansion handler

                              for(e in eh.getExpansionList())
                                  Console.print(e.getProperties().Name);
                              

                              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 @David Healey
                                last edited by

                                @David-Healey said in Full Instrument Expansions - how, what where....:

                                for(e in eh.getExpansionList())
                                Console.print(e.getProperties().Name);

                                done:

                                reg eh = Engine.createExpansionHandler();
                                reg expansionList = eh.getExpansionList();
                                for(e in eh.getExpansionList())
                                    Console.print("we have found expansion:" + e.getProperties().Name);
                                

                                and the output is.....

                                Interface: USER SAMPLES LOCATION:D:\AudioContent\NomadSounds
                                Interface: library panel repaint getting called
                                

                                As I say its not finding any expansions in the AppData folder structure...

                                HISE Development for hire.
                                www.channelrobot.com

                                1 Reply Last reply Reply Quote 0
                                • David HealeyD
                                  David Healey @Lindon
                                  last edited by

                                  @Lindon said in Full Instrument Expansions - how, what where....:

                                  the app data folder is:C:\Users\Lindon\AppData\Roaming\NomadSounds\KeyEngine

                                  What did you use to print this?

                                  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 @David Healey
                                    last edited by

                                    @David-Healey

                                    Console.print("the app data folder is:" + FileSystem.getFolder(FileSystem.AppData).toString(0));
                                    

                                    HISE Development for hire.
                                    www.channelrobot.com

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

                                      @Lindon this is right yes?

                                      74903ab5-d943-4584-a416-cfd1b8470922-image.png

                                      HISE Development for hire.
                                      www.channelrobot.com

                                      David HealeyD 1 Reply Last reply Reply Quote 0
                                      • David HealeyD
                                        David Healey @Lindon
                                        last edited by David Healey

                                        @Lindon Looks correct. I just noticed I'm compiling HISE with the HISE_ENABLE_EXPANSIONS=1 and HI_ENABLE_EXPANSION_EDITING=1 preprocessor definition2, I don't know if they are required though.

                                        In your expansion projects you should leave the Expansion Type set to Disabled.

                                        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 @David Healey
                                          last edited by

                                          @David-Healey looks like Im not - so let me go try that...(why was it working before tho?)

                                          HISE Development for hire.
                                          www.channelrobot.com

                                          David HealeyD 1 Reply Last reply Reply Quote 0
                                          • David HealeyD
                                            David Healey @Lindon
                                            last edited by

                                            @Lindon Dunno, just trying to find any differences between our setups.

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

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

                                            21

                                            Online

                                            2.3k

                                            Users

                                            13.6k

                                            Topics

                                            118.4k

                                            Posts