[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Major and minor
From: |
Éric Bouvéron |
Subject: |
Major and minor |
Date: |
Thu, 4 Feb 2010 09:58:39 +0800 |
Hi,
I include a file, on which I tried to show a probblem.
When major, a triangle is put up the name of the chord, when minor, a "m" is written on the same level as the chord.
Is it possible to have the triangle and the "m"at the chord level, and keep the rest as it is?
With thanks and regards,
Eric
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\version "2.12.3"
#(define (conditional-kern-before markup bool amount)
"Add AMOUNT of space before MARKUP if BOOL is true."
(if bool
(make-line-markup
(list (make-hspace-markup amount)
markup))
markup))
#(define-public (alteration->text-accidental-markup alteration)
(make-smaller-markup
(make-raise-markup
(if (= alteration FLAT)
1.7
2)
(make-musicglyph-markup
(assoc-get alteration standard-alteration-glyph-name-alist
"")))))
#(define (accidental->markup alteration)
"Return accidental markup for ALTERATION."
(if (= alteration 0)
(make-line-markup (list empty-markup))
(conditional-kern-before
(alteration->text-accidental-markup
alteration)
(= alteration FLAT) 0.2)))
#(define-public (special-note-name->markup pitch)
"Return pitch markup for PITCH."
(make-line-markup
(list
(make-simple-markup
(vector-ref #("C" "D" "E"
"F" "G" "A" "B") (ly:pitch-notename
pitch)))
(accidental->markup (ly:pitch-alteration pitch)))))
\layout {
\context {
\Score
chordRootNamer = #special-note-name->markup
}
}
\chords {
c1:maj c1:min c1:maj7 c1:min7 cis1:dim7 cisd1:aug7
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
--
Éric Bouvéron
G/F, 66 Kai Yuen street
North Point
Hong Kong S.A.R.
Tél: 2972 2567
9046 3611
Skype: Wafaic
QUOS VULT PERDERE JUPITER DEMENTAT
Please consider reducing waste by not printing this email.
- Major and minor,
Éric Bouvéron <=