lilypond-user
[Top][All Lists]
Advanced

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

Re: French tablature?


From: Malte Meyn
Subject: Re: French tablature?
Date: Fri, 30 Dec 2016 00:15:31 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1



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
    }
  }
}



reply via email to

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