lilypond-user
[Top][All Lists]
Advanced

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

Re: French tablature?


From: Alasdair McAndrew
Subject: Re: French tablature?
Date: Fri, 30 Dec 2016 15:16:16 +1100
User-agent: mu4e 0.9.18; emacs 25.1.1

Many thanks! I didn't know about RhythmicStaff. Is this all possible in version 2.18.2 (which I'm using)? Certainly when I copied and pasted your text into a file ("tabTest.ly"), Lilypond returned an error:

/home/Lilypond/tabTest.ly:5:4: error: syntax error, unexpected UNSIGNED 4*3 8*2 4. 8*5 4*2 8*4 16*4 8. 16 8*2 4 2*2 1

Maybe version 2.18.2 requires a little extra tweaking. Again, thank you very much.

-Alasdair

Malte Meyn writes:

Am 29.12.2016 um 23:15 schrieb Alasdair McAndrew:
Is it likely that Lilypond will provide such tablature at some stage? Currently, if I want to typeset tablature, I need to use different
software.

LilyPond already supports this type of tablature: You have to set the tablatureFormat to #fret-letter-tablature, set a string tuning including bass strings, and maybe change the default fret labels to not include j.

The rhythm can be added in a separate RhythmicStaff; maybe one could extract it somehow from the music using a music function (might be tricky with polyphonic music) but of course it can also be done by hand.

\version "2.19.53"

% maybe this could be automatically extracted from mel?
rh = {
   4*3 8*2 4. 8*5 4*2 8*4 16*4 8. 16 8*2 4 2*2 1
}

mel = \relative {
   a,,4 b c d8 e f4. g8
   a b c d e4 f g8
   a b c d16 e f g
   a8. b16 c8 cis d4
   d,2 d, d,1
}

\score {
   <<
     \new RhythmicStaff \rh
     \new TabStaff \mel
     \new Staff { \clef "treble_8" \mel }
   >>
   \layout {
     \context {
       \TabStaff
       tablatureFormat = #fret-letter-tablature-format
       stringTunings = \stringTuning <a, d f a d' f'>
additionalBassStrings = \stringTuning <a,, b,, c, d, e, f, g,>
       % don’t use j as a fret label:
       %fretLabels = #'("a" "b" "c" "d" "e" "f" "g" "h" "i" "k")
     }
     \context {
       \RhythmicStaff
       \override StaffSymbol.line-count = 0
       \autoBeamOff
       \remove Bar_engraver
\override VerticalAxisGroup.staff-staff-spacing.basic-distance = 6
       % you might want
       % 1. no time signature:
       %\remove Time_signature_engraver
       % 2. straight flags:
       %\override Flag.stencil = #old-straight-flag
       % 3. other note head shape or no note heads:
       %\override NoteHead.style = #'petrucci
       %\omit NoteHead
     }
   }
}

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


--
Alasdair McAndrew
http://numbersandshapes.net



reply via email to

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