I am not sure I understand what you want to do; phasor
outputs a varying phase, so I don't know what you mean
by a 'variable phase'.
Victor
----- Original Message -----
From: Mark Van Peteghem <Mark.Van.Peteghem@telenet.be>
Date: Friday, March 6, 2009 4:36 pm
Subject: [Csnd] Phasor with variable phase
To: csound@lists.bath.ac.uk
> Hi,
>
> I'm looking for a way to make a phasor with a varying phase;
> with the
> phasor opcode the phase is fixed. Note that it should work for
> negative
> values of the phase, so a simple frac(x) doesn't work. So far
> the only
> two solutions I thought of are
>
> aphasor phasor kfreq
> aphasor = frac(frac(aphasor+kphase)-1)+1
>
> and
>
> setksmps 1
> kphasor phasor kfreq
> kphasor loopsegp kphasor+kphase, 0, 1, 1
> aphasor upsamp kphasor
>
> which look quite clumsy and maybe consume more CPU-time than
> necessary.
> --
> Mark
> _________________________________________
> When you get lemons, you make lemonade.
> When you get hardware, you make software.
>
>
>
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body
> "unsubscribe csound"
========================
Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
National University of Ireland, Maynooth