# Passing settings to FluidSynth

**URL:** <https://discourse.zynthian.org/t/passing-settings-to-fluidsynth/6506>\
**Category:** Software\
**Created:** [December 14, 2021, 10:07pm UTC](https://discourse.zynthian.org/t/passing-settings-to-fluidsynth/6506 "2021-12-14T22:07:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gonzoB](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/gonzob/32/6811_2.png) [@gonzoB](https://discourse.zynthian.org/u/gonzoB)\
**Post date:** [December 14, 2021, 10:07pm UTC](https://discourse.zynthian.org/t/passing-settings-to-fluidsynth/6506/1 "2021-12-14T22:07:00Z")

</div>

Is there a way of passing settings to FluidSynth on layer startup? I would normally do that with something on the command line, or via a config file, but how do I do it through Zynthian?

The thing I’m after at the moment is the synth.gain. It is lower than I’d like.

Gonzo

---

<div class="post-metadata">

**Author:** ![gonzoB](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/gonzob/32/6811_2.png) [@gonzoB](https://discourse.zynthian.org/u/gonzoB)\
**Post date:** [December 16, 2021, 7:06am UTC](https://discourse.zynthian.org/t/passing-settings-to-fluidsynth/6506/2 "2021-12-16T07:06:56Z")

</div>

No-one?

---

<div class="post-metadata">

**Author:** ![gonzoB](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/gonzob/32/6811_2.png) [@gonzoB](https://discourse.zynthian.org/u/gonzoB)\
**Post date:** [December 17, 2021, 12:13am UTC](https://discourse.zynthian.org/t/passing-settings-to-fluidsynth/6506/3 "2021-12-17T00:13:42Z")

</div>

OK, here’s the answer…

You need to edit the file:  
/zynthian/zynthian-ui/zyngine/zynthian\_engine\_fluidsynth.py

In the section below the line  
**`def __init__ (self, zyngui=None):`**

there is a line:  
`self.fs_options = "-o synth.midi-bank-select=mma -o synth.cpu-cores=3 -o synth.polyphony=64 -o synth.gain=5.0 -o midi.jack.id='{}' ........`

I added the **`-o synth.gain=5.0`**

The default gain is 1.0, and the max is 10.0 , so there is a bit to play with.

My addition will probably be overwritten on the next update however, so a suggestion is to have a user-adjustable config file somewhere that doesn’t get overwritten. In this way, if the standard Zynth config for FluidSynth is not what the user wants, they can add stuff.

Another option for that line is to add **`--server`**  
This enables the running Fluidsynth to be accessed by Telnet to adjust settings in real time.

Gonzo
