Mercurial > hg > amuse
comparison base/classes.lisp @ 244:76a695fe294f
Add floating constituent classes.
Ignore-this: f3afc46c68f8ab3b1c9c482919a7378f
darcs-hash:20100604153709-16a00-5ec4568ef64401cb0cc67a99246a125367ce4734.gz
committer: Jamie Forth <j.forth@gold.ac.uk>
author | j.forth <j.forth@gold.ac.uk> |
---|---|
date | Thu, 24 Feb 2011 11:23:18 +0000 |
parents | be5cd4c5ecc2 |
children | 25b6b52eb770 4b4fb8859e82 |
comparison
equal
deleted
inserted
replaced
243:93f8768b12dd | 244:76a695fe294f |
---|---|
206 (defclass standard-tempo-period (standard-tempo | 206 (defclass standard-tempo-period (standard-tempo |
207 tempo-period | 207 tempo-period |
208 standard-anchored-period) | 208 standard-anchored-period) |
209 () | 209 () |
210 (:documentation "Tempo associated with a standard-anchored-period")) | 210 (:documentation "Tempo associated with a standard-anchored-period")) |
211 | 211 |
212 ;; collections of more than one event | 212 |
213 ;;;===================================================================== | |
214 ;;; Constituents: collections of more than one event | |
215 ;;;===================================================================== | |
213 | 216 |
214 (defclass constituent (anchored-period) () | 217 (defclass constituent (anchored-period) () |
215 (:documentation "Base class for constituents")) | 218 (:documentation "Base class for constituents")) |
216 | 219 |
217 (defclass standard-constituent (constituent standard-anchored-period) () | 220 (defclass standard-constituent (constituent standard-anchored-period) () |
240 (defclass monody (composition) () | 243 (defclass monody (composition) () |
241 (:documentation "Class for indicating suitability for analysis | 244 (:documentation "Class for indicating suitability for analysis |
242 requiring a monody")) | 245 requiring a monody")) |
243 | 246 |
244 (defclass standard-monody (monody standard-composition) ()) | 247 (defclass standard-monody (monody standard-composition) ()) |
248 | |
249 ;; Floating Constituents | |
250 | |
251 (defclass floating-constituent (period) () | |
252 (:documentation "Base class for non-anchored constituents")) | |
253 | |
254 (defclass standard-floating-constituent (floating-constituent | |
255 standard-period) () | |
256 (:documentation "Base class for floating constituents using standard | |
257 time representation")) | |
258 | |
259 (defclass time-ordered-floating-constituent (floating-constituent | |
260 list-slot-sequence) | |
261 ;; this won't work if lisp implementation doesn't support extensible | |
262 ;; sequences. | |
263 ()) | |
264 | |
265 (defclass standard-time-ordered-floating-constituent | |
266 (time-ordered-floating-constituent standard-floating-constituent) | |
267 ;; this won't work if lisp implementation doesn't support extensible | |
268 ;; sequences. | |
269 ()) | |
245 | 270 |
246 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | 271 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
247 ;; | 272 ;; |
248 ;; Experimental: | 273 ;; Experimental: |
249 ;; | 274 ;; |