lilypond-user
[Top][All Lists]
Advanced

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

Re: lilypond 1.8 woes


From: Aaron
Subject: Re: lilypond 1.8 woes
Date: 18 Aug 2003 12:41:01 +0300

> Since your files probably contain some additional hacks
> in Scheme, it would help if you attached a small example
> file that triggers the error.
my mistake thought I did.
Hre it is 

--------------------------------------
> \version "1.6.10"               % Thanks, Han-Wen!

% Do you still have problems with the titles?
\header {
  title = "Asader L'sudasah"
  subtitle = "356"

 language = "hebrew,english" % don't forget to uncomment this!
}

\include "paper26.ly"

% General purpose mapping function: applies FUNC to every
% text field in MUSIC.
#(define (text-map func music)
  (let ((text (ly-get-mus-property music 'text))
        (element (ly-get-mus-property music 'element))
        (elements (ly-get-mus-property music 'elements)))
   (if (not (null? text))
    (ly-set-mus-property! music 'text (func text)))
   (if (not (null? element))
    (ly-set-mus-property! music 'element (text-map func element)))
   (if (not (null? elements))
    (ly-set-mus-property! music 'elements
      (map (lambda (m) (text-map func m)) elements)))
   music))

% Does Scheme really not include this function?
#(define (string-reverse str)
  (list->string (reverse (string->list str))))

% Reverse every word (in terms of the above two functions)
#(define (text-reverse lyric)
  (text-map string-reverse lyric))

% Sandwich every word between PRE and POST
#(define (text-augment pre post)
  (lambda (lyric)
   (text-map (lambda (word) (string-append pre word post)) lyric)))

% I factored out the lyrics, and also tried setting
% the extra-offset property randomly.  It works.
lyr = \lyrics {
   % א
    %\property LyricsVoice . LyricText \override #'extra-offset = #'(5 .
0)
    %ta
    %\property LyricsVoice . LyricText \revert #'extra-offset
    %damm
}

\score {
  \addlyrics
    \notes {
      \clef "treble"
      \key  e \minor
      \property Staff.midiInstrument = "oboe" 
      \time 4/4
 \partial 8 b8   | 
g'8 e'4 b16 b16 g'8 e'4 e'8   | 
g'8. e'16 g'8. e'16 e'8 dis'4 b8   | 
fis'8 fis'4 b8 fis'8 fis'4 g'8   | 
% FR(5)
[a'8 a'8] [b'8 a'8] g'4 b'4   | 
g'8 a'8 b'4 [c''8 b'8] a'8 g'8   | 
fis'8 g'8 a'4 [b'8 a'8] g'8 fis'8   | 
e'8 fis'8 g'4 [a'8 g'8] fis'8 e'8   | 
\grace {e'8 } [b'8 b'8] b'8 b'8 e'2   | 
% FR(10)
\grace {[b'16 b'16]} b'8 g'4 a'8 b'8 g'4 a'8   | 
b'8. a'16 c''8. b'16 b'8 a'8 a'8 a'8   | 
a'8 fis'4 g'8 a'8 fis'4 g'8   | 
a'8. g'16 b'8. a'16 g'8 fis'8 g'4   | 
e'8 fis'8 g'4 a'8 g'8 fis'8 e'8   | 
% FR(15)
dis'8 e'8 fis'4 [g'8 fis'8] e'8 b8   | 
e'8 fis'8 g'4 [a'8 g'8] fis'8 e'8   | 
\grace {e'8 }  [b'8 b'8] [b'8 b'8] e'4. s8 \bar "|." 
       

    }
    \context Lyrics \apply #(text-augment "\\R{" "}") \lyrics { hebrew
here
       א ס דר ל סעו ד תא ב צפ רא ד ש ב תא ו אז מין בה הש תא א  תי קא ק
די שא _  א ס דר ל סעו ד תא ב צפ רא ד ש ב תא ו אז מין בה _ הש תא א  תי קא
ק די שא. איי יאי - - - - - - - - - - - - - - - - - - - - - - - - - - - 
נ הו ריה י שרי בה _ ב ק דו שא ר  בא - ו ב חמ רא - ט בא  ד  ביה תח די נפ
שא 

      }
%           Here you probably want to use "\\R{" and "}" instead.
\paper {
  papersize = "a4"
  indent = 0.0\cm
  } \midi { \tempo 4 = 68 } 
}
----------------------------------------------------------
>     /Mats
> 
> Aaron wrote:
> > Hi all,
> > I upgraded to Lily 1.8 and ran ly2dvi on my already existing files and
> > got only error messeges. Must I upgrade my files somehow?? It mentions
> > unknown file????
> > ==================================================================
> > 
> > Here is a sample error.
> > address@hidden ly]$ ly2dvi -p 355a.ly
> > ly2dvi (GNU LilyPond) 1.8.0
> > Running /usr/bin/lilypond...GNU LilyPond 1.8.0
> > Now processing: `355a.ly'
> > Parsing...Backtrace:
> > In unknown file:
> >    ?: 0* [#<procedure #f (lyric)> #<Music SequentialMusic>]
> > In /snd/backupfromaa/sefern4/shabbos/ly/355a.ly:
> >   16: 1* [text-map #<procedure #f (word)> #<Music SequentialMusic>]
> >    2: 2  (let (# # #) (if # #) (if # #) ...)
> >    2: 3* (ly-get-mus-property music (quote text))
> > 
> > /snd/backupfromaa/sefern4/shabbos/ly/355a.ly:2:15: In expression
> > (ly-get-mus-property music (quote text)):
> > /snd/backupfromaa/sefern4/shabbos/ly/355a.ly:2:15: Unbound variable:
> > ly-get-mus-property
> > 
> > 
> > ly2dvi: error: LilyPond failed on input file 355a (exit status 2)
> > ly2dvi: warning: Running LilyPond failed. Rerun with --verbose for a
> > trace.
> > address@hidden ly]$ 
> > =========================================================
> > Thanks
> > Aaron
> > 
> > Sorry for the long email.
Aaron
> > 
> > _______________________________________________
> > Lilypond-user mailing list
> > address@hidden
> > http://mail.gnu.org/mailman/listinfo/lilypond-user





reply via email to

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