lilypond-user
[Top][All Lists]
Advanced

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

Re: Abbreviating 'complex' commands


From: Thomas Morley
Subject: Re: Abbreviating 'complex' commands
Date: Thu, 15 Aug 2013 19:47:12 +0200

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
  }
>>

-Harm



reply via email to

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