hilbert~ (or freqshift~) in Gen?

May 2, 2013 at 7:34pm

hilbert~ (or freqshift~) in Gen?

Hi all,

I am trying to add a frequency shifter to the effect chain I’m working on within gen~. Unlike MSP, I couldn’t find a dedicated operator. Looking at the reference for freqshift~ [http://www.cycling74.com/docs/max5/refpages/msp-ref/freqshift~.html] a DIY frequency shifter seems pretty feasible, except for the hilbert~ part. My knowledge of DSP is pretty rudimentary, what would be a solution to recreate the Hilbert transform within gen~? Using a codebox?

Any help/hints/suggestions/best practices would be much appreciated!



May 3, 2013 at 3:57pm


i did all this in GenExpr quite a while ago, so cannot vouch for it being any good, but maybe it will be useful to you as a start.

i put it in a demo patch for you (patch based on the [hilbert~] helpfile), attached.


  1. hilbertDemo.maxpat
May 3, 2013 at 11:59pm

Thanks for your help! I’ll check it out as soon as I have some time, it’s definitely great to have a starting point.

May 8, 2013 at 12:50pm

this one is better


You must be logged in to reply to this topic.