lilypond-user
[Top][All Lists]
Advanced

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

Re: I don't understand this error


From: Mats Bengtsson
Subject: Re: I don't understand this error
Date: Mon, 26 Feb 2007 12:24:43 +0100
User-agent: Thunderbird 1.5.0.9 (X11/20061206)

This example seems obsolete. It's now possible to obtain the same result using the
\tweak command instead.

  /Mats

Cameron Horsburgh wrote:
Hi folks,

I've just come across this snippet in the LSR:


%%%%%
\version "2.10.10"

\header { texidoc = "
<p>Objects, like text, can be moved around by using some Scheme code.

" }

#(define (make-text-checker text)
   (lambda (grob) (equal? text (ly:grob-property grob 'text))))
\score {
  \relative c''' {
     \override Stem  #'direction = #1
     \applyOutput #(outputproperty-compatibility (make-text-checker (make-simple-markup 
"m.d."))
      'extra-offset '(-3.5 . -4.5))
     a^2^"m.d."
  }
}

%%%%%

It fails with the error:

%%%%%
Parsing...
/home/cameron/Work_Folder/sources/lsr/lsr-snippets-2007-02-26/none/moving-around-text.ly:15:36:
error: syntax error, unexpected NOTENAME_PITCH
'extra-offset '(-3.5 . -4.5)) a^2^"m.d."

/home/cameron/Work_Folder/sources/lsr/lsr-snippets-2007-02-26/none/moving-around-text.ly:12:2:
error: errors found, ignoring music expression
\relative c''' {
    error: failed files:
"/home/cameron/Work_Folder/sources/lsr/lsr-snippets-2007-02-26/none/moving-around-text.ly"

Compilation exited abnormally with code 1 at Mon Feb 26 21:53:11

%%%%%

I have no idea about the Scheme stuff or \applyoutput so I can't even
begin to fix it. Does any one have any idea how to get this working
again (or if it needs to be deleted from the LSR?)


--
=============================================
        Mats Bengtsson
        Signal Processing
        Signals, Sensors and Systems
        Royal Institute of Technology
        SE-100 44  STOCKHOLM
        Sweden
        Phone: (+46) 8 790 8463                         
       Fax:   (+46) 8 790 7260
        Email: address@hidden
        WWW: http://www.s3.kth.se/~mabe
=============================================





reply via email to

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