]> git.donarmstrong.com Git - lilypond.git/blobdiff - scm/ly-syntax-constructors.scm
Fix warning message in predefined fretboards
[lilypond.git] / scm / ly-syntax-constructors.scm
index ee798233611a6a65361f1fae414962848a9f3cfa..3ee82f09f6e6a9f1053e5be695e030a84d640176 100644 (file)
@@ -1,4 +1,4 @@
-;;;; define-syntax.scm -- Defines functions for syntax expressions
+;;;; ly-syntax-constructors.scm -- Defines functions for syntax expressions
 ;;;;
 ;;;;  source file of the GNU LilyPond music typesetter
 ;;;; 
              'duration duration
              'origin location))
 
+(define-ly-syntax (repetition-chord parser location previous-chord repetition-function duration articulations)
+  (let ((new-chord (repetition-function previous-chord duration articulations)))
+    (set! (ly:music-property new-chord 'origin) location)
+    new-chord))
+
 (define-ly-syntax-simple (context-specification type id mus ops create-new)
   (let* ((type-sym (if (symbol? type) type (string->symbol type)))
         (csm (context-spec-music mus type-sym id)))