Hi Oleg,

That looks fine to me: Hilbert = 2 * imag(pospass)
(I don't care about the scale factor, but it's presumably due to pospass
choosing a 0.5 scaling.)

Glad to hear there is a better version - add it to filters.lib?
My best version (in matlab somewhere) rotates the spectrum by -pi/2 on the
unit circle, applies a high quality real half-band lowpass to the real and
imag parts, and rotates back by pi/2 - no fiddling with special complex
bandpass filtering to pass only positive frequencies.

- Julius

On Mon, Aug 31, 2026 at 10:52 AM Oleg Nesterov <[email protected]> wrote:

> Hi Julius,
>
> On 08/26, Julius Smith wrote:
> >
> > I don't recall the details of fi.hilbert or pospass, but at the
> definition
> > level, I want to note that a pospass ("positive-frequency-pass filter")
> > consists of a pass-through for the real part and an ideal Hilbert
> transform
> > for the imaginary part, i.e. pospass = _,hilbert;  In practice, hilbert
> is
> > never ideal, so the real part should be identically bandpassed to avoid
> > inconsistencies near dc and nyquist
>
> Hmm... perhaps I am totally confused but
>
>         hilbert(N,fc) = fi.pospass(N,fc) : !,*(2.0);
>
> from
>
> https://github.com/grame-cncm/faustlibraries/commit/d678c0464f03e40c85732421e38a7b7e8ea578e1
>
> doesn't look right to me at all...
>
> And this reminds me, it seems there is a much better implementation, see
>
>         Re: [Faudiostream-users] Hilbert filter
>         https://sourceforge.net/p/faudiostream/mailman/message/36710453/
>
> the links to frequency responses are still valid.
>
> Oleg.
>
>

-- 
AI has taken my job, but only I know what it is.
_______________________________________________
Faudiostream-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/faudiostream-users

Reply via email to