The end result would be like in the attached code but instead of the text being
attached to the note, I would like it to be attached to the chord name.
\version "2.24.4"
melody = \relative c' {
b'1^"0 2 2 0 0 0"
}
myChords = \chordmode {
e1:m
}
\score {
<<
\new ChordNames \myChords
\new Staff \melody
>>
\layout {
\override TextScript.font-size = -2
\override TextScript.color = #blue
\override TextScript.X-offset = #-2
\textLengthOn
}
}
Le 13 mars 2025 à 20:27, Knute Snortum <[email protected]> a écrit :
On Thu, Mar 13, 2025 at 3:47 PM Eric C
<[email protected]<mailto:[email protected]>> wrote:
Hello, I'm trying to place a short text with a chord symbol. I can work around
this by attaching the text to a note, but that's not my goal. Here's an exemple
what I'm trying to do:
CMaj7
x 3 5 4 5 x
This text represents the fingering of the CMaj7 at the 3rd fret of the guitar.
It would be great to be able to have annotations in the boxes of a harmonic
grid.
I searched the manual and found nothing. Many thanks for your help.
Eric
Do you want actual fretboards? LilyPond can do that:
%%%
\version "2.24.4"
\include
"predefined-guitar-fretboards.ly<http://predefined-guitar-fretboards.ly>"
myChords = \chordmode {
a fis:m d e b:m
}
\score {
<<
\new ChordNames { \myChords }
\new FretBoards { \myChords }
>>
}
%%%
--
Knute Snortum