lilypond-user
[Top][All Lists]
Advanced

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

Music function for arrow directions in arpeggios


From: Caio Giovaneti de Barros
Subject: Music function for arrow directions in arpeggios
Date: Tue, 23 Feb 2016 11:52:48 -0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0

I'm trying to write a function to make easier for me to change arrow directions in arpeggios. When writing music for guitar is very annoying to be constantly changing the arrow directions. Consider, for instance:

\relative c' {
 \arpeggioArrowDown
 <c c' e>8.\arpeggio
 \arpeggioArrowUp
 q16\arpeggio
 \arpeggioArrowDown
 q8.\arpeggio
 \arpeggioArrowUp
 q16\arpeggio
 \arpeggioArrowDown
 q4\arpeggio
}

I tried the following code, but lilypond doesn't understand it. Any suggestions?

arpeggioUp = #(define-music-function (chord) (ly:music?)
                #{
                  \arpeggioArrowUp
                  #chord \arpeggio
                #})

\relative c' { \arpeggioUp { <c c' e> } }



reply via email to

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