fluid-dev
[Top][All Lists]
Advanced

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

Re: [fluid-dev] Sample Rate


From: Nils Hammerfest
Subject: Re: [fluid-dev] Sample Rate
Date: Fri, 1 Jan 2010 21:18:07 +0100

On Fri, 01 Jan 2010 19:43:40 +0100
David Henningsson <address@hidden> wrote:

> Nils Hammerfest wrote:
> > Let me hijack this topic.
> > This is a situation with Denemos built-in fluidsynth. Version is 1.1.1
> > 
> > We have a preferences menu in Denemo where you can specify the periodsize 
> > and samplerate. 
> > My JACKd runs @ 96000 and I set Denemo/Fluidsynth to 96k, too.
> > This is the terminal output. First three lines are from Denemo to verify 
> > that the preferences are saved:
> > 
> > Version 0_8_11
> > Setting sample rate 96000
> > Setting audio.period-size to 256
> > fluidsynth: warning: Jack sample rate mismatch, expect tuning issues 
> > (synth.sample-rate=44100, jackd=96000)
> > 
> > And its true, I get the tuning issues :(
> > 
> > However. Using fluidsynth as standalone with this parameters and just any 
> > midi it works fine.
> > fluidsynth -a jack -m jack -r 96000 .sc-55.sf2 Opener.mid
> > 
> > The messages above are produced with this. Do you see anything wrong here?
> > 
> > fluid_settings_setint(settings, "synth.sample-rate" , 
> > Denemo.prefs.fluidsynth_sample_rate);
> >    g_print("Setting sample rate %d\n", Denemo.prefs.fluidsynth_sample_rate);
> 
> I believe synth.sample-rate is a double, so use setnum instead of
> setint. And make sure you set it before the new_fluid_synth(settings) call.

Thats it!  Thanks

> Btw, this is a real gotcha. We (as in the FluidSynth developers) should
> make sure setint works with doubles as well.

I think equally important is that FluidSynth gets the values from JACK itself. 
And an "Automatic" driver which acts as fallback. E.g. if JACK is not avaible 
try to use ALSA instead.

> 
> // David
> 


Thanks for your time,

Nils
denemo.org




reply via email to

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