Csound Csound-dev Csound-tekno Search About

Re: stereo by dodge

Date1998-01-03 21:42
FromKhalid
SubjectRe: stereo by dodge
Steven Curtin wrote:
> 
> >pete moss wrote:
> >> here is a question about making a stereo signal in an orc.
> >> most of you seem to like doing something like this:
> >> outs  asig*ix, asig*(1-ix)
> >>(...)
> >> on p318 of dodge v2, he recommends doing a similar operation
> >> outs asig*sqrt(ix), asig*sqrt(1-ix)
> >> is one better than the other?  (...)

> Don't forget the quarter-sine-wave panning technique
> 
> Generate the sine table in your score file:
> f1 0 1025 9 .25 1 0  ;The first quadrant of a sine for panning
> 
> In the orc file you would add:
> kpanl    tablei kbalance, 1, 1
> kpanr    tablei 1.0 - kbalance, 1, 1
> outs     asrc * kenv * kpanl ,asrc * kenv * kpanr
> 

This turned out to be most efficient on my system. Since I never
saw it in any of the public orc's, here it is:

iright	=	sqrt(p4)
ileft	=	sqrt(1-p4)
	(...)
	outs	asig*iright, asig*ileft

	Happy GNU year,
			kd