| There is an opcode called filelen that
returns the length of a file. I am not
too sure though why you need a linseg,
if all you want is a constant phase shift.
Victor
>
>
> Victor Lazzarini wrote:
> >
> > what you are doing appears at a quick glance to
> > be SSB, rather than a straight phase shift.
> >
> > The hilbert output will exhibit two signals which
> > are 90-degree apart, so you just use them directly.
>
> Understood.
>
> So far, I sort of get what Csound is doing - it's
> basically applying a sine (or cosine) wave to the WAV
> input to cause the 90-degree shift (thus doing a Hilbert
> transform). The challenge that I have is understanding
> the concept of an instrument and score - since my
> intention is to simply apply the transform to the entire
> duration of the input WAV, the duration of the input is
> not necessarily known - so the duration parameter to
> linseg isn't known (unless Csound has some way to derive
> it).
>
> I am sure the solution must be reasonably simple, since
> Csound is advertised as a tool well-suited to doing DSP on
> input files, but I can find few (well, in truth, no)
> examples of how to do simple file-based input
> post-processing (as opposed to the more traditional output
> synthesis method) with Csound.
>
> Rodney
> --
> View this message in context:
>
http://www.nabble.com/+---90-degree-phase-shift-of-input-WAV--tf4197587.html#a11946344
> 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 |