How do you load samples into the sampler via scripting?
-
Can you send me the sample? It appears to just happen with audio files that have a DC offset.
-
@Christoph-Hart Here's a link to the samples from the video above. I don't see and can't calculate any offset in the files. They display properly in the LoopPlayer module, but not in the AudioWaveform script panel.
https://we.tl/t-qNFLXXShpII'm not concerned about the waveform display as much I am with the fixed velocity during playback ;) Do you think that's an easy fix? It's the only roadblock to finishing my current project (other than the overlapping midi issue).
-
I have fixed the velocity a few hours ago - I just forgot to add
sound.applyConstantGainModulation()
:) -
-
@Christoph-Hart Is the new version okay to build? I'm getting a bunch of errors on my Mac.
fatal error: too many errors emitted, stopping now [-ferror-limit=] 35 warnings and 20 errors generated.
-
PC build seemed to go fine... maybe it's me.
-
@Christoph-Hart I don't think it's me. I tried Xcode 10 and 8. Can't get the Mac version to compile.
-
My build server didn't complain. Also these errors look like some intermediate file BS. Try a clean rebuild, something is messing with you.
-
This post is deleted! -
Sorry for my frequent silence, first of all. It seems my commitment to distributing my own HISE project keeps phasing in and out.
That in mind, when it comes to the original subject, I was able to heavily edit the source code so that you could specify a different sample in a sample map via scripting. I don’t recommend this, as even if it had Christoph’s input, I’ve had occasional loading errors in the past, particularly over looping and whatnot, but it is a way to make use of user multisampling, for instance.