On 2024-01-30 8:20 am, Kevin Cole wrote:
Are you able to provide a link to the source score? If it shows both
the tablature as well as standard notation, it should be pretty easy
to
verify the intended tuning.
A newer MWE plus images that illustrate my question... a bit:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\version "2.24.2"
\language "english"
riff = \relative {
\time 5/4
\clef "bass_8" % I assume from examples that's right.
c8[ g8] r8 c,8 ds8[ g8] f4 f'8 r8
}
\score {
\new Staff
<<
\new Voice \with { \omit StringNumber } \riff
\new TabStaff \with { stringTunings = #bass-tuning } \riff
>>
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
original.png is what I'm copying from and mwe.png is what the above
produces.
NOTE: I've changed mandolin-tuning back to bass-tuning.
Ok, the source does just use the standard EADG tuning.
But the reason mandolin-tuning did not work is that the strings are
tuned too high for the notes. Compare from string-tunings-init.ly:
%%%%
\makeDefaultStringTuning #'bass-tuning \stringTuning <e,, a,, d, g,>
\makeDefaultStringTuning #'mandolin-tuning \stringTuning <g d' a' e''>
%%%%
Now LilyPond is going to prefer fretting closer to the nut, so you will
need to use string numbers to get the output to match the source
tablature which is the ideal fretting position for that measure.
And be careful with the \clef command being inside the \riff music
variable. TabStaff has its own specialized clef for printing the word
"TAB". You'll only want to apply the \clef to the Staff.
%%%%
\version "2.22.0"
\language "english"
riff = \relative {
\time 5/4
c8\2[ g8\3] r8 c,8\4 ds8\4[ g8\3] f4\3 f'8\1 r8
}
\score {
\new StaffGroup <<
\new Staff \with { \omit StringNumber } { \clef "bass_8" \riff }
\new TabStaff \with { stringTunings = #bass-tuning } { \riff }
>>
}
%%%%
(StaffGroup will also get you that nice bracket out front.)
-- Aaron Hill