made that spectrum even better

This commit is contained in:
ha7ilm 2017-02-18 16:36:36 +01:00
parent 1fab87af1d
commit 5f772ec3e3
3 changed files with 4 additions and 4 deletions

2
csdr.c
View file

@ -1345,7 +1345,7 @@ int main(int argc, char *argv[])
//for(int=0;i<taps_length; i++) fprintf(stderr,"%g ",taps[i]); //for(int=0;i<taps_length; i++) fprintf(stderr,"%g ",taps[i]);
fprintf(stderr,"fractional_decimator_ff: not using taps\n"); fprintf(stderr,"fractional_decimator_ff: not using taps\n");
fractional_decimator_ff_t d = fractional_decimator_ff_init(rate, 6, NULL, 0); fractional_decimator_ff_t d = fractional_decimator_ff_init(rate, 16, NULL, 0);
for(;;) for(;;)
{ {
FEOF_CHECK; FEOF_CHECK;

View file

@ -650,7 +650,7 @@
</param> </param>
<param> <param>
<key>y_divs</key> <key>y_divs</key>
<value>10</value> <value>16</value>
</param> </param>
<param> <param>
<key>y_per_div</key> <key>y_per_div</key>
@ -753,7 +753,7 @@
</param> </param>
<param> <param>
<key>y_divs</key> <key>y_divs</key>
<value>10</value> <value>16</value>
</param> </param>
<param> <param>
<key>y_per_div</key> <key>y_per_div</key>

View file

@ -734,7 +734,7 @@ void fractional_decimator_ff(float* input, float* output, int input_size, fracti
int index_high; int index_high;
#define FD_INDEX_LOW (index_high-1) #define FD_INDEX_LOW (index_high-1)
//we optimize to calculate ceilf(where) only once every iteration, so we do it here: //we optimize to calculate ceilf(where) only once every iteration, so we do it here:
for(;(index_high=ceilf(d->where))+d->xilast+1+d->taps_length<input_size;d->where+=d->rate) //@fractional_decimator_ff for(;(index_high=ceilf(d->where))+d->num_poly_points+d->taps_length<input_size;d->where+=d->rate) //@fractional_decimator_ff
{ {
int sxifirst = FD_INDEX_LOW + d->xifirst; int sxifirst = FD_INDEX_LOW + d->xifirst;
int sxilast = FD_INDEX_LOW + d->xilast; int sxilast = FD_INDEX_LOW + d->xilast;