lilypond-user
[Top][All Lists]
Advanced

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

Line control directives


From: Johan Vromans
Subject: Line control directives
Date: Fri, 10 Oct 2014 09:28:52 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1 (gnu/linux)

Hi,

I intent to write a preprocessor for lilypond scores. Is there a way to
insert something similar to C preprocessor "#line" controls to have
lilypond point-and-click and error messages refer to the original source
instead of the generated source file?

For example, I have a source "score.ly" that gets preprocessed into
"tmpXYZ.ly". The latter file is fed to lilypond, and would contain
hypothetical line controls like:

  #line 64 "score.ly"
  highVoice = \relative c' {
  #line 247 "score.ly"
     c1 | d1 | e1 | f2 g |
  #line 212 "score.ly"
     a1 | b1 | c1 | d2 e |
  #line 109 "score.ly"
     b1 | c1 | d1 | e2 g |
  #line 311 "score.ly"
  }

-- Johan



reply via email to

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