Node: Non-guitar tablatures, Previous: Tablatures basic, Up: Tablatures



Non-guitar tablatures

You can change the number of strings, by setting the number of lines in the TabStaff (the line-count property of TabStaff can only be changed using \applyoutput, for more information, see Tuning objects).

You can change the tuning of the strings. A string tuning is given as a Scheme list with one integer number for each string, the number being the pitch (measured in semitones relative to central C) of an open string. The numbers specified for stringTuning are the numbers of semitones to subtract or add, starting the specified pitch by default middle C, in string order. Thus, the notes are e, a, d, and g:

       \context TabStaff <<
     
         \applyoutput #(outputproperty-compatibility (make-type-checker 'staff-symbol-interface)
                         'line-count 4)
         \property TabStaff.stringTunings =  #'(-5 -10 -15 -20)
     
         \notes {
           a,4 c' a e' e c' a e'
         }
       >>
     

[picture of music]

It is possible to change the Scheme function to format the tablature note text. The default is fret-number-tablature-format, which uses the fret number. For instruments that do not use this notation, you can create a special tablature formatting function. This function takes three argument: string number, string tuning and note pitch.

Bugs

No guitar special effects have been implemented.


This page is for LilyPond-2.0.1 (stable-branch).

Report errors to <bug-lilypond@gnu.org>.