lilypond-user
[Top][All Lists]
Advanced

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

Re: Problem with tempo marking and processing


From: Mats Bengtsson
Subject: Re: Problem with tempo marking and processing
Date: Thu, 04 Jan 2007 13:25:39 +0100
User-agent: Thunderbird 1.5.0.9 (X11/20061206)



Francesco Spiga wrote:
If I define a command \tempoMark, as explained by Guide in Chapter 4...


%%%%%SAMPLE BEGINS

\version "2.8.6"

tempoMark = #(define-music-function (parser location markp) (string?)
# {
 \once \override Score . RehearsalMark #'self-alignment-X = #left
 \once \override Score . RehearsalMark #'no-spacing-rods = ##t
 \mark \markup { \bold $markp }
#})

example = \relative c'' {
 \tempoMark "Allegro"
 a4 b c d
 }

 \score {
 \new Staff \example
 \layout { }

 }

%%%%%SAMPLE ENDS

... Lilypond does'nt create either PS file or PDF, although it does'nt
give me error messages. It happens the same if I put tempoMark
definitions in another file and insert \include command in example.ly.

Could someone tell me where is my error in typing?

I do get an error message, even though it's maybe not so easy to decipher.
Just remove the space between # and { in the definition of tempoMark.
LilyPond is sometimes very picky about the syntax.

  /Mats





reply via email to

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