lilypond-user
[Top][All Lists]
Advanced

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

Re: Lilypond and Jazz chords


From: Simon Albrecht
Subject: Re: Lilypond and Jazz chords
Date: Mon, 18 Jan 2016 01:01:12 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1

On 17.01.2016 22:35, Carl-Henrik Buschmann wrote:
Thank you.

This is indeed a good start! However. How to adjust the lenght of the parenthesis? As of 
now they only encapsule 1/3 of the stack. I havent the foggiest on how to make them 
"flexible".

You might have a look in the NR, section A.11 ‘Available markup commands’, or D ‘LilyPond command index’.
For some more hints see below…



17. jan. 2016 kl. 22.25 skrev Kieren MacMillan <address@hidden>:

Hi Carl-Henrik,

Here’s a start for you.

Hope this helps!
Kieren.

%%%%  SNIPPET BEGINS
\version "2.19.35"
\language "english"

chordFlat = \markup \concat { \hspace #0.1 \raise #0.5 \fontsize #-1 \flat 
\hspace #0.2 }
chordSharp = \markup \concat { \hspace #0.1 \raise #0.5 \fontsize #-1 \sharp 
\hspace #0.2 }

jazzChords-markups = {
  <c e gs bf df' fs'>-\markup \concat { "7" "(" \raise #2 \fontsize #-5 \center-column { \concat { \chordSharp 
"11" } \concat { \chordFlat "9" } \concat { \chordSharp "5" } } ")" }
}

How about:

jazzChords-markups = {
  <c e gs bf df' fs'>-\markup
  \concat {
    "7"
    \parenthesize
    \raise #2
    \fontsize #-5
    \center-column {
      \concat { \chordSharp "11" }
      \concat { \chordFlat "9" }
      \concat { \chordSharp "5" }
    }
  }
}

Note the effect of sensible code formatting – it can’t be emphasised often enough…

Yours, Simon


jazzChords-add = #(append (sequential-music-to-chord-exceptions 
jazzChords-markups #t) ignatzekExceptions)

\layout { \context { \Score chordNameExceptions = #jazzChords-add } }

chords-test = \chordmode {
  d1
  d1:m
  d1:7
  d1:7.5+.11+.9-
}

\score {
  <<
    \new ChordNames \chords-test
    \new Staff \chords-test
}

%%%%  SNIPPET ENDS
________________________________

Kieren MacMillan, composer
‣ website: www.kierenmacmillan.info
‣ email: address@hidden


_______________________________________________
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]