-
Notifications
You must be signed in to change notification settings - Fork 3
/
slippery-chicken.asd
217 lines (198 loc) · 8.16 KB
/
slippery-chicken.asd
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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; ****h* sc/slippery-chicken.asd
;;; NAME
;;; slippery-chicken.asd
;;;
;;; File: slippery-chicken.asd
;;;
;;; Version: 1.1.0
;;;
;;; Project: slippery chicken (algorithmic composition)
;;;
;;; Purpose: System definition for slippery chicken.
;;;
;;; Author: Michael Edwards: [email protected]
;;;
;;; Creation date: March 15th 2024
;;;
;;; $$ Last modified: 16:45:35 Tue Apr 16 2024 CEST
;;;
;;; ****
;;; Licence: Copyright (c) 2010 Michael Edwards
;;;
;;; This file is part of slippery-chicken
;;;
;;; slippery-chicken is free software; you can redistribute it
;;; and/or modify it under the terms of the GNU General
;;; Public License as published by the Free Software
;;; Foundation; either version 3 of the License, or (at your
;;; option) any later version.
;;;
;;; slippery-chicken is distributed in the hope that it will
;;; be useful, but WITHOUT ANY WARRANTY; without even the
;;; implied warranty of MERCHANTABILITY or FITNESS FOR A
;;; PARTICULAR PURPOSE. See the GNU General Public License
;;; for more details.
;;;
;;; You should have received a copy of the GNU General Public
;;; License along with slippery-chicken; if not, write to the
;;; Free Software Foundation, Inc., 59 Temple Place, Suite
;;; 330, Boston, MA 02111-1307 USA
;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(in-package :cl-user)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
#+sbcl (require :sb-bsd-sockets)
#+sbcl (require :sb-posix)
#+sbcl (unlock-package "COMMON-LISP")
(pushnew :cm *features*)
(pushnew :cm-2 *features*)
(pushnew :slippery-chicken *features*)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(in-package :asdf-user)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(defsystem "slippery-chicken"
:version "1.1.0"
:license "GPL Version 3.0 or later"
:author "Michael Edwards <[email protected]>"
:description "Algorithmic composition software in Common Lisp and CLOS"
:serial t
:depends-on ("cm"
"cl-ppcre")
:default-component-class cl-source-file.lsp
:pathname "src/"
;;; RP Sun Mar 17 19:32:01 2024
:in-order-to ((test-op (test-op "slippery-chicken/tests")))
:components ((:file "package")
(:file "cmn" :if-feature :cmn)
(:file "cmn-glyphs" :if-feature :cmn)
(:file "cm" :if-feature :cm)
(:file "cm-cm" :if-feature :cm)
(:file "cm-load")
(:file "utilities")
(:file "named-object")
(:file "music-xml")
(:file "linked-named-object")
(:file "sclist")
(:file "circular-sclist")
(:file "assoc-list")
(:file "recursive-assoc-list")
(:file "activity-levels")
(:file "activity-levels-env")
(:file "activity-levels-pc")
(:file "palette")
(:file "pitch-seq-palette")
(:file "globals")
(:file "clm-defaults" :if-feature :clm)
(:file "clm" :if-feature :clm)
(:file "sc-map")
(:file "set-map")
(:file "tempo")
(:file "rhythm")
(:file "pitch")
(:file "chord")
(:file "event")
(:file "instrument")
(:file "time-sig")
(:file "rthm-seq-bar")
(:file "change-data")
(:file "change-map")
(:file "instrument-change-map")
(:file "simple-change-map")
(:file "tempo-map")
(:file "sc-set")
(:file "tl-set")
(:file "complete-set")
(:file "set-palette")
(:file "pitch-seq")
(:file "sndfile")
(:file "sndfile-ext")
(:file "vidfile")
(:file "sndfile-palette")
(:file "sndfilenet")
(:file "rthm-seq")
(:file "rthm-seq-palette")
(:file "rthm-seq-map")
(:file "instrument-palette")
(:file "instruments")
(:file "player")
(:file "bar-holder")
(:file "sequenz")
(:file "ensemble")
(:file "l-for-lookup")
(:file "player-section")
(:file "section")
(:file "slippery-chicken")
(:file "piece")
(:file "slippery-chicken-edit")
(:file "permutations")
(:file "rthm-chain")
(:file "rthm-chain-slow")
(:file "cycle-repeats")
(:file "recurring-event")
(:file "intervals-mapper")
(:file "lilypond")
(:file "popcorn")
#+(and (or linux darwin) sbcl) (:file "osc")
#+(and (or linux darwin) sbcl) (:file "osc-sc")
#+(and (or linux darwin) sbcl) (:file "osc-sc-bsd")
(:file "spectra")
;; (:file "control-wave-ins" :if-feature :clm)
(:file "control-wave" :if-feature :clm)
(:file "wolfram"
:perform (compile-op :before (o c)
;; wolfram needs to be loaded before
;; compilation
;; RP Fri Mar 15 18:15:45 2024
(load (component-pathname c))))
(:file "afu")
(:file "reaper")
;; NB: export-symbols should always be included at the end
;; of this definition
;; RP Fri Mar 15 23:31:51 2024
(:file "export-symbols")))
;;; This system does not load any modules but defines a test-op for the
;;; slippery-chicken system. The test suite itself is located in the tests/
;;; directory.
;;; RP Sun Mar 17 19:33:23 2024
(defsystem "slippery-chicken/tests"
:description "Test suite for slippery-chicken."
:author "Michael Edwards <[email protected]>"
:license "GPL Version 3.0 or later"
:depends-on ("slippery-chicken")
:perform (test-op (o c) (symbol-call :slippery-chicken :run-tests)))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(in-package :cl-user)
;; set the slippery-chicken-version using the version specified in the
;; asd-system
;; RP Wed Mar 27 17:49:18 2024
(defparameter +slippery-chicken-version+
(asdf:component-version (asdf:find-system :slippery-chicken)))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(defun sc (&optional (logo t))
(declare (special +slippery-chicken-src-path+))
(setf *package* (find-package :sc))
(let* ((title (format nil "slippery chicken ~a"
+slippery-chicken-version+))
(sc-logo (concatenate 'string +slippery-chicken-src-path+
"txt/sc-ascii-logo.txt"))
(in (open sc-logo :if-does-not-exist nil)))
(when logo
(if in
(progn
(loop for line = (read-line in nil)
while line do (format t "~&~a" line))
(close in))
(format t "(\\ }\\ ~%( \\_('> ~a~%(__(=_) ~% -\"= ~%"
title)))
#+sbcl t
#-sbcl (values)))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; originally from all.lsp
;;; RP Fri Mar 15 21:54:15 2024
;;; MDE Fri Jun 21 17:08:42 2013
#+(and (or sbcl ccl) (or linux darwin))
(pushnew :sc-auto-open *features*)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; EOF slippery-chicken.asd