Hi Caio,

> I'm trying to write a function

Well, if you *really* want a music function, I’ll let others answer.

But to solve your particular issue, I’d do the following:

%%%%  SNIPPET BEGINS
\version "2.19.36"

arp = -\arpeggio
arpU = \tweak arpeggio-direction #UP -\arpeggio
arpD = \tweak arpeggio-direction #DOWN -\arpeggio

\relative c' {
  <c c' e>1\arpU
  <c c' e>1\arpD
  <c c' e>1\arp
}
%%%%  SNIPPET ENDS

Hope that helps!
Kieren.
________________________________

Kieren MacMillan, composer
‣ website: www.kierenmacmillan.info
‣ email: i...@kierenmacmillan.info


_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to