Hilbert Shifter

Post any examples or modules that you want to share here
User avatar
martinvicanek
Posts: 1334
Joined: Sat Jun 22, 2013 8:28 pm

Re: Hilbert Shifter

Post by martinvicanek »

The coefficients are from Tronic's calculator at viewtopic.php?f=4&t=3112&start=10#p16916
borodadada
Posts: 47
Joined: Sun Jun 02, 2013 5:58 pm

Re: Hilbert Shifter

Post by borodadada »

How create coeff. in pair? I set @order = 8; @transition = 0.001 First line coeff?
coeff = [
0.15792150085531764,
0.471 13659195211427,
0.725103231339305,
0.8708226386356741,
0.9422417392772633,
0.9749764749218756,
0.9898478236632062,
0.997282698317513
]
Tronic
Posts: 539
Joined: Wed Dec 21, 2011 12:59 pm

Re: Hilbert Shifter

Post by Tronic »

Code: Select all

coefs = [your array]
coefs_even = coefs.values_at(* coefs.each_index.select {|i| i.even?})
coefs_odd = coefs.values_at(* coefs.each_index.select {|i| i.odd?})

Edit: corret typo
borodadada
Posts: 47
Joined: Sun Jun 02, 2013 5:58 pm

Re: Hilbert Shifter

Post by borodadada »

Thanks, code work. For the coefficients of Hilbert , which need some special settings? I try
@order = 8; @transition = 0.1
coeff = polyphase_IRR_coeff.compute_coefs_spec_order_tbw(@order,@transition)
coefs = coeff
coefs_even = coefs.values_at(* coefs.each_index.select {|i| i.even?})
coefs_odd = coefs.values_at(* coefs.each_index.select {|i| i.odd?})
But phase rotated not 90 degree.
User avatar
martinvicanek
Posts: 1334
Joined: Sat Jun 22, 2013 8:28 pm

Re: Hilbert Shifter

Post by martinvicanek »

borodadada wrote:[...] phase rotated not 90 degree.
If you post your schematic we can try to help.
User avatar
Jarfaut
Posts: 18
Joined: Mon Apr 24, 2023 1:25 pm

Re: Hilbert Shifter

Post by Jarfaut »

Great!
Thanks for this topic and examples!
It's almost exactly what I was looking for. And next, I'll write my own commentary on it in my little thread.
Respectfully!
Post Reply