ソース記述(sprite.ly , sprite-sheet.latex , run-script)
---- name sprite.ly --------------------------------------------------------------
%% -*- Coding: utf-8 -*-
\version "2.12.1"
#(set-default-paper-size "a4")
#(set-global-staff-size 20)
\header {
dedication = "Wordless Poem"
title = "A water sprite and A wood soul"
subtitle ="Opus 4"
subsubtitle = "December 20, 2004"
composer = \markup { \italic "yukio yoshida" }
}
LoardOne = { \clef bass \key c\major \time 3/4 \tempo 4 = 80
\tempo 4 = 80
%% 1-4
R2. | <e, a,>2.~ | <e, a,>2.~ | <e, a,>2.|
%% 5-8
<e, a,>2.~ | <e, a,>2.~ | <e, a,>2.~ | <e, a,>2. |
\break
%% 9-12
\clef treble
<f'' b''>4. <c'' f''>4. | <d'' g''>4. <a' d''>4. |
<g' c''>4. <c'' f''>4. | <b' e''>4. <a' d''>4. |
%% 13-16
\stemUp
<e'' a''>2.~ | <e'' a''>2. | <e'' a''>2.~ | <e'' a''>2. |
\break
%% 17-20
<e'' a''>2.~ | <e'' a''>2. | \clef bass
<g,, c,>2.\rfz | <g,, c,>2. |
%% 21-24
<g,, c,>2. | \clef treble \stemUp
<e'' a''>2. | <e'' a''>2. \bar":|"
}
LoardTwo = {%% \clef bass \key c\major \time 3/4 \tempo 4 = 80
\clef bass
\stemNeutral d4.\ff e4.|
\break
%% 25-30
b,4 d c | g,8 a, c2 | << {c4 d b,}\\{<c, e,>2.} >> |
<< {\stemDown c8[ a,] b,2}\\{\stemUp e'2.} >> |
<< \clef treble {\stemDown c'8 a g2}\\{\stemUp a'2.} >> |
<< {\stemDown e'8 b a2}\\{\stemUp c''2.} >> |
\break
%% 31-34
<< \clef bass {\stemDown c'16( a f d) b( g e c) a( f d b,)}\\
{\stemUp <g' b'>2.~} >> |
<< {\stemDown f32( e d c b, a, g, f,) <e, c,>2}\\
{\stemUp <g' b'>2.~} >> |
<< {<b,, d,>2.}\\{\stemUp <g' b'>2.~} >> |
<< {b,4\rest \stemNeutral
c,32( d, e, f, g, a, b, c d e f g a b c' d')}\\
{\stemUp <g' b'>2.} >> |
\break
%% 35-40
g,,8. a,16 d4 a | \clef treble
<f'' a''>4 <c'' e''> <d'' g''> |
<g' b'> <f'' b''> <f' a'> |
<b' e''>4. <a' d''>4. |
<e'' a''>2.~ | <e'' a''>2. |
\break
%% 41-
<e'' a''>2.~ | <e'' a''>2. | \clef bass
<g,, c,>2.~ | <g,, c,>2. | <g,, c,>4. \clef treble <f'' b''>4. |
\clef bass <g,, c,>4.\rfz \clef treble <f' b'>4. |
<< {<f' b'>2.^\fermata}\\{\clef bass <g,, c,>2._\fermata} >>
\bar "|."
}
\score { <<
\context Staff = Loard { \LoardOne \LoardTwo }
>>
\layout {}
}
\score { <<
\context Staff = Loard { \LoardOne \LoardOne \LoardTwo }
>>
\midi {}
}
---- name sprite-sheet.latex -----------------------------------------------------
\documentclass{article}
\usepackage[dvips]{graphicx,color}
\definecolor{palegreen}{rgb}{0.59607,0.9843,0.59607}
\usepackage{geometry}
\geometry{a4paper,width=180mm,bottom=8mm,headsep=6mm,%
top=4mm,headheight=6mm,footskip=5mm,portrait}
\parindent=0pt
\begin{document}
\thispagestyle{empty}
\pagecolor{palegreen}
\vspace*{-16pt}
\hspace*{-20pt}
\input sprite-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
----------------------------------------------------------------------------------