@Christoph-Hart and is hard to add this thing of Api :))? In my application, users import samples which create a temporary sample map that they can modify. After modifications, both the sample map and the WAV samples are copied to a custom folder. I need to know how to compress HLAC files in a temporary folder and then copy the ID.ch file to the custom folder
Posts
-
RE: Does HISE Support FLAC Files in SampleMaps?
-
RE: Does HISE Support FLAC Files in SampleMaps?
Is there an API available in HISE for encoding user-created sample maps with HLAC ? I want users to be able to export their sample maps and save the encoded samples in a specific location...
-
Does HISE Support FLAC Files in SampleMaps?
Does HISE Support FLAC Files in SampleMaps?
Hi,
I'm trying to import a SampleMap with FLAC files in HISE, but the audio isn't working. Does HISE support FLAC file format for SampleMaps?
Thanks!
-
RE: Question About Sample Map Preloading...
I made a screen recording that shows what this custom sample map contains. It is for different sample folders, allowing users to import samples and create a custom sample map for their samples.
-
RE: Question About Sample Map Preloading...
@d-healey the purpose of my proj is the user to use vst in live performance ,
for keyboard or midi accordion(very popular in my country),
i wanted to know if exist a solution to change sample map without kill audio engine,
because in our music style the samples sound it changes very often,
and that time of preloading is a problem, I thought I could somehow do the preloading in another sampler without killing the current sampler. -
RE: Question About Sample Map Preloading...
@d-healey said in Question About Sample Map Preloading...:
Is the purpose to switch between articulations?
no, not for articulationsi put a video with project,
and I've been stuck for a while, because I relied on that lazyload, but I didn't test on large samples, and I continued to work without thinking about this problem that I won't be able to quickly change samplemaps, and I thought that I would could somehow in the background task do preloading in another sampler, while the other modules don't stop
-
RE: Question About Sample Map Preloading...
@d-healey my project is a samples player... in my country , Romania, is very used that samples module Juzi Sound, and i want to create same with hise...for live keyboard players, and it needs to change quickly that preset without affect live playing... and i not use hlac compression, because, users can modify samples from a sample map, combine them, modify name, import new Samples, Create new Sample map, etc...like JuziSound.
-
RE: Question About Sample Map Preloading...
@d-healey I understand, thank you! so the solution for me is to use it lazyload and small samples( because with lazyload , for large sample , is sound weird), to change that samplesmap almost instantly
-
Question About Sample Map Preloading...
i have 2 samplers, i change samplemap for sampler1, sampler 2 stops playing, and after preloading from sampler1 is finished, both of them is playing! I want to know if exist a method to make that preloading without affect others samplers...
-
RE: How to ignore file.loadAsObjec(), if file is not a valid json
And David...maybe I'm wrong somewhere but if i use this
const ARR_TEST = [1, 2, 3];
if(ARR_TEST.length !== 3)
Console.print("test");but if i use this it work
if(parseInt(ARR_TEST.length) !== 3)
Console.print("test"); -
RE: How to ignore file.loadAsObjec(), if file is not a valid json
i use return -1 :)) because this check func is used in other func and and i get numbers for diff errors, and other things
/// This if statement isn't needed
if (typeof file !== "object" || file == undefined || file == null) return -1;I thought it was a problem for that file and that's why I was getting an error at loadAsObject,
but your version is a working method ... with loadAsString , and after parseAsJson,THANK YOU
-
RE: How to ignore file.loadAsObjec(), if file is not a valid json
thank you David ,
local s = file.loadAsString();
local obj = s.parseAsJSON();if i use this it work
-
RE: How to ignore file.loadAsObjec(), if file is not a valid json
and for more context this is in the invalid file :
{
"bankCC": [
-1
-1
]
}that comma is missing
-
RE: How to ignore file.loadAsObjec(), if file is not a valid json
parseInt(objFile.bankCC.length) == 0 for this... i need to use parse int, only in that way is work
is a bug or ? -
RE: How to ignore file.loadAsObjec(), if file is not a valid json
inline function checkFileAssignBankCC(file) { if(!file.isFile()) return -1; if(typeof file !== "object" || file == undefined || file == null) return -1; local objFile = file.loadAsObject(); if (!isDefined(objFile)) objFile = ""; if(!isDefined(objFile.bankCC)) return -1; if(parseInt(objFile.bankCC.length) == 0 || parseInt(objFile.bankCC.length) !== 14) return -1; for(i = 0; i < objFile.bankCC.length; i++) { if(typeof i !== "number") return -1; }; return true; };
-
RE: How to ignore file.loadAsObjec(), if file is not a valid json
not working
... I also tried this option, and I get the same error on the line where loadAsObject is -
How to ignore file.loadAsObjec(), if file is not a valid json
local objFile = file.loadAsObject() == null ? "" : file.loadAsObject();
in this example, if user use a file is not valid json, my code can't ignore that file...
i get a syntax error "settingsGlobBankAssignCC.js (26): 11:5: error: Expected ',' or ']'
and i want if file is not a valid json , get a empty string...and recreate that file...
Hope I made myself understood. -
copy a directory folder
Is it possible to copy a directory folder? With that file API, I can only copy individual files.