Comments (3)
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
from romplayer.
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
from romplayer.
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.
from romplayer.
Related Issues (9)
- Multi-Delay Mix Value Issue HOT 1
- Swift 5.5.2 error
- How would I write code to press a key or number of keys programmatically and generate the sound(s)? HOT 2
- No sound - missing aif files? HOT 2
- Memory Leaks HOT 4
- Linux port [Tracker] HOT 2
- Module compiled with Swift 4.2.1 cannot be imported by the Swift 5.0.1 compiler
- Is midi keyboard input supported? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from romplayer.