HISE Logo Forum
    • Categories
    • Register
    • Login

    Expansion sample map load

    Scheduled Pinned Locked Moved General Questions
    12 Posts 3 Posters 514 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
      last edited by Lindon

      So I have a sample map in the expansions folder - the ch1 is in the default project folder...

      How do I get it to load in a sampler - I've tried this:

      TheSamplers[0].asSampler().loadSampleMap("{EXP::THE37SQUARE");
      

      What am I doing wrong?

      HISE Development for hire.
      www.channelrobot.com

      Christoph HartC 1 Reply Last reply Reply Quote 0
      • Christoph HartC
        Christoph Hart @Lindon
        last edited by

        The syntax for sample map references in expansions is {EXP::ExpansionName}MySampleMap

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

          @Christoph-Hart OK yes sorry - I forgot - perhaps I could be more explicit:

          • I am working with an external installer - not HISE based, so it will be setting up the folder structure,

          I get a file telling me if a sound is an expansion, and what the expansion is called.

          How do I tell it/them how to set up the structure such that it can load the samples into the users default folder(where the factory samples are located) and then I load the sample maps to a folder such that I can reference it in my plugin?

          HISE Development for hire.
          www.channelrobot.com

          Christoph HartC 1 Reply Last reply Reply Quote 0
          • Christoph HartC
            Christoph Hart @Lindon
            last edited by

            The samples can go in the normal sample folder without any extra measures - if you load a sample map from an expansion it will look in both the general sample folder as well as the Samples subfolder of the expansion.

            The sample maps must be stored under APPDATA/Expansions/MyExpansion/SampleMaps if you're using FileBased expansions, but then you also need an info.xml file containing the expansion properties.

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

              @Christoph-Hart
              Well Im definitely doing something wrong.

              I copied the first expansion from the tutorial to both the APPDATA Expansions folder and to my HISE Project Expansions folder, and the only thing I did in my init was this:

              TheSamplers[0].asSampler().loadSampleMap("{EXP::First Expansion}First Normal");
              
              

              ..and its not loading.

              Do need the Expansion Handler?

              how do I build this info.xml file?

              Do I still need to set up the expansions pre-processor definitions?

              HISE Development for hire.
              www.channelrobot.com

              Christoph HartC LindonL 2 Replies Last reply Reply Quote 0
              • Christoph HartC
                Christoph Hart @Lindon
                last edited by

                Do need the Expansion Handler?

                No, only if you want to query the list of available expansions (but for debugging purposes it would be the next smart move).

                Do I still need to set up the expansions pre-processor definitions?

                No but you need to enable Expansions in the project settings (they are off by default).

                how do I build this info.xml file?

                It is created when you create an expansion in HISE.

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

                  @Lindon - OKay struggling here...

                  I rebuilt HISE with the EXPANSIONS preprocessor flags - that seems to offer me nothing at all.

                  I did this:

                  var expansions = Engine.getExpansionList();
                  Console.print(trace(expansions));
                  

                  and get to see an empty array - so its not picking up the expansions...

                  My expansions folder in the project looks like this:

                  e82da099-b53e-487c-993d-ae68cc49dd70-image.png

                  and inside there is:

                  a8a0ab05-bd6d-4fcd-9b12-66aee26d810d-image.png

                  expansions info looks like this:

                  <?xml version="1.0" encoding="UTF-8"?>
                  
                  <ExpansionInfo Name="First Expansion" Version="1.0.0" ProjectName="" Tags=""
                                 ProjectVersion="1.0.0"/>
                  
                  

                  HISE Development for hire.
                  www.channelrobot.com

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

                    @Christoph-Hart

                    It is created when you create an expansion in HISE.

                    --- how do I create and expansion in HISE?

                    HISE Development for hire.
                    www.channelrobot.com

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

                      @Lindon

                      No but you need to enable Expansions in the project settings (they are off by default).

                      8461e029-11fb-474d-93c4-50a68f220110-image.png

                      Like this?

                      HISE Development for hire.
                      www.channelrobot.com

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

                        @Lindon ey at last!

                        All I needed to do was restart HISE....

                        HISE Development for hire.
                        www.channelrobot.com

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

                          @Lindon

                          --- how do I create and expansion in HISE?

                          Click the plus button in the tool bar at the bottom of the Project Directory tab.

                          b795aacc-3691-4bf7-af44-ea6eaba69fea-image.png

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

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

                            @d-healey oh wow - I nearly never go there...
                            thanks.

                            HISE Development for hire.
                            www.channelrobot.com

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

                            45

                            Online

                            1.7k

                            Users

                            11.7k

                            Topics

                            101.8k

                            Posts