Re: [tablatures] 2.13.4 released

[ Thread Index | Date Index | More lilynet.net/tablatures Archives ]


rosea grammostola schrieb:

Marc Hohl wrote:
Hello tablature users,

2.13.4 is released, so the is no need for tablature.ly any more!
@ Marc, do you have a *.ly file with the tablature functions in it, so I can test it and see how it works?

Yes of course, see attached file.

Marc
\r




\version "2.13.4"

\paper {
   indent = 0 }


\markup {\fill-line { \bold \huge tablature features } }

alotofstuff = {
   \time 3/4
   c4^"test" d( e) 
   f4\f g a^\fermata
   c8\<\( c16 c ~ c2\!
   c'2.\)
   \mark \default
   R2.
   r4 d4 r8 r
   \times 3/4 { b4 c d c }
   c4. d-_( e\varcoda)
   ->f g~ a\prall g\thumb e-. f-. g-.
   \times 3/4 { b4  c \glissando d\5 \glissando c }
   \bar "|."
}


\markup{ \justify { Here is an example of how tablature now behaves as default:} }

\score {
   <<
      \new Staff { \clef "G_8" \alotofstuff }
      \new TabStaff   { \alotofstuff }
   >>
}

\markup { \justify { If one needs a tab staff with everything in it, \typewriter { tabFullNotation }
is your friend. (Note that half notes are double-stemmed to distinguish them from quarter notes.} }

\score { \new TabStaff { \tabFullNotation \clef "tab" \alotofstuff } }

\markup{ \justify { tablature.ly supports an easy way to mark notes as played palm mute-style...} }

palmmute = \relative c, {
    \time 4/4
    e8^\markup { \musicglyph #"noteheads.u2do"  = palm mute } \palmMuteOn e e \palmMuteOff  e e  \palmMute e e e
    e8 \palmMute { e e e } e e e e 
    \palmMuteOn
    < e b' e >8 e e e < e b' e >2
    \palmMuteOff
    < \palmMute e b' e >8 \palmMute { e e e } < \palmMute e b' e >2
    \bar "|."
}

\score {
   <<
      \new Staff { \clef "G_8" \palmmute }
      \new TabStaff  { \clef "tab"
                       \palmmute }
   >>
}


\markup {... or dead notes:}

deadnotes = \relative c,, {
   e8. \deadNotesOn e16 \deadNotesOff g4 a b
   e8. \deadNote e16 g4 a b
   e,4. \deadNote { e8 e e } e4
   < e, \deadNote b' e >8 < e \deadNote b' e > < e \deadNote b' e > < e \deadNote b' e >
   < e \deadNote b' e > < e \deadNote b' e > < e \deadNote b' e > < e \deadNote b' e >
   < e \deadNote b' e >1
   \bar "|."
}

\score {
   <<
      \new Staff { \clef "bass_8" \deadnotes }
      \new TabStaff  { \set TabStaff.stringTunings =  #bass-four-string-tuning
                       \clef "tab"
                       \deadnotes }
   >>
}


\markup { \justify { The new moderntab clef supports tablatures from 4 to 7 strings. } }
% some stuff 
bass = \relative c,, {
   e4 g a b
   b4 f g d'
   \bar "|."
}
\markup{Four strings:}
\score {
   <<
      \new Staff { \clef "bass_8" \bass }
      \new TabStaff   { \clef "moderntab"
                        \set TabStaff.stringTunings = #bass-four-string-tuning
                        \bass }
   >>
}

\markup{Five strings:}
\score {
   <<
      \new Staff { \clef "bass_8" \bass }
      \new TabStaff   { \clef "moderntab"
                        \set TabStaff.stringTunings = #bass-five-string-tuning
                        \bass }
   >>
}

guitar = \relative c {
   c4 d e f
   g4 a b c 
   \bar "|."
}

\markup { Six strings:}
\score {
   <<
      \new Staff { \clef "G_8" \guitar }
      \new TabStaff   { \clef "moderntab"
                        \set TabStaff.stringTunings = #guitar-tuning
                        \guitar }
   >>
}

\markup { Seven strings:}
\score {
   <<
      \new Staff { \clef "G_8" \guitar }
      \new TabStaff   { \clef "moderntab"  
                        \set TabStaff.stringTunings = #guitar-seven-string-tuning
                        \guitar }
   >>
}

\markup { Seven strings, staff space set to 1.2 for testing purposes:}
\score {
   <<
      \new Staff { \clef "G_8" \guitar }
      \new TabStaff   { \clef "moderntab" \override TabStaff.StaffSymbol #'staff-space = #1.2
                        \set TabStaff.stringTunings =  #guitar-seven-string-tuning
                        \guitar }
   >>
}

tietest = \relative c {
       \repeat volta 2 {
       f2 ~ f4  e
       g8 g ~ g g ~ g g~ g g ~
       g1
       c1 ~ \break  c2 ~ c 
       < c\3 e\2 g\1 >4 < c\3 e\2 g\1 > ~ < c\3 e\2 g\1 >\laissezVibrer r
       c4. d8 e2 ~ }
       \alternative { { e2 r } { e2\repeatTie e2^\fermata } }
       < c\3 e\2 g\1 >1 ~\break < c\3 e\2 g\1 >2 ~ < c\3 e\2 g\1 >
       \bar "|."
       }
       
\markup {Ties over a line break are parenthesized by default:}
\score {
   << \new Staff { \clef "G_8" \tietest }
      \new TabStaff { \clef "tab"  \tietest }
   >>
}

\markup {If you don't want this, use \typewriter {hideSplitTiedTabNotes}: }
\score {
   << \new Staff { \clef "G_8" \tietest }
      \new TabStaff { \clef "tab" \hideSplitTiedTabNotes \tietest }
   >>
}








Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/