Talk:FluidSynth

From ArchWiki
Latest comment: 15 September 2016 by Archozavr in topic This page needs further reference

Specifying how to use with pulseaudio

Hello! I trued to follow the instructions but it didn't succeed, probably because pulseaudio on my system (as on most) is run on a single user and not as root. I fixed this by creating a systemd user service like:

[Unit] Description=FluidSynth Daemon After=pulseaudio.service

[Service] ExecStart=/usr/bin/fluidsynth -is -a $AUDIO_DRIVER $OTHER_OPTS $SOUND_FONT EnvironmentFile=/etc/conf.d/fluidsynth

[Install] WantedBy=default.target


per user in ~/.config/systemd/user/fluidsynth.service and with the environment file as per the wiki.

This is enabled by systemctl --user enable fluidsynth.service

As I am not sure this is the best way I did't update the wiki page, if someone more knowlegable confirms this is the right way to to things please update wiki, or maybe add an updated systemd service!


This page needs further reference

Could not hear any sound (annoying it is) until following these instructions http://tedfelix.com/linux/linux-midi.html . Please add it. Had to pass fluidsynth option '-o audio.alsa.device=plughw:2' so it is able to target the desired card. Archozavr (talk) 21:25, 15 September 2016 (UTC) ArchozavrReply[reply]

conflits

After enable daemon, Pulseaudio don't work anymore… Mikhaddo (talk) 08:37, 13 January 2013 (UTC)Reply[reply]

systemd ?

Same question as on the Timidity talk page : shall we change the "Alsa daemon mode" section and refer to systemctl to use Fluidsynth ? What is the recommended way to use MIDI now ? Hellpe (talk) 22:45, 27 November 2012 (UTC)Reply[reply]

Instructions for running ALSA daemon mode via systemd not working?

I've followed the directions to enable fluidsynth ALSA daemon mode via systemd integration, but the instructions of this page this don't seem to work. It seems to me that systemd tries to run the service as root and can't connect to the user Pulseaudio instance neither using alsa driver nor using pulseaudio one.

Global configuration:

[benji@whiteroom ~]$ cat /etc/conf.d/fluidsynth 
SYNTHOPTS="-is -a alsa -m alsa_seq -r 48000"
SOUNDFONT="/usr/share/soundfonts/FluidR3_GM2-2.sf2"

Running as user (OK):

[benji@whiteroom ~]$ fluidsynth -is -a alsa -m alsa_seq -r 48000 /usr/share/soundfonts/FluidR3_GM2-2.sf2
FluidSynth version 1.1.6
Copyright (C) 2000-2012 Peter Hanappe and others.                                                                                           
Distributed under the LGPL license.                                                                                                         
SoundFont(R) is a registered trademark of E-mu Systems, Inc.                                                                                
                                                                                                                                            
^C                                                                                                                                          
[benji@whiteroom ~]$              

Start service using systemd and log messages (FAIL):

[benji@whiteroom ~]$ sudo systemctl start fluidsynth
[sudo] password for benji:                                                                                                                  
[benji@whiteroom ~]$ sudo systemctl status fluidsynth
● fluidsynth.service - FluidSynth Daemon
   Loaded: loaded (/usr/lib/systemd/system/fluidsynth.service; disabled)
   Active: inactive (dead)

ott 12 10:23:46 whiteroom fluidsynth[32058]: ALSA lib pcm_dmix.c:1022:(snd_pcm_dmix_open) unable to open slave
ott 12 10:23:46 whiteroom fluidsynth[32058]: fluidsynth: error: Failed to open the "default" audio device
ott 12 10:23:46 whiteroom fluidsynth[32058]: Failed to create the audio driver
ott 12 10:23:46 whiteroom fluidsynth[32058]: FluidSynth version 1.1.6
ott 12 10:23:46 whiteroom fluidsynth[32058]: Copyright (C) 2000-2012 Peter Hanappe and others.
ott 12 10:23:46 whiteroom fluidsynth[32058]: Distributed under the LGPL license.
ott 12 10:23:46 whiteroom fluidsynth[32058]: SoundFont(R) is a registered trademark of E-mu Systems, Inc.

Mbeniamino (talk) 08:31, 12 October 2014 (UTC)Reply[reply]

Probably Not

This should never have worked. Take a look at https://bugs.archlinux.org/task/41768 and see if the latest update solves it. I just pushed it out of testing after a long time of having no feedback. Continue any discussion in that bug report. -- schiv (talk) 08:24, 24 October 2014 (UTC)Reply[reply]