| An example using stored table values. The sqrt thing is supposed to sound
smoother I think.
; check to see if pan is out of our range
ipanfac = (p6 > 1 ? 1 : p6)
ipanfac = (p6 < 0 ? 0 : ipanfac)
; map linear pan factor to more natural sqrt function
ilpan tablei ipanfac,10,1
irpan tablei ipanfac,11,1
outs X*ilpan, X*irpan
endin
And in the score:
f10 0 129 9 .25 1 90
f11 0 129 9 .25 1 00
Cheers
Arne(not to scale)
"You people have been throwing shit at me for years. Now it's starting to
fertilize!"
Edgar Varese
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
http://www.geocities.com/SiliconValley/Peaks/3346
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Disclaimer: The views expressed in these messages are not necessarily those
of Management.
|