Sample Import Tutorial - It's Broken!
-
Thanks, that's definitely closer, but the main issue persists.
The interesting thing, is that this situation does not work, playback does not match up with the loop points. But when you hit REVERSE and then REVERSE again to flip it back to normal... Hurrah, suddenly it works perfectly.
It's very strange. I wonder if I need to raise this as a bug with Hise, because I can't spot what I'm doing wrongly.
-
-
What's really odd is that the functionality for the 'reverse' button aren't visible. I am struggling to find any place where it is actually used to reverse the playback, yet, it mysteriously works.
Perhaps this topic is too advanced for me! I need to learn more about the inner workings of Hise.It would be really nice to get this fixed.
A lot of my Kontakt products involved doing wacky things with sampling, it would be fantastic to get this stuff working in Hise. It all works apart from the loop stuff. I wonder if something changed in Hise to cause this issue, or if the template always had this problem and it just hadn't been tested robustly.Looking at the History, it seems that the Sampler isn't really intended to be used for dynamically controlling for external samples.
-
@griffinboy said in Sample Import Tutorial - It's Broken!:
Looking at the History, it seems that the Sampler isn't really intended to be used for dynamically controlling for external samples.
Yes you're right with that assumption. The priority of the sampler module is to allow high performant streaming of large sample sets and while you can bend it a little bit into the direction of a "creative" sampler tool, it will quickly show its limitations in this regard.
If you really want to go crazy with sample manipulation, I would actually encourage you to dive into the C++ side and create your custom sample playback node (you can get a basic starting point from the file_player and granulator nodes). This might be even a good part 3 of your tutorial series after the filter :)
Also, this:
https://docs.hise.dev/tutorials/scriptnode/index.html#snex-oneshot-player
-
@Christoph-Hart
Thanks for the response, I was hoping to tap into the sampler to make use of the disk streaming and other fancy optimisations, but you are right.
A custom solution will allow for much more direct control over the buffer(s), which will probably be much more beneficial in the long run. -
@griffinboy said in Sample Import Tutorial - It's Broken!:
@Christoph-Hart
Thanks for the response, I was hoping to tap into the sampler to make use of the disk streaming and other fancy optimisations, but you are right.
A custom solution will allow for much more direct control over the buffer(s), which will probably be much more beneficial in the long run.But actually @Christoph-Hart - getting the loop points to work correctly is something I'm really going to need in an up-coming project so sorting this to be consistent would eb a win for me.
-
@Lindon said in Sample Import Tutorial - It's Broken!:
@griffinboy said in Sample Import Tutorial - It's Broken!:
@Christoph-Hart
Thanks for the response, I was hoping to tap into the sampler to make use of the disk streaming and other fancy optimisations, but you are right.
A custom solution will allow for much more direct control over the buffer(s), which will probably be much more beneficial in the long run.But actually @Christoph-Hart - getting the loop points to work correctly is something I'm really going to need in an up-coming project so sorting this to be consistent would eb a win for me.
+1 - I would love to make use of the tutorial project for this as well. as an alternative, adding a crossfade function to the audio loop player would be a great solution
-
In case He doesn't fix it, I'm working on a custom solution now.
I'll upload it when it's working. -
-
Edit, we are halfway there. I've got polyphonic playback with Cubic interpolation.
Working on the looping now.@Christoph-Hart By the way, what are you finding works well for antialising the sampler? I've not written one of these before and I'm wondering if you have a particular method.
I'm guessing interpolation + oversampling then a filter at nyquist then downsampling? As like the first things that can be done. -
@griffinboy actually I‘m doing linear interpolation with no oversampling on most sample playback algorithms. Yes there is a drastic difference if you look for it with artificial signals and a high repitch ratio but for the usual use case it‘s not worth the performance IMHO.
Don‘t bother about oversampling (you can always wrap your node later), but if you‘re using the index classes from SNEX then you can just swap linear and hermite and check the difference between linear and cubic interpolation.
-
@Christoph-Hart
Uh oh! In that case I must be doing something badly because I'm getting worse aliasing than you, with more advanced interpolation
I was getting it so bad I even tried windowed sinc AND oversampling.
Back to the drawing board then.Edit: Fixed it, thanks that was helpful to know. I'm getting almost no visible aliasing now. I can probably back off it a bunch. No wonder I couldn't find any articles online about antialiasing samplers. I was surprised if it was such an issue xD