I'm sure I've messed up somewhere, but I can't see what I'm doing wrong here.

I'm editing some music for fingerstyle guitar and I'm putting it into a modern looking tablature. I'm writing all of the notes twice so I can fine-tune the notation and tablature independently.

I have 4 variables defined, which contain the notes: nfingers and nthumb for the notation, and tfingers and tthumb for the tablature. Circumstances will require me to further divide the tablature notes into voices, as needed to fine-tune how they're displayed.

nthumb and tthumb don't contain music because they enter later in the piece. I'm working off of a *.ly that was exported from TuxGuitar and I'd like to do this with as little additional fuss as possible.

In the first example, I'm trying to display the slur in the tab staff as originating from the "2" and ending at the "0."

In the second example, I've defined voices within the variable "nfingers" in an attempt to get the slur how I want it. However, LilyPond creates two further note staves, each containing one of the voices from the variables in tfingers, which is, itself part of a TabStaff.

Can anyone point out where I'm going wrong?

Thanks,

David

--
David Stocker
804-598-3762
http://notesettersinc.com

\version "2.13.16"

nfingers = {
  %1
  e,4\5-.\mf_\markup {
    \fontsize #-2
    \center-align "w/fingers"
  } <gis\2 e\3 b,\4 >4-. \slurDown <gis\2 e\3 b,\4 >8( a,\4 )
}

nthumb = {
  %1
  s2.
}

fingers = {
  %1
  e,4\5-. <gis\2 e\3 b,\4 >4-. <gis\2 e\3 b,\4 >8( a,\4 )
}

tfingers = {
  {
    <<
      \new Voice = "upper" {
	%1a
	e,4\5-. <gis\2 e\3 b,\4 >4-. <gis\2 e\3>8 s
      }
      \new Voice = "lower" {
	%1b
	s2 <b,\4 >8( a,\4 )
      }
    >>
  }
}

tthumb = {
  %1
  s2.
}

\score {
  <<
    \new Staff = "notation" {
      \clef "treble"
      \key e \major
      \time 3/4
      \override Staff.StringNumber #'transparent = ##t
      <<
	\new Voice = "fingers" {
	  \transpose c c''
	  \nfingers
	}
	\new Voice = "thumb" {
	  \nthumb
	}
      >>
    }
    \new TabStaff = "tablature" {
      \set TabStaff.stringTunings = #'(-4 -8 -13 -15 -20 -27 )
      \clef moderntab
      \override TabNoteHead #'whiteout = ##f
      <<
	{ \fingers }
	{ \tthumb }
      >>
    }
  >>
}

\score {
  <<
    \new Staff = "notation" {
      \clef "treble"
      \key e \major
      \time 3/4
      \override Staff.StringNumber #'transparent = ##t
      <<
	\new Voice = "fingers" {
	  \transpose c c''
	  \nfingers
	}
	\new Voice = "thumb" {
	  \nthumb
	}
      >>
    }
    \new TabStaff = "tablature" {
      \set TabStaff.stringTunings = #'(-4 -8 -13 -15 -20 -27 )
      \clef moderntab
      \override TabNoteHead #'whiteout = ##f
      <<
	{ \tfingers }
	{ \tthumb }
      >>
    }
  >>
}
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to