fluid-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [fluid-dev] Tweaking a sf2 for octave


From: Marcus Weseloh
Subject: Re: [fluid-dev] Tweaking a sf2 for octave
Date: Tue, 26 Jan 2021 09:39:57 +0100

Hi Ben,

I don't think there is such a modulator or mechanism in the Soundfont
spec. I've solved a similar problem in the past by adding this
information in the comment field of the Soundfont file. For example
something like this:
(Format: <bank>:<prog>:<transpose>)
0:0:-12
0:5:12
1:72:-24

Then upon loading of the soundfont, I have a small script that parses
the comment for any of those special lines. Whenever a new program is
selected, check if there is an entry and apply the transposition.
No need to do this inside the Soundfont comment, of course. But the
advantage is that you don't need two files.

Cheers
Marcus

Am Di., 26. Jan. 2021 um 02:02 Uhr schrieb Ben Gonzales via fluid-dev
<fluid-dev@nongnu.org>:
>
> Hi All.
>
> This is not really a FluidSynth issue, but maybe someone can help.
>
> I have the latest FS running on a headless RPi with a soundfont with
> many presets. I plug my EWI into the RPi and the program I have made
> allows me to tweak the transposition and octave via knobs connected to
> the GPIO before the Pi sends the notes to FS. If I want to change other
> parameters (eg reverb, chorus) another part of the program sends
> commands to the running FS.
>
> The issue is that I'd like to automatically adjust the octave for the
> selected soundfont. So, when I select Trombone, I'd like the soundfont
> to adjust the incoming notes by -12. Yes, I can manually do it on my RPi
> interface, but it would be nicer to have it happen automatically.
>
> Is there a global modulator I can use to do that? I'm using Polyphone.
>
> Ben
>
> _______________________________________________
> fluid-dev mailing list
> fluid-dev@nongnu.org
> https://lists.nongnu.org/mailman/listinfo/fluid-dev



reply via email to

[Prev in Thread] Current Thread [Next in Thread]