Csound Csound-dev Csound-tekno Search About

Re: PAN question : working right?

Date1998-06-19 16:49
FromTerry Cast
SubjectRe: PAN question : working right?
To produce the first quarter of a sine wave the easy way, use GEN09 like this:

f1 0 1024 9 .25 1

This produces one full strength partial at one-quarter of the "fundamental" frequency. As I understand it, GEN09 only stores one period of the waveform. Since this partial's period
is four times that of the fundamental, only the first quarter of it will fit into the stored table. Anyway, whether or not I got the technical stuff right, you can verify
graphically that it works when you compile your orc/sco.

Terry Cast
University of Oklahoma

QATJD wrote:

>         Howdy. I'm currently beginning to employ some stereo control within csound
> (I do a lot of post-csound processing). And I'm not sure the x,y coordinate
> system is working as documented, although I'm sure someone will point out
> my user error :
>         for the kx and ky parameters to pan, I'm trying to use an oscili signal to
> control the pan at rates of .5-3 cps. But the best way I can get it to work
> properly (i.e. nice even, full sine pan from one side to another) is in
> offset mode, normalized, and sending kx from .5 to 1.5 and back. I can't
> seem to get anything working in non-offset mode (get tiny or no signal out)
> in the -1 to +2 area. My ftable is either a line from 0 to 1 or a GEN02
> sketch of a first quarter sine (per manual's sugg) ; and it seems to work
> just right either way with the setup above.
>         Could it be that the offset is working the wrong way? That would put my
> .5-1.5 back in range.... but I hate to criticize others' code, especially
> something that other people have _got_ to be using regularly out there.
>         BTW : How else might one 'automatically' generate a first quarter sine wav
> via gen routine?)
>         Also : in a GEN02 routine, with an extended guard point specified (size =
> 65 or 1025 or the like): does one specify a value for the guard point or
> does csound take care of it?
>         Any ideas appreciated.
>
> pax vobiscum
>
>         thank you for your bandwidth
>