[Solved] Sampler Glide Script Broken
-
@d-healey Thank you. It looks like the GLIDESCRIPT.js that I'm using has been replaced with portGlide.js on github? Is that the new version?
Would I need to just swap the script files over in my projects scripts folder? I can't remember how I added it in now it's been that long. I'll try and find the original post and re-trace my steps...
-
Thank you. It looks like the GLIDESCRIPT.js that I'm using has been replaced with portGlide.js on github?
Hmmm, you're right, but that is a really old script so I must have screwed something up in my git repo. Let me check it out.
-
Ah ok, it's this script you want https://github.com/davidhealey/HISE-Scripting-Framework/blob/master/modules/monoMode.js
Looks like I added a check to prevent that error you're getting ;)
if (time.getValue() > 0 && eventId != -1)
-
@d-healey Amazing, Thats got it! It's back to normal now working again. Thanks!
I'll have to start keeping up with the new github uploads then it seems.
Thats made my day mate. I've finally finished my first sampler instrument project now thanks to your help there. Thank you!!!
-
Ah damn. 1 last obstacle just reared its ugly head!
Converting the samples to monoliths pop- up said that I need to change the name of the sampler from Sampler1 to just Sampler.
Done that and changed all instances in the code for the combo box switcher.. but it says that the getSampleMapList function can't be found now? I think I've missed something..
(Line 71 is the sample maps array)
Interface:! Line 71, column 48: function not found {SW50ZXJmYWNlfHwxOTM1fDcxfDQ4}
//Sampler const var Sampler = Synth.getChildSynth("Sampler"); //Sample maps array const var sampleMaps = Sampler.getSampleMapList(); //Combo Box const var cmbSampleMap = Content.getComponent("cmbSampleMap"); cmbSampleMap.set("items", sampleMaps.join("\n")); inline function oncmbSampleMapControl(component, value) { Sampler.asSampler().loadSampleMap(sampleMaps[value-1]); }; Content.getComponent("cmbSampleMap").setControlCallback(oncmbSampleMapControl);
-
@SteveRiggs Why can't it be called
Sampler1
? Seems like a strange error message.Sampler
is an internal HISE object so I assume that's why you're getting the function not found error. -
@d-healey Not sure. It's weird as it worked before when I did a test version with just 1 sample. I get this pop-up now when going to tools/convert all samples to monoliths + sample maps
-
@d-healey ..I think I was using HISE 1.6.0 then. It definitely worked though and I haven't changed the name of the sampler since
-
Strange, maybe make a blank .hip file with a single sampler in it (in the same project) and see if you can export your sample maps from there.
-
@SteveRiggs I get this a lot. Theres a really simple work around, if you have a sampler called "Sampler" then add another (with nothing in it) called "Sampler1"
-
@d-healey @Lindon Both very clever ideas!
I just made a new blank .hip in the same project folder and tried saving as monoliths and exporting samplers for installer, but I can't seem to find either a new .ch or .hr1 file anywhere.
It said all samples were exported without errors, and the target directory is the project folder. I'm pretty sure the .ch file went to the samples folder last time, and the .hr1 file was in the main project folder? Neither have gone in there this time though.
-
-
-
@SteveRiggs No idea, I would expect them to be in the Samples folder.
-
@d-healey Thats what I thought. Should be the same as last time. Weird.
It's saying there are a couple of files with the wrong ID as well. Not sure if that could be the reason why, or how I'd go about fixing them.
Sorry about all this! This is my first sampled instrument so I've not exported one before thats finished.
-
My guess would be that there shouldn't be spaces in the names of the sample maps?
I'm not sure how to fix an absolute path though, or what that is?
-
Your raw samples (wav/aiff) should be inside the Samples folder. In your sample map they should have the
{PROJECT_FOLDER}
wildcard in the path, this will make them relative and not absolute. This is the default behaviour of HISE when you map samples by dragging them in from the Samples folder. -
@d-healey Ah, the drum samples had a different path. Fixing that now. Thank you!
Any idea why the ID is wrong for the .xml file though? I'm sure what would be classed as wrong. Do the spaces make a difference?
-
@SteveRiggs I don't think spaces make a difference
-
@d-healey Damn. Not sure what to do about that bit then. I wonder what it means by 'the correct ID'?