Triggering different samples for Attack & Sustain
Hey Guys :)
I´m Toby and am working on a new "Sample-Instrument" for a research project.
I am trying to create an instrument with the feature to choose from different samples for attack and sustain (for example: GrandPiano Attack; Guitar Sustain). My problem here is that i have no idea how to trigger the sustain sample after the attack sample has disappeared. ( I´m searching for something that works like the "note Off" midi command for release samples. )
Do you Guys have any idea how to implement this?
Edit: the attack times may vary depending on the instrument.
@Ohnias Hi Toby
I'm not very good with samplers so someone else will surely give a better solution.
So I would say:
If you want to have 2 different instruments at a time, first you'll need two samplers
Then I see two solutions.
Either you play with an AHDSR or a Table Envelope modulator in both samplers so you can adjust the attack of the first sampler and when the sustain sampler will play, or you create 2 different artificial notes and delay the 2nd one.
Again, there might be a better solution I'm not aware of...
@Ohnias Here's an example that might work for you
The two samplers + envelopes approach is the simplest and requires minimal scripting. Another way is to use note on/off scripting, or scripted note fades, and can be achieved with one or two samplers.
@ustk Hi USTK, thanks for replying ! I think the problem here is that the attack-times vary depending on the sound-source(instrument). Than the delay-times for the sustain samples would have to know these variations...
Or do i get something wrong?
Hi @d-healey ;
"Another way is to use note on/off scripting, or scripted note fades, and can be achieved with one or two samplers."
would my problem with the varying attack-times be solved with any of these techniques?
@Ohnias If you know the attack times then you can set it manually for each note using a lookup array this can be applied to either technique. You might also be able to solve it using a note number modulator on the envelope's attack time.
This post is deleted!
@d-healey Sounds good, totally blasts my brain! How hard is it to set this up? Do you think i can implement this as a beginner?
@Ohnias Define "beginner".
@d-healey i know the basics for creating sample-library-instruments. I can create a piano-library-instrument in Hise or other samplers like kontakt with ease. Not that in with scripting yet..
@Ohnias Without scripting you should try the note number modulator method - but I suspect you'll probably need to resort to scripting in the end.
I have a YouTube playlist with scripting tutorials - https://www.youtube.com/playlist?list=PLynv7CujPCfbH2OPE-cC5F4ZK-sVGkBwx