lilypond-user
[Top][All Lists]
Advanced

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

slashes and percent


From: Peter Berlau
Subject: slashes and percent
Date: Sun, 08 Nov 2015 22:54:41 +0100

Hello,

I like to use slashes and percent - repeaters 

but without a note in the beginning, I found

\version "2.18.2"

makePercent =
#(define-music-function (parser location note) (ly:music?)
   "Make a percent repeat the same length as NOTE."
   (make-music 'PercentEvent
               'length (ly:music-length note)))


\relative c'' {
  \makePercent s1
  \makePercent s1
  \makePercent s1
  \makePercent s1
} % works only for  percent no note, only percent sign


\relative c'' {
\repeat percent 4 { c4 }
} % normal usage print one 1/4 note and 3 slashes, I like to have no
% note, but 4 slashes

Can You please help me?

Thanks,
all the best,
 Peter




reply via email to

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