I have noticed that if I change the sample start/end position of a wave sample, it is changed for every occurrence of that wave sample. Is there a way to have different mapping (or different key assignment) to have different sample start/end?
Best posts made by RCJacH
-
Q: Different Sample start/end of the same sample for different mapping
-
RE: Scriptnode is fun!
@christoph-hart I updated to the latest commit in develop branch and compilation is successful again.
Latest posts made by RCJacH
-
Do we need to manually NoteOff every artificial note on?
In case some samplers are set to One Shot and the samples are really short, do I need to use Synth.noteOffByEventID() if I do not need to stop the sample playback? Is there any performance penalty for hanging NoteOns?
-
RE: Modular samplemap xml
@d-healey Well let's look at guitar libraries again. Each string has a SampleMap consisting different articulations, and each articulation has lots of velocity layers and perhaps many RRs, that's many thousand lines of <sample />. If we can split each articulation of each string to a separated XML, each file might only contain tens or at most hundreds, not only easier to read, but also easier to manipulate with select all function in text editors.
-
Modular samplemap xml
Can we add the function to import other xml files in our samplemap xml? Either with XInclude or XML eternal entities.
The ability to split xml content into different modules would be very helpful when maintaining large and complex samplemaps.
For reference:
-
RE: Again no sound after compilation :)
@d-healey How do you have different script communicate with each other without global variables?
-
RE: Again no sound after compilation :)
I found the error.
It's caused by the order of module importation with include.
My guess is that because I'm using many global objects (with arrays), when compiling namespaces, HiSE replaces the variable with the pointer of those global objects during the copying and paste during the "include" process. So if the global object was not created before including a namespace that uses it, the pointer will return undefined objects.
The problem is that, when recompiling scripts in HiSE, the "include" process does return the correct pointer to the arrays or whatever.
Is that some kind of memory leak with variables?
-
RE: Again no sound after compilation :)
@lindon The project might be a little too messy to look at, although I do have it on github https://github.com/RCJacH/hummingbird-in-hise.
I just found out why it's not making any sound.
When I first load the preset in HiSE, key triggers do not play any sound, but they do after I recompile all scripts. And since I normally do not reload HiSE preset while writing scripts, I did not notice this bug at all.Now the problem is to find out why scripts don't work initially, only after recompilation.
-
RE: Again no sound after compilation :)
Okay I created a mini project with a sampler under Master Chain using a single sample (then later on with a samplemap from the real project), with no script, and the samples are playing in the vsti. So I can conclude it's not a problem with sample location or sample format.
Could be the scripts.
How can I debug them in the DAW though? They work fine using HiSE standalone.
-
RE: Again no sound after compilation :)
@d-healey I do see the UI keyboard animate when playing on MIDI keyboard
-
Again no sound after compilation :)
I'm trying to make a MVP for my sample library, and I have read through the forum on related topic but still couldn't figure out how to fix the issue.
So basically sample playback is fine when debugging in the HiSE standalone (triggered with MIDI keyboard), I even added a keyboard in the gui (with no other component) and made sure that it plays audio in HiSE standalone, however the compiled plugin, standalone or vsti, plays no sound.
I suspect it might be a problem with sample location or sample format.
I have all my samples in WAV files residing in the Samples folder in my project folder, and all links in the SampleMaps are relative ones using the {PROJECT_FOLDER} wildcard. And the path in the LinkWindows file points to the Samples folder of the project.
What am I missing?
-
RE: Scriptnode is fun!
@christoph-hart I updated to the latest commit in develop branch and compilation is successful again.