Re: [music-dsp] Trapezoidal and other integration methods applied tomusical resonant filters

2011-05-18 Thread Andrew Simper
On 18 May 2011 18:40, robert bristow-johnson wrote: > > On May 18, 2011, at 5:28 AM, Vadim Zavalishin wrote: > >>> As far as I can tell there are only two state variables, v1 and v2, >>> and also their previous values v1z and v2z. I'm not sure that the >>> input v0 and its previous value count as

Re: [music-dsp] Trapezoidal and other integration methods applied tomusical resonant filters

2011-05-18 Thread robert bristow-johnson
On May 18, 2011, at 5:28 AM, Vadim Zavalishin wrote: As far as I can tell there are only two state variables, v1 and v2, and also their previous values v1z and v2z. I'm not sure that the input v0 and its previous value count as state in this sense, but I'm not really up with the lingo, so pleas

Re: [music-dsp] Trapezoidal and otherintegrationmethodsappliedtomusical resonant filters

2011-05-18 Thread Vadim Zavalishin
I was recently made aware by a friend of mine Urs Heckmann that the KHN / SVF as we know it is just a special case of a "leapfrog" filter, The 2-pole SVF as a block diagram is actually particular case of the controllable canonical form of continuous time LTI system, which is essentially a cont

Re: [music-dsp] Trapezoidal and otherintegrationmethodsappliedtomusical resonant filters

2011-05-18 Thread Andrew Simper
Hi Vadim, I was just listing the standard analog way which can be done easily just with one more opamp: notch = high + low peak = high - low but you are right, you can build a peaking version in a variety of ways. I was recently made aware by a friend of mine Urs Heckmann that the KHN / SVF as

Re: [music-dsp] Trapezoidal and other integration methods appliedtomusical resonant filters

2011-05-18 Thread theandersoncouncil
You can find more of Tim's work here: https://ccrma.stanford.edu/~stilti/papers/ His Thesis is exceptional, I highly recommend giving it a look. cheers, -Brian On May 16, 2011, at 12:42 PM, "Ross Bencina" wrote: > Vadim Zavalishin wrote: >> Somewhere I recently found a reference to an article

Re: [music-dsp] Trapezoidal andotherintegrationmethodsappliedtomusical resonant filters

2011-05-18 Thread Vadim Zavalishin
allpass = 1 - 2*bandpass = (g^2-g*k*s-s^2)/(g^2+g*k*s+s^2) Sorry allpass = 1 - 2*bandpass = (g^2-g*k*s+s^2)/(g^2+g*k*s+s^2) of course -- Vadim Zavalishin Senior Software Developer | R&D Tel +49-30-611035-0 Fax +49-30-611035-2600 NATIVE INSTRUMENTS GmbH Schlesische Str. 28 10997 Berlin, Germ

Re: [music-dsp] Trapezoidal and otherintegrationmethodsappliedtomusical resonant filters

2011-05-18 Thread Vadim Zavalishin
low = v2/v0 = (g^2)/(g^2 + g*k*s + s^2) band = v1/v0 = (g*s)/(g^2 + g*k*s + s^2) high = (v0 - k*v1 - v2)/v0 = (s^2)/(g^2 + g*k*s + s^2) notch = (v0 - k*v1)/v0 = 1 - (g*k*s)/(g^2 + g*k*s + s^2) peak = (v0 - k*v1 - 2*v2) = (-g^2 + s^2)/(g^2 + g*k*s + s^2) allpass = 1 - 2*bandpass = (g^2-g*k*s-s^2)

Re: [music-dsp] Trapezoidal and otherintegrationmethodsappliedtomusical resonant filters

2011-05-18 Thread Andrew Simper
Ahh, thanks Vadim! I was getting my "r" term mixed up with "g", when actually g = 1/r. For those interested this is how you solve the circuit equations, all of which can be written down directly from the diagram I posted earlier http://dl.dropbox.com/u/14219031/Dsp/sem-1a-linear-svf.jpg and a coup

Re: [music-dsp] Trapezoidal and otherintegrationmethodsappliedtomusical resonant filters

2011-05-18 Thread Vadim Zavalishin
Vadim, did possibly get the lp and hp gains swapped in your equations? With my working is should the s^2 numerator term should be for the low pass output, and the cutoff^2 gain for the high pass output. H(s) = (gainLP*cutoff^2 + gainBP*cutoff*s + gainHP*s^2)/(cutoff^2+k*cutoff*s+s^2) No. s^2 i

Re: [music-dsp] Trapezoidal and otherintegrationmethodsappliedtomusical resonant filters

2011-05-18 Thread Andrew Simper
Vadim, did possibly get the lp and hp gains swapped in your equations? With my working is should the s^2 numerator term should be for the low pass output, and the cutoff^2 gain for the high pass output. Andy -- cytomic - sound music software skype: andrewsimper On 18 May 2011 09:35, Vadim Zava

Re: [music-dsp] Trapezoidal and other integration methods applied tomusical resonant filters

2011-05-18 Thread Vadim Zavalishin
Hehe, I have no differential equations at all to solve myself and would be completely lost trying to do so, I don't go anywhere near the s-domain either. My feet are very very firmly planted in the time domain that I have trouble understanding all the fancy footwork you are doing Vadim! My methods

Re: [music-dsp] Trapezoidal and other integration methods applied tomusical resonant filters

2011-05-18 Thread Andrew Simper
> I'm not too good at electronics, but I'd guess this diagram would imply the > cutoff gains placed before the integrators in the s-domain block diagram > (the gain control the current which charges the capacitors, not the > capacitor's output voltage). This should be pretty much identical to the >

Re: [music-dsp] Trapezoidal and other integrationmethodsappliedtomusical resonant filters

2011-05-18 Thread Stefan Stenzel
On 5/18/2011 1:15 AM, robert bristow-johnson wrote: > > On May 17, 2011, at 6:27 PM, Ross Bencina wrote: > >> robert bristow-johnson wrote: >>> even though the cookbook yields coefficients for Direct 1 or Direct 2 >>> forms, it's pretty easy to translate that to the state-variable design if >>

Re: [music-dsp] Trapezoidal and otherintegrationmethodsappliedtomusical resonant filters

2011-05-18 Thread Vadim Zavalishin
I've often wondered about the relationship between the z-plane transfer function and state variable form. Can anyone recommend a good reference (book?) that clarifies the relationship between direct form and state variable form in digital filters? It's easiest understood in the s-domain. The t

Re: [music-dsp] Trapezoidal and other integration methods applied tomusical resonant filters

2011-05-18 Thread Vadim Zavalishin
As far as I can tell there are only two state variables, v1 and v2, and also their previous values v1z and v2z. I'm not sure that the input v0 and its previous value count as state in this sense, but I'm not really up with the lingo, so please let me know what they are meant to be called. ... v1z

Re: [music-dsp] Long-term average spectra; testing A/D converter

2011-05-18 Thread Andy Farnell
First thing that comes to mind is you might save a lot of time by contacting Brian at echonest, as they basically have a big db of musical feature analysis covering different genres etc. If you think about dub reggae vs a brass band then you'll agree its hardly good science to assume a one size

[music-dsp] Long-term average spectra; testing A/D converter

2011-05-18 Thread Jerry
I'm trying to discover any work about long-term average spectra of speech and music. For speech, I found "Some remarks on the average speech spectrum" at http://www.speech.kth.se/prod/publications/files/qpsr/1964/1964_5_4_013-014.pdf which is work done in 1964 using the so-called "chorus" method w