HISE crashes when using short (single-cycle waveform) samples in Sampler
-
Hello!
I'm using single cycle waveforms in Sampler to make a something like a synth. But HISE crashes all the time. Tried on both win and mac os.
Also tried to make a clean project with only Sampler and still no luck.
Tried to use an audio file with 2 and 4 series of single waveform cycles and it works, but when I'm looping only one cycle HISE crashes once I hit 1-2 notes.
Any ideas how to fix that?
-
Just built HISE from the fresh master branch and the issue is still there :(
-
@Christoph-Hart Seems like it's a bug, this happens immediately when it's a high note, lower notes seems more stable. I attached project file with a waveform to make it easier to test. test-single-cycle.zip
-
@DanSound If you're stretching the sample across the key range then perhaps it's too short on the higher notes and that's causing the issue.
-
@d-healey Yes, it's stretched across all keys, I can't leave only low and mid notes :)
I was using the same technique in Live's Sampler and wanted to use it in HISE.
I guess the same single cycle technique was used in HEXERACT that was built with HISE and it works fine. But i could be wrong
-
@DanSound said in HISE crashes when using short (single-cycle waveform) samples in Sampler:
@d-healey Yes, it's stretched across all keys, I can't leave only low and mid notes :)
I was using the same technique in Live's Sampler and wanted to use it in HISE.
I guess the same single cycle technique was used in HEXERACT that was built with HISE and it works fine. But i could be wrong
- its probably single cycle samples - resampled across the keyboard....not just one sample mapped across the keyboard...
-
@Lindon I'm using just one single-cycle waveform sample.
I will try to use several samples and report if this works. -
Made a C4 waveform (few cycles), then looped one cycle in HISE ... and the same issue again. Seems like it can't handle very short loops.
-
@DanSound Did you stretch it?
-
@d-healey Just a bit, to make an octave. But the second attempt is kinda stable, will see if it keep working.
-
Ok so this version is kinda stable, I still had few crashes tho. But it looks like using longer samples with loop points would be a better (more stable) solution. Or maybe Wavetable will do the job.
-
@DanSound Yes the sampler module is optimized for streaming longer samples and sometimes chokes when you load in samples that are shorter than the preload buffer size (or the audio buffer size).