How do you load samples into the sampler via scripting?
-
Any hints?
Make Artificial?
get value from Velocity Modulator?
setVoiceGainValue? -
What do you mean with velocity sensitive? Just drop a velocity modulator anywhere you want "velocity sensitivity".
-
@Christoph-Hart when I load a sample into the Audio Loop Player, it plays the sample at 127, no matter what the incoming velocity is.
-
confirmed, all VoiceStartModulators don't seem to have any effect on the GainChain.
-
Really? Is it just happening on the loop player?
-
jup, only on the Audio-Loop player.
-
I'm also noticing a discrepancy in the waveform view.
https://youtu.be/96DzxI5vTYA
It appears that the center line of wav image shifts depending on the sample. Check out this video for a better explanation. -
@Christoph-Hart Anything else I can do to help track this down? Or do yo know what it might be?
-
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.