| Grant Covell wrote:
>
> A while back (4 months?), folks sent out various strategies for stereo
> panning: using part of a sine curve & using sqrt, etc. Could folks either
> repost their strategies or send 'em offline? I'm trying out a couple of
> things and most don't seem satisfying, so I wanted to check with what others
> have done.
I ak myself the same question few days ago and it's what I've found. It works
at i-rate as well.
The tables are designed graphically with Open Music.
; GBUZZST.ORC
sr=44100
kr=22050
ksmps=2
nchnls=2
;p4 = amp tab
;p5 = freq tab
;p6 = nb harmonics
;p7 = lowest harmonic
;p8 = harmonics amp rate factor tab (1 => equal rate for all harmonics)
;f9 = cosine tab
;f3 = pan tab
;f10= rev tab
instr 1
itabamp = 4
itabfreq = 5
itabharmamprate = 8
kamp oscil1i 0,p4,p3,itabamp
kfreq oscil1i 0,p5,p3,itabfreq
knbharm = p6
klowharm = p7
kharmamprate oscil1i 0,p8,p3,itabharmamprate
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
kpan oscil1i 0,1,p3,3 ;p3=dur, pantab=3
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
idel = .005
kdclic linseg 0, idel,1, p3-(100*idel),1,idel,0
asig gbuzz kamp, kfreq, knbharm, klowharm, kharmamprate, 9
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
outs asig*kdclic*kpan, asig*kdclic*(1-kpan)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
endin
;;SCORE
;amp
f 4 0 1024 7
10000 1024 10000
;freq
f 5 0 1024 7
115.0 51 105.5941 51 105.0 52 105.495 51 106.3861 51 107.4752 51 108.0693 51
109.1584 52 111.7327 51 113.2178 51 113.7129 51 113.8119 51 113.7129 52
109.8515 51 109.4554 51 109.4554 51 110.0495 51 112.3267 52 113.6139 51
114.604 51 115.0
;harmonics decrease rate
f 8 0 1024 7
0 51 40 51 139 52 267 51 495 51 554 51 554 51 515 52 129 51 119 51 129 51 178
51 327 52 584 51 693 51 752 51 861 51 950 52 1000 51 941 51 0
;cosinus wave
f 9 0 16385 11
1 1
;pan table
f 3 0 4096 7
1.0 205 0.9604 205 0.8614 204 0.7327 205 0.505 205 0.4455 205 0.4455 205
0.4851 204 0.8713 205 0.8812 205 0.8713 205 0.8218 205 0.6733 204 0.4158 205
0.3069 205 0.2475 205 0.1386 205 0.0495 204 0.0 205 0.0594 205 1.0
;p1 p2 p3 p4 p5 p6 p7 p8
i 1 0 10 3000 64 128 1 0.95
i 1 0 10 3000 64.032 128 1 0.95
i 1 0 10 3000 64.064 128 1 0.95
i 1 0 10 3000 64.096 128 1 0.95
i 1 0 10 3000 64.128 128 1 0.95
e
--
Jean-Michel DARREMONT |