gnu-music-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: .ly templates?


From: Jan Nieuwenhuizen
Subject: Re: .ly templates?
Date: 11 Jul 2001 22:57:41 +0200
User-agent: Gnus/5.090003 (Oort Gnus v0.03) Emacs/20.7

Mats Bengtsson <address@hidden> writes:

> Nice idea! I vote for the full template file since it
> gives larger freedom.

Ok, here's a quick start with some simple templates.  I'm sending it
to the list so that all you template enthousiats can do your favourite
stuff to them, or add constructive criticism.  If we can get this in a
decent shape, it may we worthwile for inclusion in 1.4.x

Jan.


Generated by address@hidden,
>From = lilypond-1.5.1.jcn3, To = lilypond-1.5.1.jcn4

usage 

    cd lilypond-source-dir; patch -E -p1 < lilypond-1.5.1.jcn4.diff

Patches do not contain automatically generated files 
or (urg) empty directories, 
i.e., you should rerun autoconf, configure

diff -urN ../lilypond-1.5.1.jcn3/CHANGES ./CHANGES
--- ../lilypond-1.5.1.jcn3/CHANGES      Wed Jul 11 22:46:27 2001
+++ ./CHANGES   Wed Jul 11 22:48:30 2001
@@ -1,8 +1,10 @@
 *** WARNING(reminder): all output via TeX (ie: using ly2dvi or plain
 *** lilypond) still yields broken stems, bars and staff lines.
 
-1.5.1.jcn2
+1.5.1.jcn3
 ==========
+
+* Added some template .ly's for evaluation.
 
 * Make blot work without -fps too.
 
diff -urN ../lilypond-1.5.1.jcn3/VERSION ./VERSION
--- ../lilypond-1.5.1.jcn3/VERSION      Wed Jul 11 22:46:27 2001
+++ ./VERSION   Wed Jul 11 22:48:30 2001
@@ -2,7 +2,7 @@
 MAJOR_VERSION=1
 MINOR_VERSION=5
 PATCH_LEVEL=1
-MY_PATCH_LEVEL=jcn3
+MY_PATCH_LEVEL=jcn4
 
 # use the above to send patches: MY_PATCH_LEVEL is always empty for a
 # released version.
diff -urN ../lilypond-1.5.1.jcn3/input/GNUmakefile ./input/GNUmakefile
--- ../lilypond-1.5.1.jcn3/input/GNUmakefile    Wed Jul 11 22:46:04 2001
+++ ./input/GNUmakefile Wed Jul 11 22:48:30 2001
@@ -1,6 +1,6 @@
 depth = ..
 
-SUBDIRS=bugs test regression tutorial no-notation ascii-art
+SUBDIRS=bugs test regression tutorial no-notation ascii-art template
 
 # nereides is tweaked a lot, can't do (read webpage)
 examples=trip star-spangled-banner paddy twinkle #nereides
diff -urN ../lilypond-1.5.1.jcn3/input/ascii-art/GNUmakefile 
./input/ascii-art/GNUmakefile
--- ../lilypond-1.5.1.jcn3/input/ascii-art/GNUmakefile  Wed Jul 11 22:46:04 2001
+++ ./input/ascii-art/GNUmakefile       Wed Jul 11 22:48:30 2001
@@ -1,8 +1,5 @@
-# input/bugs/Makefile
-
 depth = ../..
 
 LOCALSTEPMAKE_TEMPLATES=ly mutopia
 include $(depth)/make/stepmake.make 
-
 
diff -urN ../lilypond-1.5.1.jcn3/input/template/GNUmakefile 
./input/template/GNUmakefile
--- ../lilypond-1.5.1.jcn3/input/template/GNUmakefile   Thu Jan  1 01:00:00 1970
+++ ./input/template/GNUmakefile        Wed Jul 11 22:54:17 2001
@@ -0,0 +1,7 @@
+depth = ../..
+
+LOCALSTEPMAKE_TEMPLATES=ly mutopia
+EXTRA_DIST_FILES=README
+
+include $(depth)/make/stepmake.make 
+
diff -urN ../lilypond-1.5.1.jcn3/input/template/README ./input/template/README
--- ../lilypond-1.5.1.jcn3/input/template/README        Thu Jan  1 01:00:00 1970
+++ ./input/template/README     Wed Jul 11 22:54:00 2001
@@ -0,0 +1,57 @@
+
+* Mention this somewhere in documentation (Tutorial)
+
+* Better comment-out most header entries, or
+  move to template/title.ly altogether?
+
+* Naming conventions for voices/staffs
+  (think: \autochange, \partcombine)?
+
+* Add (commented-out) stuff like \time 3/4
+  \property Staff.TimeSignature \set #'style = #xxx?
+
+* Handy emacs shortcuts to (these) templates?
+
+* Mutopia headers?
+
+* Another approach would be to not include any music in the templates,
+  and standardise the naming of the music, so that you'd do:
+
+    title = 'Piano piece'
+    upper = \notes { ... }
+    lower = \notes { ... }
+
+    \include "template/piano.ly"
+
+  In this case, we'd also need one simple music example file per
+  template.  This approach can be even easier to use, but is not very
+  flexible, it only works for simple and uniform pieces.
+
+* Possibly some of you already have created something like this?  I was
+  thinking of having templates for:
+
+  single melody  = melody.ly
+  melody with lyrics = melody-lyrics.ly 
+  melody with lyrics and chords = melody-lyrics-chords.ly
+  piano = piano.ly
+  piano with several voices = piano-4-voices.ly
+  piano with lyrics (between staffs) = piano-lyrics.ly
+  piano with melody and lyrics = piano-melody-lyrics.ly
+
+TODO (Choral templates, anyone?)
+  piano with lyrics and chords
+  (string) duet 
+  (string) duet parts
+  string quartet
+  string quintet parts
+  orchestral score
+  orchestral parts
+  choral score
+  choral score with piano reduction (i.e., the piano staves have the
+          same notes as the choral parts)
+  choral score with piano accompaniment
+  choral parts
+
+
+
+
diff -urN ../lilypond-1.5.1.jcn3/input/template/melody-lyrics-chords.ly 
./input/template/melody-lyrics-chords.ly
--- ../lilypond-1.5.1.jcn3/input/template/melody-lyrics-chords.ly       Thu Jan 
 1 01:00:00 1970
+++ ./input/template/melody-lyrics-chords.ly    Wed Jul 11 22:48:30 2001
@@ -0,0 +1,45 @@
+\version "1.5.1"
+
+\header {
+  dedication = "dedication"
+  title = "Title"
+  subtitle = "Subtitle"
+  subsubtitle = "Subsubtitle"
+  composer = "Composer (xxxx-yyyy)"
+  opus = "Opus 0"
+  piece = "Piece I"
+  instrument = "Instrument"
+  arranger = "Arranger"
+  poet = "Poet"
+  texttranslator = "Translator"
+  copyright = "public domain"
+  enteredby = "jcn"
+  source =  "urtext"
+}
+
+melody = \notes \relative c' {
+  a b c d
+}
+
+text = \lyrics {
+  Aaa Bee Cee Dee
+}
+
+accompaniment = \chords {
+  a2: c2
+}
+
+\score {
+  <
+    \context ChordNames \accompaniment
+    \addlyrics
+      \context Staff = one {
+        \property Staff.noAutoBeaming = ##t
+        \property Staff.automaticMelismata = ##t
+        \melody
+      }
+      \context Lyrics \text
+  >
+  \paper { }
+  \midi  { }
+}
diff -urN ../lilypond-1.5.1.jcn3/input/template/melody-lyrics.ly 
./input/template/melody-lyrics.ly
--- ../lilypond-1.5.1.jcn3/input/template/melody-lyrics.ly      Thu Jan  1 
01:00:00 1970
+++ ./input/template/melody-lyrics.ly   Wed Jul 11 22:48:30 2001
@@ -0,0 +1,40 @@
+\version "1.5.1"
+
+\header {
+  dedication = "dedication"
+  title = "Title"
+  subtitle = "Subtitle"
+  subsubtitle = "Subsubtitle"
+  composer = "Composer (xxxx-yyyy)"
+  opus = "Opus 0"
+  piece = "Piece I"
+  instrument = "Instrument"
+  arranger = "Arranger"
+  poet = "Poet"
+  texttranslator = "Translator"
+  copyright = "public domain"
+  enteredby = "jcn"
+  source =  "urtext"
+}
+
+melody = \notes \relative c'' {
+  a b c d
+}
+
+text = \lyrics {
+  Aaa Bee Cee Dee
+}
+
+\score {
+  <
+    \addlyrics
+      \context Staff = one {
+        \property Staff.noAutoBeaming = ##t
+        \property Staff.automaticMelismata = ##t
+        \melody
+      }
+      \context Lyrics \text
+  >
+  \paper { }
+  \midi  { }
+}
diff -urN ../lilypond-1.5.1.jcn3/input/template/melody.ly 
./input/template/melody.ly
--- ../lilypond-1.5.1.jcn3/input/template/melody.ly     Thu Jan  1 01:00:00 1970
+++ ./input/template/melody.ly  Wed Jul 11 22:48:30 2001
@@ -0,0 +1,28 @@
+\version "1.5.1"
+
+\header {
+  dedication = "dedication"
+  title = "Title"
+  subtitle = "Subtitle"
+  subsubtitle = "Subsubtitle"
+  composer = "Composer (xxxx-yyyy)"
+  opus = "Opus 0"
+  piece = "Piece I"
+  instrument = "Instrument"
+  arranger = "Arranger"
+  poet = "Poet"
+  texttranslator = "Translator"
+  copyright = "public domain"
+  enteredby = "jcn"
+  source =  "urtext"
+}
+
+melody = \notes \relative c' {
+  a b c d
+}
+
+\score {
+  \context Staff \melody
+  \paper { }
+  \midi  { }
+}
diff -urN ../lilypond-1.5.1.jcn3/input/template/piano-4-voices.ly 
./input/template/piano-4-voices.ly
--- ../lilypond-1.5.1.jcn3/input/template/piano-4-voices.ly     Thu Jan  1 
01:00:00 1970
+++ ./input/template/piano-4-voices.ly  Wed Jul 11 22:48:30 2001
@@ -0,0 +1,55 @@
+\version "1.5.1"
+
+\header {
+  dedication = "dedication"
+  title = "Title"
+  subtitle = "Subtitle"
+  subsubtitle = "Subsubtitle"
+  composer = "Composer (xxxx-yyyy)"
+  opus = "Opus 0"
+  piece = "Piece I"
+  instrument = "Instrument"
+  arranger = "Arranger"
+  poet = "Poet"
+  texttranslator = "Translator"
+  copyright = "public domain"
+  enteredby = "jcn"
+  source =  "urtext"
+}
+
+upperOne = \notes\relative c'' {
+  \voiceOne
+  a b c d
+}
+
+upperTwo = \notes\relative c' {
+  \voiceTwo
+  a2 c
+}
+
+lowerOne = \notes\relative c {
+  \voiceOne
+  a2 c
+}
+
+lowerTwo = \notes\relative c {
+  \voiceTwo
+  a1
+}
+
+\score {
+  \context PianoStaff <
+    %\time 4/4
+    \context Staff = upper <
+      \context Voice = one \upperOne
+      \context Voice = two \upperTwo
+    >  
+    \context Staff = lower <
+      \clef bass
+      \context Voice = one \lowerOne
+      \context Voice = two \lowerTwo
+    >  
+  >
+  \paper { }  
+  \midi { }  
+}
\ No newline at end of file
diff -urN ../lilypond-1.5.1.jcn3/input/template/piano-lyrics.ly 
./input/template/piano-lyrics.ly
--- ../lilypond-1.5.1.jcn3/input/template/piano-lyrics.ly       Thu Jan  1 
01:00:00 1970
+++ ./input/template/piano-lyrics.ly    Wed Jul 11 22:48:30 2001
@@ -0,0 +1,54 @@
+\version "1.5.1"
+
+\header {
+  dedication = "dedication"
+  title = "Title"
+  subtitle = "Subtitle"
+  subsubtitle = "Subsubtitle"
+  composer = "Composer (xxxx-yyyy)"
+  opus = "Opus 0"
+  piece = "Piece I"
+  instrument = "Instrument"
+  arranger = "Arranger"
+  poet = "Poet"
+  texttranslator = "Translator"
+  copyright = "public domain"
+  enteredby = "jcn"
+  source =  "urtext"
+}
+
+upper = \notes\relative c'' {
+  a b c d
+}
+
+lower = \notes\relative c {
+  a2 c
+}
+
+text = \lyrics {
+  Aaa Bee Cee Dee
+}
+
+\score {
+  \context GrandStaff <
+    \addlyrics
+      \context Staff = upper \upper
+      \context Lyrics \text
+    \context Staff = lower <
+      \clef bass
+      \lower
+    >  
+  >
+  \paper {
+    \translator {
+      \GrandStaffContext
+      \accepts "Lyrics"
+    }
+    \translator {
+      %\LyricsVoiceContext
+      \LyricsContext
+      \consists "Bar_engraver"
+    }
+  }  
+  \midi { }  
+}
\ No newline at end of file
diff -urN ../lilypond-1.5.1.jcn3/input/template/piano-melody-lyrics.ly 
./input/template/piano-melody-lyrics.ly
--- ../lilypond-1.5.1.jcn3/input/template/piano-melody-lyrics.ly        Thu Jan 
 1 01:00:00 1970
+++ ./input/template/piano-melody-lyrics.ly     Wed Jul 11 22:48:30 2001
@@ -0,0 +1,58 @@
+\version "1.5.1"
+
+\header {
+  dedication = "dedication"
+  title = "Title"
+  subtitle = "Subtitle"
+  subsubtitle = "Subsubtitle"
+  composer = "Composer (xxxx-yyyy)"
+  opus = "Opus 0"
+  piece = "Piece I"
+  instrument = "Instrument"
+  arranger = "Arranger"
+  poet = "Poet"
+  texttranslator = "Translator"
+  copyright = "public domain"
+  enteredby = "jcn"
+  source =  "urtext"
+}
+
+melody = \notes \relative c'' {
+  a b c d
+}
+
+text = \lyrics {
+  Aaa Bee Cee Dee
+}
+
+upper = \notes\relative c'' {
+  a b c d
+}
+
+lower = \notes\relative c {
+  a2 c
+}
+
+\score {
+  <
+    \addlyrics
+      \context Staff = mel {
+        \property Staff.noAutoBeaming = ##t
+        \property Staff.automaticMelismata = ##t
+        \melody
+      }
+      \context Lyrics \text
+
+    \context PianoStaff <
+      \context Staff = upper \upper
+      \context Staff = lower <
+       \clef bass
+       \lower
+      >
+    >
+  >
+  \paper {
+    \translator { \HaraKiriStaffContext }
+  }  
+  \midi { }  
+}
\ No newline at end of file
diff -urN ../lilypond-1.5.1.jcn3/input/template/piano.ly 
./input/template/piano.ly
--- ../lilypond-1.5.1.jcn3/input/template/piano.ly      Thu Jan  1 01:00:00 1970
+++ ./input/template/piano.ly   Wed Jul 11 22:48:30 2001
@@ -0,0 +1,39 @@
+\version "1.5.1"
+
+\header {
+  dedication = "dedication"
+  title = "Title"
+  subtitle = "Subtitle"
+  subsubtitle = "Subsubtitle"
+  composer = "Composer (xxxx-yyyy)"
+  opus = "Opus 0"
+  piece = "Piece I"
+  instrument = "Instrument"
+  arranger = "Arranger"
+  poet = "Poet"
+  texttranslator = "Translator"
+  copyright = "public domain"
+  enteredby = "jcn"
+  source =  "urtext"
+}
+
+upper = \notes\relative c'' {
+  a b c d
+}
+
+lower = \notes\relative c {
+  a2 c
+}
+
+\score {
+  \context PianoStaff <
+    %\time 4/4
+    \context Staff = upper \upper
+    \context Staff = lower <
+      \clef bass
+      \lower
+    >  
+  >
+  \paper { }  
+  \midi { }  
+}
\ No newline at end of file
diff -urN ../lilypond-1.5.1.jcn3/input/test/title.ly ./input/test/title.ly
--- ../lilypond-1.5.1.jcn3/input/test/title.ly  Wed Jul 11 22:46:04 2001
+++ ./input/test/title.ly       Wed Jul 11 22:48:30 2001
@@ -6,6 +6,7 @@
   subtitle = "Subtitle"
   subsubtitle = "Subsubtitle"
   composer = "Composer (xxxx-yyyy)"
+  instrument = "Instrument"
   arranger = "Arranger"
   poet = "Poet"
   % ugr: warning: Identifier name is a keyword: `translator'
@@ -14,7 +15,6 @@
   copyright = "public domain"
   enteredby = "jcn"
   source =  "urtext"
-  instrument = "Instrument"
 }
 
 \score {

-- 
Jan Nieuwenhuizen <address@hidden> | GNU LilyPond - The music typesetter
http://www.xs4all.nl/~jantien       | http://www.lilypond.org




reply via email to

[Prev in Thread] Current Thread [Next in Thread]