lilypond-user
[Top][All Lists]
Advanced

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

"Wrong type argument in position 1" error and other questions


From: Kevin Nowaczyk
Subject: "Wrong type argument in position 1" error and other questions
Date: Mon, 19 Sep 2005 13:06:15 -0700 (PDT)

I've been checking out lilypond for a few days and
really like what it can do.  I've come upon a strange
error that I can not figure out.  Line 95 is commented
out.  By removing the comment I get the following when
running lilypond --pdf ./black_hole.ly

Preprocessing graphical objects...
Calculating line breaks...
[3][6][9][12][15][18][21][24][27][30]/usr/share/lilypond/2.6.0/scm/output-lib.scm:43:24:
In procedure cadr in expression (cadr note-collums):
/usr/share/lilypond/2.6.0/scm/output-lib.scm:43:24:
Wrong type argument in position 1: ()

What is it with this snippet of code that causes the
error.  I'm new to lilypond so I'm guessing the
problem is something basic--ish that's not
specifically spelled out in the tutorial.

There are a couple other warning that pop up when
rendering this file.  one says:
./black_hole.ly:4:2: warning: junking event:
`KeyChangeEvent'
but the key change does occur.  Should I put the "\key
g \major" statement in another place to cover all
staffs?

Finally I get a ton of:
Voiceprogramming error: can't find context continuing,
cross fingers
But the voice section looks very good.  Again, am I
doing something slightly wrong that it works, but with
loud complaints?

I'm running 2.6.0 on Cygwin Linux.

Thanks for a great piece of software.

Kevin Nowaczyk

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
        % ly snippet:
guitarmusic =  {
  \time 4/4
  \key g \major
  g,16\6 d\5 g\4 c'\3~ c'\3 g\4 d\5 g,\6
  bes,16\6 d16\5 g16\4 c'16\3~ c'4\3
  
  f,16\6 c16\5 f16\4 c'16\3~ c'16\3 f16\4 c16\5 d,16\6
  e,16\6  b,16\5 e16\4 b16\3~ b8.\3 d,16\6
  
  f,\6 bes,\5 ees\4 aes\3~ aes\3 ees\4 bes,\5 ees,\6
  d,\6 c\5 d\4 a\3~ a4\3~ 
  
  \time 2/4
  a4\3~ a4\3
  
  \time 4/4
  \repeat volta 2 {
    r16 g'\3 b'\2 e''\1~ e''\1 b'\2 g'\3 b'\2
    r g'\3 bes'\2 d''\1~ d''4\1

    r16 f'\3 c''\2 f''\1~ f''\1 c''\2 f'\3 c''\2~ 
    c''\2 \acciaccatura f'8\3 g'16\3 b'\2 e''\1~ e''4\1
 
    r16 g'\3 bes'\2 ees''\1~ ees''\1 bes'\2 g'\3 bes'\2~
    bes'\2 g'\3 a'\2 d''\1~ d''\1 a'\2 g'\3 a'\2

    g'\3 b'\2 e''\1 g'\3 f'\3 b'\2 d''\1 f'\3
    aes'\3 c''\2 ees''4.\1
  
    r16 g'\3 b'\2 e''\1~ e''\1 b'\2 g'\3 b'\2
    r g'\3 bes'\2 d''\1~ d''4\1
  
    r16 f'\3 c''\2 f''\1~ f''\1 c''\2 f'\3 c''\2~ 
    c''\2 \acciaccatura f'8\3 g'16\3 b'\2 e''\1~ e''4\1
 
    r16 g'\3 bes'\2 ees''\1~ ees''\1 bes'\2 g'\3 bes'\2~
    bes'\2 g'\3 a'\2 d''\1~ d''\1 a'\2 g'\3 a'\2

    g'\3 b'\2 e''\1 g'\3 f'\3 b'\2 d''\1 f'\3
    aes'\3 c''\2 ees''4.\1

    \time 2/4
    r2

    \time 4/4
    ees,16\6 bes,\5 ees\4 aes\3~ aes\3 ees\4 bes,\5 ees,\6 
    d,\6 c\5 d\4 a\3~ a\3 d\4 c\5 d,\6

    \acciaccatura f,8\6 g,16\6 d16\5 g16\4 g16\6 f16\6 d16\5 g16\4 f,16\6
    bes,16\5 f16\4 bes16\3 d'16\2~ d'16\2 bes16\3 f16\4 bes,16\5

    ees,16\6 bes,\5 ees\4 aes\3~ aes\3 ees\4 bes,\5 ees,\6 
    d,\6 c\5 d\4 a\3~ a\3 d\4 c\5 d,\6
  }
  \alternative { {
    \time 2/4
    <<c8.\5 g8.\4 c'8.\3 e'8.\2>> e'32\2 f'\2 e'16\2 g\4 c'8\3
    \time 4/4
    <<d1\5 a1\4 d'1\3 fis'1\2>>
  }
  {
    <<c8.\5 g8.\4 c'8.\3 e'8.\2>> e'32\2 f'\2 e'16\2 c'\3 g\4 c'\3 bes,\5 f16\4 
bes\3 d'\2~ d'\2 bes\3 f\4 bes\3
    ees,16\6 bes,16\5 ees16\4 aes16\3~ aes16\3 ees16\4 bes,16\5 ees,16\6 d,16\6 
c16\5 d16\4 a16\3~ a16\3 d16\4 c\5 d,16\6
    \acciaccatura f,8\6 g,16\6 d\5 g\4 g,\6 f,\6 d\5 g\4 f,\6 bes,\5 f\4 bes\3 
d'\2~ d'\2 bes\3 f\4 bes,\5
    ees,\6 bes,\5 ees\4 aes\3~ aes\3 ees\4 bes,\5 ees,\6 d,\6 c\5 d\4 a\3~ a\3 
d\4 c\5 d,\6
    \time 6/4
    <<c8.\5 g\4 c'\3 e'\2>> e'32\2( f'\2 e'16\2) c'\3 g8\4 <<bes,8.\5 f\4 bes\3 
d'\2>> d'32\2( ees'\2 d'16\2) bes\3 f\4 bes\3 <<d8.\5 a\4 d'\3 fis'\2>> 
fis'32\2( g'\2 fis'16\2) d'\3 a\4 d'\3
 
    <<c8.\5 g\4 c'\3 e'\2>> e'32\2( f'\2 e'16\2) c'\3 g8\4 <<bes,8.\5 f\4 bes\3 
d'\2>> d'32\2( ees'\2 d'16\2) bes\3 f\4 bes\3 <<d8.\5 a\4 d'\3 fis'\2>> <<d16\5 
a\4 d'\3 fis'\2>> <<d8\5 a\4 d'\3 fis'\2>> <<d8\5 a\4 d'\3 fis'\2>>
    
    <<c8.\5 g\4 c'\3 e'\2>> e'32\2( f'\2 e'16\2) c'\3 g8\4 <<bes,8.\5 f\4 bes\3 
d'\2>> d'32\2( ees'\2 d'16\2) bes\3 f\4 bes\3 <<d8.\5 a\4 d'\3 fis'\2>> 
fis'32\2( g'\2 fis'16\2) d'\3 a\4 d'\3
 
    <<c8.\5 g\4 c'\3 e'\2>> e'32\2( f'\2 e'16\2) c'\3 g8\4 <<bes,8.\5 f\4 bes\3 
d'\2>> d'32\2( ees'\2 d'16\2) bes\3 f\4 bes\3 <<d8.\5 a\4 d'\3 fis'\2>> <<d16\5 
a\4 d'\3 fis'\2>> <<d8\5 a\4 d'\3 fis'\2>> <<d8\5 a\4 d'\3 fis'\2>>
    \time 9/8
    c16\5 b,8\5 a,16\5~ a,\5 \acciaccatura b,8\5 c16\5 g,\6 fis,\6~ fis,\6  
f,8.\6 <<f,\6 c\5 f\4 b\3 d'\2 g'\1>> <<f,16\6 c\5 f\4 b\3 d'\2 g'\1>> <<f,8\6 
c\5 f\4 b\3 d'\2 g'\1>>
   
    c16\5 b,8\5 a,16\5~ a,\5 \acciaccatura b,8\5 c16\5 g,\6 fis,\6~ fis,\6  
f,8.\6 <<f,\6 c\5 f\4 b\3 d'\2 g'\1>> <<f,16\6 c\5 f\4 b\3 d'\2 g'\1>> <<f,8\6 
c\5 f\4 b\3 d'\2 g'\1>>
   
    c16\5 b,8\5 a,16\5~ a,\5 \acciaccatura b,8\5 c16\5 g,\6 fis,\6~ fis,\6  
f,8.\6 <<f,\6 c\5 f\4 b\3 d'\2 g'\1>> <<f,16\6 c\5 f\4 b\3 d'\2 g'\1>> <<f,8\6 
c\5 f\4 b\3 d'\2 g'\1>>
   
    c16\5 b,8\5 a,16\5~ a,\5 \acciaccatura b,8\5 c16\5 g,\6 fis,\6~ fis,\6  
f,8.\6 <<f,\6 c\5 f\4 b\3 d'\2 g'\1>> <<f,16\6 c\5 f\4 b\3 d'\2 g'\1>> <<f,8\6 
c\5 f\4 b\3 d'\2 g'\1>>
    
    c16\5 b,8\5 a,16\5~ a,\5 \acciaccatura b,8\5 c16\5 g,\6 fis,\6~ fis,\6  
f,8.\6 <<f,\6 c\5 f\4 b\3 d'\2 g'\1>> <<f,16\6 c\5 f\4 b\3 d'\2 g'\1>> <<f,8\6 
c\5 f\4 b\3 d'\2 g'\1>>
   
    c16\5 b,8\5 a,16\5~ a,\5 \acciaccatura b,8\5 c16\5 g,\6 fis,\6~ fis,\6  
f,8.\6 <<f,\6 c\5 f\4 b\3 d'\2 g'\1>> <<f,16\6 c\5 f\4 b\3 d'\2 g'\1>> <<f,8\6 
c\5 f\4 b\3 d'\2 g'\1>>
  }}
    
  
}

nextguitar = {
  r4 r8. bes'16\3 d''4\3~ d''16\3( e''8.\3
  bes'8\3 a'16\3 g'\3~) g'4\3~ g'2\3( 
%  bes'4.\3 b'8\3 d''2\3~) 
%  d''2\3
  }

vocalmusic = {
  \time 4/4
  \key g \major     
  r1
  r
  r
  \time 2/4
  r4 r16 b8 d'16
  \time 4/4
  d'16( e'16) r8 r16 \acciaccatura a8 b8 d'16 e'4 r8 b16 d'16
  \acciaccatura d'8 e'8 g'16 d'16~ d'16 \acciaccatura d'8 e'8 b16~ b8 r8 
\acciaccatura fis8 g8 a16 bes16~
  bes8 r8 \acciaccatura bes8 c'8. bes16~ bes16 a8. r16 g8 e16
  d16 b8 b16~ b16 a8 \acciaccatura b8 c'16~ c'4 r16 b8 d'16
  d'16( e'16) r8 \times 2/3 {r b d'} d'16( e'8.) r8 b16 d'16
  \acciaccatura d'8 e'8 g'16 d'16~ d'16 e'8 b16~ \acciaccatura a8 b8 r8 g16 a8 
bes16~
  bes8. c'16~ c'8. bes16 a8. g16~ g16 e16 r8
  d16 b8 b16~( b16 a16) a16 c'16~ c'4~ c'4

  \time 2/4
  r4 \acciaccatura f8 g16 a8.

  \time 4/4
  bes8-\segno r8 \acciaccatura bes8 c'8 bes16 a16~ a8 r8 r8. d16 
  b8 a16 a~ a8 g16 \acciaccatura b8 c'16~( c'8 g8) g16 a8( b16)
  c'( bes) r8 \acciaccatura fis8 g8 bes16 a~ a8 r8 \acciaccatura a8 bes16( e) e 
g32( a
  g4) \acciaccatura d8 e8 g16 f~ f4. r8 r4 r16 \acciaccatura a8 b8 d'16

  g2~ g8) r8 \acciaccatura fis8 g16 a8.
  bes8 r8 \acciaccatura bes8 c'8 bes16 <<a32 c'32>> <<g32 bes32>> <<a8 c'8>> r8 
r8. <<d16 g16>>
  <<b8 d'8>> <<a16 c'16>> <<a16~ c'16~>> <<a8 c'8>> <<g16 b16>> \acciaccatura 
<<bes8 fis'8>> <<c'16~( g'16~(>> <<c'8 g'8>> <<g8) c'8)>> \acciaccatura fis8 
<<g16 c'16>> <<a8. c'8.>>

  
  
}
chordlist = \chords {
          g2:sus4 bes2:6 9 
          f2:5^3.8 e2:5 
          ees2:sus4 d1:7^3
          g2:6 bes2:6
          f2 e2:m
          ees2  d2:sus4
          g4:6 f4:dim7^3 aes2
          g2:6 bes2:6
          f2 e2:m
          ees2  d2:sus4
          g4:6 f4:dim7^3 aes1
          ees2:sus4 d2:7^3
          g4:5 g4:5/f bes2
          ees2:sus4 d2:7^3
          c2 
          d1 
}
\version "2.6.0"
\header
  {
    title = "Black Hole Sun"
    subtitle = "As Recorded by Soundgarden"
    subsubtitle = "From the album Superunknown/A&M Records"
%    meter = "Slow Rock" \tempo 4 = 52
    composer = "Words and Music by Chris Cornell"
  }
\score
  {
    \new StaffGroup
      <<
        \new ChordNames \chordlist
        \new Staff { \clef "G_8" \vocalmusic}
        \addlyrics { 
           In my 
           eyes, __ In -- dis -- posed, in dis 
           -- guise as no __ one knows __ hides the face, __ 
           lies the __ snake and the 
           sun in my __ dis -- grace. __  Boil -- ing
           heat. __ Su -- mer stench. __ 'Neath the
           black, the sky __ looks dead. __ Call my name __
           through __ the cream and __ I'll 
           hear you scream __ a -- gain. __
           Black hole
           sun, won't you come __ and
           wash a -- way the rain? __ Black hole __
           sun, __ won't you come? __ Won't __ you come? __
           Won't you come? __ Stut -- ter
           Black hole 
           sun, won't you come __ and 
           wash a -- way__ the rain? __ Black hole 
           sun, __ won't you come? __ Won't you come? __

        }
        \addlyrics {
          Stut -- ter -- ing, __ cold and damp.  Steal 
          the warm wind, ti -- red friend.  Times are
          gone for hon -- est men, And some -- times 
          far too long for snakes.
        } 
         \new Staff { \clef "G_8" \guitarmusic }
         \new TabStaff << 
           \set TabStaff.stringTunings = #'(4 -1 -5 -10 -15 -22)
           { \guitarmusic }
         >>
         \new Staff {\clef "G_8" \nextguitar }
         \new TabStaff {\nextguitar}
       >>
%    \midi {\tempo 4=52}
  }
% end ly snippet

reply via email to

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