Forum
    • Categories
    • Register
    • Login

    Creating an Automation Script to Convert WAV + SampleMap/XML Files into Monolith Sample Libraries

    Scheduled Pinned Locked Moved Scripting
    14 Posts 3 Posters 2.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.
    • B
      bozhidar
      last edited by

      Hi HISE community,

      I’m exploring ways to streamline sample library creation and I want to automate the process of converting raw WAV files along with their corresponding SampleMap/XML files into monolith sample libraries that can be loaded in HISE.

      Specifically, I’m looking for guidance on:

      Best practices for reading and parsing SampleMap/XML files.

      Automatically mapping WAV files to the correct zones/keys/velocities.

      Generating a single monolith library that can be distributed or loaded directly into HISE.

      Recommended scripting approaches (e.g., HISE scripting, Python, or external tools).

      If anyone has experience with similar automation or can share code snippets or workflow tips, that would be amazing.

      Thanks in advance!

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

        @selfworksbg said in Creating an Automation Script to Convert WAV + SampleMap/XML Files into Monolith Sample Libraries:

        converting raw WAV files along with their corresponding SampleMap/XML files into monolith

        There is a tool to do this in the HISE sampler. Right click in the mapping window, select Tools > (Re)encode all sample maps as HLAC monolith.

        @selfworksbg said in Creating an Automation Script to Convert WAV + SampleMap/XML Files into Monolith Sample Libraries:

        Best practices for reading and parsing SampleMap/XML files.

        HISE Script is the best way to process a sample map: https://forum.hise.audio/topic/64/fun-with-regex?_=1757720333122

        @selfworksbg said in Creating an Automation Script to Convert WAV + SampleMap/XML Files into Monolith Sample Libraries:

        Automatically mapping WAV files to the correct zones/keys/velocities.

        Use HISE's automapper

        @selfworksbg said in Creating an Automation Script to Convert WAV + SampleMap/XML Files into Monolith Sample Libraries:

        Generating a single monolith library that can be distributed or loaded directly into HISE.

        Export > Package sample monolith files. This will create an hr file that will work with HISE's built in sample installer.

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

        B 1 Reply Last reply Reply Quote 1
        • B
          bozhidar @David Healey
          last edited by

          @d-healey Hi, yes i know that in the interface can be done but im looking for some script or command that i can execute programmatically.
          If you have thousands of samples you will go to click one by one?
          Soo im looking for automatisation. :)

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

            @selfworksbg said in Creating an Automation Script to Convert WAV + SampleMap/XML Files into Monolith Sample Libraries:

            If you have thousands of samples you will go to click one by one?

            Export > Package sample monolith files. will convert all sample maps in your project in one go.

            To map samples programmatically take a look at the link I posted above.

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

            B 1 Reply Last reply Reply Quote 0
            • B
              bozhidar @David Healey
              last edited by

              @d-healey i tried but it export 64kb empty monolith..

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

                @selfworksbg said in Creating an Automation Script to Convert WAV + SampleMap/XML Files into Monolith Sample Libraries:

                i tried but it export 64kb empty monolith..

                Are your samples in the project's Samples folder?

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

                B 1 Reply Last reply Reply Quote 0
                • B
                  bozhidar @David Healey
                  last edited by

                  @d-healey yes,they are

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

                    @selfworksbg sounds like you've found a bug

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

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

                      @selfworksbg how many samples are in each sample map?

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

                      1 Reply Last reply Reply Quote 0
                      • B
                        bozhidar @David Healey
                        last edited by

                        @d-healey im on the mac m4 hise is builded from stable git branch.
                        Im not sure is it my false or..

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

                          @selfworksbg build the develop branch. Can you upload one of the sample maps?

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

                          B 1 Reply Last reply Reply Quote 0
                          • B
                            bozhidar @David Healey
                            last edited by

                            @d-healey Hi, i build dev branch and i try to convert samples to monolith but here is what happening:
                            https://youtu.be/6QCtKAOqIz0

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

                              @bozhidar No idea about that tool. Try the option I suggested

                              There is a tool to do this in the HISE sampler. Right click in the mapping window, select Tools > (Re)encode all sample maps as HLAC monolith.

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

                              StraticahS 1 Reply Last reply Reply Quote 0
                              • StraticahS
                                Straticah @David Healey
                                last edited by Straticah

                                @d-healey What is the easiest way to do that with expansions? (WAV to HLAC)

                                Edit: Okay worked i think: by moving everything to ProcectFolder - then moving monolith files and samplemaps back into expansion folder :)

                                creating user interfaces: www.vst-design.com
                                founder @prototype.audio https://www.prototype.audio/

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

                                53

                                Online

                                2.1k

                                Users

                                13.0k

                                Topics

                                112.8k

                                Posts