How to properly define %relsample param
Started by nizloz




2 posts in this topic
nizloz

2 posts 1 threads Joined: Mar 2021
09-06-22, 10:53 -
#1
Hi all,

I've got a sample set that looks like this:

Code:
100_f.wav  30_f.wav  45_f.wav  60_f.wav  75_f.wav  90_f.wav
100_mf.wav  30_mf.wav  45_mf.wav  60_mf.wav  75_mf.wav  90_mf.wav
100_pp.wav  30_pp.wav  45_pp.wav  60_pp.wav  75_pp.wav  90_pp.wav
100_p.wav  30_p.wav  45_p.wav  60_p.wav  75_p.wav  90_p.wav
100_r.wav  30_r.wav  45_r.wav  60_r.wav  75_r.wav  90_r.wav
105_f.wav  35_f.wav  50_f.wav  65_f.wav  80_f.wav  95_f.wav
105_mf.wav  35_mf.wav  50_mf.wav  65_mf.wav  80_mf.wav  95_mf.wav
105_pp.wav  35_pp.wav  50_pp.wav  65_pp.wav  80_pp.wav  95_pp.wav
105_p.wav  35_p.wav  50_p.wav  65_p.wav  80_p.wav  95_p.wav
105_r.wav  35_r.wav  50_r.wav  65_r.wav  80_r.wav  95_r.wav
25_f.wav    40_f.wav  55_f.wav  70_f.wav  85_f.wav  definition.txt
25_mf.wav  40_mf.wav  55_mf.wav  70_mf.wav  85_mf.wav
25_pp.wav  40_pp.wav  55_pp.wav  70_pp.wav  85_pp.wav
25_p.wav    40_p.wav  55_p.wav  70_p.wav  85_p.wav
25_r.wav    40_r.wav  55_r.wav  70_r.wav  85_r.wav


As you can see, for each note, I've got four samples with four velocity levels. So far, everything makes sense. However, I also have a release sample for each note, '%midinote_r.wav'.

How can I properly define this in my definition.txt? I couldn't wrap my head round the explanation for this in the Config Params section on the website. I'll show you what I have so far:

Code:
%%mode=keyb
%%velmode=accurate
%%velolevs=127
%midinote_pp.wav,%velocity=31
%midinote_p.wav,%velocity=56
%midinote_mf.wav,%velocity=94
%midinote_f.wav,%velocity=127

Thanks in advance, and all the best,
Nik
noek

37 posts 0 threads Joined: Jan 2021
10-06-22, 20:02 -
#2
Hi Nik,
It's easy ... after you found out how...   Rolleyes

The config params tell only part of the story (the exact syntax). It's also worthwhile to look at Sampled release on the more_info page as well as the definition.txt of the demo samples on the distributed image.

Several ways to achieve what you want, I would make it like this:
Code:
%%mode=keyb
%%velmode=accurate
%%velolevs=4
%%relsample=S

%midinote_pp.wav,%velocity=1
%midinote_p.wav,%velocity=2
%midinote_mf.wav,%velocity=3
%midinote_f.wav,%velocity=4
%midinote_r.wav,%voice=-1
nb: if the %voice is left out, it means %voice=1

Hope this helps,
Noek.
nizloz

2 posts 1 threads Joined: Mar 2021
14-06-22, 00:27 -
#3
Amazing! Thanks so much. I will give this a go tomorrow! 
Btw - the whole %velolevs param makes a lot more sense to me now Big Grin