Samplers- loops -start points.....
Okay I have a user who wants to playback a user-defined part of the sample - and set this via the UI - sure not a problem I think - I can set the SampleStart and SampleEnd - but they also want it to loop round this user defined area without clicking.....this I think is a bigger problem - because I cant use a x-fade, as the x-fade data would now be outside the defined playable area..
So I thought maybe I could use the loopStart and loopEnd values to define my "playable area" and then when the sample playback starts jump to the loop start point using a SampleStart Modulator - but I think this percentage based SampleStart modulator wont be accurate enough to hit the sample loop start point dead on.... so the loop will actually be a bit off..
Anyone got any good ideas how to do this?
@Lindon Could you use
Synth.playNoteWithStartOffset()instead of using a modulator?
@d-healey - maybe - but I dont know what "offset" is measured in....
@d-healey - sadly
onNoteOn() - Line 5, column 37: Max start offset is 65536 (2^16)
so not much use...
@Lindon What about the audio loop player, is that any good for this?
@d-healey - nope the user wants hundreds of sample sets...
So I tried a combo of both approaches:
I set the loop up, and moved the SampleStart 16000 before the loop , set the xfade = 16000 and used playNoteWithStartOffset = 16000
So this plays but... it clicks the first time thru as it hasnt got the relevant data it needs - it seems you have to actually play thru the x-fade data at least once to then have it used as x-fade data....
@Lindon - Okay so assuming there's no way anyone has thought of to do this.... @Christoph-Hart - I'm, thinking of suggesting a loop envelope maybe - or if possible to have the x-fade data "pre-read" so it can be used the first time thru..probably wildy complex and requires an entire restructure of the HISE Sampler....
Lindon last edited by Lindon
@d-healey -well I can see why it isnt, the x-fade "data" hasnt been read the first time thru... but if it is a bug and it can get fixed colour me a happy camper...
nope thinking about it more - I think you are right this is a bug...