lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Chord bass note font


From: Thomas Ibbotson
Subject: Re: Chord bass note font
Date: Sat, 30 Jan 2016 15:54:56 +0000

Fantastic thank you! That's exactly what I was looking for.

I am quite new to lilypond, so I'm interested to understand how that works.

I see you're defining a new function "lower-extension", which looks like it modifies and passes through its arguments to another function "note-name->markup". Am I close? There's something I don't understand, how does it only affect the bass note argument?

Thanks,
Tom


On Sat, 30 Jan 2016, 15:53 Klaus Blum <address@hidden> wrote:
Hi Tom,

welcome to the forum!


Thomas Ibbotson wrote
> I'd like to make the bass note in slashed chords use a smaller font to
> distinguish it from the chord name.

Recently, there has been a thread that could be interesting for you:
http://lilypond.1069038.n5.nabble.com/Fwd-Slash-chords-tp183832p183917.html

A little modification will lead to this:

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\version "2.18.2"

#(define (lower-extension pitch chbass)
   "Return re-sized markup for pitch note name."
   #{
     \markup \fontsize #-2
     #(note-name->markup pitch chbass)
   #})


\layout {
  \context {
    \ChordNames
    chordNoteNamer = #lower-extension
  }
}

\score {
  \new StaffGroup <<
    \chords {
      c1/e d:m/f
    }
    \new Staff { c''1 c''  }
  >>
  \layout { }
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

Cheers,
Klaus



--
View this message in context: http://lilypond.1069038.n5.nabble.com/Chord-bass-note-font-tp186653p186654.html
Sent from the User mailing list archive at Nabble.com.

_______________________________________________
lilypond-user mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/lilypond-user

reply via email to

[Prev in Thread] Current Thread [Next in Thread]