Hello everyone,
I used scamp on my Ubuntu 20.04 laptop and it worked fine.
Now I moved to 24.04 (on the same laptop) and I have a problem with fluidsynth.
Description:
I follow the basic steps given on the home page, that worked perfectly on ubuntu 20.04 : installed scamp, abjad, rtmidi, pynput, lilypond from thonny. And then install fluidsynth from the ubuntu console with apt install command.
But it doesn’t work! Whatever I do, even just play a single piano note, I get the error message. Tried to reinstall, reboot… nothing worked out. I am quite puzzled.
I searched the web and no idea… So if any scampster is coming to help I’ll be very happy
Error printout: (from asking scamp to play a single piano note)
WARNING:root:Fluidsynth could not be loaded; synth output will not be available.
# The full code that resulted in the error:
```python3
from scamp import *
s = Session()
piano = s.new_part("piano")
piano.play_note(70,1,1)
the full error message:
WARNING:root:Fluidsynth could not be loaded; synth output will not be available.
Using preset Piano Merlin for piano
Traceback (most recent call last):
File “”, line 5, in
File “/var/data/python/lib/python3.12/site-packages/scamp/instruments.py”, line 186, in new_part
instrument.add_soundfont_playback(preset=preset, soundfont=soundfont, num_channels=num_channels,
File “/var/data/python/lib/python3.12/site-packages/scamp/instruments.py”, line 1010, in add_soundfont_playback
SoundfontPlaybackImplementation(bank_and_preset=preset, soundfont=soundfont, num_channels=num_channels,
File “/var/data/python/lib/python3.12/site-packages/scamp/playback_implementations.py”, line 328, in init
SoundfontHost(
File “/var/data/python/lib/python3.12/site-packages/scamp/_soundfont_host.py”, line 176, in init
raise ModuleNotFoundError(“FluidSynth not available.”)
ModuleNotFoundError: FluidSynth not available.