[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: what did I wrong?
From: |
David Kastrup |
Subject: |
Re: what did I wrong? |
Date: |
Sat, 03 Jun 2017 16:47:34 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) |
bb <address@hidden> writes:
> the b and c should be 2 and 3 on string 5. Instead they show 7 and 8,
> even with predefined string 5.
>
> I kindly ask for help.
>
> Kind regards BB
>
>
> \version "2.18.2"
>
> #(set-global-staff-size 27) %%% System
>
> fourth = \stringTuning < f, a, d g c' f' >
>
> Scale= {
> \relative c'
> \override Score.BarNumber.break-visibility = ##(#t #t #t)
> \time 4/4
> {f, g, a, b, | c d e f |
> c\5 d e f | % with string definition
> g a b c' | d' e' f' g' | a' b' c'' d'' |
> e'' f'' g'' a''
> \bar "|."
> }
> }
>
> \new TabStaff \with {
> \tabFullNotation
> \stemDown
> tablatureFormat = #fret-number-tablature-format-banjo
> stringTunings = #fourth
> }
> {
> \Scale
> }
Banjo tablatures
................
LilyPond has basic support for the five-string banjo. When making
tablatures for five-string banjo, use the banjo tablature format
function to get correct fret numbers for the fifth string:
music = {
g8 d' g'\5 a b g e d' |
g4 d''8\5 b' a'\2 g'\5 e'\2 d' |
g4
}
<<
\new Staff \with { \omit StringNumber }
{ \clef "treble_8" \music }
\new TabStaff \with {
tablatureFormat = #fret-number-tablature-format-banjo
stringTunings = #banjo-open-g-tuning
}
{ \music }
>>
The definition is:
(define-public (fret-number-tablature-format-banjo
context string-number fret-number)
(make-vcenter-markup
(number->string (cond
((and (> fret-number 0) (= string-number 5))
(+ fret-number 5))
(else fret-number)))))
So this is intentional (don't know how to play the banjo). What kind of
6-string banjo do you actually use here?
--
David Kastrup