Quite simply, yes there is a way. Compile and install a newer fluidsynth to /usr/local (don’t remove your Ubuntu distro package)
Unfortunately, Ubuntu doesn’t make stuff like that easy if you don’t have the box set up for it because they separate out -dev versions of packages that contain necessary headers and stuff for linking against when compiling software.
If your distribution already has a packaged FluidSynth, you may simply install it using >the package manager, as described here. You can also grab the build dependencies >automatically by running a command such as