annotate implementations/gsharp/classes.lisp @ 197:22ac5ec1733c
Basic key and time signature support
author |
David Lewis <d.lewis@gold.ac.uk> |
date |
Wed, 16 Feb 2011 09:19:12 +0000 |
parents |
4a0e15e2829a |
children |
bc893627f92d |
rev |
line source |
csr21@59
|
1 (cl:in-package "AMUSE-GSHARP")
|
csr21@59
|
2
|
d@168
|
3 (defclass gsharp-object ()())
|
d@168
|
4
|
d@168
|
5 (defclass gsharp-composition (amuse:standard-composition gsharp-object)
|
csr21@59
|
6 ((buffer :initarg :buffer :reader buffer)
|
d@197
|
7 (tempi :initarg :tempi :reader tempi)
|
d@197
|
8 (key-signatures :initarg :key-signatures
|
d@197
|
9 :initform nil
|
d@197
|
10 :accessor %gsharp-key-signatures)
|
d@197
|
11 (time-signatures :initarg :time-signatures
|
d@197
|
12 :initform nil
|
d@197
|
13 :accessor %gsharp-time-signatures)))
|
csr21@59
|
14
|
d@168
|
15 (defclass gsharp-pitched-event (standard-chromatic-pitched-event gsharp-object)
|
c@61
|
16 ((note :initarg :note :reader note)
|
c@61
|
17 (slice-index :initarg :slice-index)))
|
d@162
|
18
|
d@169
|
19 (defclass gsharp-identifier (composition-identifier gsharp-object)
|
d@162
|
20 ((pathname :initarg :path
|
d@162
|
21 :reader %gsharp-identifier-pathname
|
d@162
|
22 :initform 'nil))
|
d@162
|
23 (:documentation "Identifier for files that can be read in GSharp,
|
d@162
|
24 containing pathname information"))
|
d@162
|
25
|
d@162
|
26 (defclass gsharp-gsh-identifier (gsharp-identifier)
|
d@162
|
27 ()
|
d@162
|
28 (:documentation "Identifier for .gsh files for gsharp"))
|
d@162
|
29
|
d@162
|
30 (defclass gsharp-mxml-identifier (gsharp-identifier)
|
d@162
|
31 ()
|
d@162
|
32 (:documentation "Identifier for MusicXML files for gsharp"))
|
d@162
|
33
|
d@197
|
34 (defclass gsharp-import-mixin (gsharp-object)
|
d@197
|
35 ((gsh-source :initarg :source :accessor gsh-source)))
|
d@197
|
36 (defclass gsharp-key-signature-period (standard-key-signature-period gsharp-import-mixin)
|
d@197
|
37 ())
|
d@197
|
38 (defclass gsharp-time-signature-period (standard-time-signature-period gsharp-import-mixin)
|
d@197
|
39 ()) |