Closed Shinehah-Gnolaum closed 5 years ago
AKSampler is not a full SFZ player. It supports only a very limited subset of the SFZ format, as described here: https://github.com/AudioKit/AudioKit/blob/v4.2/Documentation/PreparingSampleSets.md
I used Wavepack
to convert all wav
files to wv
. But still no sound. Any specs to tell what kind of samples can be played in ROMPlayer
? Thanks.
I move the samples
to original samples
folder and modifed my .sfz
file like original .sfz
. It works. So that means the samples has no problem at all. The problem is from the .sfz
itself. Why?
This is my original sfz
:
<control>
<global>
<group>
ampeg_release=5
<region> sample=samples/JJM_83_1_master.wv lokey=70 hikey=83 pitch_keycenter=83 seq_length=4 seq_position=1 tune=-37
<region> sample=samples/JJM_83_2_master.wv lokey=70 hikey=83 pitch_keycenter=83 seq_length=4 seq_position=2 tune=-37
<region> sample=samples/JJM_83_3_master.wv lokey=70 hikey=83 pitch_keycenter=83 seq_length=4 seq_position=3 tune=-37
<region> sample=samples/JJM_83_4_master.wv lokey=70 hikey=83 pitch_keycenter=83 seq_length=4 seq_position=4 tune=-37
<region> sample=samples/JJM_85_1_master.wv lokey=84 hikey=85 pitch_keycenter=85 seq_length=4 seq_position=1 tune=-6
<region> sample=samples/JJM_85_2_master.wv lokey=84 hikey=85 pitch_keycenter=85 seq_length=4 seq_position=2 tune=-6
<region> sample=samples/JJM_85_3_master.wv lokey=84 hikey=85 pitch_keycenter=85 seq_length=4 seq_position=3 tune=-6
<region> sample=samples/JJM_85_4_master.wv lokey=84 hikey=85 pitch_keycenter=85 seq_length=4 seq_position=4 tune=-6
<region> sample=samples/JJM_88_1_master.wv lokey=86 hikey=88 pitch_keycenter=88 seq_length=4 seq_position=1
<region> sample=samples/JJM_88_2_master.wv lokey=86 hikey=88 pitch_keycenter=88 seq_length=4 seq_position=2
<region> sample=samples/JJM_88_3_master.wv lokey=86 hikey=88 pitch_keycenter=88 seq_length=4 seq_position=3
<region> sample=samples/JJM_88_4_master.wv lokey=86 hikey=88 pitch_keycenter=88 seq_length=4 seq_position=4
<region> sample=samples/JJM_91_1_master.wv lokey=89 hikey=91 pitch_keycenter=91 seq_length=4 seq_position=1
<region> sample=samples/JJM_91_2_master.wv lokey=89 hikey=91 pitch_keycenter=91 seq_length=4 seq_position=2
<region> sample=samples/JJM_91_3_master.wv lokey=89 hikey=91 pitch_keycenter=91 seq_length=4 seq_position=3
<region> sample=samples/JJM_91_4_master.wv lokey=89 hikey=91 pitch_keycenter=91 seq_length=4 seq_position=4
<region> sample=samples/JJM_93_1_master.wv lokey=92 hikey=93 pitch_keycenter=93 seq_length=4 seq_position=1
<region> sample=samples/JJM_93_2_master.wv lokey=92 hikey=93 pitch_keycenter=93 seq_length=4 seq_position=2
<region> sample=samples/JJM_93_3_master.wv lokey=92 hikey=93 pitch_keycenter=93 seq_length=4 seq_position=3
<region> sample=samples/JJM_93_4_master.wv lokey=92 hikey=93 pitch_keycenter=93 seq_length=4 seq_position=4
<region> sample=samples/JJM_95_1_master.wv lokey=94 hikey=95 pitch_keycenter=95 seq_length=4 seq_position=1
<region> sample=samples/JJM_95_2_master.wv lokey=94 hikey=95 pitch_keycenter=95 seq_length=4 seq_position=2
<region> sample=samples/JJM_95_3_master.wv lokey=94 hikey=95 pitch_keycenter=95 seq_length=4 seq_position=3
<region> sample=samples/JJM_95_4_master.wv lokey=94 hikey=95 pitch_keycenter=95 seq_length=4 seq_position=4
<region> sample=samples/JJM_96_1_master.wv lokey=96 hikey=98 pitch_keycenter=96 seq_length=4 seq_position=1
<region> sample=samples/JJM_96_2_master.wv lokey=96 hikey=98 pitch_keycenter=96 seq_length=4 seq_position=2
<region> sample=samples/JJM_96_3_master.wv lokey=96 hikey=98 pitch_keycenter=96 seq_length=4 seq_position=3
<region> sample=samples/JJM_96_4_master.wv lokey=96 hikey=98 pitch_keycenter=96 seq_length=4 seq_position=4
It doesn't work. The modified one:
<group>lokey=0 hikey=51 pitch_keycenter=48 pitch_keytrack=100
<region> lovel=000 hivel=127 amp_velcurve_127=1 loop_mode=loop_sustain loop_start=105304 loop_end=271114 sample=samples/JJM_83_1_master.wv
<group>lokey=52 hikey=57 pitch_keycenter=54 pitch_keytrack=100
<region> lovel=000 hivel=127 amp_velcurve_127=1 loop_mode=loop_sustain loop_start=105125 loop_end=246095 sample=samples/JJM_83_2_master.wv
<group>lokey=58 hikey=63 pitch_keycenter=60 pitch_keytrack=100
<region> lovel=000 hivel=127 amp_velcurve_127=1 loop_mode=loop_sustain loop_start=105123 loop_end=309491 sample=samples/JJM_83_3_master.wv
<group>lokey=64 hikey=69 pitch_keycenter=66 pitch_keytrack=100
<region> lovel=000 hivel=127 amp_velcurve_127=1 loop_mode=loop_sustain loop_start=105139 loop_end=193695 sample=samples/JJM_83_4_master.wv
<group>lokey=70 hikey=75 pitch_keycenter=72 pitch_keytrack=100
<region> lovel=000 hivel=127 amp_velcurve_127=1 loop_mode=loop_sustain loop_start=105312 loop_end=331137 sample=samples/JJM_83_5_master.wv
<group>lokey=76 hikey=81 pitch_keycenter=78 pitch_keytrack=100
<region> lovel=000 hivel=127 amp_velcurve_127=1 loop_mode=loop_sustain loop_start=105276 loop_end=331319 sample=samples/JJM_83_6_master.wv
<group>lokey=82 hikey=127 pitch_keycenter=84 pitch_keytrack=100
<region> lovel=000 hivel=127 amp_velcurve_127=1 loop_mode=loop_sustain loop_start=105247 loop_end=243815 sample=samples/JJM_83_7_master.wv
The problem is from the .sfz itself. Why?
Please read my original reply above, where I said "AKSampler is not a full SFZ player" and gave a link to the exact format. That is "why".
Also, note you don't have to convert .wav to .wv. That's just a way to reduce app download size. If you get the ".sfz" format correct, you can use .wav files, or .aif files, etc.
I added additional sfz files and added the file names in the exsPresets array, but when I tap on the keyboard with those sfz files selected, no sound comes out.