NB: these examples work only if you have the associated plugin installed. Remember to issue Rescan Plugins… after installing any new plugins.
FluidSynth is a CLAP plugin built
atop the eponymous 3rd Party soundfont synthesis engine. We include
it in the Hz
plugins package because it's generally useful in
preparing examples and documentation.
This example plays notes from a scale for each of 128 programs (voices)
in a soundfile. You can edit this file to load your own sound fonts,
so it's a good way to explore them. Here we randomly play either the
default soundfont or a custom one. You can find many sf2
files online
and can find the one used in the example
here.
To learn more about installing soundfonts on your system, please read the details.
await fluid.LoadPreset("VintageDreamsWaves-v2.sf2");