lilypond-user
[Top][All Lists]
Advanced

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

scheme compile error


From: Gianmaria Lari
Subject: scheme compile error
Date: Thu, 20 Dec 2018 10:52:28 +0100

This program does not compile because myvar is not defined.

\version "2.19.82"
test = #(cond
         ((= myvar 0) "zero")
         ((= myvar 1) "one")
          )

\markup \test

And this is the fixed version

\version "2.19.82"
myvar = 1
test = #(cond
         ((= myvar 0) "zero")
         ((= myvar 1) "one")
          )

\markup \test

The errors I get when I compile the wrong code are the following

C:/Users/GIANMA~1/AppData/Local/Temp/frescobaldi-gtv7n2o_/tmpj0pm3z6i/document.ly:2:9: error: GUILE signaled an error for the _expression_ beginning here

test = #

(cond


C:/Users/GIANMA~1/AppData/Local/Temp/frescobaldi-gtv7n2o_/tmpj0pm3z6i/document.ly:7:9: error: not a markup

\markup

\test


For me these are not enough clear to understand the problem. Is there any way to get a more precise indication of the error I did?

Thank you, g.

reply via email to

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