lilypond-user
[Top][All Lists]
Advanced

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

Re: Errors when using TabStaff with stringTunings


From: Simon Albrecht
Subject: Re: Errors when using TabStaff with stringTunings
Date: Mon, 24 Aug 2015 18:19:23 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.8.0

Hello Kevin,

welcome back to the Pond :-)
There have been many syntax changes since v2.12, and one of them is the culprit here, so you’ll want to get a look at <http://lilypond.org/doc/v2.18/Documentation/usage/updating-files-with-convert_002dly>. (In case you’re using Frescobaldi: Tools/Update with convert.ly…)
BTW: we use to have the version number right at the beginning of the file.
The attached version works fine.

All the best,
Simon

Am 24.08.2015 um 17:36 schrieb Kevin Nowaczyk:
I have a lilypond file which used to parse perfectly well several years ago. I 
recently reinstalled lilypond (2.18.2 from debian-stable) and now I receive an 
error. I've reduced the file down and determined that setting the stringTunings 
is the problem. The file I have has both guitar tab and bass guitar tab. If I 
leave the   \set TabStaff.stringTunings = #'(4 -1 -5 -10 -15 -20) line out, it 
displays correctly. If I add it in, it presents the following error:

GNU LilyPond 2.18.2
Processing `Steven_smith_working.ly'
Parsing...
Interpreting 
music...[8]/usr/share/lilypond/2.18.2/scm/translation-functions.scm:313:39: In 
procedure ly:pitch-tones in expression (ly:pitch-tones (list-ref tuning #)):
/usr/share/lilypond/2.18.2/scm/translation-functions.scm:313:39: Wrong type 
argument in position 1 (expecting Pitch): 4


My test file:

guitarmusic =  {
         \key g \minor
         R1*12
         r8 bes'8\1 bes'\1 bes'\1 r8 a'\1 a'\1 a'\1 r c''\1 c''\1 c''\1 r 
bes'\1 bes'\1 bes'\1
         r bes'\1 bes'\1 bes'\1  r a'\1 a'\1 a'\1 r d''\1 d''\1 d''\1 r d''\1 
d''\1 d''\1
         r8 bes'8\1 bes'\1 bes'\1 r8 a'\1 a'\1 a'\1 r c''\1 c''\1 c''\1 r 
bes'\1 bes'\1 bes'\1
         r bes'\1 bes'\1 bes'\1 r a'\1 a'\1 a'\1 d''\1 d''\1 d''\1 d''\1 d''\1 
d''\1 d''\1 d''\1
}

\version "2.12.3"
\score {
         \new StaffGroup <<
                 \new TabStaff <<
                         \set TabStaff.stringTunings = #'(4 -1 -5 -10 -15 -20)
                         {
                                 \guitarmusic
                         }
                 >>
         >>
         \layout{}
}

Obviously, if all I'm doing is standard-tuned guitar, I can leave out the call 
to stringTunings, but for bass guitar I need that call.
Thanks for any help,
Kevin Nowaczyk

_______________________________________________
lilypond-user mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/lilypond-user

Attachment: bass-guitar.ly
Description: Text Data


reply via email to

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