Question - Sampler Monophonic Glides for Audio anybody??
@LeeC So in your example all of the samples between C4 and E4 would be triggered and crossfaded/pitch bent? Or you want to pitch bend the C4 sample up to E4?
@d-healey I was hoping to "pitch bend the C4 sample up to E4" or at least give the illusion that this has happened
Is this a complex thing to implement?
Not particularly complicated. I think I already did it with this script - https://github.com/davidhealey/HISE-Scripting-Framework/blob/master/modules/portGlide.js - this is GPLv3 licensed.
@d-healey Absolute legend!
Will give this a try when I get back later and will feedback.
So do I need to place a midi processor before the sampler and then paste the script that you've written into the onNoteOn section?
More generally, where do I place the script for it to work on wavs in the sampler?
Sorry for the noob question
Still learning the ropes & your tutorials have helped massively!!
Add a script processor to the sampler then copy the entire script I linked, right click in the script processor and select load script from clipboard.
@d-healey Perfect will try this out later. Much Appreciated!
So just gave your script a try.
All seemed to load in successfully with the instructions you provided.
Unfortunately, I've tried with a few sample maps with no success.
Continuing the example earlier in this thread, the initial note C4 sounds as usual but E4 is no longer heard with the script is active. I've posted a screenshot of the current sampler settings in case there's anything glaring obvious that I'm doing wrong.
Try increasing max interval
@d-healey Just increased max interval all the way to no avail.
Did notice that the following error is shown in the console when hitting E4 after C4 though
Script Processor1:! onTimer() - Line 15, column 15: Unqualified assignments are not supported anymore. Use
Line 15 in the 'On Timer' section relates to the following line of code.
bendAmount = knbBendAmount.getValue();
Not sure if this is the reason for the lack of glide though
Well the good news is the script works once you add
reg bendAmount;in the init callback (this wasn't needed when I wrote the script back in 2017). The bad news is I was thinking of the wrong script when I pointed you to this one This actually plays and crossfades and pitch fades every sample in the glide.
The script you want is this one - https://raw.githubusercontent.com/davidhealey/HISE-Scripting-Framework/master/modules/monoMode.js
@d-healey Wow that actually sounds pretty ace man!
Really appreciate all of your scripting skills
Works a treat.
@d-healey Honestly, that script absolutely nailed it!
Just realised that you updated this script @d-healey.
Thanks again for all your help