Jump to content

Changing fret orientations: Difference between revisions

From LilyPond wiki
Import snippet from LSR
 
m Replace version="2.24.0" with version="2.24" now that the LilyWiki extension supports auto-selecting the latest release in a stable series
Line 1: Line 1:
Fret diagrams can be oriented in three ways. By default the top string or fret in the different orientations will be aligned.
Fret diagrams can be oriented in three ways. By default the top string or fret in the different orientations will be aligned.


<lilypond version="2.24.0">
<lilypond version="2.24">
\include "predefined-guitar-fretboards.ly"
\include "predefined-guitar-fretboards.ly"



Revision as of 18:46, 16 November 2025

Fret diagrams can be oriented in three ways. By default the top string or fret in the different orientations will be aligned.

\version "2.24"

\include "predefined-guitar-fretboards.ly"

<<
  \chords {
    c1
    c1
    c1
  }
  \new FretBoards {
    \chordmode {
      c1
      \override FretBoard.fret-diagram-details.orientation =
        #'landscape
      c1
      \override FretBoard.fret-diagram-details.orientation =
        #'opposing-landscape
      c1
    }
  }
  \new Voice {
    c'1
    c'1
    c'
  }
>>