Mercurial > hg > amuse
comparison 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 |
comparison
equal
deleted
inserted
replaced
196:3b36cf79b525 | 197:22ac5ec1733c |
---|---|
2 | 2 |
3 (defclass gsharp-object ()()) | 3 (defclass gsharp-object ()()) |
4 | 4 |
5 (defclass gsharp-composition (amuse:standard-composition gsharp-object) | 5 (defclass gsharp-composition (amuse:standard-composition gsharp-object) |
6 ((buffer :initarg :buffer :reader buffer) | 6 ((buffer :initarg :buffer :reader buffer) |
7 (tempi :initarg :tempi :reader tempi))) | 7 (tempi :initarg :tempi :reader tempi) |
8 (key-signatures :initarg :key-signatures | |
9 :initform nil | |
10 :accessor %gsharp-key-signatures) | |
11 (time-signatures :initarg :time-signatures | |
12 :initform nil | |
13 :accessor %gsharp-time-signatures))) | |
8 | 14 |
9 (defclass gsharp-pitched-event (standard-chromatic-pitched-event gsharp-object) | 15 (defclass gsharp-pitched-event (standard-chromatic-pitched-event gsharp-object) |
10 ((note :initarg :note :reader note) | 16 ((note :initarg :note :reader note) |
11 (slice-index :initarg :slice-index))) | 17 (slice-index :initarg :slice-index))) |
12 | 18 |
23 | 29 |
24 (defclass gsharp-mxml-identifier (gsharp-identifier) | 30 (defclass gsharp-mxml-identifier (gsharp-identifier) |
25 () | 31 () |
26 (:documentation "Identifier for MusicXML files for gsharp")) | 32 (:documentation "Identifier for MusicXML files for gsharp")) |
27 | 33 |
34 (defclass gsharp-import-mixin (gsharp-object) | |
35 ((gsh-source :initarg :source :accessor gsh-source))) | |
36 (defclass gsharp-key-signature-period (standard-key-signature-period gsharp-import-mixin) | |
37 ()) | |
38 (defclass gsharp-time-signature-period (standard-time-signature-period gsharp-import-mixin) | |
39 ()) |