Please find herewith a draft code for your tab, which means that if you want a better output in your GrandStaff you probably have to add some voices (minimum two voices per Staff, or even one voice per string). I've also change the clef to the standard G (for me the G_8 one does not make much sense here, but it's only me). HTH, Pierre
2015-01-15 9:52 GMT+01:00 Omer Katzir <kome...@gmail.com>: > best example i could find > > > On Thu, Jan 15, 2015 at 10:37 AM, Pierre Perol-Schneider > <pierre.schneider.pa...@gmail.com> wrote: > > Hi Omer, > > Could you send me the scan of the final tab (hand written) you'd like to > > have and I'll show you how I'd do it. > > Thanks in advance, > > Pierre > > > > 2015-01-15 9:10 GMT+01:00 Omer Katzir <kome...@gmail.com>: > >> > >> I believe we are very close to solve this, as still not that great with > >> Lilypond I still require some help if it’s not a problem. > >> > >> First, I changed the tuning to fit Renaissance lute, C D E F g c f a d g > >> You can see that the rhythm is not showed at all, in the tablature it > >> should show as (a) on the most upper line and the frets follows. > >> The high is high on both the tablature and staff notation, when trying > to > >> raise an octave I get a fret error as before, when mentally setting the > >> string (c\5) it’s still too high in staff notation and for some reason > is > >> shows in the tablature as g (lowest line) > >> the low is showed right in perfect in the staff notation, but is way too > >> high on the tablature. > >> > >> To be honest, this is a bit confusing for me, I know music, I know > >> computers, but I find it hard to do both. > >> > >> Thank again for all the trouble! > >> > >> \version "2.18.2" > >> > >> \parallelMusic #'(rhythm high medium low) { > >> \time 3/4 > >> \key g\major > >> % mes.0 > >> g4 g4 g4 | > >> c4\5 c4 c4 | > >> f4 f4 f4 | > >> s4 s4 s4 | > >> \set Timing.measureLength = #(ly:make-moment 3/4) > >> % mes.1 > >> g4 g4 g4 | > >> r8 g d' g' c' g' | > >> f4 f4 f4 | > >> c8 d e f4. | > >> } > >> > >> \score { > >> \new StaffGroup << > >> \new RhythmicStaff = "Rhythm" { \rhythm } > >> \new TabStaff = "High" > >> \with { > >> stringTunings = \stringTuning <c f a d g'> > >> fretLabels = \markuplist { > >> \column { \vspace #.15 "a" } > >> "b" > >> \column { \vspace #.15 "r" } > >> "d" % optional \rotate #90 "d" > >> \column { \vspace #.15 "e" } > >> "f" > >> "g" > >> "h" > >> "i" > >> "k" > >> } > >> \override TabNoteHead.extra-offset = #'(0 . .15) > >> \override VerticalAxisGroup.staff-staff-spacing = #'((padding . .5)) > >> \override TimeSignature.style = #'single-digit > >> \override TimeSignature.X-offset = #-2 > >> \override TimeSignature.font-size = #3 > >> \revert TimeSignature.stencil > >> } > >> << \high \\ \medium >> > >> \new TabStaff = "Low" > >> \with { > >> \bar "" > >> \remove "Staff_symbol_engraver" > >> \override VerticalAxisGroup.staff-staff-spacing = #'( > >> (basic-distance . 2) > >> (padding . 2)) > >> stringTunings = \stringTuning < c d e f g'> > >> fretLabels = \markuplist { > >> "4" \null > >> "///a" \null > >> "//a" \null > >> "/a" > >> \column { \vspace #.15 "a" } > >> } > >> } > >> \low > >> \new GrandStaff << > >> \new Staff { > >> \clef "G_8" > >> << > >> \context Voice = "High" { \voiceOne << \high >> } > >> %\context Voice = "Medium" { \voiceTwo << \medium >> } > >> >> > >> } > >> \new Staff { > >> \clef F > >> << \medium \\ \low >> > >> } > >> >> > >> >> > >> \layout { > >> indent = 0 > >> \context { > >> \RhythmicStaff > >> \remove "Staff_symbol_engraver" > >> \omit Clef > >> \omit TimeSignature > >> \omit NoteHead > >> \override Stem.length = #6 > >> fontSize = #-1 > >> \override VerticalAxisGroup #'staff-staff-spacing = > >> #'((basic-distance . 4) > >> (minimum-distance . 3) > >> (padding . 1)) > >> \stemUp > >> \autoBeamOff > >> \override Flag.stencil = #old-straight-flag > >> \override Stem.thickness = #1.0 > >> \override Dots.extra-offset = #'(0 . 1) > >> } > >> \context { > >> \TabStaff > >> \omit Clef > >> tablatureFormat = #fret-letter-tablature-format > >> } > >> } > >> } > >> > >> > >> On Jan 14, 2015, at 11:05 PM, Pierre Perol-Schneider > >> <pierre.schneider.pa...@gmail.com> wrote: > >> > >> So let's check the warnings to see what' going on... > >> > >> 1. warning: Bars in parallel music don't have the same length > >> means that your mesure is not rythmically even; see : > >> > >> > http://lilypond.org/doc/v2.18/Documentation/notation/multiple-voices.html#single_002dstaff-polyphony > >> (go to "identical rhythms"). > >> > >> 2. error: unrecognized string, not in text script or \lyricmode << \low > \\ > >> medium >> > >> "\" missing, it should be << \low \\ \medium >> > >> > >> 3. warning: no \version statement found, please add \version "2.18.2"... > >> pretty clear... > >> > >> 4. warning: barcheck failed at: 3/8 > >> see 1. > >> > >> 5. warning: No label for fret 12 (on string 2); only 10 fret labels > >> provided > >> pretty clear, for sure a stringTuning issue. This will give you dots > >> instead of fret letters > >> > >> the other warnings & error are similar. > >> So here I am so far : > >> > >> \version "2.18.2" > >> > >> \parallelMusic #'(rhythm high medium low) { > >> \time 3/4 > >> \key g\major > >> \partial 4. > >> % mes.0 > >> g4. | > >> d'8 e' fis' | > >> s4. | > >> s4. | > >> \set Timing.measureLength = #(ly:make-moment 3/4) > >> % mes.1 > >> g8 g g g4. | > >> r8 g d' g' c' g' | > >> g,8 g g g4. | > >> c,8 d, e, f,4. | > >> } > >> > >> \score { > >> \new StaffGroup << > >> \new RhythmicStaff = "Rhythm" { \rhythm } > >> \new TabStaff = "High" > >> \with { > >> stringTunings = \stringTuning <f a d' g'> > >> fretLabels = \markuplist { > >> \column { \vspace #.15 "a" } > >> "b" > >> \column { \vspace #.15 "r" } > >> "d" % optional \rotate #90 "d" > >> \column { \vspace #.15 "e" } > >> "f" > >> "g" > >> "h" > >> "i" > >> "k" > >> } > >> \override TabNoteHead.extra-offset = #'(0 . .15) > >> \override VerticalAxisGroup.staff-staff-spacing = #'((padding . > .5)) > >> \override TimeSignature.style = #'single-digit > >> \override TimeSignature.X-offset = #-2 > >> \override TimeSignature.font-size = #3 > >> \revert TimeSignature.stencil > >> } > >> << \high \\ \medium >> > >> \new TabStaff = "Low" > >> \with { > >> \bar "" > >> \remove "Staff_symbol_engraver" > >> \override VerticalAxisGroup.staff-staff-spacing = #'( > >> (basic-distance . 2) > >> (padding . 2)) > >> stringTunings = \stringTuning <c, d e f g> > >> fretLabels = \markuplist { > >> "4" \null > >> "///a" \null > >> "//a" \null > >> "/a" > >> \column { \vspace #.15 "a" } > >> } > >> } > >> \low > >> \new GrandStaff << > >> \new Staff { > >> \clef "G_8" > >> << > >> \context Voice = "High" { \voiceOne << \high >> } > >> %\context Voice = "Medium" { \voiceTwo << \medium >> } > >> >> > >> } > >> \new Staff { > >> \clef F > >> << \medium \\ \low >> > >> } > >> >> > >> >> > >> \layout { > >> indent = 0 > >> \context { > >> \RhythmicStaff > >> \remove "Staff_symbol_engraver" > >> \omit Clef > >> \omit TimeSignature > >> \omit NoteHead > >> \override Stem.length = #6 > >> fontSize = #-1 > >> \override VerticalAxisGroup #'staff-staff-spacing = > >> #'((basic-distance . 4) > >> (minimum-distance . 3) > >> (padding . 1)) > >> \stemUp > >> \autoBeamOff > >> \override Flag.stencil = #old-straight-flag > >> \override Stem.thickness = #1.0 > >> \override Dots.extra-offset = #'(0 . 1) > >> } > >> \context { > >> \TabStaff > >> \omit Clef > >> tablatureFormat = #fret-letter-tablature-format > >> } > >> } > >> } > >> > >> > >> HTH, > >> Pierre > >> > >> > >> > > > > > > -- > Omer Katzir > The Silent Troubadour > http://omerkatzir.com >
\version "2.18.2" global = { \time 3/2 \key ees\major \set Score.currentBarNumber = #3 \bar "" } \parallelMusic #'(rhythm high medium low) { \global % mes.3 c4 s s c8 s c4 s | g'4 ees' f'2 ees'4 d' | \stemNeutral g4 aes2 g8 f g2 | s1. | % mes.4 s4 s s c8 s c4 c8 s | <g c'>4 ees' d' g'8 f' ees'4 f'8 ees' | \stemUp c2 g, c | c,2 s1 | % mes.5 s2 c4 s s c8 s | d'8 ees' d' c' bes4 f'_\laissezVibrer c'_\laissezVibrer s8 ees' | bes,2 g,4 aes,2. | s1 s4 \once\stemUp f, | % mes.6 c4 s s c8 s c4 s | d'2 c'2. b4 | g,1.*1/6 f4 ees d8 c d2 | s1. | } \score { %\new StaffGroup << \new RhythmicStaff = "Rhythm" { \rhythm } \new TabStaff = "High" \with { stringTunings = \stringTuning <g, c f a d' g'> fretLabels = \markuplist { \column { \vspace #.15 "a" } "b" \column { \vspace #.15 "c" } %\column { \vspace #.15 "r" } "d" %\rotate #90 "d" \column { \vspace #.15 "e" } "f" "g" "h" "j" } \override TabNoteHead.extra-offset = #'(0 . .15) \override VerticalAxisGroup.staff-staff-spacing = #'((padding . .5)) \override TimeSignature.style = #'single-digit \override TimeSignature.extra-offset = #'(-2 . 0) \override TimeSignature.font-size = #3 \revert TimeSignature.stencil } { << \high \\ \medium >> } \new TabStaff = "Low" \with { \bar "" \remove "Staff_symbol_engraver" \override VerticalAxisGroup.staff-staff-spacing = #'( (basic-distance . 2) (padding . 2)) %% these are not real string tunings %% it's set to show the bass strings %% under the tablature stringTunings = \stringTuning <a,,> fretLabels = \markuplist { "///a" \null \null "//a" \null \null \null "/a" \column { \vspace #.15 "a" } } } { \low } \new GrandStaff << \new Staff { \clef G \global << \context Voice = "High" { \voiceOne << \high >> } % \context Voice = "Medium" { \voiceTwo << \medium >> } >> } \new Staff { \clef F \global << \medium \\ \low >> } >> >> \layout { indent = 0 \context { \RhythmicStaff \remove "Staff_symbol_engraver" \omit Clef \omit TimeSignature %% un comment to hide note heads in the rhythmic line: %\omit NoteHead \override Stem.length = #6 fontSize = #-1 \override VerticalAxisGroup #'staff-staff-spacing = #'((basic-distance . 4) (minimum-distance . 3) (padding . 1)) \stemUp \autoBeamOff %% show old style flags in the rhythmic line: %\override Flag.stencil = #old-straight-flag \override Stem.thickness = #1.0 \override Dots.extra-offset = #'(0 . 1) } \context { \TabStaff \omit Clef tablatureFormat = #fret-letter-tablature-format } \context { \GrandStaff \omit StringNumber } } }
_______________________________________________ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user