Bug 168 - end=-1 doesn't work in the sfz engine.
Summary: end=-1 doesn't work in the sfz engine.
Status: CLOSED FIXED
Alias: None
Product: LinuxSampler
Classification: Unclassified
Component: other (show other bugs)
Version: SVN Trunk
Hardware: PC Linux
: P5 normal
Assignee: Andreas Persson
URL:
Depends on:
Blocks:
 
Reported: 2012-01-11 01:27 CET by mickski56
Modified: 2013-05-31 18:27 CEST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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