Changing playback position of audio looper
-
Hi all,
I am working on my first HISE plugin where you can load in an audio file, write a formula like "T *1.25", where it then sets the playback position to the formula output every 1/60th of a second (using a timer callback).
Basically controlling the playback via a formula instead of with points, like you would do in gross beat or shaperbox timeshaper.
I am currently using an audio looper module where I am constantly stopping a note, changing the sample range and then starting a note again. This is probably not the right way to do it at all, and causes severe artifacts that sound like buffer underruns.
I tried experimenting with samplestartmod but it seems to set a random starting point.
Any ideas? I'm not sure if this is even possible without writing a full scriptfx thingy.First time using HISE (and first time making an audio plugin at all), so I apologise if what I am doing is ridiculous.
Thanks in advance,
Marbey -
@marbey consider replacing your Audio Looper with a Sampler and using a SampleStart modulator there, remember the sample start modulator will work in percentages of the range you set up for the sample (wav file) itself in the sample editor