Changes

Jump to navigation Jump to search
1,923 bytes added ,  20:20, 27 September 2006
table of options, other adaptions for LilyPond 2.9 version; sample with lyrics
</texcode>
* If you want, you can change the default settings using <cmd>setuplilypond</cmd>
* If you need lyrics with accented characters (e.g. umlauts), you '''must''' typeset in UTF-8 encoding (see [[Encodings_and_Regimes]]), because LilyPond doesn't understand anything else. And you need to use UTF-8 without BOM(byte order marker), because ConTeXt doesn't understand that. === options ==={| style="border: solid 1px black; padding: 0.5em; vertical-align: top; width: 50%;" |- style="border: solid 1px black; padding: 0.5em; vertical-align: top; background: #eeeeee;"! option !! values !! default !! meaning|-| staffsize || number (pt) || 20 || height of the staff|-| time || yes/no || yes || show time signature?|-| align || yes/no || depends on fragment || ragged-right = (not align)|-| fragment || yes/no || no || typeset only a snippet (instead of a whole line)?|-| barnumbers || yes/no || no || show bar numbers?|}
== Snippets ==
There's nothing to say about this tune yet; my friend heard it from Lúnasa.
</texcode>
 
<texcode>
\section{Starlight (round)}
 
\startlilypond
<<
\context Staff = onlyone <<
\cleg treble
\key a \major
\time 6/8
\context Voice = one {
\relative c'' {
a4.^\markup{1.} e' |
e8( d cis) b4. |
e4.^\markup{2.} d4 d8 |
cis( b) a b4 e,8 |
a4 a8 gis( a) b |
cis4 cis8 b( cis d) |
cis( d) e e4 e,8 |
fis4 fis8 gis4.
}
}
>>
\lyricsto one \new Lyrics {
\lyricmode {
Star -- light, star -- bright,
first star I see to -- night;
I wish I may, I wish I might
have the wish I wish to -- night.
}
}
>>
 
\stoplilypond
</texcode>
To remember:
* see [http://lilypond.org/doc/v2.79/Documentation/out-www/ LilyPond Docs]!
* How do we handle version/syntax changes of LilyPond?
--[[User:ChristopherCreutzig|Christopher Creutzig]] after ideas by [[User:Hraban|Hraban]]
== Tweaks == At the moment it's not possible to change LilyPond's fonts. The text font is Century Schoolbook. You can use it as ConTeXt's default font like this: <texcode>\starttypescript[wiki][songbook]\usetypescript [serif] [schoolbook] [\defaultencoding]\definetypeface [songbook] [rm] [serif] [schoolbook] [default] [encoding=\defaultencoding]\definetypeface [songbook] [ss] [sans] [default][default] [encoding=ec]\definetypeface [songbook] [tt] [mono] [default][default] [encoding=ec]\stoptypescript \usetypescript [wiki] [songbook]\setupbodyfont[songbook, rm, 8.5pt]</texcode> == Older Workarounds == '''Beware: These relate to the old version of the module and older versions of LilyPond! Nowadays, LilyPond and epstopdf get called via texmfstart, that works without patching!'''
=== LilyPond is not found ===

Navigation menu