comparison implementations/gsharp/methods.lisp @ 168:f1d0ea63581c

Improved spelling for score output. amuse-gsharp now depends on ps13 darcs-hash:20080103134532-40ec0-e36c64cecc14ce9f821da7381d546c9e87bc7f63.gz
author d.lewis <d.lewis@gold.ac.uk>
date Thu, 03 Jan 2008 13:45:32 +0000
parents 83023a2668d2
children e5de0895d843
comparison
equal deleted inserted replaced
167:4cb3ec07831f 168:f1d0ea63581c
53 (defmethod import-from-identifier (frame (id gsharp-gsh-identifier)) 53 (defmethod import-from-identifier (frame (id gsharp-gsh-identifier))
54 (clim:execute-frame-command frame '(gsharp::com-new-buffer)) 54 (clim:execute-frame-command frame '(gsharp::com-new-buffer))
55 (gsharp::frame-find-file frame (%gsharp-identifier-pathname id))) 55 (gsharp::frame-find-file frame (%gsharp-identifier-pathname id)))
56 (defmethod import-from-identifier (frame (id gsharp-mxml-identifier)) 56 (defmethod import-from-identifier (frame (id gsharp-mxml-identifier))
57 (clim:execute-frame-command frame `(gsharp::com-import-musicxml ,(%gsharp-identifier-pathname id)))) 57 (clim:execute-frame-command frame `(gsharp::com-import-musicxml ,(%gsharp-identifier-pathname id))))
58
59 (defmethod get-applicable-key-signatures (anchored-period (composition gsharp-composition))
60 (let ((keysigs))
61 (sequence::dosequence (event composition (reverse keysigs))
62 (cond
63 ((overlaps event anchored-period)
64 (unless (member (gsharp::keysig event) keysigs)
65 (push (gsharp::keysig event) keysigs)))
66 ((not (before event anchored-period))
67 (return-from get-applicable-key-signatures (reverse keysigs)))))))
68
69 (defmethod crotchet ((object gsharp-object))
70 (make-standard-period 1))