%{

> Date: Mon, 2 Mar 2015 16:40:27 +0000
> From: Michael Hendry <hendry.mich...@gmail.com>
> Subject: String Concatenation, and Use of Unicode characters
>
> Typically, I want PDF output in three files, (Concert pitch, Bb and Eb),
and I would like to modularise this as much as possible.

You will enjoy
#(define output-suffix "Instrument")


> 2. The LilyJazzText font uses small capitals instead of lower case
>  letters, so using ?Eb? produces a capital E followed by a small
>  capital B. On my Mac I know how to produce a flat sign, and LilyPond
>  will use the flat sign from another font, but I?d like to be able to
>  define a flat sign as a variable, and append it to the piece markup
>  when creating the books for trumpet and alto.

There is something called \flat.  I took out the references to LilyJAZZ
just to demonstrate, it should work regardless of font and I didn't have
the .ily file handy.



Forgive me for suggesting, but I suggest it improves mental health to think
of transpose in the form:

    \transpose "to" "from" \musicExpression

So, Bb and Eb parts would be:

    \transpose bes, c \trumpetPartConcert
    \transpose es, c \altoPartConcert

instead of the cryptic:

    \transpose c d' \trumpetPartConcert
    \transpose c a' \altoPartConcert


Also, I took out references to \jazzOn since it didn't compile.


>
> Thanks in advance,
>
> Michael Hendry

Sure, I hope this helps.


David Elaine Alt
415 . 341 .4954                                           "Confusion is
highly underrated"
ela...@flaminghakama.com
self-immolation.info
skype: flaming_hakama
Producer ~ Composer ~ Instrumentalist
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

%}


%%%%%%%%%%%%

\version "2.18.0"

% \include "LilyJAZZ.ily"
% \include "AccordsJazzDefs.ly"

% output-suffix will use the .ly file's base name, so no need to define one
% BaseFileName = "Generic"

\header {
  title =               \markup { "Generic" }
}

TheHead =  \relative c' {
  \set Score.markFormatter = #format-mark-box-letters
  \clef "treble" \key c \major \numericTimeSignature \time 4/4
 c d e f
}

TheChords =  \chords { c1 }

#(define output-suffix "guitar-Concert")
\book {

  \new Score
  <<
    \transpose c c {\TheChords}
    \new Staff
    \transpose c c {\TheHead}
  >>
  \header {piece = \markup { "Guitar" }}
}

#(define output-suffix "trumpet-Bb")
\book {
  \new Score
  <<
    \transpose bes, c {\TheChords}
    \new Staff
    \transpose bes, c {\TheHead}
  >>
  \header {piece = \markup {"Trumpet in B" \flat }}
}

#(define output-suffix "alto-Eb")
\book {
  \new Score
  <<
    \transpose es, c {\TheChords}
    \new Staff \transpose es, c {\TheHead}
  >>
  \header {piece = \markup { "Alto Sax in E" \flat}}
}
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to