Okay, thank you for trying, David.
It seems it is time to get hands dirty with HISE compilation. :)
Okay, thank you for trying, David.
It seems it is time to get hands dirty with HISE compilation. :)
Ah, there is Compile button. I did not see it hidden in 50 shades of grey. Thank you, David, this should help. :)
I have tried to recreate code from file that cannot be loaded and managed to get HISE crashing when clicking Compile button.
Steps to reproduce:
const var MAX_VOICES = 1;
const var knNumVoices = Content.addKnob("knNumVoices", 5, 6);
// [JSON knNumVoices]
Content.setPropertiesFromJSON("knNumVoices", {
"text": "# Voices",
"min": 1,
"max": 51,
"macroControl": "Macro 1",
"stepSize": "1",
"defaultValue": "1"
});
// [/JSON knNumVoices]
inline function onknNumVoicesControl(component, value)
{
//Add your custom logic here...
for (i = 0; i < NUM_VOICES; i++) {
sampler = Synth.getSampler("Sampler" + 1);
if (i < value) {
sampler.setAttribute('bypassed', 0);
} else {
sampler.setAttribute('bypassed', 1);
}
}
};
knNumVoices.setControlCallback(onknNumVoicesControl);
Actual result: HISE crashes, also happens when entering this code
Expected result: Compilation is performed and problems shown
Would you have any idea on what could be causing this crash?
Hi David,
thank you for getting back to me.
I should have add more context. This was minimal case which caused the UI not being shown in HISE.
I had more elaborate example, however HISE crashes when I try to load it (in HISE project from first post it is the Preset.hip file).
You are seeing those JS errors in console - Do you mean the Console panel? If so, I might be missing some setting, because there are no messages about JS code shown in my HISE. Just messages like
Master Chain:! RELEASE_RESOURCES_CALLED
TestBug: Save TestBug to /Users/whatever/Documents/HISE-UltraBass/Presets
What is the HISE version / build you use, please? I would like to see those errors as well, I could do so much more with them. :)
I have to admit, I haven't touch JavaScript for Long time, being Java developer myself.
To the use case: I was thinking of creating instrument from mono synth, which would use 50-voice unison (each note sampled individually from analogue synth, 50 times) with selectable number of voices and (random) panning of each voice.
As I understood from Note panning thread, it is not possible to change pan of individual note (= all samples being triggered by one note).
However, in Sample editor, there is setting for Pan for individual sample.
Controls for this instrument would be:
So I planned to use 50 samplers called Sampler0 - Sampler 49, mute / unmute them according to number of voices configured and generate random can setting for each note in sampler (each note has separate sample).
Not sure, if it would be possible to randomize pan settings for each sample in 50 samplers for each note (due to performance) or just when enabling sampler.
The part of code I have posted was intended to retrieve those sampler instances and then perform operations on them - muting and random panning.
I suppose being able to see errors in console and being able to load the problematic file would help a lot.
When creating UI control (e.g. knob) and adding callback function, when opening file again the UI is not visible in Midi Processor -≥ Interface. Additionally, I was also able to create file with JS callback code that makes HISE crash on load and sadly was not able to edit it back in preset file (seems like serialized format, maybe there is consistency check).
Attaching file with HISE project (without samples) to demonstrate the problem. Problematic files are TestBug.hip (GUI not shown) and Preset.hip (loading this file crashes HISE). https://drive.google.com/file/d/0B3Nkp-y-UjAsM080aVZHazAtSW8/view?usp=sharing
System details:
Reproduction steps:
Expected result: GUI for design is shown
Actual result: GUI for design is not shown
Hello,
would you know if this is possible or push me to the right direction: Is it possible to change pan of currently played note?
I am thinking of randomized pan for each played note. It should also work with same sample stretched across multiple notes.
Hi Christoph,
thank you for the reply. I will have look at HISE project system to be sure where to put samples in order to be portable to another computer. Also sample maps need more studying on my side.
Redirect Sample Folder seems interesting, thank you. On Mac I sometimes place sample libraries on different hard drive and then create filesystem link. Being able to do that from sampler is very comfortable.
I discovered HISE several days ago and it has impressive set of features while being easy to use for common scenarios. I especially appreciate mapping samples automatically by file name and round robins are breeze. Thank you for this nice piece of software!
When using action Collect external files into Project folder and selecting to copy samples to project folder, samples files are copied, but paths are not updated in Sampler configuration. When removing original files, Sampler cannot find samples and has to be reconfigured.
Steps to reproduce:
Expected result: Instrument loads correctly
Actual result: Instrument is missing sample file
Environment: Mac OS El Capitan, HISE standalone