fluid-dev
[Top][All Lists]
Advanced

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

Re: [fluid-dev] initialFilterFC question


From: Josh Green
Subject: Re: [fluid-dev] initialFilterFC question
Date: Tue, 27 Jul 2004 13:00:05 -0600

On Tue, 2004-07-27 at 03:25, Antoine Schmitt wrote:
> :::::::::26/07/04::::14:54 -0600::::Josh Green:::::::::
> >I imagine you are probably looking to set the absolute value of the
> >generator, rather than an offset. So perhaps thats whats wrong? From the
> >API docs it does say that the fluid_synth_set_gen() function offsets the
> >existing value, so it does seem the function does what it should be
> >doing (at least from a brief look at it).
> 
> Thanks.
> So it seems that the cause of my problem is a mix of internal 
> fluidsynth bug about NRPN absolute/relative values and of the way I 
> call the fluid generator functions.
> I think I will wait for Peter to come back from holidays and explain 
> things to me clearly ;-) Except if some kind soul want to dig into 
> this. These generator values, nrpn and mod are quite complex if one 
> does not have the big picture in mind.
> Thanks for the help,

The fluid_synth_set_gen function does appear to be working as
documented. The bug I mentioned does not affect that function, but in
the use of fluid_voice_set_param() with abs set to TRUE (which I don't
think you are using).

The fluid_synth_set_gen is used to offset a given generator value. So
whatever offset you give this function will be applied (added) to all
voices on the given MIDI channel. Setting the absolute value of a
generator for all voices on a channel wouldn't be that useful, since the
voices would then lose their relative differences.

So when setting the FilterFC, you probably want to pass negative values
to fluid_synth_set_gen (if the initialFC is like 20khz lets say). Hope
that helps.
        Josh Green





reply via email to

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