Csound Csound-dev Csound-tekno Search About

[Csnd] first or second order?

Date2013-10-10 08:43
FromOeyvind Brandtsegg
Subject[Csnd] first or second order?
Just a minor terminology issue that I'd like to settle, and what
better place to ask than here?

A simple digital bandpass filter can be written
x(n) = (x(n) - x(n-2)) / 2
Now, would you call this a first order or second order filter?
My hunch is that it is first order, but I wonder if it is technically
more correct to call it a second order filter? Looking at
http://ccrma-www.stanford.edu/~jos/filters/Filter_Order.html
"The maximum delay, in samples, used in creating each output sample is
called the order of the filter."

best
Oeyvind



-- 

Oeyvind Brandtsegg
Professor of Music Technology
NTNU
7491 Trondheim
Norway
Cell: +47 92 203 205

http://flyndresang.no/
http://www.partikkelaudio.com/
http://soundcloud.com/brandtsegg
http://soundcloud.com/t-emp

Date2013-10-10 09:03
FromFrancois PINOT
SubjectRe: [Csnd] first or second order?
The transfer function of your filter would be: H(z) = 1/2 -1/2z^(-2). So the greatest absolute value of the exponents of the z variable is 2, which is the order of your filter. Knowing that z^(-1) means a one sample delay, the ccrma assertion is correct, of course

Hope this helps

Regards

Francois


2013/10/10 Oeyvind Brandtsegg <oyvind.brandtsegg@ntnu.no>
Just a minor terminology issue that I'd like to settle, and what
better place to ask than here?

A simple digital bandpass filter can be written
x(n) = (x(n) - x(n-2)) / 2
Now, would you call this a first order or second order filter?
My hunch is that it is first order, but I wonder if it is technically
more correct to call it a second order filter? Looking at
http://ccrma-www.stanford.edu/~jos/filters/Filter_Order.html
"The maximum delay, in samples, used in creating each output sample is
called the order of the filter."

best
Oeyvind



--

Oeyvind Brandtsegg
Professor of Music Technology
NTNU
7491 Trondheim
Norway
Cell: +47 92 203 205

http://flyndresang.no/
http://www.partikkelaudio.com/
http://soundcloud.com/brandtsegg
http://soundcloud.com/t-emp


Send bugs reports to the Sourceforge bug trackers
csound6:
            https://sourceforge.net/p/csound/tickets/
csound5:
            https://sourceforge.net/p/csound/bugs/
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"




Date2013-10-10 09:03
FromRichard Dobson
SubjectRe: [Csnd] first or second order?
Yes, second-order.

Richard Dobson

On 10/10/2013 08:43, Oeyvind Brandtsegg wrote:
> Just a minor terminology issue that I'd like to settle, and what
> better place to ask than here?
>
> A simple digital bandpass filter can be written
> x(n) = (x(n) - x(n-2)) / 2
> Now, would you call this a first order or second order filter?
> My hunch is that it is first order, but I wonder if it is technically
> more correct to call it a second order filter? Looking at
> http://ccrma-www.stanford.edu/~jos/filters/Filter_Order.html
> "The maximum delay, in samples, used in creating each output sample is
> called the order of the filter."
>
> best
> Oeyvind
>
>
>


Date2013-10-10 09:13
FromRory Walsh
SubjectRe: [Csnd] first or second order?
I hope you didn't put money on it being a first order filter Oeyvind ;)


On 10 October 2013 09:03, Richard Dobson  wrote:
> Yes, second-order.
>
> Richard Dobson
>
>
> On 10/10/2013 08:43, Oeyvind Brandtsegg wrote:
>>
>> Just a minor terminology issue that I'd like to settle, and what
>> better place to ask than here?
>>
>> A simple digital bandpass filter can be written
>> x(n) = (x(n) - x(n-2)) / 2
>> Now, would you call this a first order or second order filter?
>> My hunch is that it is first order, but I wonder if it is technically
>> more correct to call it a second order filter? Looking at
>> http://ccrma-www.stanford.edu/~jos/filters/Filter_Order.html
>> "The maximum delay, in samples, used in creating each output sample is
>> called the order of the filter."
>>
>> best
>> Oeyvind
>>
>>
>>
>
>
>
> Send bugs reports to the Sourceforge bug trackers
> csound6:
>            https://sourceforge.net/p/csound/tickets/
> csound5:
>            https://sourceforge.net/p/csound/bugs/
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
> csound"
>
>

Date2013-10-10 09:29
FromOeyvind Brandtsegg
SubjectRe: [Csnd] first or second order?
haha, no, It was not a bet ;-)
The only discussion was inside my own head.
Thanks for the help
Oeyvind

2013/10/10 Rory Walsh :
> I hope you didn't put money on it being a first order filter Oeyvind ;)
>
>
> On 10 October 2013 09:03, Richard Dobson  wrote:
>> Yes, second-order.
>>
>> Richard Dobson
>>
>>
>> On 10/10/2013 08:43, Oeyvind Brandtsegg wrote:
>>>
>>> Just a minor terminology issue that I'd like to settle, and what
>>> better place to ask than here?
>>>
>>> A simple digital bandpass filter can be written
>>> x(n) = (x(n) - x(n-2)) / 2
>>> Now, would you call this a first order or second order filter?
>>> My hunch is that it is first order, but I wonder if it is technically
>>> more correct to call it a second order filter? Looking at
>>> http://ccrma-www.stanford.edu/~jos/filters/Filter_Order.html
>>> "The maximum delay, in samples, used in creating each output sample is
>>> called the order of the filter."
>>>
>>> best
>>> Oeyvind
>>>
>>>
>>>
>>
>>
>>
>> Send bugs reports to the Sourceforge bug trackers
>> csound6:
>>            https://sourceforge.net/p/csound/tickets/
>> csound5:
>>            https://sourceforge.net/p/csound/bugs/
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>> csound"
>>
>>
>
>
> Send bugs reports to the Sourceforge bug trackers
> csound6:
>             https://sourceforge.net/p/csound/tickets/
> csound5:
>             https://sourceforge.net/p/csound/bugs/
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>
>



-- 

Oeyvind Brandtsegg
Professor of Music Technology
NTNU
7491 Trondheim
Norway
Cell: +47 92 203 205

http://flyndresang.no/
http://www.partikkelaudio.com/
http://soundcloud.com/brandtsegg
http://soundcloud.com/t-emp