HISE Logo Forum
    • Categories
    • Register
    • Login

    Expansion Tutorial

    Scheduled Pinned Locked Moved Blog Entries
    133 Posts 16 Posters 11.0k 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 @d.healey
      last edited by

      @d-healey Ok cool thanks..

      HISE Development for hire.
      www.channelrobot.com

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

        Success!!!

        • Yep all you need do is refer to the sample map in the expansion and it will load - even if other samplers in your project are loaded with sample maps from somewhere else...

        Cool.

        Forwards!!!

        HISE Development for hire.
        www.channelrobot.com

        ustkU 1 Reply Last reply Reply Quote 5
        • Y
          yall
          last edited by

          Hello. So I just created 8 expansion which each has about 80 sample maps. I have been working on this project for over a year. so i have about 700 hr1 sample. when switching to the extension, I had to modify the preset files manually (right click, notepad ....) so that each preset correspond to its successful sample map.mission. however I have a few small bugs sometimes. when i load a preset, it will release a sample map which has nothing to do with the preset. I just have to load 2 3 different presets and everything goes back to normal. do you think there may be conflicts somewhere? moreover, since the last scriptnode verison, the next / prev buttons of the presets cause hise to crash.

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

            @Lindon said in Expansion Tutorial:

            Success!!!

            • Yep all you need do is refer to the sample map in the expansion and it will load - even if other samplers in your project are loaded with sample maps from somewhere else...

            Cool.

            Forwards!!!

            I'm exploring this too. So when you say "refer to the sample map in the expansion", do you mean you use the file system API to get them?
            I have a similar use case to the one you explained above. I just need to provide new samples/samplemaps/presets and use them at the same time as the factory ones.

            Can't help pressing F5 in the forum...

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

              It's just a different "wildcard" in the reference. So for factory content you use {PROJECT_FOLDER}MySampleMap, and for a sample map in the expansion you just load {EXP::MyExpansion}MySampleMap and the system will detect magically that this is a samplemap from the expansion MyExpansion and search its content for the samplemap. You can load multiple assets from different expansions at the same time as well as mix it with factory content.

              What might be a little bit confusing is that there is an additional concept of an "active" expansion. That means as soon as you load a user preset from an expansion (or call ExpansionHandler.setCurrentExpansion() manually), the expansion system will set this expansion to be "active" and there can only be one "active" expansion at the same time. This doesn't have any impact on the availability of the content of other expansions, it just gives you the option to do certain stuff like swapping the background image depending on the current expansion.

              ustkU 2 Replies Last reply Reply Quote 1
              • ustkU
                ustk @Christoph Hart
                last edited by ustk

                @Christoph-Hart Oh that's much clearer, especially about the active expansion thing, I thought it was much more intrusive but it's in fact just a state info.
                So I imagine importSamples() works with expansions too? Like importing an expansion sample into a factory sample map right?

                Can't help pressing F5 in the forum...

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

                  Well that won't work unfortunately. A sample outside of the project's sample folder (or the expansion's subfolder) will not be resolved using the wildcard but as absolute path.

                  I'm afraid your plan of swapping samples inside a samplemap reveal a blind spot in the sample management system which takes samplemaps as somewhat static entities for granted and for the sake of future-proofness I would try to think of a solution that doesn't change samplemaps dynamically.

                  ustkU 2 Replies Last reply Reply Quote 0
                  • ustkU
                    ustk @Christoph Hart
                    last edited by

                    @Christoph-Hart Ouch, that one hurts... So what would be the best solution in my case:
                    I am using sample maps with 4 RRgroups (with group XFade)
                    I need to replace any of the samples in a RRgroup with any other sample (factory or expansion)
                    Of course, I need the user to be able to save all of that in presets...

                    Can't help pressing F5 in the forum...

                    1 Reply Last reply Reply Quote 0
                    • ustkU
                      ustk @Christoph Hart
                      last edited by ustk

                      @Christoph-Hart Oh I might have explained badly since I don't want to import user samples from anywhere, but only from expansion/factory sample maps... That'll work using the corresponding wildcards right?

                      Can't help pressing F5 in the forum...

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

                        @ustk You can only load samples from one expansion + factory at a time.

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

                        LindonL 1 Reply Last reply Reply Quote 1
                        • ustkU
                          ustk @Christoph Hart
                          last edited by ustk

                          @d-healey But Christoph said:

                          You can load multiple assets from different expansions at the same time as well as mix it with factory content.

                          So everything's accessible apparently

                          Can't help pressing F5 in the forum...

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

                            Yes that kind of layout is the most difficult to achieve because it‘s directly in the middle of loop players and samplers. I would suggest 4 samplers instead of 4 RR groups.

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

                              @d-healey said in Expansion Tutorial:

                              @ustk You can only load samples from one expansion + factory at a time.

                              Whilst Cristoph says...

                              "You can load multiple assets from different expansions at the same time as well as mix it with factory content."

                              -- so this first statement is wrong then ? I can load any sample map from any expansion - so I have 4 samplers I load sampler 1 with a Factory sample map, Sampler 2 with a sample map from Expansion A, Sampler 3 with a sample map from Expansion B, and Sampler 4 with a sample map from expansion C?? Right?

                              Please say yes - or its 3 months of work down the drain...

                              HISE Development for hire.
                              www.channelrobot.com

                              d.healeyD ustkU 2 Replies Last reply Reply Quote 0
                              • ustkU
                                ustk @Christoph Hart
                                last edited by

                                @Christoph-Hart 4 Samplers... I intend to have 4 to 6 voices so it makes it 16 to 24 samplers in total, which complicates too much the modulation. Essentially since I'm relying on group XFade, pitch, and gain modulation at the same time...

                                Can't help pressing F5 in the forum...

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

                                  @Lindon I think yes, but you have to switch expansions between loading each sample map.

                                  set expansion 1 = current, load a sample map from expansion 1
                                  set epxansion 2 = current, load a sample map from expansion 2
                                  etc.

                                  I don't think changing expansions clears out currently loaded sample maps but it's possible it affects their sample references.

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

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

                                    @Lindon You can I think, the expansion tutorial project seems to work this way
                                    @d-healey I don't think "switch" is the right term since you gather all expansions at once, it is just a matter of selecting which one you choose to load a sample map. Christoph said (if I understood well) the active status of an expansion is just here so you can decide the behavior of your plugin based on that info. It doesn't restrict you to use any of those at the same time, to me it is just an info or status.

                                    Can't help pressing F5 in the forum...

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

                                      @d-healey said in Expansion Tutorial:

                                      but you have to switch expansions between loading each sample map.

                                      Nope, that's not the case. It's like Lindon wants it to be, you can load any combination of expansion assets everytime without bothering about an active expansion (and I don't think loading an samplemap from an expansion switches the "active" expansion, but I'm not 100% sure though :)).

                                      d.healeyD LindonL 2 Replies Last reply Reply Quote 1
                                      • d.healeyD
                                        d.healey @Christoph Hart
                                        last edited by

                                        @Christoph-Hart Oh cool, so as long as you prefix the expansion map name with {EXP::MyExpansion} and replace MyExpansion with the name of the expansion it should work?

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

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

                                          Yes.5678

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

                                            @Christoph-Hart said in Expansion Tutorial:

                                            @d-healey said in Expansion Tutorial:

                                            but you have to switch expansions between loading each sample map.

                                            Nope, that's not the case. It's like Lindon wants it to be, you can load any combination of expansion assets everytime without bothering about an active expansion (and I don't think loading an samplemap from an expansion switches the "active" expansion, but I'm not 100% sure though :)).

                                            -- HERO!

                                            HISE Development for hire.
                                            www.channelrobot.com

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

                                            26

                                            Online

                                            1.7k

                                            Users

                                            11.9k

                                            Topics

                                            103.3k

                                            Posts