Csound Csound-dev Csound-tekno Search About

[Csnd] Howto: Chebyshev I Type bandpass filter

Date2018-03-12 18:44
FromAnton Kholomiov
Subject[Csnd] Howto: Chebyshev I Type bandpass filter
How to create this kind of filter in Csound?
(Chebyshev I Type bandpass filter)


The closest thing that I've found is clfilt

It can do Chebyshev I Type low and high pass.
But I need a bandpass

Is it right to create the band pass with superposition
of high-pass followed by low-pass with the same specs: dB ripple?

Or do you know a better method to create this filter?

Cheers,
Anton

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2018-03-12 18:47
FromJustin Rosander
SubjectRe: [Csnd] Howto: Chebyshev I Type bandpass filter

Hi Anton,

I use butterbp.

--Justin

 

Sent from Mail for Windows 10

 

From: Anton Kholomiov
Sent: Monday, March 12, 2018 2:44 PM
To: CSOUND@LISTSERV.HEANET.IE
Subject: [Csnd] Howto: Chebyshev I Type bandpass filter

 

How to create this kind of filter in Csound?

(Chebyshev I Type bandpass filter)

 

 

The closest thing that I've found is clfilt

 

It can do Chebyshev I Type low and high pass.

But I need a bandpass

 

Is it right to create the band pass with superposition

of high-pass followed by low-pass with the same specs: dB ripple?

Or do you know a better method to create this filter?

Cheers,

Anton

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

 


Date2018-03-12 18:51
FromAnton Kholomiov
SubjectRe: [Csnd] Howto: Chebyshev I Type bandpass filter
Thanks for feedback Justin!

But I need it for reimplementation of specific algorithm, so
in my case I need to replicate exact type of filter Chebyshev I

2018-03-12 21:47 GMT+03:00 Justin Rosander <justinrosander@gmail.com>:

Hi Anton,

I use butterbp.

--Justin

 

Sent from Mail for Windows 10

 

From: Anton Kholomiov
Sent: Monday, March 12, 2018 2:44 PM
To: CSOUND@LISTSERV.HEANET.IE
Subject: [Csnd] Howto: Chebyshev I Type bandpass filter

 

How to create this kind of filter in Csound?

(Chebyshev I Type bandpass filter)

 

 

The closest thing that I've found is clfilt

 

It can do Chebyshev I Type low and high pass.

But I need a bandpass

 

Is it right to create the band pass with superposition

of high-pass followed by low-pass with the same specs: dB ripple?

Or do you know a better method to create this filter?

Cheers,

Anton

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

 

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2018-03-12 18:53
FromAnton Kholomiov
SubjectRe: [Csnd] Howto: Chebyshev I Type bandpass filter
The algorith, is writtern in MATLAB and it uses the function `cheby1`
to get the coefficients for the filterand then feeds it to Biquad filter.
Actually we have the biquad filter implementaition but I'm not literate enough
to calculate the coefficients in raw Csound.



2018-03-12 21:51 GMT+03:00 Anton Kholomiov <anton.kholomiov@gmail.com>:
Thanks for feedback Justin!

But I need it for reimplementation of specific algorithm, so
in my case I need to replicate exact type of filter Chebyshev I

2018-03-12 21:47 GMT+03:00 Justin Rosander <justinrosander@gmail.com>:

Hi Anton,

I use butterbp.

--Justin

 

Sent from Mail for Windows 10

 

From: Anton Kholomiov
Sent: Monday, March 12, 2018 2:44 PM
To: CSOUND@LISTSERV.HEANET.IE
Subject: [Csnd] Howto: Chebyshev I Type bandpass filter

 

How to create this kind of filter in Csound?

(Chebyshev I Type bandpass filter)

 

 

The closest thing that I've found is clfilt

 

It can do Chebyshev I Type low and high pass.

But I need a bandpass

 

Is it right to create the band pass with superposition

of high-pass followed by low-pass with the same specs: dB ripple?

Or do you know a better method to create this filter?

Cheers,

Anton

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

 

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here


Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2018-03-12 19:02
FromVictor Lazzarini
SubjectRe: [Csnd] Howto: Chebyshev I Type bandpass filter
http://csound.com/docs/manual-fr/clfilt.html

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 12 Mar 2018, at 18:54, Anton Kholomiov <anton.kholomiov@GMAIL.COM> wrote:

The algorith, is writtern in MATLAB and it uses the function `cheby1`
to get the coefficients for the filterand then feeds it to Biquad filter.
Actually we have the biquad filter implementaition but I'm not literate enough
to calculate the coefficients in raw Csound.



2018-03-12 21:51 GMT+03:00 Anton Kholomiov <anton.kholomiov@gmail.com>:
Thanks for feedback Justin!

But I need it for reimplementation of specific algorithm, so
in my case I need to replicate exact type of filter Chebyshev I

2018-03-12 21:47 GMT+03:00 Justin Rosander <justinrosander@gmail.com>:

Hi Anton,

I use butterbp.

--Justin

 

Sent from Mail for Windows 10

 

From: Anton Kholomiov
Sent: Monday, March 12, 2018 2:44 PM
To: CSOUND@LISTSERV.HEANET.IE
Subject: [Csnd] Howto: Chebyshev I Type bandpass filter

 

How to create this kind of filter in Csound?

(Chebyshev I Type bandpass filter)

 

 

The closest thing that I've found is clfilt

 

It can do Chebyshev I Type low and high pass.

But I need a bandpass

 

Is it right to create the band pass with superposition

of high-pass followed by low-pass with the same specs: dB ripple?

Or do you know a better method to create this filter?

Cheers,

Anton

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

 

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here


Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2018-03-12 19:03
Frommskala@ANSUZ.SOOKE.BC.CA
SubjectRe: [Csnd] Howto: Chebyshev I Type bandpass filter
On Mon, 12 Mar 2018, Anton Kholomiov wrote:
> But I need it for reimplementation of specific algorithm, so
> in my case I need to replicate exact type of filter Chebyshev I

If you know the exact transfer function of the filter you want, you could
factor it and produce the same transfer function using an appropriate
number of biquad opcodes.

-- 
Matthew Skala
mskala@ansuz.sooke.bc.ca                 People before principles.
http://ansuz.sooke.bc.ca/

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2018-03-12 19:04
FromVictor Lazzarini
SubjectRe: [Csnd] Howto: Chebyshev I Type bandpass filter
or in Eng

http://csound.com/docs/manual/clfilt.html

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 12 Mar 2018, at 19:03, Victor Lazzarini <Victor.Lazzarini@MU.IE> wrote:

http://csound.com/docs/manual-fr/clfilt.html

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 12 Mar 2018, at 18:54, Anton Kholomiov <anton.kholomiov@GMAIL.COM> wrote:

The algorith, is writtern in MATLAB and it uses the function `cheby1`
to get the coefficients for the filterand then feeds it to Biquad filter.
Actually we have the biquad filter implementaition but I'm not literate enough
to calculate the coefficients in raw Csound.



2018-03-12 21:51 GMT+03:00 Anton Kholomiov <anton.kholomiov@gmail.com>:
Thanks for feedback Justin!

But I need it for reimplementation of specific algorithm, so
in my case I need to replicate exact type of filter Chebyshev I

2018-03-12 21:47 GMT+03:00 Justin Rosander <justinrosander@gmail.com>:

Hi Anton,

I use butterbp.

--Justin

 

Sent from Mail for Windows 10

 

From: Anton Kholomiov
Sent: Monday, March 12, 2018 2:44 PM
To: CSOUND@LISTSERV.HEANET.IE
Subject: [Csnd] Howto: Chebyshev I Type bandpass filter

 

How to create this kind of filter in Csound?

(Chebyshev I Type bandpass filter)

 

 

The closest thing that I've found is clfilt

 

It can do Chebyshev I Type low and high pass.

But I need a bandpass

 

Is it right to create the band pass with superposition

of high-pass followed by low-pass with the same specs: dB ripple?

Or do you know a better method to create this filter?

Cheers,

Anton

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

 

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here


Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2018-03-12 19:06
FromAnton Kholomiov
SubjectRe: [Csnd] Howto: Chebyshev I Type bandpass filter
@Victor Yes this is right for Low and High pass, but Is it right to use a combo of them to create bandpass type?

@Matthew I can not use exact coefficients since they depend on k-rate input params of the algorithm

2018-03-12 22:04 GMT+03:00 Victor Lazzarini <Victor.Lazzarini@mu.ie>:
or in Eng

http://csound.com/docs/manual/clfilt.html

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 12 Mar 2018, at 19:03, Victor Lazzarini <Victor.Lazzarini@MU.IE> wrote:

http://csound.com/docs/manual-fr/clfilt.html

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 12 Mar 2018, at 18:54, Anton Kholomiov <anton.kholomiov@GMAIL.COM> wrote:

The algorith, is writtern in MATLAB and it uses the function `cheby1`
to get the coefficients for the filterand then feeds it to Biquad filter.
Actually we have the biquad filter implementaition but I'm not literate enough
to calculate the coefficients in raw Csound.



2018-03-12 21:51 GMT+03:00 Anton Kholomiov <anton.kholomiov@gmail.com>:
Thanks for feedback Justin!

But I need it for reimplementation of specific algorithm, so
in my case I need to replicate exact type of filter Chebyshev I

2018-03-12 21:47 GMT+03:00 Justin Rosander <justinrosander@gmail.com>:

Hi Anton,

I use butterbp.

--Justin

 

Sent from Mail for Windows 10

 

From: Anton Kholomiov
Sent: Monday, March 12, 2018 2:44 PM
To: CSOUND@LISTSERV.HEANET.IE
Subject: [Csnd] Howto: Chebyshev I Type bandpass filter

 

How to create this kind of filter in Csound?

(Chebyshev I Type bandpass filter)

 

 

The closest thing that I've found is clfilt

 

It can do Chebyshev I Type low and high pass.

But I need a bandpass

 

Is it right to create the band pass with superposition

of high-pass followed by low-pass with the same specs: dB ripple?

Or do you know a better method to create this filter?

Cheers,

Anton

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

 

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here


Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2018-03-12 19:22
Frommskala@ANSUZ.SOOKE.BC.CA
SubjectRe: [Csnd] Howto: Chebyshev I Type bandpass filter
On Mon, 12 Mar 2018, Anton Kholomiov wrote:
> @Matthew I can not use exact coefficients since they depend on k-rate input
> params of the algorithm

In principle you could calculate them (the biquad opcode takes k-rate
coefficients) but I recognize that that may be too complicated.

-- 
Matthew Skala
mskala@ansuz.sooke.bc.ca                 People before principles.
http://ansuz.sooke.bc.ca/

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2018-03-12 19:54
FromVictor Lazzarini
SubjectRe: [Csnd] Howto: Chebyshev I Type bandpass filter
Use a LP and an HP in series. That would make a BP. Overlap the passband of one with the stopband of the other.

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 12 Mar 2018, at 19:06, Anton Kholomiov <anton.kholomiov@GMAIL.COM> wrote:

@Victor Yes this is right for Low and High pass, but Is it right to use a combo of them to create bandpass type?

@Matthew I can not use exact coefficients since they depend on k-rate input params of the algorithm

2018-03-12 22:04 GMT+03:00 Victor Lazzarini <Victor.Lazzarini@mu.ie>:
or in Eng

http://csound.com/docs/manual/clfilt.html

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 12 Mar 2018, at 19:03, Victor Lazzarini <Victor.Lazzarini@MU.IE> wrote:

http://csound.com/docs/manual-fr/clfilt.html

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 12 Mar 2018, at 18:54, Anton Kholomiov <anton.kholomiov@GMAIL.COM> wrote:

The algorith, is writtern in MATLAB and it uses the function `cheby1`
to get the coefficients for the filterand then feeds it to Biquad filter.
Actually we have the biquad filter implementaition but I'm not literate enough
to calculate the coefficients in raw Csound.



2018-03-12 21:51 GMT+03:00 Anton Kholomiov <anton.kholomiov@gmail.com>:
Thanks for feedback Justin!

But I need it for reimplementation of specific algorithm, so
in my case I need to replicate exact type of filter Chebyshev I

2018-03-12 21:47 GMT+03:00 Justin Rosander <justinrosander@gmail.com>:

Hi Anton,

I use butterbp.

--Justin

 

Sent from Mail for Windows 10

 

From: Anton Kholomiov
Sent: Monday, March 12, 2018 2:44 PM
To: CSOUND@LISTSERV.HEANET.IE
Subject: [Csnd] Howto: Chebyshev I Type bandpass filter

 

How to create this kind of filter in Csound?

(Chebyshev I Type bandpass filter)

 

 

The closest thing that I've found is clfilt

 

It can do Chebyshev I Type low and high pass.

But I need a bandpass

 

Is it right to create the band pass with superposition

of high-pass followed by low-pass with the same specs: dB ripple?

Or do you know a better method to create this filter?

Cheers,

Anton

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

 

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here


Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2018-03-12 19:59
FromAnton Kholomiov
SubjectRe: [Csnd] Howto: Chebyshev I Type bandpass filter
Cool! Thanks for the advices!

2018-03-12 22:54 GMT+03:00 Victor Lazzarini <Victor.Lazzarini@mu.ie>:
Use a LP and an HP in series. That would make a BP. Overlap the passband of one with the stopband of the other.

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 12 Mar 2018, at 19:06, Anton Kholomiov <anton.kholomiov@GMAIL.COM> wrote:

@Victor Yes this is right for Low and High pass, but Is it right to use a combo of them to create bandpass type?

@Matthew I can not use exact coefficients since they depend on k-rate input params of the algorithm

2018-03-12 22:04 GMT+03:00 Victor Lazzarini <Victor.Lazzarini@mu.ie>:
or in Eng

http://csound.com/docs/manual/clfilt.html

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 12 Mar 2018, at 19:03, Victor Lazzarini <Victor.Lazzarini@MU.IE> wrote:

http://csound.com/docs/manual-fr/clfilt.html

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 12 Mar 2018, at 18:54, Anton Kholomiov <anton.kholomiov@GMAIL.COM> wrote:

The algorith, is writtern in MATLAB and it uses the function `cheby1`
to get the coefficients for the filterand then feeds it to Biquad filter.
Actually we have the biquad filter implementaition but I'm not literate enough
to calculate the coefficients in raw Csound.



2018-03-12 21:51 GMT+03:00 Anton Kholomiov <anton.kholomiov@gmail.com>:
Thanks for feedback Justin!

But I need it for reimplementation of specific algorithm, so
in my case I need to replicate exact type of filter Chebyshev I

2018-03-12 21:47 GMT+03:00 Justin Rosander <justinrosander@gmail.com>:

Hi Anton,

I use butterbp.

--Justin

 

Sent from Mail for Windows 10

 

From: Anton Kholomiov
Sent: Monday, March 12, 2018 2:44 PM
To: CSOUND@LISTSERV.HEANET.IE
Subject: [Csnd] Howto: Chebyshev I Type bandpass filter

 

How to create this kind of filter in Csound?

(Chebyshev I Type bandpass filter)

 

 

The closest thing that I've found is clfilt

 

It can do Chebyshev I Type low and high pass.

But I need a bandpass

 

Is it right to create the band pass with superposition

of high-pass followed by low-pass with the same specs: dB ripple?

Or do you know a better method to create this filter?

Cheers,

Anton

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

 

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here


Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here