| if you use stereo (nchnls=2) you can output
both signals with outs acos, asin and check that
you are getting what you want.
Victor
>
>
> Cribbing from several Csound examples, this is what I came
> up with that appears to work (I still need to look at the
> output waveforms, but it at least produces sane output) -
> replace "out acos" with "out asin" to reverse the phase:
>
>
>
> -W
>
>
> sr = 44100
> kr = 4410
> ksmps = 10
> nchnls = 1
>
> instr 1
> Sname strget 1
> ilen filelen Sname
> event_i "i", 2, 0, ilen
> endin
>
> instr 2
> Sname strget 1
> ain soundin Sname
> acos, asin hilbert ain
> out acos
> endin
>
>
> i1 0 1
>
>
>
> Thanks for the pointer on stripping it down to hilbert
> only!
>
> Rodney
> --
> View this message in context:
>
http://www.nabble.com/+---90-degree-phase-shift-of-input-WAV--tf4197587.html#a11948760
> Sent from the Csound - General mailing list archive at
> Nabble.com.
>
> --
> Send bugs reports to this list.
> To unsubscribe, send email to
> csound-unsubscribe@lists.bath.ac.uk |