Re: fret-diagram layout question
On 2020-01-16 11:56 pm, Jacques Menu wrote: Hello Aaron, Fine, thanks. Can user-specific fret-diagrams be obtained with a FretBoards context, though? Yes, through the definition of predefined diagrams. See here [1]. [1]: http://lilypond.org/doc/v2.19/Documentation/notation/common-notation-for-fretted-strings#automatic-fret-diagrams -- Aaron Hill
Re: fret-diagram layout question
Hello Aaron, Fine, thanks. Can user-specific fret-diagrams be obtained with a FretBoards context, though? JM > Le 17 janv. 2020 à 06:01, Aaron Hill a écrit : > > On 2020-01-16 8:38 pm, Jacques Menu wrote: >> Hello Aaron, >> Thanks a lot for the hint, I’ll look into FretBoards contexts. > > Oops, I forgot to paste in the code I wanted to include: > > > \version "2.19.83" > > theChords = { 4 } > > << > \new ChordNames \with { chordChanges = ##t } >\chordmode { c4 d:m } > \new FretBoards { \theChords } > \new Staff { \clef "treble_8" \theChords } > > > > -- Aaron Hill >
Re: fret-diagram layout question
On 2020-01-16 8:38 pm, Jacques Menu wrote: Hello Aaron, Thanks a lot for the hint, I’ll look into FretBoards contexts. Oops, I forgot to paste in the code I wanted to include: \version "2.19.83" theChords = { 4 } << \new ChordNames \with { chordChanges = ##t } \chordmode { c4 d:m } \new FretBoards { \theChords } \new Staff { \clef "treble_8" \theChords } -- Aaron Hill
Re: fret-diagram layout question
Hello Aaron, Thanks a lot for the hint, I’ll look into FretBoards contexts. JM > Le 17 janv. 2020 à 05:33, Aaron Hill a écrit : > > On 2020-01-16 8:18 pm, Jacques Menu wrote: >> [ . . . ] >> How can this be displayed with the two fret diagrams on one and the >> same horizontal line? >> Uncommenting the SpacingSpanner.base-shortest-duration override is a >> bit artificial, maybe there’s a better way? > > \textLengthOn will help a little; but the resulting diagrams are not quite > vertically aligned in my testing. If that is a problem, then consider > putting the chords into a FretBoards context instead of as markup. > > > -- Aaron Hill >
Re: fret-diagram layout question
On 2020-01-16 8:18 pm, Jacques Menu wrote: [ . . . ] How can this be displayed with the two fret diagrams on one and the same horizontal line? Uncommenting the SpacingSpanner.base-shortest-duration override is a bit artificial, maybe there’s a better way? \textLengthOn will help a little; but the resulting diagrams are not quite vertically aligned in my testing. If that is a problem, then consider putting the chords into a FretBoards context instead of as markup. -- Aaron Hill
fret-diagram layout question
Hello folks, This snippet is adapted from the LPNR, with whole notes replaced by quarter notes: \version "2.19.83" << \new ChordNames { \set chordChanges = ##t \chordmode { c4 d:m } } \new Staff { \clef "treble_8" 4^\markup { \fret-diagram #"6-x;5-3;4-2;3-o;2-1;1-o;" } 4^\markup { \fret-diagram #"6-x;5-x;4-o;3-2;2-3;1-1;" } } >> \layout { \context { \Score % \override SpacingSpanner.base-shortest-duration = #(ly:make-moment 1/64) } } How can this be displayed with the two fret diagrams on one and the same horizontal line? Uncommenting the SpacingSpanner.base-shortest-duration override is a bit artificial, maybe there’s a better way? Thanks for your help! JM