HISE Logo Forum
    • Categories
    • Register
    • Login

    Expansion Tutorial

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

      @Christoph-Hart maybe you tried encrypt expansion?

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

        @d-healey said in Expansion Tutorial:

        @Lindon said in Expansion Tutorial:

        Now a user installs an expansion (with an additional 150 sample maps) - it will put the samples in the same folder as those for the original product - or so Im hoping.

        There is no expansion installer that comes with HISE, so it's up to you to provide the installation side of things. I think the easiest way is to use in the server and file APIs and directly download the expansions, I haven't tried it yet though but I believe this is what PercX does.

        yes Im well aware that I will need to handle the installation of my samples, sample maps etc.

        You might not even need expansions, you could just ship additional sample maps, samples and presets. Expansions (I think) are only really needed if the expansions work in a fundamentally different way to your base plugin.

        Yes having spent all of 1/2 a day in the expansions system I'm beginning to think its not right for what I'm doing here...my "expansions" are in fact "just" sample maps (which could easily go in the product sample maps folder), samples (again in the products Samples folder), presets (again in the User presets folder), and some metadata about the "expansion"(its name basically) and metadata about the sample maps (a json file in the end) and metadata about each preset (again a json file)

        Given I'm using a custom preset browser and a custom sample map browser I think it would all be transparent to the end user...come usage time.

        HISE Development for hire.
        www.channelrobot.com

        DanHD 1 Reply Last reply Reply Quote 1
        • DanHD
          DanH @Lindon
          last edited by

          @Lindon Where do the sample maps live after installing a plugin? You can find the .ch1 and preset files easily, but not the sample maps and I wondered if they were baked into the plugin instead....

          DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
          https://dhplugins.com/ | https://dcbreaks.com/
          London, UK

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

            @DanH Yes you're right, I was forgetting that they are part of the plugin, so Lindon would have to issue an update to his plugin that contains all the sample maps, but only the users who have the presets and the samples would be able to make use of them.

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

            DanHD 1 Reply Last reply Reply Quote 0
            • DanHD
              DanH @d.healey
              last edited by

              @d-healey Could using an expansion 'bake in' the new sample maps to an existing plugin?

              DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
              https://dhplugins.com/ | https://dcbreaks.com/
              London, UK

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

                @DanH No, only way to do that is to recompile the plugin.

                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 - yes - bummer - not what I want AT ALL. So any ideas how I can use the expansion system to get to offer expansions that work with the existing sample set?

                  HISE Development for hire.
                  www.channelrobot.com

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

                    @Lindon Expansions can contain their own JSON files in the additional source code directory, maybe that would be the way to go with your presests...

                    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 - I'm not really worried about the presets its the sounds I'm concerned about - a picture may help: this is the "sound browser":

                      a89e3a48-b79d-460c-b029-c730edb46b0d-image.png

                      So you can see there are 4 voices:

                      • and a list of expansions (and the "Factory" - so sounds shipped with the base product)

                      I want to be able to select Voice 1, and then load the sample map called Bassica from the Factory sample maps, and it loads and stays there in voice 1.

                      Then select Voice 2 and choose to the Substrate expansion from the list on the left, then select a sample map called "BigBadBass" (which is shipped with the Substrate expansion only) and it loads into Voice 2 and stays there.

                      I now want to be able to play these sounds AT THE SAME TIME - voice 1 and voice 2

                      I can do all the displaying of names and sample maps no problem, but I'm not sure I can use sample maps from different expansions at the same time...

                      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 I don't think that's possible. Switching expansions is like loading a different HISE plugin so you only get access to what's in that expansion. We'd need some kind of sub-expansion system for that.

                        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 damn damn damn damn damn damn.....

                          ~@Christoph-Hart !!!! Help!!!

                          HISE Development for hire.
                          www.channelrobot.com

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

                            It might be possible to hack it with the file system API. When the user switches expansion you get the name of the expasion they want, then they select the sounds, which will give you the name of the sounds, and then you load the sample map manually using the File System API. I have no idea if it will work but might be a route to investigate.

                            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 - yeah I was sorta thinking along the same lines - can I not

                              Sampler1.asSampler.loadSampleMap()

                              where might be:

                              Bassica -- which loads the sample map from the factory shipped set
                              {EXP::Substrate}BigBadBass -- which would load a sample map from the expansion...

                              • I guess (before I go see if this is possible even) I wanted to check to see if anyone has done this and it works/doesnt work...

                              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 I think you're in new territory, let us know if it works :)

                                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 well currently I cant get any of the expansion commands to work at all:

                                  from your video I have

                                  HISE_ENABLE_EXPANSIONS=1
                                  HI_ENABLE_EXPANSION_EDITING=1

                                  but in hi_core

                                  there is no HISE_ENABLE_EXPANSIONS

                                  so I cant set that, there is however:

                                  HISE_USE_CUSTOM_EXPANSION_TYPE

                                  -- worryingly for my project the tutorials from Christoph seem to work oK...

                                  HISE Development for hire.
                                  www.channelrobot.com

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

                                    @Lindon Those flags are no longer required. Christoph added a new option in the project preferences that he forgot to tell anyone about until last month :p

                                    Set it to FilesOnly - nobody knows what the other choices do.
                                    2214abce-f4de-4890-89fb-45cc8959c264-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 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
                                            • First post
                                              Last post

                                            23

                                            Online

                                            1.8k

                                            Users

                                            12.0k

                                            Topics

                                            104.4k

                                            Posts