I know there is an error but I don't understand the message to find the error.

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

I know there is an error but I don't understand the message to find the error.

Jay Hamilton, Sound and Silence
Below is the error message and the file it refers to.
I've changed everything I can think of to get it to
compile but I don't know why there is a problem either
with line 36 or with the one expression beginning with #.
Jay



# -*-compilation-*-
Changing working directory to `C:/Documents and
Settings/Owner/Desktop/NoteWorthy/nwc files/Guitar'
Processing `C:/Documents and
Settings/Owner/Desktop/NoteWorthy/nwc
files/Guitar/Bourree bach.ly'
Parsing...
Interpreting music... [8][16][24][26]
Preprocessing graphical objects...
C:/Program
Files/LilyPond/usr/share/lilypond/2.6.4/ly/init.ly:36:1:
error: GUILE signaled an error for the expression
beginning here
#
  (if (pair? toplevel-scores) C:/Program
Files/LilyPond/usr/share/lilypond/2.6.4/ly/init.ly:36:5:
error: syntax error, unexpected '(', expecting '='
#(if
      (pair? toplevel-scores)




\version "2.6.4"
\header {
        title = "Bourree"
   composer = "Bach"
   copyright = "For study purposes only"

}

#(set-global-staff-size 30)
upper = \relative c'' {
\clef treble
\key c \major
\time 4/4

r2. e'8 d c4 d8 e b4 a8 g c4 g g c d g, f' e d8 c b c d4
e8 d c4 d8 e b4 a8 g
c4 c, c f e a8 d, d4. c8 c2. \bar ":||:" c8 d e4 d8 c
g'4 c b8 c b c d4 g, e'
g, d' c8 b a g fis! g a4 d, g d a d, b' a8 g c4 d8 e
fis,4 g8 a a4. g8 g2. e'8 d
c4 d8 e b4 a8 g c4 g g c d g, f' e d8 c b c d4 e8 d c4
d8 e b4 a8 g
c4 c, c f e a8 d, d4. c8 c2. \bar ":||"
}

lower = \relative c {
\clef treble
\key c \major
\time 4/4
r2. c'8 d e4 d8 c g'4. f8 e4 c8 d e4 d8 c b4. a8 b4 c g
d' g c,8 d e4 d8 c g'4
g, a g8 f e4 f8 g a4 f g g, c g' c
}

\score {
\context PianoStaff <<
\set PianoStaff.instrument = "Piano "
\context Staff = upper \upper
\context Staff = lower \lower
 >>
\layout {}
\midi {\tempo 4=60 }
}
--
Childhood is a Journey not a race- Emma Sadinsky aged 8
Jay Hamilton
Sound and Silence
206-328-7694
www.soundand.com


_______________________________________________
lilypond-user mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/lilypond-user
Reply | Threaded
Open this post in threaded view
|

Re: I know there is an error but I don't understand the message to find the error.

Mats Bengtsson-4
I just tried your example and I didn't get any syntax error.
However, I had to replace ":||:" by ":|:"  and ":||" by ":|:" to
be able to process the file without any error.

   /Mats

Jay Hamilton, Sound and Silence wrote:

> Below is the error message and the file it refers to.
> I've changed everything I can think of to get it to compile but I
> don't know why there is a problem either with line 36 or with the one
> expression beginning with #.
> Jay
>
>
>
> # -*-compilation-*-
> Changing working directory to `C:/Documents and
> Settings/Owner/Desktop/NoteWorthy/nwc files/Guitar'
> Processing `C:/Documents and Settings/Owner/Desktop/NoteWorthy/nwc
> files/Guitar/Bourree bach.ly'
> Parsing...
> Interpreting music... [8][16][24][26]
> Preprocessing graphical objects...
> C:/Program Files/LilyPond/usr/share/lilypond/2.6.4/ly/init.ly:36:1:
> error: GUILE signaled an error for the expression beginning here
> #
>  (if (pair? toplevel-scores) C:/Program
> Files/LilyPond/usr/share/lilypond/2.6.4/ly/init.ly:36:5: error: syntax
> error, unexpected '(', expecting '='
> #(if
>      (pair? toplevel-scores)
>
>
>
>
> \version "2.6.4"
> \header {
>     title = "Bourree"
>   composer = "Bach"
>   copyright = "For study purposes only"
>
> }
>
> #(set-global-staff-size 30)
> upper = \relative c'' {
> \clef treble
> \key c \major
> \time 4/4
>
> r2. e'8 d c4 d8 e b4 a8 g c4 g g c d g, f' e d8 c b c d4 e8 d c4 d8 e
> b4 a8 g
> c4 c, c f e a8 d, d4. c8 c2. \bar ":||:" c8 d e4 d8 c g'4 c b8 c b c
> d4 g, e'
> g, d' c8 b a g fis! g a4 d, g d a d, b' a8 g c4 d8 e fis,4 g8 a a4. g8
> g2. e'8 d
> c4 d8 e b4 a8 g c4 g g c d g, f' e d8 c b c d4 e8 d c4 d8 e b4 a8 g
> c4 c, c f e a8 d, d4. c8 c2. \bar ":||"
> }
>
> lower = \relative c {
> \clef treble
> \key c \major
> \time 4/4
> r2. c'8 d e4 d8 c g'4. f8 e4 c8 d e4 d8 c b4. a8 b4 c g d' g c,8 d e4
> d8 c g'4
> g, a g8 f e4 f8 g a4 f g g, c g' c
> }
>
> \score {
> \context PianoStaff <<
> \set PianoStaff.instrument = "Piano "
> \context Staff = upper \upper
> \context Staff = lower \lower
> >>
> \layout {}
> \midi {\tempo 4=60 }
> }



--
=============================================
        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: [hidden email]
        WWW: http://www.s3.kth.se/~mabe
=============================================



_______________________________________________
lilypond-user mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/lilypond-user
Reply | Threaded
Open this post in threaded view
|

Re: I know there is an error but I don't understand the message to find the error.

Jay Hamilton, Sound and Silence
Thank you that was the problem.
Jay

Mats Bengtsson wrote:

> I just tried your example and I didn't get any syntax error.
> However, I had to replace ":||:" by ":|:"  and ":||" by ":|:" to
> be able to process the file without any error.
>
>   /Mats
>
> Jay Hamilton, Sound and Silence wrote:
>
>> Below is the error message and the file it refers to.
>> I've changed everything I can think of to get it to compile but I
>> don't know why there is a problem either with line 36 or with the one
>> expression beginning with #.
>> Jay
>>
>>
>>
>> # -*-compilation-*-
>> Changing working directory to `C:/Documents and
>> Settings/Owner/Desktop/NoteWorthy/nwc files/Guitar'
>> Processing `C:/Documents and Settings/Owner/Desktop/NoteWorthy/nwc
>> files/Guitar/Bourree bach.ly'
>> Parsing...
>> Interpreting music... [8][16][24][26]
>> Preprocessing graphical objects...
>> C:/Program Files/LilyPond/usr/share/lilypond/2.6.4/ly/init.ly:36:1:
>> error: GUILE signaled an error for the expression beginning here
>> #
>>  (if (pair? toplevel-scores) C:/Program
>> Files/LilyPond/usr/share/lilypond/2.6.4/ly/init.ly:36:5: error: syntax
>> error, unexpected '(', expecting '='
>> #(if
>>      (pair? toplevel-scores)
>>
>>
>>
>>
>> \version "2.6.4"
>> \header {
>>     title = "Bourree"
>>   composer = "Bach"
>>   copyright = "For study purposes only"
>>
>> }
>>
>> #(set-global-staff-size 30)
>> upper = \relative c'' {
>> \clef treble
>> \key c \major
>> \time 4/4
>>
>> r2. e'8 d c4 d8 e b4 a8 g c4 g g c d g, f' e d8 c b c d4 e8 d c4 d8 e
>> b4 a8 g
>> c4 c, c f e a8 d, d4. c8 c2. \bar ":||:" c8 d e4 d8 c g'4 c b8 c b c
>> d4 g, e'
>> g, d' c8 b a g fis! g a4 d, g d a d, b' a8 g c4 d8 e fis,4 g8 a a4. g8
>> g2. e'8 d
>> c4 d8 e b4 a8 g c4 g g c d g, f' e d8 c b c d4 e8 d c4 d8 e b4 a8 g
>> c4 c, c f e a8 d, d4. c8 c2. \bar ":||"
>> }
>>
>> lower = \relative c {
>> \clef treble
>> \key c \major
>> \time 4/4
>> r2. c'8 d e4 d8 c g'4. f8 e4 c8 d e4 d8 c b4. a8 b4 c g d' g c,8 d e4
>> d8 c g'4
>> g, a g8 f e4 f8 g a4 f g g, c g' c
>> }
>>
>> \score {
>> \context PianoStaff <<
>> \set PianoStaff.instrument = "Piano "
>> \context Staff = upper \upper
>> \context Staff = lower \lower
>> >>
>> \layout {}
>> \midi {\tempo 4=60 }
>> }
>
>
>
>

--
Childhood is a Journey not a race- Emma Sadinsky aged 8
Jay Hamilton
Sound and Silence
206-328-7694
www.soundand.com


_______________________________________________
lilypond-user mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/lilypond-user