[gsharp-cvs] CVS gsharp

rstrandh rstrandh at common-lisp.net
Mon Oct 22 10:03:40 UTC 2007


Update of /project/gsharp/cvsroot/gsharp
In directory clnet:/tmp/cvs-serv7742

Modified Files:
	buffer.lisp lyrics.lisp 
Log Message:
Got rid of the print-character slot which was used in the old I/O
mechanism.


--- /project/gsharp/cvsroot/gsharp/buffer.lisp	2007/10/22 09:39:23	1.55
+++ /project/gsharp/cvsroot/gsharp/buffer.lisp	2007/10/22 10:03:40	1.56
@@ -58,8 +58,7 @@
 (defgeneric bottom-line (clef))
 
 (defclass clef (gsharp-object name-mixin)
-  ((print-character :allocation :class :initform #\K)
-   (lineno :reader lineno :initarg :lineno
+  ((lineno :reader lineno :initarg :lineno
            :type (or (integer 0 8) null))))
 
 (defun make-clef (name &key lineno)
@@ -123,8 +122,7 @@
 (defgeneric clef (fiveline-staff))
 
 (defclass fiveline-staff (staff)
-  ((print-character :allocation :class :initform #\=)
-   (clef :accessor clef :initarg :clef :initform (make-clef :treble))
+  ((clef :accessor clef :initarg :clef :initform (make-clef :treble))
    (%keysig :accessor keysig :initarg :keysig
             :initform (make-array 7 :initial-element :natural))
    (key-signatures :accessor key-signatures :initform nil)))
@@ -196,8 +194,7 @@
 ;;; number of dots in the usual way. 
 
 (defclass note (gsharp-object)
-  ((print-character :allocation :class :initform #\N)
-   (cluster :initform nil :initarg :cluster :accessor cluster)
+  ((cluster :initform nil :initarg :cluster :accessor cluster)
    (pitch :initarg :pitch :reader pitch :type (integer 0 127))
    (staff :initarg :staff :reader staff :type staff)
    (head :initform nil :initarg :head :reader head
@@ -499,8 +496,7 @@
 (defgeneric remove-note (note))
 
 (defclass cluster (melody-element)
-  ((print-character :allocation :class :initform #\%)
-   (notes :initform '() :initarg :notes :accessor notes)
+  ((notes :initform '() :initarg :notes :accessor notes)
    (stem-direction :initform :auto :initarg :stem-direction :accessor stem-direction)))
 
 (defmethod initialize-instance :after ((c cluster) &rest args)
@@ -588,8 +584,7 @@
 ;;; Rest
 
 (defclass rest (melody-element)
-  ((print-character :allocation :class :initform #\-)
-   (staff :initarg :staff :reader staff)
+  ((staff :initarg :staff :reader staff)
    (staff-pos :initarg :staff-pos :initform 4 :reader staff-pos)))
 
 (defun make-rest (staff &rest args
@@ -726,8 +721,7 @@
 (defmethod remove-element :before ((element element) (bar bar))
   (maybe-update-key-signatures bar))
 
-(defclass melody-bar (bar)
-  ((print-character :allocation :class :initform #\|)))
+(defclass melody-bar (bar) ())
 
 (defun make-melody-bar (&rest args &key elements)
   (declare (type list elements)
@@ -769,8 +763,7 @@
 (defgeneric remove-bar (bar))
 
 (defclass slice (gsharp-object)
-  ((print-character :allocation :class :initform #\/)
-   (layer :initform nil :initarg :layer :accessor layer)
+  ((layer :initform nil :initarg :layer :accessor layer)
    (bars :initform '() :initarg :bars :accessor bars)))
 
 (defmethod initialize-instance :after ((s slice) &rest args)
@@ -892,8 +885,7 @@
 
 ;;; melody layer
 
-(defclass melody-layer (layer)
-  ((print-character :allocation :class :initform #\_)))
+(defclass melody-layer (layer) ())
 
 (defun read-melody-layer-v3 (stream char n)
   (declare (ignore char n))
@@ -978,8 +970,7 @@
 (defgeneric remove-layer (layer))
 
 (defclass segment (gsharp-object)
-  ((print-character :allocation :class :initform #\S)
-   (buffer :initform nil :initarg :buffer :accessor buffer)
+  ((buffer :initform nil :initarg :buffer :accessor buffer)
    (layers :initform '() :initarg :layers :accessor layers)
    (tempo :initform 128 :initarg :tempo :accessor tempo)
    (tuning :initform (make-instance '12-edo)
@@ -1080,8 +1071,7 @@
 (defvar *default-left-margin* 20)
 
 (defclass buffer (gsharp-object esa-buffer-mixin)
-  ((print-character :allocation :class :initform #\B)
-   (segments :initform '() :initarg :segments :accessor segments)
+  ((segments :initform '() :initarg :segments :accessor segments)
    (staves :initform (list (make-fiveline-staff))
            :initarg :staves :accessor staves)
    ;; the min width determines the preferred geographic distance after the
--- /project/gsharp/cvsroot/gsharp/lyrics.lisp	2007/10/22 09:39:23	1.1
+++ /project/gsharp/cvsroot/gsharp/lyrics.lisp	2007/10/22 10:03:40	1.2
@@ -4,8 +4,7 @@
 ;;;
 ;;; staff
 
-(defclass lyrics-staff (staff)
-  ((print-character :allocation :class :initform #\L)))
+(defclass lyrics-staff (staff) ())
 
 (defun make-lyrics-staff (&rest args &key name)
   (declare (ignore name))
@@ -24,8 +23,7 @@
 ;;; Lyrics element
 
 (defclass lyrics-element (rhythmic-element)
-  ((print-character :allocation :class :initform #\A)
-   (staff :initarg :staff :reader staff)
+  ((staff :initarg :staff :reader staff)
    (text :initarg :text
          :initform (make-array 5 :adjustable t :element-type 'fixnum :fill-pointer 0)
          :reader text)
@@ -75,8 +73,7 @@
 ;;;
 ;;; Lyrics bar
 
-(defclass lyrics-bar (bar)
-  ((print-character :allocation :class :initform #\C)))
+(defclass lyrics-bar (bar) ())
 
 (defun make-lyrics-bar (&rest args &key elements)
   (declare (type list elements)
@@ -109,8 +106,7 @@
 ;;;
 ;;; Lyrics layer
 
-(defclass lyrics-layer (layer)
-  ((print-character :allocation :class :initform #\M)))
+(defclass lyrics-layer (layer) ())
 
 (defun read-lyrics-layer-v3 (stream char n)
   (declare (ignore char n))




More information about the Gsharp-cvs mailing list