lilypond-user
[Top][All Lists]
Advanced

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

Re: Lead sheet with variables


From: Abraham Lee
Subject: Re: Lead sheet with variables
Date: Tue, 23 Jan 2018 15:34:52 +0000

Hi, Joseph!

On Tue, Jan 23, 2018 at 8:25 AM Joseph Austin <address@hidden> wrote:
I tried to modify the Lead Sheet example by using a variable:
-----------
\version "2.19.40"

\music =   \relative c'' {
   a4 e c8 e r4
   b2 c4( d)
 }
\score {
<<
 \chords { c2 g:sus4 f e }
 \music
 \addlyrics { One day this shall be free __ }
>>
        \layout { }
}

=========
and I got the following errors:
-----------
Procesando «/Users/josephaustin/lilypond/scripts/TEST/leadSheet07.ly»
Analizando...
/Users/josephaustin/lilypond/scripts/TEST/leadSheet07.ly:3:1: error: cadena de escape desconocida: `\music'

\music =   \relative c'' {
Interpretando la música...
Preprocesando los objetos gráficos...
Buscando el número de páginas ideal...
Disponiendo la música en una página...
Dibujando los sistemas...
Salida de la página hacia «/var/folders/8c/krjhl46n5fq3wxbl0nvlfy6m0000gn/T//lilypond-M7rF1a»...
Convirtiendo en «leadSheet07.pdf»...
Suprimiendo «/var/folders/8c/krjhl46n5fq3wxbl0nvlfy6m0000gn/T//lilypond-M7rF1a»...
error fatal: archivos que han fallado: "/Users/josephaustin/lilypond/scripts/TEST/leadSheet07.ly"
=====================

My questions:
1. what did I do wrong?
2. Can I get the error messages in English?


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

The error is that you used a slash during variable assignment. So, it should have been:

music = \relative ...

and not

\music = \relative ...

HTH,
Abraham


reply via email to

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