[Solved] Sampler Glide Script Broken
-
@d-healey Hi mate, sorry to bother you.
I have your glide script in one of my sampler instruments and it’s worked perfectly until today.
I just added a load of presets and used the combo box for switching sample maps method. Now though since all of my presets were added and saved, when I play anything on the keyboard I get these errors from the glide script which breaks the whole instrument…
- When playing a note on the keyboard, the samplers ADHSR seems bypassed and all the notes overlap and this error appears in the console:
GLIDE SCRIPT:! onNoteOn() - Line 18, column 35: NoteOn with ID-1 wasn't found {R0xJREUgU0NSSVBUfG9uTm90ZU9uKCl8NTA2fDE4fDM1}
- When turning the glide button on the interface, all sound cuts off and this error appears:
GLIDE SCRIPT:! onNoteOn() - Line 13, column 31: Event ID must be positive {R0xJREUgU0NSSVBUfG9uTm90ZU9uKCl8Mjg0fDEzfDMx}
Any idea whats happened? It's been working perfectly for the last 3 months since I started building it, but as sods law goes just as I’m right at the finish line with this being the very last job, it breaks.
I’ll put a snippet below. Please let me know if you need anything else or a better explanation. This is my first freelance job for a client and I was hoping to have it finished today but I can’t see whats gone wrong.
Thanks mate.
HiseSnippet 6916.3oc6cs8aabkdenrm3X4XGaGmt.En.mHzcC0FYdS2nhSh4EMxh1TjzjTxVIafyPNGRNwjyPOyPIQm3rp69x9vtX2GZSw9PQ8VfBzG2G2Vftq1tuzVrODfEnnnO4mVfh1G7+AsmKyv4LWn3HJYa4KBIxZ9lykuyuuuy47c9Nm47URSsNTWWUiKzoq1uKjKzavWouhQqrsDkU3xsLWnOkOib618AWGJpbePxXIM+qvYJW7FBE.WKetkE.oWopPYPoxBUDpVAjd4kEVFbqbUWEjs3ZYJBxT71fJoWqTdAvZoKApfdU1UEJOMWl9cE00gRbgBchqgqxPm9jbjed7UyH1VToNzlDG2Fpx0g4k6HaXSsTpafXvUDkfUk6vj54RkqtpRV01p8PMuSvGiqqX86J1DVPDmrI34B8ZBRxFpZULDMf5bgNYFUo9UZotsBM8aHqKWqMD+PbtJnBhRdE01RXNFSkKaK41RkrfQcNtP7krA0SPA0Kwulrj7.51f64Iu.XmCV7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eyCduGS2yPsC0HNDgRBTEqPLiyw8+Cp30weC
-
I loaded your snippet and dragged some samples into the sampler, I don't get an error during playback though. See if you can make a minimal example (preferably with a Synth rather than a sampler) so we can isolate this problem and figure out the cause.
What version of HISE are you using and what version of the glide script?
-
@d-healey Thanks mate! It happened the second I compiled after adding my last preset in. It even worked fine while adding every preset along the way. Frustrating.
I'm on the scripnode version from 1st Sept.
Not sure which version of the glide script though. It's just called GLIDESCRIPT.js Shall I upload the script here?
Would it be easier for me to upload the whole project folder for you so you can see properly? I can send the upload link in a PM?
-
@SteveRiggs Just check if you're using the latest version of the script from github. I remember fixing some similar issues to this in the past. If you are using the latest version then share your project and I'll take a look.
-
@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?