Tracking phase with hilbert~

    Sep 21 2008 | 3:21 pm
    Someone told me recently that I can use hilbert to get signal values between 0 and 0.999 (indicating what part of the wave's cycle the signal is at) from a wave of an arbitrary frequency.
    If I lowpass filter an incoming signal so I only have the fundamental and pass the phase (0 - 0.999) values to a lookup table I can get new timbres from any signal.
    I just need a little help with the maths getting those values out. Since the hilbert object essentially gives an out of phase version of the original signal I'm guessing it involves some formula using the samples from the original and out of phase signal.
    Thank you in advance.