import os.path
import shutil
-dirs = ['advanced','trick']
+dirs = ['ancient','chords','connecting','contemporary']
try:
in_dir = sys.argv[1]
depth = ../../
-SUBDIRS = advanced trick
+SUBDIRS = ancient chords connecting contemporary
STEPMAKE_TEMPLATES=documentation texinfo tex
LOCALSTEPMAKE_TEMPLATES=lilypond ly lysdoc
These pages show LilyPond examples (snippets) from the
@uref{http://lsr@/.dsi@/.unimi@/.it,LilyPond Snippet Repository}.
-@c @h eading @uref{../trick/collated-files.html,Trick}:
-@strong{@uref{trick/collated-files.html,Trick}}:
+@strong{@uref{ancient/collated-files.html,Ancient}}:
These snippets are blah blah.
-@c @h eading @uref{../advanced/collated-files.html,Advanced}:
-@strong{@uref{advanced/collated-files.html,Advanced}}:
+@strong{@uref{chords/collated-files.html,Chords}}:
These snippets are fazzle snap.
+@strong{@uref{connecting/collated-files.html,Connecting notes}}:
+These snippets are fazzle snap.
+
+@strong{@uref{contemporary/collated-files.html,Contemporary notation}}:
+These snippets are fazzle snap.
"
}
+++ /dev/null
-\version "2.10.0"
-%% +.ly: Be the first .ly file for lys-to-tely.py.
-%% Better to make lys-to-tely.py include "introduction.texi" or
-%% other .texi documents too?
-
-\header{
-texidoc = #(string-append "
-@unnumbered Introduction
-
-This document shows all kinds of advanced snippets from the
-@uref{http://lsr@/.dsi@/.unimi@/.it,LilyPond Snippet Repository}.
-
-In the web version of this document, you can click on the file name
-or figure for each example to see the corresponding input file.
-
-This document is for LilyPond version
-" (lilypond-version) "." )
-}
-
-% make sure .png is generated.
-\lyrics { " " }
+++ /dev/null
-\version "2.10.12"
-
-\header { texidoc = "
-<p>The eighth notes may be seemingly attached to different
- beams, and the corresponding notes connected by ties.
- Such a situation may occur, for example, in the cello suites.
-" }
-
-wipeNote = {
- \once \override NoteHead #'transparent = ##t
- \once \override Stem #'transparent = ##t
-}
-\layout { raggedright = ##t }
-
-
-\relative c''<< {
- c8[~
- \wipeNote
- c8
- c8~
- \wipeNote
- c
- c]~
- \wipeNote
- c\noBeam
-}\\
- { s8 c8 [ s c s c] }
-
-
->>
-
+++ /dev/null
-
-depth = ../../../
-
-STEPMAKE_TEMPLATES=documentation texinfo tex
-LOCALSTEPMAKE_TEMPLATES=lilypond ly lysdoc
-
-## Hmm, would this work? No -- if we really want examples, move
-## to other dir (input/) comes to mind.
-## examples = font20 ancient-font
-## LOCALSTEPMAKE_TEMPLATES += ly mutopia
-
-EXTRA_DIST_FILES=
-
-include $(depth)/make/stepmake.make
-
-TITLE=Advanced snippets
+++ /dev/null
-# -*-python-*-
-
-Import ('env', 'collate')
-collate (title = 'Advanced snippets')
--- /dev/null
+\version "2.10.0"
+%% +.ly: Be the first .ly file for lys-to-tely.py.
+%% Better to make lys-to-tely.py include "introduction.texi" or
+%% other .texi documents too?
+
+\header{
+texidoc = #(string-append "
+@unnumbered Introduction
+
+This document shows examples from the
+@uref{http://lsr@/.dsi@/.unimi@/.it,LilyPond Snippet Repository}.
+
+In the web version of this document, you can click on the file name
+or figure for each example to see the corresponding input file.
+
+This document is for LilyPond version
+" (lilypond-version) "." )
+}
+
+% make sure .png is generated.
+\lyrics { " " }
--- /dev/null
+\version "2.10.12"
+
+\header { texidoc = "
+Custodes may be engraved in various styles.
+" }
+
+\layout {
+ \context {
+ \Staff
+ \consists Custos_engraver
+ }
+ ragged-right = ##t
+}
+
+{
+ \override Staff.Custos #'neutral-position = #4
+
+ \override Staff.Custos #'style = #'hufnagel
+ c'1^"hufnagel"
+ \break < d' a' f''>1
+
+ \override Staff.Custos #'style = #'medicaea
+ c'1^"medicaea"
+ \break < d' a' f''>1
+
+ \override Staff.Custos #'style = #'vaticana
+ c'1^"vaticana"
+ \break < d' a' f''>1
+
+ \override Staff.Custos #'style = #'mensural
+ c'1^"mensural"
+ \break < d' a' f''>1
+}
+
--- /dev/null
+
+depth = ../../../
+
+STEPMAKE_TEMPLATES=documentation texinfo tex
+LOCALSTEPMAKE_TEMPLATES=lilypond ly lysdoc
+
+## Hmm, would this work? No -- if we really want examples, move
+## to other dir (input/) comes to mind.
+## examples = font20 ancient-font
+## LOCALSTEPMAKE_TEMPLATES += ly mutopia
+
+EXTRA_DIST_FILES=
+
+include $(depth)/make/stepmake.make
+
+TITLE=Advanced snippets
--- /dev/null
+# -*-python-*-
+
+Import ('env', 'collate')
+collate (title = 'Advanced snippets')
--- /dev/null
+\version "2.10.0"
+%% +.ly: Be the first .ly file for lys-to-tely.py.
+%% Better to make lys-to-tely.py include "introduction.texi" or
+%% other .texi documents too?
+
+\header{
+texidoc = #(string-append "
+@unnumbered Introduction
+
+This document shows examples from the
+@uref{http://lsr@/.dsi@/.unimi@/.it,LilyPond Snippet Repository}.
+
+In the web version of this document, you can click on the file name
+or figure for each example to see the corresponding input file.
+
+This document is for LilyPond version
+" (lilypond-version) "." )
+}
+
+% make sure .png is generated.
+\lyrics { " " }
--- /dev/null
+\version "2.10.12"
+
+\header { texidoc = "
+The property @{chordNameExceptions@} can used to store a list of special notations for specific chords.
+" }
+
+% 7sus4 denoted with ^7 wahh
+chExceptionMusic = {
+ <c f g bes>1-\markup { \super "7" "wahh" }}
+
+ % add to existing exceptions.
+chExceptions = #(append
+ (sequential-music-to-chord-exceptions chExceptionMusic #t)
+ ignatzekExceptions)
+
+theMusic = \chordmode {
+ c:7sus4 c:dim7/+f
+ \set chordNameExceptions = #chExceptions
+ c:7sus4 c:dim7/+f
+}
+
+\layout { ragged-right = ##t }
+
+<< \context ChordNames \theMusic
+ \context Voice \theMusic
+>>
+
--- /dev/null
+
+depth = ../../../
+
+STEPMAKE_TEMPLATES=documentation texinfo tex
+LOCALSTEPMAKE_TEMPLATES=lilypond ly lysdoc
+
+## Hmm, would this work? No -- if we really want examples, move
+## to other dir (input/) comes to mind.
+## examples = font20 ancient-font
+## LOCALSTEPMAKE_TEMPLATES += ly mutopia
+
+EXTRA_DIST_FILES=
+
+include $(depth)/make/stepmake.make
+
+TITLE=Advanced snippets
--- /dev/null
+# -*-python-*-
+
+Import ('env', 'collate')
+collate (title = 'Advanced snippets')
--- /dev/null
+\version "2.10.12"
+
+\header { texidoc = "
+The layout of the major 7 can be tuned with @{majorSevenSymbol@}
+" }
+
+\chords {
+ c:7+
+ \set majorSevenSymbol = \markup { "j7" }
+ c:7+
+}
--- /dev/null
+\version "2.10.0"
+%% +.ly: Be the first .ly file for lys-to-tely.py.
+%% Better to make lys-to-tely.py include "introduction.texi" or
+%% other .texi documents too?
+
+\header{
+texidoc = #(string-append "
+@unnumbered Introduction
+
+This document shows examples from the
+@uref{http://lsr@/.dsi@/.unimi@/.it,LilyPond Snippet Repository}.
+
+In the web version of this document, you can click on the file name
+or figure for each example to see the corresponding input file.
+
+This document is for LilyPond version
+" (lilypond-version) "." )
+}
+
+% make sure .png is generated.
+\lyrics { " " }
--- /dev/null
+
+depth = ../../../
+
+STEPMAKE_TEMPLATES=documentation texinfo tex
+LOCALSTEPMAKE_TEMPLATES=lilypond ly lysdoc
+
+## Hmm, would this work? No -- if we really want examples, move
+## to other dir (input/) comes to mind.
+## examples = font20 ancient-font
+## LOCALSTEPMAKE_TEMPLATES += ly mutopia
+
+EXTRA_DIST_FILES=
+
+include $(depth)/make/stepmake.make
+
+TITLE=Advanced snippets
--- /dev/null
+\version "2.10.12"
+
+\header { texidoc = "
+l.v. ties should avoid dots and staff lines, similar to normal ties. They have fixed size. Their formatting can be tuned with
+@code{tie-configuration}
+" }
+
+\paper {
+ ragged-right = ##t
+}
+
+\relative {
+ <c e g>\laissezVibrer r4
+ <c f g>\laissezVibrer r
+ <c d f g>\laissezVibrer r
+ <c d f g>4.\laissezVibrer r
+
+ <c d e f>4\laissezVibrer r
+ \override LaissezVibrerTieColumn #'tie-configuration
+ = #'((-7 . -1)
+ (-5 . -1)
+ (-3 . 1)
+ (-1 . 1))
+ <c d e f>4\laissezVibrer r
+}
+
--- /dev/null
+# -*-python-*-
+
+Import ('env', 'collate')
+collate (title = 'Advanced snippets')
--- /dev/null
+\version "2.10.0"
+%% +.ly: Be the first .ly file for lys-to-tely.py.
+%% Better to make lys-to-tely.py include "introduction.texi" or
+%% other .texi documents too?
+
+\header{
+texidoc = #(string-append "
+@unnumbered Introduction
+
+This document shows examples from the
+@uref{http://lsr@/.dsi@/.unimi@/.it,LilyPond Snippet Repository}.
+
+In the web version of this document, you can click on the file name
+or figure for each example to see the corresponding input file.
+
+This document is for LilyPond version
+" (lilypond-version) "." )
+}
+
+% make sure .png is generated.
+\lyrics { " " }
--- /dev/null
+\version "2.10.12"
+
+\header { texidoc = "
+Clusters are a device to denote that a complete range of notes is to be played.
+" }
+
+\layout { ragged-right = ##t }
+
+fragment = \relative c' {
+ c4 f4 <e d'>4
+ <g a>8 <e a> a4 c2 <d b>4 e4
+ c4
+}
+
+<<
+ \new Staff \fragment
+ \new Staff \makeClusters \fragment
+>>
--- /dev/null
+
+depth = ../../../
+
+STEPMAKE_TEMPLATES=documentation texinfo tex
+LOCALSTEPMAKE_TEMPLATES=lilypond ly lysdoc
+
+## Hmm, would this work? No -- if we really want examples, move
+## to other dir (input/) comes to mind.
+## examples = font20 ancient-font
+## LOCALSTEPMAKE_TEMPLATES += ly mutopia
+
+EXTRA_DIST_FILES=
+
+include $(depth)/make/stepmake.make
+
+TITLE=Advanced snippets
--- /dev/null
+# -*-python-*-
+
+Import ('env', 'collate')
+collate (title = 'Advanced snippets')
+++ /dev/null
-\version "2.10.0"
-%% +.ly: Be the first .ly file for lys-to-tely.py.
-%% Better to make lys-to-tely.py include "introduction.texi" or
-%% other .texi documents too?
-
-\header{
-texidoc = #(string-append "
-@unnumbered Introduction
-
-This document shows all kinds of tricks from the
-@uref{http://lsr@/.dsi@/.unimi@/.it,LilyPond Snippet Repository}.
-
-In the web version of this document, you can click on the file name
-or figure for each example to see the corresponding input file.
-
-This document is for LilyPond version
-" (lilypond-version) "." )
-}
-
-% make sure .png is generated.
-\lyrics { " " }
+++ /dev/null
-\version "2.10.12"
-
-\header { texidoc = "
-A caesura is sometimes denoted with a double \"railtracks\" breath mark with a fermata sign positioned over the top of the railtracks. This snippet should present an optically pleasing combination of railtracks and a fermata.
-
-It works for lilypond 2.5 and above.
-" }
-
-{
- \context Voice {
- c''2.
- % use some scheme code to construct the symbol
- \override BreathingSign #'text = #(markup #:line
- (#:musicglyph "scripts.caesura"
- #:translate (cons -1.75 1.6)
- #:musicglyph "scripts.ufermata"
- ))
- \breathe c''4
- % set the breathe mark back to normal
- \revert BreathingSign #'text
- c''2. \breathe c''4
- \bar "|."
- }
-}
-
+++ /dev/null
-
-depth = ../../../
-
-STEPMAKE_TEMPLATES=documentation texinfo tex
-LOCALSTEPMAKE_TEMPLATES=lilypond ly lysdoc
-
-## Hmm, would this work? No -- if we really want examples, move
-## to other dir (input/) comes to mind.
-## examples = font20 ancient-font
-## LOCALSTEPMAKE_TEMPLATES += ly mutopia
-
-EXTRA_DIST_FILES=
-
-include $(depth)/make/stepmake.make
-
-TITLE=Trick snippets
+++ /dev/null
-# -*-python-*-
-
-Import ('env', 'collate')
-collate (title = 'Trick snippets')
+++ /dev/null
-\version "2.10.12"
-
-\header { texidoc = "
-This snippet shows a way to insert available Feta font symbols as caesurae and ways to create tramlines. Normally a caesura is indicated by a pair of oblique lines lying through the top line of the staff, also called a fetura, tramlines, railroad tracks, or a cut-off. LilyPond provides several alternatives. A stylized version of tramlines is called caesura. The normal tramline form, here called fetura, is not in the Feta font set, but can be constructed using the / character.
-" }
-
-\version "2.8.4"
-%{ This snippet shows a way to insert available Feta font symbols as caesurae
- and ways to create tramlines. Normally a caesura is indicated by a pair of
- oblique lines lying through the top line of the staff, also called a fetura,
- tramlines, railroad tracks, or a cut-off. LilyPond provides several
- alternatives. A stylized version of tramlines is called caesura. The normal
- tramline form, here called fetura, is not in the Feta font set, but can be
- constructed using the / character.%}
- \relative c'' {
-\time 3/4
-e4 d e
- % default
-e_\markup { "default - breathe" }
- \breathe d e |
- % rcomma
- % by default, \breathe uses the rcomma, just as if saying:
- \override BreathingSign #'text =
- #(make-musicglyph-markup "scripts.rcomma")
-e_\markup rcomma \breathe d e |
- % lcomma
- \override BreathingSign #'text =
- #(make-musicglyph-markup "scripts.lcomma")
-e_\markup lcomma \breathe d e |
- % rvarcomma
- \override BreathingSign #'text =
- #(make-musicglyph-markup "scripts.rvarcomma")
-e_\markup rvarcomma \breathe d e | \break
- % lvarcomma
- \override BreathingSign #'text =
- #(make-musicglyph-markup "scripts.lvarcomma")
-e_\markup lvarcomma \breathe d e |
- % upbow or wedge
- \override BreathingSign #'text =
- #(make-musicglyph-markup "scripts.upbow")
-e_\markup upbow \breathe d e |
- % caesura
- \override BreathingSign #'text =
- #(make-musicglyph-markup "scripts.caesura")
-e_\markup caesura \breathe d e |
- % fetura, tramlines, or railroad tracks
-<<{
-\hideNotes a16 a a a a4 a \unHideNotes
-}\\{
- \once\override TextScript #'extra-offset = #'(4.0 . -2.7)
-e^\markup {\fontsize #2 {\bold "/" \hspace #-1.4 \bold "/"}}
-d_\markup { \hspace #-10 "fetura" } e |
-}>>
- \once\override TextScript #'font-name = #"cmb10"
- \once\override TextScript #'extra-offset = #'(4.0 . -2.2)
-e^\markup {\magnify #1.3 { "/" \hspace #-1.5 "/"}}
- \once \override Score.SeparationItem #'padding = #4
-d_\markup { \hspace #-10 "fetura" } e |
-
-e d e \bar "||"
- }%end relative
- \layout{
-indent = 0.00\in
- }%end layout
-
-