dsp.AllpassFilter coefficient translation

Hi
I need to create an All Pass filter with selectable frequency in an audio plugin I´m developing. As Frequency is not a property in dsp.AllpassFilter object, is there any function to calculate the coefficientes matrix from frequency input (among other parameters of course)? (e.g something similar to designShelvingEQ or designVarislopeFilter).
If not, any formulas to buitl my own function?
Thanks
Br
Pablo

1 Kommentar

Pablo Panitta
Pablo Panitta am 8 Mär. 2024
I´ve found the answer in the description of dfilt.allpass function, where the transfer function of all pass filter is shown (just in case someone else is interesting in this)

Melden Sie sich an, um zu kommentieren.

Antworten (1)

jibrahim
jibrahim am 4 Mär. 2024

0 Stimmen

Relevant methods of dsp.allpassFilter include:
  • freqz: Frequency response of discrete-time filter System object
  • coeffs: Returns the filter System object coefficients in a structure

3 Kommentare

Pablo Panitta
Pablo Panitta am 4 Mär. 2024
Bearbeitet: Pablo Panitta am 4 Mär. 2024
Thanks jibrahim for your promt response, but I don´t see how this two methods can help me. freqz is for visualization analysis and coeff is to know the coefficients of a filter. I need to calculate the coefficients from a know frequency cutoff value (selectable by user).
jibrahim
jibrahim am 4 Mär. 2024
I see, sorry about the confusion. Can you say more about the cutoff frequency of the all-pass filter? Is this a crossover filter?
Pablo Panitta
Pablo Panitta am 4 Mär. 2024
Yes of course jibrahim, the frecuency where we have a phase shift of n*pi/2 [rad] (n=order). e.g In a second order ap filter would be phase shift of pi [rad].

Melden Sie sich an, um zu kommentieren.

Produkte

Version

R2023b

Gefragt:

am 2 Mär. 2024

Kommentiert:

am 8 Mär. 2024

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by