Re: [fluid-dev] question on linear interpolation

2016-01-02 Thread Brad Stewart
Yes, I am building the shell. Interestingly, it stores the executable in a hidden directory /fluidsynth/src/.libs The console window only displays the shell and I see no error messages. I'll need to figure out how to display internal printf messages. I am having problems buil

Re: [fluid-dev] question on linear interpolation

2016-01-02 Thread Element Green
Hello Brad, It sounds like you really need to get debugging working. From what you said about the "interp num" command, I assume you are building the fluidsynth command shell. Do you get any relevant error messages on the console (probably the same terminal you are running fluidsynth from - but

Re: [fluid-dev] question on linear interpolation

2016-01-02 Thread Marcus Weseloh
Hi Brad, Out of curiosity I checked that the interp setting actually had an effect by adding printf statements to the relevant functions. The fluid_rvoice_dsp_interpolate_linear function is called just fine if you set "interp 1" in the FluidSynth shell. Seems like you've got a problem with your de

Re: [fluid-dev] question on linear interpolation

2016-01-01 Thread Brad Stewart
So I recompiled the code and added a return at the beginning of the function /fluid_rvoice_dsp_interpolate_linear (fluid_rvoice_dsp_t *voice)./ I also tried adding a for(;;) and a printf. I tried several interp num commands (with num from 0 to 7) but it seems it never gets to this function. A

Re: [fluid-dev] question on linear interpolation

2015-12-31 Thread Brad Stewart
Could you confirm that "interp 1" command line invokes the Linear Interpolation function? Thanks, Brad On Thu, Dec 31, 2015, at 01:36 PM, Element Green wrote: > Hello Brad, > > To my knowledge the audio sample data is used as is in FluidSynth. > The sample rate of the data and the current pitch

Re: [fluid-dev] question on linear interpolation

2015-12-31 Thread Element Green
Hello Brad, To my knowledge the audio sample data is used as is in FluidSynth. The sample rate of the data and the current pitch of a voice determine how it gets interpolated. So I believe your analysis is correct, that interpolating between two identical values will yield that value with the li

Re: [fluid-dev] question on linear interpolation

2015-12-31 Thread Brad Stewart
Hi Mr Green, Yes, I am carrying the fractional part.  In my case, it's 12 bits and I shift right by 4 to get the upper 8 bits to index to the coefficient table. But let me cite an example, Suppose I have x[i]=100 and x[i+1]=100 (which occurs often in a lower note frequency). Assume after looking

Re: [fluid-dev] question on linear interpolation

2015-12-30 Thread Element Green
Hello Brad, On Wed, Dec 30, 2015 at 7:42 PM, Brad Stewart wrote: > Hi, > > I'm developing an embedded project using some of the code in FluidSynth. > > The target is an ARM Cortex M4 and am using integer math. Most of the > coefficients are in Q15 format. > > So far, I'm able to generate diffe