Creating an Automation Script to Convert WAV + SampleMap/XML Files into Monolith Sample Libraries
-
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!
-
@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. -
@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. :) -
@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.
-
@d-healey i tried but it export 64kb empty monolith..
-
@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?
-
@d-healey yes,they are
-
@selfworksbg sounds like you've found a bug
-
@selfworksbg how many samples are in each sample map?
-
@d-healey im on the mac m4 hise is builded from stable git branch.
Im not sure is it my false or.. -
@selfworksbg build the develop branch. Can you upload one of the sample maps?
-
@d-healey Hi, i build dev branch and i try to convert samples to monolith but here is what happening:
https://youtu.be/6QCtKAOqIz0 -
@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.