lilypond-user
[Top][All Lists]
Advanced

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

Re: Chords degree


From: Stjepan Horvat
Subject: Re: Chords degree
Date: Thu, 13 Oct 2011 12:45:47 +0200

Thank you very much..!!! This is exactly what i wanted..!

Only one more thing..is there a posibility for alteration..for example in C major if there is a Ces to show "Ib"..

i have found thins..i tried it to combine it with your anwser but have got en errors..

 #(define (my-chord-name->pop-markup pitch lowercase?)
  (let* ((alt (ly:pitch-alteration pitch)))
  (make-line-markup
    (list
      (make-simple-markup (vector-ref #("C" "D" "E" "F" "G" "A" "B") (ly:pitch-notename pitch)))
      ;; If it's natural, do nothing
      (if (= alt 0)
        (make-line-markup (list empty-markup))
        (if (= alt FLAT)
          ;; Otherwise, handle adding the flat symbol
          (make-line-markup
            (list
              (make-hspace-markup -0.1)
              (make-small-markup (make-raise-markup 0.7
                (make-text-markup "b")))
            ))
          ;; or handle adding the sharp symbol
          (make-line-markup
            (list
              (make-hspace-markup -0.1)
              (make-small-markup (make-raise-markup 0.7
                (make-text-markup "#")))
            ))
        ))))))

Can you help me with it please..:) Than this is it..! BTW. You guys on the community are VERY helpfull and fast..i like it..It makes me wana help..but i am still new at this side of new solutions..:) I hope in the future i will be able to..

Cheers,
Stef.

On Wed, Oct 12, 2011 at 12:20 AM, Carl Sorensen <address@hidden> wrote:
On 10/11/11 6:10 AM, "Stjepan Horvat" <address@hidden> wrote:

> Hello..thank you for your response..
> It's not quite what i wanted..
> I'm sending you an example of what i did in pdf format..
>
> I'm making a church song book..So the problem in my (our) church is that we
> allways have to transpose becouse it is too high or too low..So i tought that
> i will write in one line chords..and in upper line Chords degree..so it would
> be easy to transpose whenever you need to...That was quite practical becose
> then i woud only need to write chords in one line and then in upper just
> transpose to C major and the degree would be flawless..Simple in my head..:)
>
> Thanks..
>
>
> On Tue, Oct 11, 2011 at 11:14 AM, Robert Schmaus <address@hidden>


Here's a hack to generate what you want.  As written, it will only work as
long as your music is in the key of C.


\version "2.14"

#(define-public (note-name->roman-markup pitch lowercase?)
 "Return roman numeral pitch markup for @var{pitch}.
  NOTE: Only works in key of C."
 (make-line-markup
  (list
   (make-simple-markup
      (vector-ref #("I" "II" "III" "IV" "V" "VI" "VII") (ly:pitch-notename
pitch))))))


myChords = \chordmode {
 c1 d e f g a b
}

\score {
 <<
   \new ChordNames {
     \set chordRootNamer = #note-name->roman-markup
     \myChords
   }
  \new ChordNames {
     \myChords
  }
  \new Staff {
    \myChords
  }
 >>
}




HTH,

Carl




--
Nesmotren govori kao da mačem probada, a jezik je mudrih iscjeljenje. Izreke 12:18


reply via email to

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