[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [fluid-dev] sfz on top of fluidsynth

From: Stefan Westerfeld
Subject: Re: [fluid-dev] sfz on top of fluidsynth
Date: Mon, 21 Oct 2019 18:45:17 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0


Am 18.10.19 um 20:48 schrieb Tom M.:
> You see, if you want to use fluidsynth for SFZ, it is not done by just
> implementing a new soundfont loader. Instead, it would require a whole
> user application that treats MIDI events according to the SFZ spec.

Ah, right, that is a good idea how to solve my problem. I've now ported
my code to be a jack client and react to the midi events. This allows me
to execute custom code for note-on/note-off/cc events. So instead of
implementing a loader, I now handle the midi events myself and start new
voices and release old ones as needed.

To test this, I've now implement loop_mode=one_shot (often used for drum
samples), which doesn't release these regions on note off. So spawning
new voices on note off/cc should now also be possible.

There is a minor issue with the fluid synth public API here, which
allows creating new voices (fluid_synth_alloc_voice and
fluid_synth_start_voice), but there is no corresponding public API to
release a voice, which is needed for implementing note_off. So right now
I implemented fluid_synth_release_voice in my own fluidsynth repo.


It might be reasonable to wait for a while to see what else could be
needed before merging API additions upstream.

   Cu... Stefan
Stefan Westerfeld, http://space.twc.de/~stefan

reply via email to

[Prev in Thread] Current Thread [Next in Thread]