2002-09-23 Jan Nieuwenhuizen <janneke@gnu.org>
+ * scripts/convert-ly.py: Add rule.
+
+ * input/test/music-creation.ly:
+ * input/test/add-staccato.ly:
+ * input/test/add-text-script.ly: ly-make-music.
+
* scm/drums.scm (make-head-type-elem, make-articulation-script):
More ly-make-music renamings.
-\version "1.5.68"
+\version "1.7.0" %% or actually: 1.7.1 ...
\header {
texidoc= "Using make-music, you can add various stuff to notes. Here
}
#(define (make-script x)
- (let ((m (ly-make-music "Articulation_req")))
+ (let ((m (make-music-by-name "Articulation_req")))
(ly-set-mus-property! m 'articulation-type x)
m))
#(define (add-script m x)
- (if (equal? (ly-music-name m) "Request_chord")
+ (if (equal? (make-music-by-name m) "Request_chord")
(ly-set-mus-property! m 'elements
(cons (make-script x)
(ly-get-mus-property m 'elements)))
-\version "1.5.68"
+\version "1.7.0" %% or actually: 1.7.1 ...
\header {
texidoc= "Using make-music, you can add
various stuff to notes. Here is an example
}
#(define (make-text-script x)
- (let ((m (ly-make-music "Text_script_req")))
+ (let ((m (make-music-by-name "Text_script_req")))
(ly-set-mus-property! m 'text-type 'finger)
(ly-set-mus-property! m 'text x)
m))
-\version "1.5.68"
+\version "1.7.0" %% or actually: 1.7.1 ...
\header {
texidoc = "You can create music expressions from Scheme. The
mechanism for this is rather clumsy to use, so avoid if possible."
}
-
#(define (make-note-req p d)
- (let* ( (ml (ly-make-music "Note_req")) )
+ ;; huh? lily-guile: Could not find music type `Note_req'
+ ;;(let* ((ml (make-music-by-name "Note_req")))
+ (let* ((ml (make-music-by-name 'NoteEvent)))
(ly-set-mus-property! ml 'duration d)
- (ly-set-mus-property! ml 'pitch p)
- ml
-))
+ (ly-set-mus-property! ml 'pitch p)
+ ml))
#(define (make-note elts)
- (let* ( (ml (ly-make-music "Request_chord")) )
+ ;; huh? lily-guile: Could not find music type `Request_chord'
+ ;;(let* ((ml (make-music-by-name "Request_chord")))
+ (let* ((ml (make-music-by-name 'RequestChord)))
(ly-set-mus-property! ml 'elements elts)
- ml
-))
+ ml))
#(define (seq-music-list elts)
- (let* ( (ml (ly-make-music "Sequential_music")) )
+ ;; huh? lily-guile: Could not find music type `Sequential_music'
+ ;;(let* ((ml (make-music-by-name "Sequential_music")))
+ (let* ((ml (make-music-by-name 'SequentialMusic)))
(ly-set-mus-property! ml 'elements elts)
- ml
-))
+ ml))
fooMusic = #(seq-music-list
conversions.append (((1,5,72), conv, 'set! point-and-click -> set-point-and-click!'))
+if 1:
+ def conv (str):
+ str = re.sub ('ly-make-music', 'make-music-by-name', str)
+ return str
+
+ conversions.append (((1,7,1), conv, 'ly-make-music -> make-music-by-name'))
+
################################
# END OF CONVERSIONS