lilypond-user
[Top][All Lists]
Advanced

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

Re: Abbreviating 'complex' commands


From: Jethro Van Thuyne
Subject: Re: Abbreviating 'complex' commands
Date: Thu, 15 Aug 2013 19:52:57 +0200
User-agent: Mutt/1.5.21 (2010-09-15)


Thomas Morley (15 Aug 2013 @ 19:47)
2013/8/15 Jethro Van Thuyne <address@hidden>:
Phil Holmes (15 Aug 2013 @ 19:35)


Is it possible to alias a command with "arguments", e.g. \change Staff =
"upper" to \csu?

Jethro


Have you tried?


I have: csu=#change Staff = "upper"

Parser says:
error: GUILE signaled an error for the expression beginning here

Jethro

Example:

\version "2.16.2"

csu = \change Staff = "up"
csd = \change Staff = "down"

\new PianoStaff <<
 \new Staff = "up" {
   <e' c'>8
   \csd
   g8 fis g
   \csu
   <g'' c''>8
   \csd
   e8 dis e
   \csu
 }
 \new Staff = "down" {
   \clef bass
   % keep staff alive
   s1
 }

Wonderful, I was making things more difficult than they were...

Thanks!



reply via email to

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