Re: Polychord

2020-11-27 Thread Robin Bannister




My advice:  Don't try.  Write markup for overriding the 'text property.



And if you don't feel up to doing that sort of markup,
you could get most of the way with an additional context:



\version "2.20.0"

coharmonies = \chordmode { d1:m s d:dim s fis}
harmonies = \chordmode { c1 c:m c:7 cis c:m7 }

\score {
  <<
\new ChordNames { \coharmonies }
\new ChordNames { \harmonies   }
  >>
  \layout{ }
  \midi { }
}



Cheers,
Robin


Re: Polychord

2020-11-27 Thread Robin Bannister

 achard wrote:


This is what a user wrote to get polychords.

But I would like the bottom chord to appear as C7 or Cm7 or C maj7.




"If I were you, I wouldn't start from here."


The approach of the Scheme snippet you have selected is extremely 
blinkered, catering only for combinations of root pitches.

It bypasses the Lilypond code for mode and modifiers.
And a warning: polychordExceptionMusic will explode combinatorially.

So to go the Lilypond/Scheme way, you should keep the two chords 
separate for as long as possible, and 'just' combine the resulting 
stencils.



My advice:  Don't try.  Write markup for overriding the 'text property.


Cheers,
Robin