Source code(venezia2.ly , venezia2-sheet.latex , run-script.cmd)
---- name venezia2.ly ------------------------------------------------------------
%% -*- Coding: utf-8 -*-
\version "2.12.1"
#(set-default-paper-size "a4")
#(set-global-staff-size 20)
\header {
dedication = "Wordless Poem"
title = "Moon of Venezia"
subtitle = "At Venezia city in Italia"
subsubtitle = "soprano; C clef on 1th line"
meter = "Largo"
poet = ""
composer = \markup { \italic "yukio yoshida" }
arranger = \markup{\tiny "No.13 (Jan 12 2007)"}
}
sopranoOne = {
\autoBeamOff
%%1-4
\repeat volta 2 { %%====>12
\tempo 4 = 62
e'8[ gis' b'] e'[ fis' gis'] e'[ gis' b'] e'[ fis' gis'] | a'2. cis'' |
e'8[ fis' gis'] e'[ gis' b'] e'[ fis' gis'] e'[ gis' b'] | a'2. cis'' |
\break
%%5-8
e'8[ dis' e'] fis'[ e' fis'] e'[ dis' e'] fis'[ e' fis'] |
e'16[ fis' gis' a' b' cis''] r16[ b' a' gis' fis' e'] r16[ fis' gis' a' b' cis'']
b'4. | \break
cis''4.
e'16[ fis' gis' a' b' cis''] r16[ b' a' gis' fis' e'] r16[ fis' gis' a' b' cis''] |
a'2. cis'' | e'8[ gis' b'] e'[ fis' gis'] e'[ gis' b'] e'[ fis' gis'] |
\break
%%9-12
e'4 r8 e'4 r8 e'2.~ | e'4 fis' gis' b' e' fis' | gis' b' e'4 fis' gis' b' | }
\break
%%13-16
\repeat volta 3 {
{ \tempo 4 = 160
e'8[^\markup{\hspace #-10.0 \italic "Vivace"}
gis' b' e''] fis'[ gis' a' dis''] e'[ fis' gis' cis''] |
e'[ fis' gis' cis''] fis'[ gis' a' dis''] e'[ gis' b' e''] |
e'[ gis' b' e''] e'[ fis' gis' cis''] fis'[ gis' a' dis''] |
e'[ fis' gis' cis''] fis'[ gis' a' dis''] e'[ gis' b' e''] | }}
\break
%%17-21
{ \tempo 4 = 62
e'8-.[^\markup{\hspace #-10.0 \italic "a tempo"}
fis'-. gis'-.] e'-.[ gis'-. b'-.] e'2 fis'8[ gis'] |
e'8-.[ gis'-. b'-.] e'-.[ fis'-. gis'-.] e'2 gis'8[ b'] | a'2. cis'' |
e'8-.[ fis'-. gis'-.] e'-.[ gis'-. b'-.] e'2 gis'8[ b'] |
e'8-.[ gis'-. b'-.] e'-.[ fis'-. gis'-.] e'2 fis'8[ gis'] |
\break
%%22-25
e'4. r8 e'4. r8 e'2 | a'2. cis'' | r8 e'4. r8 e'4. r8 e'4. |
r4 e'8[ fis' gis' a' b' cis''] e'2 | r4 e'4. r8 e'4. r8 e'4~ |
\break
%%26-30
e'4 fis' e' fis'2 e'4~ |
\repeat volta 3 {
e'8[ fis' gis' cis''] fis'[ gis' a' dis''] e'[ gis' b' e''] |
e'[ gis' b' e''] e'[ fis' gis' cis''] fis'[ gis' a' dis''] | }
gis'8[ e'] r4 e'1~ | e'1.^\fermata
\bar "|."
}}
%% --- get sheet music
\score {
\new Staff \with { \consists Ambitus_engraver} {
\clef soprano \key e\major \time 3/2 \tempo 4 = 62
\set Staff.instrumentName = \markup{"soprano "}
\sopranoOne }
\layout {}
}
%% --- get midi music
\score {
\new Staff { \clef soprano \key e\major \time 3/2 \tempo 4 = 62
\set Staff.midiInstrument = "pad 4 (choir)"
\unfoldRepeats \sopranoOne }
\midi {}
}
---- name venezia2-sheet.latex -------------------------------------------------
\documentclass{article}
\usepackage[dvips]{graphicx,color}
\definecolor{steelblue1}{rgb}{0.38823,0.72156,1}
\usepackage{geometry}
\geometry{a4paper,width=180mm,bottom=8mm,headsep=6mm,%
top=4mm,headheight=6mm,footskip=5mm,portrait}
\parindent=0pt
\begin{document}
\thispagestyle{empty}
\pagecolor{steelblue1}
\vspace*{-16pt}
\hspace*{-20pt}
\input venezia2-systems.tex
\vfill
\end{document}
--- name run-script.cmd [For windows XP]------------------------------------------
del *.log *.aux *.dvi *.eps *.ps *.pdf *.png *.mid *.count *.texi *.tex
Rem process for %1-sheet.latex -----------------------------------------
lilypond -dbackend=eps %1.ly
Rem Now runing LilyPond normally ---------------------------------------
lilypond --pdf --png %1.ly
Rem Process from here for %1-sheet.latex -------------------------------
latex %1-sheet.latex
dvips -P pdf %1-sheet.dvi
gswin32c -sDEVICE=png16m -r120 -sOutputFile=%1-sheet.png -dNOPAUSE %1-sheet.ps -c quit
call ps2pdf %1-sheet.ps
%1.mid | %1.png | %1-sheet.png | %1.pdf | %1-sheet.pdf
del %1-1.* *.count *.aux *.log *.dvi *.ps *.tex *.texi *.eps *.*~ *~
dir /w
----------------------------------------------------------------------------------