Dear Christian,
Thank you for your reply.  I did more testing on the problem I reported last 
week and I am certain it is a bug that has been remained unnoticed. I have 
attached a simple SFZ instrument that reproduces the bug. Unfortunately, the 
bug is extremely serious, avoiding producing complex instruments for 
LinuxSampler, particularly for high-quality piano instruments... Within the 
current bug, there is no way to include soft-pedal samples along with sustain 
samples and sustained-soft samples, because LinuxSampler plays false region 
samples! 

Here are the list of attached files:
1. bug.sfz which shows the main bug of LinuxSampler that plays the wrong 
region. There are 8 regions defined by categorizing the three pedals (CC64, 
CC66, and CC67) and LinuxSampler entirely fails to distinguish the categories 
when they are included together in a region.

2. on_cc.sfz is not really important, but demonstrates why we cannot use 
on_loccN for categorizing (see below).3. there are eight tiny wav files, which 
simply say their number (0 to 7). I gave each category a number with a 
corresponding audio file to really simplify the bug. I hope it helps.  

The Wav files can be downloaded from my Dropbox and are about 1 mb: 
instruments.zip

| 
| 
| 
|  |  |

 |

 |
| 
|  | 
instruments.zip

Shared with Dropbox
 |

 |

 |

 


1. Testing CC categorization on other SFZ players I did more testing to make 
sure this is indeed only happening in LinuxSampler. I tested my bug.sfz 
instrument on another SFZ player on Linux called liquidsfz and sfizz plugin. In 
Windows, I tested it with Sforzando and Aria player. All four samplers played 
the instrument correctly. So I am getting confident that it is a linuxsampler 
bug.


2. Regarding your comment on using on_loccN:There is a difference between 
on_loccN/on_hiccN and loccN/hiccN. We use on_loccN for triggering sounds that 
do not receive a particular notes. For example, if I want to add a pedal 
release noise sound to be played when a sustain pedal is pressed (which does 
not have a key number), I will write the code below:
<region> sample=sustainPress.wav on_locc64=64 on_hicc64=127 
This will trigger the noise sound anytime the cc64 is above the threshold, 
without requiring any key to be pressed. SFZ format defines the alternative 
loccN/hiccN for regions that require a note to be pressed. I put the 
documentations below for reference of those who like to read more about the 
difference:
- on_loccN/on_hiccN- loccN/hiccN





3. Solving the bug
I am willing to help with solving the bug if it requires so much effort. So 
please let me know how can we go about it and how can I make myself useful.

Cheers,
Ebad

Attachment: on_cc.sfz
Description: Binary data

Attachment: bug.sfz
Description: Binary data

_______________________________________________
Linuxsampler-devel mailing list
Linuxsampler-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxsampler-devel

Reply via email to