;; bells.orc
;; ----------------------------------------
sr = 44100
kr = 4410
nchnls = 2
instr 1
;p2 onset
;p3 duration
;p4 base frequency
;p5 fm index
;p6 pan (L=0, R=1)
kenv expon 1,p3,0.01
kindx expon p5,p3,.4
a1 foscil kenv*10000,p4,1,1.143,kindx,1
outs a1*(1-p6),a1*p6
endin
;; ----------------------------------------
;; bells parameter file
;; ----------------------------------------
{
f1 0 8193 10 1 ;sine wave for foscil
}
f 0 20 ;field duration: 20 secs
p1 const 1
p2 ;decreasing density
rnd uni ;from .03 - .08 sec to .5 - 1 sec
mask [.03 .5 ipl 3] [.08 1 ipl 3] map 1
prec 2
p3 ;increasing duration
rnd uni
mask [.2 3 ipl 1] [.4 5 ipl 1]
prec 2
p4 ;narrowing frequency grid
rnd uni
mask [3000 90 ipl 1] [5000 150 ipl 1] map 1
quant [400 50] .95
prec 2
p5 ;FM index gets higher from 2-4 to 4-7
rnd uni
mask [2 4] [4 7]
prec 2
p6 range 0 1 ;panorama position uniform distributed
prec 2 ;between left and right
;; ----------------------------------------
;; bells parameter file
;; ----------------------------------------
{
f1 0 8193 10 1 ;sine wave for foscil
}
f 0 10 ;field 1
p1 const 1
p2 range .1 .3 prec 2 ;density between 100 and 300 ms
p3 range .7 1.2 prec 2
p4 item heap (300 320 450 430 190) ;5 frequencies in random permutations
p5 const 3 ;FM index = 3
p6 range 0 1 prec 2
f 2 8 ;field 2
p1 const 1
p2 seg (2 .01 5 .5 8 .01 ipl 1) prec 3 ;another density structure
p3 const .2
p4 item random (2000 2020 2400 2450 5300 2310 2350)
p5 seg (2 3 5 7 8 3 ipl 1) prec 1 ;FM index synchronous to density p2
p6 range 0 .5 prec 2 ;panorama only in the left half
f 5 15 ;field 3
p1 const 1
p2 item swing (.3 .05 .2 .1 1) ;a rhythm
p3 item swing (.3 .05 .2 .1 1) ;no rest, no overlap
p4 range 100 200 prec 1
p5 seg [1 5] ;increasing FM index
p6 range .3 .7 prec 2 ;only in the middle
;; ----------------------------------------
Note that different runs of CMask result partly in very different score files!
;; bells parameter file
;; ----------------------------------------
{
f1 0 8193 10 1 ;sine wave for foscil
}
f 0 20 ;field 1
p1 const 1
p2 range -.2 .2 ;density difference -200 to +200 ms
accum limit .01 1 ;absolut values between .01 to 1 sec
p3 range -.1 .1
accum mirror .1 1.5 init .5
p4 range -50 100 ;tendency to higher frequencies
accum wrap 200 2000 init 300 ;but wrapped at (upper) boundary
p5 const 3 ;FM index = 3
p6 range 0 1 prec 2
;; ----------------------------------------
For more examples (timestretching and others) look in the folder "CMask examples".