-
Notifications
You must be signed in to change notification settings - Fork 0
/
05Hammer2a
33 lines (26 loc) · 913 Bytes
/
05Hammer2a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
;Based on 05Hammer2. Trying another object to hit
;header
(new)
(in-package ::mlys)
;make drum
(setq myDrum (make-object 'clamped-circ-plate
(modes 80)
(radius .5)
(thickness 0.01)
(density 1000)
(young 2e11)
(poisson 0.3)
(freq-loss 1)
(const-loss 1)))
;(set-pitch myDrum 'radius 70)
;make accesses
(setq myDrumHit (make-access myDrum (const 0.25 0) 'normal))
(setq myDrumListener (make-access myDrum (const 0.75 90) 'normal))
;make connections
(make-connection 'force myDrumHit (make-controller 'envelope 1
'((0 0)
(0.001 100))))
;synthesize
(make-point-output myDrumListener)
(run 4)
(play)