SPRAAK
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
Functions
sspmod_time_filter.c File Reference

Filtering of samples. More...

Functions

void spr_time_filter_free (SprSspInfo *info)
 
int spr_time_filter_setup (SprSspInfo *info, const char **descript, void *aux_info)
 
int spr_time_filter_process (SprSspInfo *info, const void *frame_in, void *frame_out)
 
void spr_time_filter_reset (SprSspInfo *info, SprSspStatus *action)
 

Detailed Description

Filtering of samples.


[time_filter]
Filter a time signal, all filter blocks are cascaded to form the final filter.
filter coefficients <num/den> <coeffs> ...
Specify the coefficients for a numerator or denumerator filter block.
filter stream <num/den/den1> <copy/move> <buf_name>
Specify the coefficient stream for a numerator or denumerator filter block.
filter file <num/den> <fname>
Read the coefficients for a numerator or denumerator block from a given file.
cheby2 <LP/HP> <cf1> <cf2> [bpr](3) [sba](30) [max_order](5)
Use a type II Chebyshev filter (equiripple in the stopband) with corner frequencies <cf1> and <cf2>, maximum bandpass ripple <bpr>, minimum stopband attenuation <sba>. The final filter is decomposed in filter sections of an order <max_order> or less
upsampling <rate>(1)
Perform upsampling with a factor <rate> before filtering.
downsampling <rate>(1)
Perform downsampling with a factor <rate> after filtering.
time_shift <shift>(0)
Used to implement non causal filters. The output is advanced by <shift> samples.
set samplefreq to <freq>
Changes the sample frequency to (approximately) the given frequency. This option results determines automatically the optimal filter, up and down sampling rate and time shift.
invert filter
Invert the filter.
do not reorder
Do not put the FIR block's in front of the IIR block's, this may help when the IIR part is close to be unstable, and is compensatied by zero's in the FIR part, at the cost of a small speed loss.

See Also
ssp_master.c
Date
28/10/95
Author
Kris Demuynck