At one sample rate you may be able to tweak the EQ to get the shape you
want, but you have to consider what happens at different sample rates the
algorithm can run at, and what happens not just to the sound, but what
happens with possibly further non-linear processing of that sound. When
writing audio software you can't assume a fixed sample rate, which you can
do when writing dedicated hardware. Your plugin needs to sound as close to
the same as possible apart from the benefit of aliasing reduction.

Also I can definitely hear differences in bell EQ between cramped and not
cramped up in the 10khz-16khz range easily enough, and also more subtle
changes from 16khz-20khz when processing the EQd  signal through
non-linearities. In fact I can hear the difference between a minimum phase
/ intermediate phase oversampler and linear phase oversampler when
processed through non-linearities afterwards, and for those the cutoff
frequency is pretty much at nyquist or just below - every with the same
steepness in filter. This is because when things are put through
non-linearities after the EQ (filter) it can boost / change things in
different ways.

Here are some time domain plots of this sort of thing, where you need to
look at the red plot on both images. The little "kick" in time domain
response was clearly audio to me as a difference between these two, I
thought there was an issue with my analog modelling, but it was actually
the difference between the oversampling filters in my software vs my
soundcard causing the difference between my model and the hardware I was
modelling:

https://cytomic.com/files/forums/scream-linear-phase-os.png
https://cytomic.com/files/forums/scream-minimum-phase-os.png

Cheers,

Andy

On Tue, 5 Dec 2023 at 16:29, Frank Sheeran <[email protected]> wrote:

> Andy Simper said:
> > you need to look at the
> > frequency response near nyquist and see how closely it matches
>
> I think that's mathematically true but how much can people actually hear
> above 10kHz anyway?  Unless they're like under 12 years old and in that
> case who cares what their opinion is of the sound? :-D   Maybe I just have
> too much hearing damage from my years playing reggae keys but when I was
> doing software dev in this stuff a decade ago I couldn't really hear the
> top octave at all (at age then of 45 or so).
>
>
>
>
>
> On Tue, Dec 5, 2023 at 2:04 PM MUSIC-DSP automatic digest system <
> [email protected]> wrote:
>
>> There are 2 messages totaling 122 lines in this issue.
>>
>> Topics of the day:
>>
>>   1. Simulate simple EQ circuit (2)
>>
>> ----------------------------------------------------------------------
>>
>> Date:    Mon, 4 Dec 2023 07:00:47 +0100
>> From:    Jens Johansson <[email protected]>
>> Subject: Re: Simulate simple EQ circuit
>>
>> I just wanted to say I am awestruck with the amount of good advice so far!
>>
>> (I have not in any way given up or conceded the fight, just my day job
>> that
>> got in between. I do somehow understand how reactances can be seen R -->
>> Ljω --> 1/ Cjω and I have some kind of conception about Kirchhoff's and
>> Ohm's laws, Euler's formula etc etc, but it's still a bit of DSP stuff to
>> absorb beyond this. So I'm ruminating on the issues and reading when I
>> have
>> time. I don't have some kind of production deadline, it's a pure hobby
>> project ^^ )
>>
>> Cheers and much love,
>> J
>>
>>
>> >
>>
>> ------------------------------
>>
>> Date:    Tue, 5 Dec 2023 08:41:40 +0800
>> From:    Andrew Simper <[email protected]>
>> Subject: Re: Simulate simple EQ circuit
>>
>> Hi Jens,
>>
>> It's amazing how complicated such a simple circuit is to solve efficiently
>> and accurately, even when kept without any drive (ie linear). It is quite
>> a
>> steep dropoff into fairly deep waters, so no worries at all taking your
>> time! The good news is that if you really like deep diving you can go down
>> a very long way - I still can't see the bottom :)
>>
>> Even on this EQ there is another layer of complexity that we haven't
>> covered yet: "frequency warping". This arises from having a finite sample
>> rate, and how the nyquist frequency of 1/2 the sample rate is mapped to
>> being a "very large" frequency in reality. So once you have a regular
>> Crank-Nicolson / trapezoidal integration via whichever method you want (ie
>> nodal, loop, wdf, port theory, laplace + bilinear) you need to look at the
>> frequency response near nyquist and see how closely it matches. You can
>> try
>> to match either the amplitude (frequency) or phase response more
>> accurately
>> at frequencies near nyquist (1/2 the sample rate), but if you match the
>> amplitude response closely then the phase response suffers, and vice
>> versa.
>> Usually the best "compromise" solution to get both more accurate is x2
>> band-limited upsampling, then match further away from nyquist, then
>> decimate /2 (there are no harmonics to limit, so you don't need to
>> band-limit before decimation). This process is really a form of
>> "oversampling", just without the bandlimiting needed before the decimation
>> step, but if you have a non-linear EQ, which is another layer of
>> complexity
>> again, you will need the bandlimiting step.
>>
>> Cheers,
>>
>> Andy Simper
>>
>> ------------------------------
>>
>> End of MUSIC-DSP Digest - 3 Dec 2023 to 4 Dec 2023 (#2023-67)
>> *************************************************************
>>
>

Reply via email to