Author |
Message |
Kassen
Janitor


Joined: Jul 06, 2004 Posts: 7678 Location: The Hague, NL
G2 patch files: 3
|
Posted: Sat Mar 22, 2008 7:29 am Post subject:
6db LPF unstable? |
 |
|
I've started to suspect the NM's 6db/oct LPF has a tendency to react to it's input dropping to a steady zero by (sometimes?) going unstable and outputting either a positive very small value or some sort of noise... I need to to return to zero as soon as the resolution gives instead, at least for CV applications.
Does anybody know more about this? The list archives seem kinda hard to search. _________________ Kassen |
|
Back to top
|
|
 |
blue hell
Site Admin

Joined: Apr 03, 2004 Posts: 24389 Location: The Netherlands, Enschede
Audio files: 296
G2 patch files: 320
|
Posted: Sun Mar 23, 2008 4:07 pm Post subject:
|
 |
|
I don't think I ever heard anyone about this, so I guess you are the expert now  _________________ Jan
also .. could someone please turn down the thermostat a bit.
 |
|
Back to top
|
|
 |
Kassen
Janitor


Joined: Jul 06, 2004 Posts: 7678 Location: The Hague, NL
G2 patch files: 3
|
Posted: Sun Mar 23, 2008 5:01 pm Post subject:
|
 |
|
Blue Hell wrote: | I don't think I ever heard anyone about this, so I guess you are the expert now  |
Ah, ok, well, expect my paper soon, it's being delayed while I set up a agency specializing in advice about this issue :¬p.
More to the point, it's not so easy to make sure this is happening at all. For one thing all the modules that are good at detecting these things are a 4th as fast as the issue (if it's noise) and measuring whether a LSB has rounding issues leads to problems where the method of detection may have those as well. _________________ Kassen |
|
Back to top
|
|
 |
blue hell
Site Admin

Joined: Apr 03, 2004 Posts: 24389 Location: The Netherlands, Enschede
Audio files: 296
G2 patch files: 320
|
Posted: Sun Mar 23, 2008 5:06 pm Post subject:
|
 |
|
Kassen wrote: | More to the point, it's not so easy |
I agree, when you go into things like this you always seem to run in a couple of seemingly arbitrary design choices made in the module design. _________________ Jan
also .. could someone please turn down the thermostat a bit.
 |
|
Back to top
|
|
 |
Kassen
Janitor


Joined: Jul 06, 2004 Posts: 7678 Location: The Hague, NL
G2 patch files: 3
|
Posted: Mon Mar 24, 2008 1:08 pm Post subject:
|
 |
|
Blue Hell wrote: |
I agree, when you go into things like this you always seem to run in a couple of seemingly arbitrary design choices made in the module design. |
Yeah. I don't even care all that much about stability as such, I just want to filter CV signals and be sure they will/can return to zero at some predictable time.
In the next days I'll try to create and post a patch that demonstrates this behavior. _________________ Kassen |
|
Back to top
|
|
 |
DrJustice

Joined: Sep 13, 2004 Posts: 2114 Location: Morokulien
Audio files: 4
|
Posted: Sun Apr 06, 2008 5:29 pm Post subject:
|
 |
|
A bit late, but: some filter topologies don't like too short word lengths (low resolution) in the internal filter states, which can lead to the filter getting into an unstable region when you feed it very low frequencies. Not saying that this is the case here, but you may want to test that with some very low frequency signals at a high amplitude that you cut off suddenly - then listen for noises.
DJ
-- |
|
Back to top
|
|
 |
Kassen
Janitor


Joined: Jul 06, 2004 Posts: 7678 Location: The Hague, NL
G2 patch files: 3
|
Posted: Sun Apr 06, 2008 6:31 pm Post subject:
|
 |
|
DrJustice wrote: | A bit late, but: some filter topologies don't like too short word lengths (low resolution) in the internal filter states, which can lead to the filter getting into an unstable region when you feed it very low frequencies. Not saying that this is the case here, but you may want to test that with some very low frequency signals at a high amplitude that you cut off suddenly - then listen for noises.
DJ
-- |
Sounds like that might be it. I'm definitely feeding it very low frequencies at high amplitudes, some even below 1Hz as I'm using it to interpolate CV signals.... I think those might qualify :¬)
I didn't think word-length for the quotients would be it, that sounds more like something for very old samplers (where I can hear it and sometimes abuse it), not for a fairly high-res thing like the NM. Still, even a small amount of instability would do it as I'm trying to detect whether a CV has returned to zero yet, so even a LSB would muck it up.
And thanks! _________________ Kassen |
|
Back to top
|
|
 |
DrJustice

Joined: Sep 13, 2004 Posts: 2114 Location: Morokulien
Audio files: 4
|
Posted: Sun Apr 06, 2008 7:51 pm Post subject:
|
 |
|
It's not the coefficients that are critical, it's the delay elements. I assume that those are 24 bits in the NM, and depending on filter topology that can be too little. (Again I speculate since I know nothing about what happens inside the NM)
I forgot to mention an important criteria (sorry!), and that is for this instability to occur, the cutoff needs to be low, leading to very low frequencies recirculating inside the (IIR) filter. I'm sure you can see where that leads; the recirculation over very many sample periods (ref. low f) means that numerical errors will build up, and if the filter states end up too far from what they "should be" - then the filter can blow up. 1Hz would indeed be considered a low frequency in this case.
Edit: Dang, that was a clumsy formulation - I guess I should rather be asleep now that write stuff like that...
DJ
-- |
|
Back to top
|
|
 |
Kassen
Janitor


Joined: Jul 06, 2004 Posts: 7678 Location: The Hague, NL
G2 patch files: 3
|
Posted: Mon Apr 07, 2008 5:58 am Post subject:
|
 |
|
Nah, I got it. The cutoff is indeed very low and indeed increasing the cut-off did seem to bring back stability, I'm fairly sure it's NOT "blowing up" though.
Do note I said it's the 6db filter, I kinda suspect a rounding error. _________________ Kassen |
|
Back to top
|
|
 |
|