lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: function for a certain number of barrests


From: David Kastrup
Subject: Re: function for a certain number of barrests
Date: Tue, 22 Jan 2013 11:26:07 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

Stefan Thomas <address@hidden> 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]