Giter VIP home page Giter VIP logo

Comments (3)

getdunne avatar getdunne commented on May 22, 2024

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.

zhouhao27 avatar zhouhao27 commented on May 22, 2024

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.

getdunne avatar getdunne commented on May 22, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.