lilypond-user
[Top][All Lists]
Advanced

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

Re: Book and variables -- lost how to remedy


From: Bernhard Kleine
Subject: Re: Book and variables -- lost how to remedy
Date: Fri, 11 Nov 2016 20:42:07 +0100
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0



Am 11.11.2016 um 19:58 schrieb Simon Albrecht:
On 11.11.2016 19:41, Bernhard Kleine wrote:
I added this to testmain.ly before the \book
 parserDefine =
#(define-void-function (name val)(symbol? not-null?)
    (ly:parser-define! name val))
and got this error:

F:/Meine Noten/EigeneNoten/WeihnachtsLieder/testmain.ly:17:2 <0>: error: GUILE signaled an error for the _expression_ beginning here

#

(define-void-function (name val)(symbol? not-null?)


Maybe some other requirement is missing.

Likely that requirement is a (more) recent version of LilyPond. One of your earlier attachments said \version "2.19.5", and that version required the function definition to begin with
#(define-void-function (parser location name val)(…)…)
The parser and location arguments can be omitted since somewhere in the 2.19 series.

Best, Simon


Starte lilypond.exe 2.19.49 [testmain.ly]...

Processing `F:/Meine Noten/EigeneNoten/WeihnachtsLieder/testmain.ly'

Parsing...

F:/Meine Noten/EigeneNoten/WeihnachtsLieder/testmain.ly:17:2: error: GUILE signaled an error for the _expression_ beginning here

#

(define-void-function (name val)(symbol? not-null?)


Obviously the actual version!
the file:
\version "2.19.49"
\language "deutsch"
#(set-global-staff-size 17)
\paper {
  #(set-paper-size "a4")
}
\header {
  title = "main"
  tagline = \markup {
    Gesetzt durch Bernhard Kleine mit
    \line { LilyPond \simple #(lilypond-version) (http://lilypond.org/) }
  }
}

parserDefine =
#(define-void-function (name val)(symbol? not-null?)
  (ly:parser-define! name val))


\book {

  \bookpart {
  \include "2test.ly"
  }
}

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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