Replies: 1 comment 8 replies
-
There is no direct way to do this. Because whether or not a sample will be played does not only depend on the note. It also depends on the velocity. E.g. it could be that key 60 has a sample assigned for velocity range 0-126, but velocity 127 does not spawn a sample. What you could do is to call But again, a portable (or generic) solution for this would have to try every possible note at every possible velocity. Usually it's much simpler to ensure that the soundfont you're gonna use matches your needs. |
Beta Was this translation helpful? Give feedback.
-
Does FluidSynth provide a way to determine the range of valid pitches in a soundfont? What I'd like to be able to do is to guarantee that when I play a note using
fluid_synth_noteon
that the soundfont has a sample present for that note.Beta Was this translation helpful? Give feedback.
All reactions