Philippe Baril Lecavalier <pbl....@gmail.com> writes: > Dear list, > > After much search, I finally found the "\repeat unfold N", but is it > possible with scheme to create new operators, to abbreviate things?
[...] > So for > simplicity, could one create a new operator through scheme, like "**"? > Example of what I mean: > > {c8 g e g} ** 6 > would amount to: > \repeat unfold 6 {c8 g e g} No. The closest you can probably get is
"\\*" = #(define-music-function (parser location n m) (index? ly:music?) (make-music 'UnfoldedRepeatedMusic 'repeat-count n 'element m)) \*6{c8 g e g}
But that requires a fairly recent variant of LilyPond (2.17.25 or later). -- David Kastrup
_______________________________________________ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user