lilypond-user
[Top][All Lists]
Advanced

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

macro problem


From: Werner LEMBERG
Subject: macro problem
Date: Fri, 22 Oct 2010 11:59:12 +0200 (CEST)

Folks,


I want to say

  On = \sustainOn
  Off = \sustainOff
  Ch = { \sustainOff \sustainOn }

  \relative {
    c1\On c\Ch c\Off
  }

However, this definition of \Ch fails with

  sustain.ly:3:17: error: syntax error, unexpected EVENT_IDENTIFIER

If I replace it with

  Ch = { #(make-span-event 'SustainEvent STOP)
         #(make-span-event 'SustainEvent START) }

lilypond compiles the snippet, but the result is incorrect (\Ch seems
to be ignored completely).

What's the right way to do it?


    Werner



reply via email to

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