File: natbug.lsp

package info (click to toggle)
nyquist 3.24%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 58,156 kB
  • sloc: ansic: 74,757; lisp: 18,169; java: 10,942; cpp: 6,688; sh: 175; xml: 58; makefile: 40; python: 15
file content (112 lines) | stat: -rw-r--r-- 2,786 bytes parent folder | download | duplicates (9)
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
(defun n2b2 ()
  (scale 2 (sim
            (at .3 (stretch .2    (osc (hz-to-step 1616))))
            (at .5 (stretch .3    (osc (hz-to-step 1611))))
            (at .6 (stretch .2   (osc (hz-to-step 1605))))
            (at .8 (stretch .5  (osc (hz-to-step 1600)))))))

(defun n2b2R ()
  (scale 2 (sim
            (at .3 (stretch .2    (osc (hz-to-step 1600))))
            (at .5 (stretch .3    (osc (hz-to-step 1605))))
            (at .6 (stretch .2   (osc (hz-to-step 1611))))
            (at .8 (stretch .5  (osc (hz-to-step 1616)))))))


(defun hph1b ()
  (seq
   (n2b2)
   (s-rest .02)
   (stretch .2
            (at .5
                (sim
                 (osc (hz-to-step 200))
                 (osc (hz-to-step 206))
                 (s-rest .1))))))
           
(defun ply ()
  (scale .1
         (sim
          (hph1b)
          (at .9
              (n2b2R)))))

(defun Plystrm ()
  (scale .1
         (sim
          (seqrep  (i 10) (ply))
          (seq
           (stretch 2
                    (hph1b))
           (s-rest .01)
           (stretch 2
                    (n2b2))
           (stretch 3 (n2b2))))))

(defun drum ()
  (scale .2
         (stretch .5
                  (sim
                   (pan (Plystrm)1)
                   (at .4 (pan(Plystrm)0))
                   (at 1.5 (pan (Plystrm)1))
                   (at 3.5 (pan (Plystrm)0))))))

(play (scale 10.5  (drum)))

(defun n2b2 ()
  (scale 2 (sim
            (at .3 (stretch .2    (osc (hz-to-step 1616))))
            (at .5 (stretch .3    (osc (hz-to-step 1611))))
            (at .6 (stretch .2   (osc (hz-to-step 1605))))
            (at .8 (stretch .5  (osc (hz-to-step 1600)))))))

(defun n2b2R ()
  (scale 2 (sim
            (at .3 (stretch .2    (osc (hz-to-step 1600))))
            (at .5 (stretch .3    (osc (hz-to-step 1605))))
            (at .6 (stretch .2   (osc (hz-to-step 1611))))
            (at .8 (stretch .5  (osc (hz-to-step 1616)))))))


(defun hph1b ()
  (seq
   (n2b2)
   (s-rest .02)
   (stretch .2
           (at .5
               (sim
                (osc (hz-to-step 200))
                (osc (hz-to-step 206))
                (s-rest .1))))))
           
(defun ply ()
  (scale .1
         (sim
          (hph1b)
          (at .9
              (n2b2R)))))

(defun Plystrm ()
 (scale .1
        (sim
         (seqrep  (i 10) (ply))
         (seq
          (stretch 2
                   (hph1b))
          (s-rest .01)
          (stretch 2
                   (n2b2))
          (stretch 3 (n2b2))))))

(defun drum ()
 (scale .2
        (stretch .5
                 (sim
                  (pan (Plystrm)1)
                  (at .4 (pan(Plystrm)0))
                  (at 1.5 (pan (Plystrm)1))
                  (at 3.5 (pan (Plystrm)0))))))

(play (scale 10.5  (drum)))