File:Fibonacci composition.svg
Summary
| Description |
English: This is an excerpt from a composition, `fibonacci', that I wrote for solo piano. |
| Date | |
| Source | Own work |
| Author | Pnorcks |
| SVG development | Category:Valid SVG created with Other tools#Fibonacci%20composition.svg |
Licensing
| I, the copyright holder of this work, release this work into the public domain. This applies worldwide. In some countries this may not be legally possible; if so: I grant anyone the right to use this work for any purpose, without any conditions, unless such conditions are required by law. |
Source code
\version "2.25.4"
%\include "english.ly"
\header {
title = \markup { "Excerpt from" \italic { fibonacci } }
composer = "Patrick McCarty"
%copyright =
% \markup \fontsize #-5 {
% Copyright © 2009.
% Typeset with GNU LilyPond.
% Released into public domain by the composer.
% }
}
\paper {
top-margin = 0\mm
bottom-margin = 6\mm
left-margin = 10\mm
right-margin = 10\mm
paper-height = 4.6\in
paper-width = 8.5\in
indent = #0
system-count = #2
fonts.roman = "Century Schoolbook L"
}
\score {
\new PianoStaff = "pianostaff" <<
\new Staff = "RH" \relative c' {
\accidentalStyle Score.piano
\clef "treble"
\time 2/4
\set Score.currentBarNumber = #51
\tempo "Slow and steady" 4 = 60
<e gis,>4 \acciaccatura { cis16[ dis] } <e gis,>4 | % m. 51
<dis gis,>4 \acciaccatura { e16[ dis] } <cis gis>4 | % m. 52
<cis gis>4 \acciaccatura { dis16[ cis] } <c g>4 | % m. 53
<cis gis>4 \acciaccatura { dis16[ e] } <eis bis gis>4 | % m. 54
<e gis,>4 \acciaccatura { cis16[ dis] } e16 f gis a | % m. 55
<gis c,>8 \acciaccatura { ais16[ gis] }
<eis b>8 ~ <eis b>16 dis b ais | % m. 56
b16 d8 bes32 f' g16 as bes c | % m. 57
<des des,>16 ( c as ) <e' e,> ( dis b ) <g' g,> ( dis | % m. 58
\time 3/4
<gis gis,>16 ) \noBeam d,16 f gis
a16 e f b
c16 d, ( f gis | % m. 59
a16 b ) e, ( f
gis16 b c ) f, (
gis16 ais b c ) | % m. 60
}
\new Dynamics = "Dynamics_pf" {
s4 \p \< s4 | % m. 51
s4 s4 | % m. 52
s4 \mp \> s4 | % m. 53
s4 s4 \! | % m. 54
s4 \p s4 | % m. 55
s1 * 2/4 | % m. 56
s4 \< s4 | % m. 57
s4 s4 | % m. 58
\override DynamicText.extra-spacing-width = #'(-0.75 . 0.75)
s16 \mf s16 \p s8 s4 s4 | % m. 59
s2. | % m. 60
}
\new Staff = "LH" \relative c, {
\clef "bass"
\time 2/4
cis4. cis8 | % m. 51
cis4. d8 | % m. 52
f4. a8 | % m. 53
f4. d8 | % m. 54
cis4. cis8 | % m. 55
d4 dis | % m. 56
gis4. bes,8 | % m. 57
f'4 b, | % m. 58
\time 3/4
d4. d8 ~ d4 | % m. 59
es2 f4 | % m. 60
}
>>
}
Steps to generate the SVG:
- Install prerequisite applications:
- LilyPond (https://lilypond.org/) version 2.25 or newer.
- scour (https://pypi.org/project/scour/), an SVG cleaner/optimizer tool.
- Save source input to a LilyPond file (e.g. FILE.ly)
- Run
lilypond --svg -dbackend=cairo -dno-point-and-click FILE.ly - Optimize the SVG with scour:
scour -i FILE.svg -o FILE-optimized.svg - The optimized SVG for upload will be named FILE-optimized.svg