expseg (LINEAR AND EXPONENTIAL GENERATORS)

지수함수를 그리는데 사용되는 instrument입니다.

  kr/ar expseg ia, idur1, ib[, idur2, ic[…]]

ia- 시작값 . Zero 사용 하지 말것.

idur1 – 처음 점부터 다음점 까지의 time duration

ib – 라인 ending값.

-지수함수는 2개 이상의 점을 사용하여 직선이 아닌 부드러운 곡선을 만드는데 사용.

ex :
;orc file========================;made by salang..eve
        sr     = 44100
        kr     = 4410
        ksmps  = 10
        nchnls = 2

instr 102
;panorama

klin line .1, 20, 10
kpan oscil .5, klin, 1
kpan2 = kpan + .5

  ;main sound control
  
k2 expseg 100, 8, 9, 10, 2, 190, 191, 5, .1
k3 expseg 500, 8, .1, .12, 2, 600, 601, 5, .2

k8 expseg .1, 4, 90, 6, 7, 100, 7, 4, 110
k9 expseg .1, 2, 30, 6, 4, 100, 101, 9, 500

k0 oscil k8, k2*.8, 3
k1 oscil k9, k3*8, 3

;main sound————————————-
        a1 oscil 10000, k0, 4
        a2 oscil 1, k1, 4
        a3 oscil 1, k3*100, 4

    
    a4 = a1*a2*a3
        
        
outs a4*kpan2, a4*(1-kpan2)
display kpan2, 1

endin

;sco file========================;made by salang..eve
f1 0 2048 10 1
f2 0 2048 10 1 .5 .333 .25 .2 .166 .142 .125 .111 .1 .09 .083 .076 .071 .066 .062
f3 0 2048 10 1 0 .3 .2 0 .14 0 .111
f4 0 2048 10 1 1 1 1 .7 .5 .3 .4

;inst st dur amp freq p6 p7 p8 p9 p10 p11 p12 p13 p14
i102 0 20

Leave a Comment.

This site uses Akismet to reduce spam. Learn how your comment data is processed.