Helpful Replysfz Q - Rene, are you out there?

Author
raweber
Max Output Level: -87 dBFS
  • Total Posts : 178
  • Joined: 2008/01/23 14:03:14
  • Location: Hampton Roads, VA
  • Status: offline
2008/09/30 19:57:18 (permalink)

sfz Q - Rene, are you out there?

I'm trying to implement a keyswitch for legato samples in sfz. The methodology is to use the keyswitch to switch between the sample starting at the beginning of the attack, and beginning at the loop start point, thereby eliminating the attack part of the sample. Here's an example:

<group>
loop_mode=loop_continuous
amp_veltrack=0
ampeg_sustain=15
ampeg_release=0.097
gain_cc2=24
amplfo_depthcc1=10
amplfo_freqcc3=4
sw_lokey=c0
sw_hikey=d0

//Detache Samples
<region>
sample=Moeck_Tenor\mot_c_4.wav
lokey=c2
hikey=c3
tune=13
pitch_keycenter=c3
offset=0
sw_last=c0


//Legato Samples
<region>
sample=Moeck_Tenor\mot_c_4.wav
lokey=c2
hikey=c3
tune=13
pitch_keycenter=c3
offset=54279
sw_last=d0


This is the first sample in the instrument. The "offset" value is the sample of the beginning of the loop. What happens, unfortunately, is nothing. When I play, I get no sound. (Note: the "gain_cc2 is so that I can play it with a wind controller)

So, any .sfz experts want to weigh in?

Rob Weber
Poser Composer
Music Prodution Blog: Notes from the Shore
Free Praise Music: All Things New Ministries
#1
kwgm
Max Output Level: -52.5 dBFS
  • Total Posts : 2271
  • Joined: 2006/10/12 00:14:20
  • Status: offline
RE: sfz Q - Rene, are you out there? 2008/10/01 13:33:31 (permalink)
That's a large offset you're using (54279), well over 1 second with a typical sample rate.

Are you sure you have that right?


--kwgm
#2
raweber
Max Output Level: -87 dBFS
  • Total Posts : 178
  • Joined: 2008/01/23 14:03:14
  • Location: Hampton Roads, VA
  • Status: offline
RE: sfz Q - Rene, are you out there? 2008/10/01 19:02:19 (permalink)
Here's the loop point screen from Wavosaur for that sample. The sample is over a second long.


Rob Weber
Poser Composer
Music Prodution Blog: Notes from the Shore
Free Praise Music: All Things New Ministries
#3
chad
Max Output Level: -81 dBFS
  • Total Posts : 468
  • Joined: 2008/08/15 15:17:32
  • Status: offline
RE: sfz Q - Rene, are you out there? 2008/10/02 11:32:46 (permalink) ☄ Helpfulby Hammerforce 2016/03/04 12:21:25

ORIGINAL: raweber
<group>
loop_mode=loop_continuous
amp_veltrack=0
ampeg_sustain=15
ampeg_release=0.097
gain_cc2=24
amplfo_depthcc1=10
amplfo_freqcc3=4
sw_lokey=c0
sw_hikey=d0

//Detache Samples
<region>
sample=Moeck_Tenor\mot_c_4.wav
lokey=c2
hikey=c3
tune=13
pitch_keycenter=c3
offset=0
sw_last=c0


//Legato Samples
<region>
sample=Moeck_Tenor\mot_c_4.wav
lokey=c2
hikey=c3
tune=13
pitch_keycenter=c3
offset=54279
sw_last=d0


Instead of using the sw opcodes try using group, trigger mode, and offby:

<global>
oscillator=on

//attack group
<group>
group=1
off_by=2
off_mode=normal

<region>
sample=000 - sine.wav

//legato group
<group>
group=2
off_by=1
trigger=legato

<region>
sample=000 - sine.wav
transpose=24


Cheers,
Chad
#4
Jump to:
© 2024 APG vNext Commercial Version 5.1