I am testing out various sound fonts and encountered a problem:
Some SFZ sound fonts are displayed and you can select them using zynthian ui but they are not outputting sound.
When you open the SFZ file with an editor there is a difference between working and not working SFZ. Below an example:
Working example (analog synthbass):
ampeg_sustain=0.001 ampeg_release=0.4 ampeg_decay=30.0
pitch_keycenter=g#1 lokey=f#1 hikey=a1
pitch_keycenter=b1 lokey=a#1 hikey=c2
pitch_keycenter=d2 lokey=c#2 hikey=d#2
pitch_keycenter=f2 lokey=e2 hikey=f#2
pitch_keycenter=g#2 lokey=g2 hikey=a2
pitch_keycenter=b2 lokey=a#2 hikey=c3
pitch_keycenter=d3 lokey=c#3 hikey=e3
pitch_keycenter=g3 lokey=f3 hikey=g#3
pitch_keycenter=b3 lokey=a3 hikey=d#4
pitch_keycenter=e4 lokey=d4 hikey=g4
Not working Example (fender pick full):
<group> ampeg_decay=36 ampeg_sustain=.001 ampeg_release=.1 trigger=first off_by=1 group=1 off_mode=normal
<group> ampeg_decay=36 ampeg_sustain=.001 ampeg_release=.1 trigger=legato ampeg_attack=.01 group=1 off_by=1 off_mode=fast
<group> group=2 off_by=1 trigger=release loop_mode=one_shot ampeg_attack=.05
There where files called S1 S1l and R1 present in the directory. The content of these files is the configuration of the samples for that instrument.
<region> sample=1_E.wav hikey=f1 pitch_keycenter=e1
<region> sample=1_Ab.wav lokey=f#1 hikey=g#1 pitch_keycenter=g#1
<region> sample=1_Bb.wav lokey=a1 hikey=c2 pitch_keycenter=a#1
<region> sample=2_D.wav lokey=c#2 hikey=d#2 pitch_keycenter=d2
<region> sample=2_Gb.wav lokey=e2 hikey=f#2 pitch_keycenter=f#2
<region> sample=2_Ab.wav lokey=g2 hikey=g#2 pitch_keycenter=g#2
<region> sample=2_B.wav lokey=a2 hikey=c3 pitch_keycenter=b2
<region> sample=3_Eb.wav lokey=c#3 hikey=e4 pitch_keycenter=d#3
If you copy all the information of the files referenced by the #include into the "not working example" it will fix the problem and the SFZ starts working.
My question now: Can this be fixed on the Zynthian side or is editing the sfz files the way to go?
Edit: Removing the # in front of the include command had no effect. Ah // seems to be used for commenting out