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: Marc Hohl
Subject: Re: Errors when using TabStaff with stringTunings
Date: Mon, 24 Aug 2015 18:41:11 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.8.0

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

IIRC the underlying mechanism has changed, but lilypond offers ready-to-use shortcuts that make life much easier ;-)

\set TabStaff.stringTunings = #bass-tuning

Lilypond offers:

guitar-tuning <e, a, d g b e'>
guitar-seven-string-tuning <b,, e, a, d g b e'>
guitar-drop-d-tuning <d, a, d g b e'>
guitar-drop-c-tuning <c, g, c f a d'>
guitar-open-g-tuning <d, g, d g b d'>
guitar-open-d-tuning <d, a, d fis a d'>
guitar-dadgad-tuning <d, a, d g a d'>
guitar-lute-tuning <e, a, d fis b e'>
guitar-asus4-tuning <e, a, d e a e'>
bass-tuning <e,, a,, d, g,>
bass-four-string-tuning <e,, a,, d, g,>
bass-drop-d-tuning <d,, a,, d, g,>
bass-five-string-tuning <b,,, e,, a,, d, g,>
bass-six-string-tuning <b,,, e,, a,, d, g, c>
mandolin-tuning <g d' a' e''>
banjo-open-g-tuning <g' d g b d'>
banjo-c-tuning <g' c g b d'>
banjo-modal-tuning <g' d g c' d'>
banjo-open-d-tuning <a' d fis a d'>
banjo-open-dm-tuning <a' d fis a d'>
ukulele-tuning <g' c' e' a'>
ukulele-d-tuning <a' d' fis' b'>
tenor-ukulele-tuning <g c' e' a'>
baritone-ukulele-tuning <d g b e'>
violin-tuning <g d' a' e''>
viola-tuning <c g d' a'>
cello-tuning <c, g, d a>
double-bass-tuning <e,, a,, d, g,>

HTH,

Marc




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





reply via email to

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