Behaviour of sustain pedal for strings sfz

Link to good samples/soundfonts at http://wiki.linuxaudio.org/wiki/free_audio_data

Moderators: MattKingUSA, khz

Post Reply
User avatar
noedig
Established Member
Posts: 233
Joined: Wed Feb 12, 2014 4:39 am
Location: South Africa
Has thanked: 9 times
Been thanked: 52 times

Behaviour of sustain pedal for strings sfz

Post by noedig »

Usually, for most strings sfz instruments, holding down the sustain pedal will cause the sound to loop until the pedal is released.

I noticed that the strings on my Yamaha keyboard behaves differently. When holding in the note, it loops until released. When holding in the pedal and releasing the note, it does not loop continuously, but rather fades out with a longer decay compared to when the pedal was not held down. (Similar to piano sound behaviour).

Is there an easy way (e.g. adding a few lines) to edit a strings sfz file to display this behaviour?
j_e_f_f_g
Established Member
Posts: 2032
Joined: Fri Aug 10, 2012 10:48 pm
Been thanked: 357 times

Re: Behaviour of sustain pedal for strings sfz

Post by j_e_f_f_g »

Use the longer ampeg_release setting, in a group that is triggered only when the sustain pedal is on. For example, if you're using my jg_violins.sfz ...

Code: Select all

<group> locc64=64 hicc64=127 ampeg_hold=100 ampeg_release=6
<region> sample=3_A.wav pitch_keycenter=57 hikey=58
<region> sample=4_C.wav pitch_keycenter=60 lokey=59 hikey=61
<region> sample=4_Eb.wav pitch_keycenter=63 lokey=62 hikey=64
<region> sample=4_G.wav pitch_keycenter=67 lokey=65 hikey=68
<region> sample=4_B.wav pitch_keycenter=71 lokey=69 hikey=72
<region> sample=5_Eb.wav pitch_keycenter=75 lokey=73 hikey=76
<region> sample=5_G.wav pitch_keycenter=79 lokey=77 hikey=80
<region> sample=5_B.wav pitch_keycenter=83 lokey=81 hikey=85
<region> sample=6_E.wav pitch_keycenter=88 lokey=86

<group> locc64=0 hicc64=63 ampeg_hold=100 ampeg_release=0.5
<region> sample=3_A.wav pitch_keycenter=57 hikey=58
<region> sample=4_C.wav pitch_keycenter=60 lokey=59 hikey=61
<region> sample=4_Eb.wav pitch_keycenter=63 lokey=62 hikey=64
<region> sample=4_G.wav pitch_keycenter=67 lokey=65 hikey=68
<region> sample=4_B.wav pitch_keycenter=71 lokey=69 hikey=72
<region> sample=5_Eb.wav pitch_keycenter=75 lokey=73 hikey=76
<region> sample=5_G.wav pitch_keycenter=79 lokey=77 hikey=80
<region> sample=5_B.wav pitch_keycenter=83 lokey=81 hikey=85
<region> sample=6_E.wav pitch_keycenter=88 lokey=86
Increase the value of the first ampeg_release if you want a longer fade, Decrease for shorter.

Author of BackupBand at https://sourceforge.net/projects/backupband/files/
My fans show their support by mentioning my name in their signature.

Post Reply