Bug 168

Summary: end=-1 doesn't work in the sfz engine.
Product: LinuxSampler Reporter: mickski56
Component: otherAssignee: Andreas Persson <andreas56>
Status: CLOSED FIXED    
Severity: normal CC: andreas56, cuse, mickski56
Priority: P5    
Version: SVN Trunk   
Hardware: PC   
OS: Linux   

Description mickski56 2012-01-11 01:27:44 CET
<group> loop_mode=one_shot off_by=057 key=57
<region> lovel=001 hivel=027 amp_velcurve_027=1 sample=samples\15crs_ord_07.wav
<region> lovel=028 hivel=038 amp_velcurve_038=1 sample=samples\15crs_ord_09.wav
...
...
...
...
...
...
// Choking for cymbals is same note one octave higher (not hihats)
// sample with end=-1 is not played (but must exist?)
<group> sample=samples\15crs_ord_29.wav end=-1
<region> key=061 group=049
<region> key=063 group=051
<region> key=064 group=052
<region> key=065 group=051
<region> key=067 group=055
<region> key=069 group=057

The above snippet should cut off the sample on key 57 when key 69 is pressed it doesn't.
If however you change end=-1 to volume=-60 everything works as expected. I'd just go with lowering the volume of the choking sample, but there seem to be a fair few sfz's out there that implement choking like this.
Hope this gets fixed & keep up the good work.
Thanks
Comment 1 mickski56 2012-02-19 19:24:07 CET
svn 2317 Works for me.
Thank you