2018-01-17 1:15 GMT+01:00 Carl Sorensen <c_soren...@byu.edu>:
> Francis,
>
> On 1/16/18, 2:32 PM, "francisperea" <fran...@francisperea.org> wrote:
>
>     Hi all,
>
>     Just a simple question, does anybody know if there is any way to create
>     left-handed fretboard diagrams for guitar and/or ukulele?
>
> There is not a simple way at present, but it would be much easier to add a 
> simple way than to rewrite the fretboards.  We just need to add a property to 
> fret-diagram-details.

I'd rather prefer, if one could set
stringOneTopmost = ##f
in FretBoards and let the printing-procedure respect it (similiar to TabStaff)


> I assume (without experience) that a left-handed fretboard is just mirrored 
> about the centerline parallel to the strings?

I tried the coding below doing so, but I'm not very happy, it's sort
of "all or nothing"...

\include "predefined-guitar-fretboards.ly"

#(let ((default-fret-table-ls (hash-table->alist default-fret-table)))
      (for-each
        (lambda (chord-def)
          (hash-set!
            default-fret-table
            (car chord-def)
        (map
          (lambda (x)
            (cons*
              (car x)
              (- 7 (second x))
              (cddr x)))
          (cdr chord-def))))
        default-fret-table-ls))

melody = \chordmode {
  c,
}

\score {
  <<
    \context ChordNames \melody
    \context FretBoards
      \with {
        highStringOne = ##f
        stringOneTopmost = ##f
      }
      \melody
    \context TabStaff
      \with {
        stringOneTopmost = ##f
      }
      \melody
  >>
}

Cheers,
  Harm

_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to