Next: Music Sheet, Previous: ("dir"), Up: ("dirTop")
Spring
[file-code; "ly,texi,sh are UTF-8"]
Normally; Windows & Linux "[Prompt] lilypond --png --pdf name.ly[Enter]"
And---- Only;
Linux(Prompt) $ ./run--lily.sh name[Enter](need makeinfo) ----
spring.midi(//The one below is mp3//)
spring.pdf
All files (spring.tar.gz;<3,500bytes)
Next: spring.texi, Previous: Music Sheet, Up: Top
%% -*- Coding: utf-8 -*- %% Mar. 10, JST 2009 \version "2.24.0" #(set-default-paper-size "letter") #(set-global-staff-size 16) \header { dedication = "Wordless Poem" title = "Fragrant Spring" %% subtitle = #(string-append "LilyPond version " (lilypond-version)) subtitle = "First Movement" subsubtitle = \markup{ soprano; C clef on 1st line,\hspace #6 alto; C clef on 3rd line.} composer = \markup{ \line {\italic "Yukio Yoshida"}} arranger = "Mar. 10, JST 2009" %% poet = " " opus = "Op.37 " meter = "Largo" copyright = "public Domain" %% tagline = " " } %%%%%%%%% soprano part %%%%%%%%%%%%%%%%%%%%% soprano = { %% 1-6 \autoBeamOff c''4 a'8[ g' f'] d'4. | c''2 a' | e''4 c''8[ b' a'] f'4. | e''2 c'' ~ | c''2 e'' | a'2. e'8[ d'] ~ | \break %% 7-10 d'8[ e' f'] r8 g'8[ a' b'] c''8 ~ | c''4. e''4.. c''8. ~ | c''4 a'8[ g' f'] d'4. | c''2 a' | \break %% 11-14 f'4 d'8[ e'] a'4 f'8[ g'] | c''4 a'8[ b'] e''4 c''8[ d''] | e''4. c''16[ b'] c''4. a'16[ g'] | a'4. f'16[ e'] f'4. d'16[ c'] | \break %% 15-18 e'1 | \key b\major cis'4 e'8[ fis' gis'] b'4. | e'4 gis'8[ ais' b'] dis''4. | gis'4 b'8[ cis'' dis''] fis''4. | \break %% 19-22 dis''16[ b'] gis'2. r8 | b'16[ gis'] e'2. r8 | gis'16[ e'] cis'2. r8 | cis''1^\fermata | \break %% 23-26 dis''16[ cis''] dis'2.. | e''16[ dis''] e'2.. | fis''16[ e''] fis'2.. | b'4\( cis'' b' cis''\) | \break %% 27-30 R1 * 4 | \break %% 31-34 ais'8-. fis'-. dis'-. r8 \key c\major c'4-. c''4-.| f'2 a'8[ b'] e''4 | c''4 b'16[ a' g'8] f'16[ e' d'8] c'4 ~ | c'4 c''2. | \break %% 35-40 a'2.. r8 | a''1 | f''4 d''2. | b'1 | g'^\fermata ~ | g'^\fermata \bar "|." } %% sopranoL = \lyricmode { } sopranoM = { \autoBeamOff c''4 a'8[ g' f'] d'4. | c''2 a' | e''4 c''8[ b' a'] f'4. | e''2 c'' ~ | c''2 e'' | a'2. e'8[ d'] ~ | \break d'8[ e' f'] r8 g'8[ a' b'] c''8 ~ | c''4. e''4.. c''8. ~ | c''4 a'8[ g' f'] d'4. | c''2 a' | \break f'4 d'8[ e'] a'4 f'8[ g'] | c''4 a'8[ b'] e''4 c''8[ d''] | e''4. c''16[ b'] c''4. a'16[ g'] | a'4. f'16[ e'] f'4. d'16[ c'] | \break e'1 | \key b\major cis'4 e'8[ fis' gis'] b'4. | e'4 gis'8[ ais' b'] dis''4. | gis'4 b'8[ cis'' dis''] fis''4. | \break dis''16[ b'] gis'2. r8 | b'16[ gis'] e'2. r8 | gis'16[ e'] cis'2. r8 | cis''1^\fermata | \break dis''16[ cis''] dis'2.. | e''16[ dis''] e'2.. | fis''16[ e''] fis'2.. | b'4\( cis'' b' cis''\) | \break R1 * 4 | \break ais'8-. fis'-. dis'-. r8 \key c\major c'4-. c''4-.| f'2 a'8[ b'] e''4 | c''4 b'16[ a' g'8] f'16[ e' d'8] c'4 ~ | c'4 c''2. | \break a'2.. r8 | a''1 | f''4 d''2. | b'1 | g'^\fermata ~ | g'^\fermata \bar "|." } %%%%%%%%%% alto part %%%%%%%%%%%%%%%%%%%%%% alto = { %% 1-6 \autoBeamOff f'2 d' | f'4 d'8[ c' b] g4. | a'2 f' | a'4 f'8[ e' d'] b4. | d'2 a' | d'2. a8[ g] ~ | \break %% 7-10 g8[ a b] r8 c'8[ d' e'] f'8 ~ | f'4. a'4.. f'8. ~ | f'2 d' ~ | d' f' | \break %% 11-14 d'4. b16[ a] b4. g16[ f] | f'4. d'16[ c'] a'4. f'16[ e'] | a'4 f'8[ g'] f'4 d'8[ e'] | d'4 b8[ c'] b4 g8[ a] | %% 15-18 a1 | \key b\major fis2 ais16[ cis'] e'4. | ais2 cis'16[ e'] gis'4. | cis'2 e'16[ gis'] b'4. | \break %% 19-22 r8 gis'8[ fis' e'] cis'2 | r8 e'8[ dis' cis'] ais2 | r8 cis'8[ b ais] fis2 | fis'1^\fermata | \break %% 23-26 R1 * 4 | \break %% 27-30 e'4\( dis' e' dis'\) | fis16[ gis] fis'2.. | gis16[ ais] gis'2.. | ais16[ b] ais'2.. | \break %% 31-34 b8-. dis'-. fis'-. r8 \key c\major g'4-. g4-.| d'4 b2 a8[ f] ~ | f8 f'4 g'16[ b' c''8] g'4. ~ | g'4 g2. | \break %% 35-40 b2. d'8 r | d''1 | b'2. g'4 | e'1 | c'1^\fermata ~ | c'^\fermata \bar "|." } %% altoL = \lyricmode { } altoM = { \autoBeamOff f'2 d' | f'4 d'8[ c' b] g4. | a'2 f' | a'4 f'8[ e' d'] b4. | d'2 a' | d'2. a8[ g] ~ | \break g8[ a b] r8 c'8[ d' e'] f'8 ~ | f'4. a'4.. f'8. ~ | f'2 d' ~ | d' f' | \break d'4. b16[ a] b4. g16[ f] | f'4. d'16[ c'] a'4. f'16[ e'] | a'4 f'8[ g'] f'4 d'8[ e'] | d'4 b8[ c'] b4 g8[ a] | \break a1 | \key b\major fis2 ais16[ cis'] e'4. | ais2 cis'16[ e'] gis'4. | cis'2 e'16[ gis'] b'4. | r8 gis'8[ fis' e'] cis'2 | r8 e'8[ dis' cis'] ais2 | r8 cis'8[ b ais] fis2 | fis'1^\fermata | \break R1 * 4 | \break e'4\( dis' e' dis'\) | fis16[ gis] fis'2.. | gis16[ ais] gis'2.. | ais16[ b] ais'2.. | \break b8-. dis'-. fis'-. r8 \key c\major g'4-. g4-.| d'4 b2 a8[ f] ~ | f8 f'4 g'16[ b' c''8] g'4. ~ | g'4 g2. | \break b2. d'8 r8 | d''1 | b'2. g'4 | e'1 | c'1^\fermata ~ | c'1^\fermata \bar "|." } %% get sheet music --------------------------------------------------------------- \score { << \context ChoirStaff = "FourPartStaffaddchorus" << \new Voice = "soprano" { \clef soprano \key c\major \time 2/2 \set Staff.instrumentName = "soprano" \soprano } %% \new Lyrics = "mainSL" \lyricsto "soprano" { \sopranoL } \new Voice = "alto" { \clef alto \key c\major \time 2/2 \set Staff.instrumentName = "alto " \alto } %% \new Lyrics = "mainAL" \lyricsto "alto" { \altoL } >> %%\context PianoStaff = "PianoStaff" << %%\new Voice = "piano" { \clef treble \key c\major \time 2/2 %% \set Staff.instrumentName = "piano " \pianoUP } %%\new Voice = "piano" { \clef bass \key c\major \time 2/2 %% \set Staff.instrumentName = "piano " \pianoDown } %% >> >> \layout { \context { \Staff \RemoveEmptyStaves } } } %% get midi music ---------------------------------------------------------------- \score { << \new Staff { \clef soprano \key c\major \time 2/2 \tempo 4 = 40 \set Staff.midiInstrument = "pad 2 (warm)" \unfoldRepeats \sopranoM } \new Staff { \clef alto \key c\major \time 2/2 \tempo 4 = 40 \set Staff.midiInstrument = "pad 2 (warm)" \unfoldRepeats \altoM } %%\new Staff { \clef treble \key c\major \time 2/2 \tempo 4 = 40 %% \set Staff.midiInstrument = "acoustic grand" %% \unfoldRepeats \pianoUPm } %%\new Staff { \clef bass \key c\major \time 2/2 \tempo 4 = 40 %% \set Staff.instrumentName = "acoustic grand" %% \unfoldRepeats \pianoDownm } >> \midi { tempoWholesPerMinute = #(ly:make-moment 40 4) } }
Next: run–makeinfo, Previous: spring.ly, Up: Top
%% 9:52 AM Saturday, January 20, 2024 %% Yukio Yoshida %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \input colordvi.tex \input texinfo @c %**start of header @setfilename spring.info @c @settitle spring @documentlanguage en @documentencoding utf-8 @setchapternewpage odd @c %**end of header @c *********** Body start ****************** @node Top, Music Sheet, ("dir"), ("dirTop") @comment node-name, next, previous, up @c @node Top @ifhtml @html <p align = "center"> <span style="font-size: 40px;"><b>Spring</b></spam> </p> <code> [file-code; "ly,texi,sh are UTF-8"]<br /> <span style="font-size: 16px;"> <b>Normally; Windows & Linux "[Prompt] <kbd> lilypond --png --pdf name.ly</kbd>[Enter]"</b><br /> <b>And---- Only; <i>Linux(Prompt)<kbd> <span style="color: red;">$ ./run--lily.sh name</span></kbd>[Enter]</i>(need makeinfo) ----</b><br /> </span> </code> <br /> @end html @end ifhtml @c @top @c @ignore ------------------------------------------------------------------------ @ifhtml @menu * spring:: --- Music Sheet: Music Sheet. * spring.ly:: --- Source code framework: spring.ly. * spring.texi:: --- Source code document: spring.texi. * run--makeinfo:: --- Source code run-file: run--makeinfo. @end menu @end ifhtml @c @ignore ------------------------------------------------------------------------ @html <p align = "center">       <a href="earth.mid">spring.midi</a>(//The one below is mp3//)         <a href="spring.pdf">spring.pdf</a>          • <a href="spring.tar.gz">All files</a> (spring.tar.gz;<3,500bytes)<br /> <audio src="spring.mp3" controls> Download <a href="earth.mp3">episode 42 Learnung to love HTML5</a> </audio></p> @end html @ifnottex @node Music Sheet, spring.ly, Top, Top @comment node-name, next, previous, up @c @top @end ifnottex @unnumbered Music Sheet @ifhtml @html <p align = "center"> <a href="spring.pdf"> <img src="spring.svg" alt="[picture of music]" /><!-- --> <hr style="width:68%; height:4px;" /> </a></p> <br /> @end html @end ifhtml @html </div> @end html @ifnottex @node spring.ly, spring.texi, Music Sheet, Top @comment node-name, next, previous, up @end ifnottex @unnumbered spring.ly @html <blockquote><blockquote> @end html @verbatiminclude spring.ly @html </blockquote></blockquote> @end html @ifnottex @node spring.texi, run--makeinfo, spring.ly, Top @comment node-name, next, previous, up @end ifnottex @unnumbered spring.texi @html <blockquote><blockquote> @end html @verbatiminclude spring.texi @html </blockquote></blockquote> @end html @ifnottex @node run--makeinfo, , spring.texi, Top @comment node-name, next, previous, up @end ifnottex @unnumbered run--makeinfo @html <blockquote><blockquote> <b><i>Only; running is on Linux(on WSL).</i></b><br /> @end html @ifhtml @html <span style="font: 16px;"> <table> <td>    <b><i>run--lily.sh</i></b><br /> <span style="color: red;"> @verbatiminclude run--lily.sh </span> </td> </table> @end html @end ifhtml @ @ @ @ This is under the following environment.@* @ @ @ @ Linux[on WSL(windows11)]@ ---(GNU/Linux 4.4.0-19041-Microsoft x86_64) or (GNU/Linux 5.10.16.3-microsoft-standard-WSL2 x86_64)---@* @html </blockquote></blockquote> <br /> <br /> @end html @c *********** End Body ********************* @bye
Previous: spring.texi, Up: Top
Only; running is on Linux(on WSL).
run--lily.sh
#!/usr/bin/bash # rm -r html lilypond --pdf --png $1.ly lilypond --svg $1.ly makeinfo --no-split --force --html $1.texi mkdir html mv *.svg html/ mv *.pdf html/ mv *.midi html/ mv *.html html/ cd html xdg-open $1.pdf | xdg-open $1.midi | explorer.exe $1.html cd ../ rm *.png ls -lXThis is under the following environment.
Linux[on WSL(windows11)] —(GNU/Linux 4.4.0-19041-Microsoft x86_64) or (GNU/Linux 5.10.16.3-microsoft-standard-WSL2 x86_64)—