property.
+2002-09-24 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+
+ * scm/music-functions.scm (music-separator?): don't use name music
+ property.
+
2002-09-24 Jan Nieuwenhuizen <janneke@gnu.org>
* lily/new-accidental-engraver.cc: Compile fix.
Music is the data type that music expressions are stored in. The data
type does not yet offer many manipulations.
+
+WARNING: deprecated; use make-music-by-name.
")
{
SCM_ASSERT_TYPE(gh_string_p (type), type, SCM_ARG1, __FUNCTION__, "string");
This is an experimental file - producing correct accidentals but
unfortunately ruining the spacing. -rz
+
*/
#include "musical-request.hh"
;;
(define (make-articulation-script x)
- (let* ((m (make-music-by-name "Articulation_req")))
+ (let* ((m (make-music-by-name 'ArticulationEvent)))
(ly-set-mus-property! m 'articulation-type x)
m))
)
(define (make-head-type-elem t)
- (let* ( (m (make-music-by-name "Music")))
+ (let* ( (m (make-music-by-name 'Music)))
(set-mus-properties!
m
`((iterator-ctor . ,Push_property_iterator::constructor)
(define-public (music-separator? m)
"Is M a separator."
- (let* ((n (ly-get-mus-property m 'name )))
- (and (symbol? n) (equal? 'separator n))
+ (let* ((ts (ly-get-mus-property m 'types )))
+ (memq 'separator ts)
))
(define (split-one sep? l acc)
))
(define-public (empty-music)
- (ly-id (make-music-by-name "Music"))
+ (ly-id (make-music-by-name 'Music))
)
;;;
music-descriptions)
(define-public (make-music-by-name x)
+ (if (not (symbol? x))
+ (misc-error "Not a symbol: ~s" x))
(let*
(
(props (hashq-ref music-name-to-property-table x '()))
-(define-module (scm ps)
+(define-module
+ (scm ps)
+
)
(define font-name-alist '())