Directly fade in and out samples from two samplers on one MIDI note?
-
Directly fade in and out samples from two samplers on one MIDI note?
I want to switch samples through KeySwitch on a note, and when the second KS starts, Sampler1 will fade out and Sampler2 will fade in,How can this be done?
-
@CatABC You'll need to have both samples playing at the same time. Then when the keyswitch is pressed you can fade one in and the other out.
-
@d-healey I don't know how to edit the code
, Could you please help me?Thank you very much
-
@CatABC said in Directly fade in and out samples from two samplers on one MIDI note?:
Could you please help me
You're going to need to start scripting. It's not the most simple thing to implement though and the exact method will depend on how you've mapped your samples.
-
@d-healey
I want to useSynth.addVolumeFade(int eventId, int fadeTimeMilliseconds, int targetVolume)
to control the Gain parameter of Simple Gain, but I don't know what to write as eventId,
Do you know how to edit it? -
@CatABC I recommend you start with my scripting 101 video. The addVolumeFade function is for controlling the volume of individual events, it's not used for controlling the simple gain.
I think addVolumeFade is probably a good option though, deepening on how the samples are mapped and being triggered.
-
@d-healey OK, thank you for your guidance. I think I can achieve the effect I want in the near future.