Stefan Thomas <kontrapunktste...@gmail.com> writes: > Dear community, > I wanted to create a function for a certain number of barrests. > I've tried it with > \version "2.16.2" > \layout { \context { \Score skipBars = ##t } } > > fourquarterBarrest = #(define-music-function (parser location x) > (number?) > #{ % in der folgenden Zeile Lilypondcode eingeben > \time 4/4 > \scaleDurations #(cons $x 1) { s1 } > #}) > But this fails. > Has someone an idea how to make it work?
Whatever a "barrest" is supposed to be. Writing x instead of $x should do the trick, but frankly, I don't consider this much of an improvement over s1*7 and it is not clear to me why you are putting the \time 4/4 in there. -- David Kastrup _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user