From: Stan Sanderson <[email protected]>
> To: LilyPond Users <[email protected]>
> Cc:
> Bcc:
> Date: Sun, 4 Sep 2022 17:02:36 -0500
> Subject: custom chord
> (Using LP 2.23.12)
> This has me flummoxed- I’m trying to reproduce a score for my own use. I
> have run out of ideas about reproducing the (unusual) chord name- the “4
> over 2” part in particular. I’ve included a screen shot.
> I assume a markup column with 4 over 2, squeezed together, is part of the
> solution, but I would be grateful for some help. (key E maj)
>
> Thanks,
>
> Stan
>
Stan,
Here is one way to do it.
\version "2.22.2"
% Define your chord usage
% Here, I am interpreting the "sus 4/2", which is an unusual symbol, as
replacing the 3rd in a major chord with both the 2nd and 4th degrees, so 1
2 4 5
myChordSequence = \chordmode {
\set chordChanges = ##t
fis1:1.2.4.5
}
% Define your desired chord symbol design
% here is some formatting that is in the ballpark, but you will probably
want to tweak further, based on your font and design goals
myChordExceptions = {
<c d f g>1-\markup { \small " sus" \raise #2.25 { \tiny \center-column
{ \lower #1.25 { " 4" } " 2" } } }
}
% Replace the old chord symbol with your new one
chordExceptions = #(append (sequential-music-to-chord-exceptions
myChordExceptions #t) ignatzekExceptions)
% Use the new chord symbol
<<
\new ChordNames {
\set chordNameExceptions = #chordExceptions
\myChordSequence
}
\new Staff \relative c'' { gis1 }
>>
HTH,
Elaine Alt
415 . 341 .4954 "*Confusion is
highly underrated*"
[email protected]
Producer ~ Composer ~ Instrumentalist ~ Educator
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-