]> git.donarmstrong.com Git - lilypond.git/commitdiff
lilypond-1.3.0
authorfred <fred>
Tue, 26 Mar 2002 22:42:11 +0000 (22:42 +0000)
committerfred <fred>
Tue, 26 Mar 2002 22:42:11 +0000 (22:42 +0000)
20 files changed:
Documentation/bibliography/GNUmakefile
Documentation/footer.html.in
Documentation/misc/GNUmakefile
buildscripts/set-lily.sh
input/test/no-stem-extend.fly [new file with mode: 0644]
input/test/uniform-breaking.ly [new file with mode: 0644]
lily/breathing-sign.cc
lily/column-x-positions.cc
lily/gourlay-breaking.cc
lily/include/ly-symbols.hh
lily/include/midi-stream.hh
lily/protected-scm.cc
lily/stem.cc
ly/params.ly
mutopia/J.S.Bach/Solo-Cello-Suites/allemande-cello.ly
scm/lily.scm
scripts/mudela-book.py
stepmake/bin/package-diff.py
stepmake/bin/release.py
stepmake/stepmake/metapost-rules.make

index 899251880a0319ced1b970e95067b7dd1d88d5d2..ca0c7ae4a4beeb41bec90cf85921cccb09351d81 100644 (file)
@@ -2,23 +2,9 @@
 
 depth=../..
 
-DATA_FILES = $(wildcard *.data)
-datafiles = $(addprefix $(outdir)/,$(DATA_FILES:.data=.html))
-TEX_FILES = $(wildcard *.tex)
-DOC_FILES = $(wildcard *.doc)
-DVI_FILES = $(addprefix $(outdir)/,$(DOC_FILES:.doc=.dvi) $(YO_FILES:.yo=.dvi))
 OUT_BIB_FILES = $(addprefix $(outdir)/, $(BIB_FILES))
-
-# just include me
-YO_URG_FILES = $(wildcard *.yo-urg)
-
-OUTTEX_FILES = $(addprefix $(outdir)/, $(TEX_FILES))
-OUTDOC_FILES = $(addprefix $(outdir)/, $(DOC_FILES))
-EL_FILES = $(wildcard *.el)
 BIB_FILES= $(wildcard *.bib)
-EXTRA_DIST_FILES= $(BIB_FILES) $(DOC_FILES) $(DATA_FILES) $(EL_FILES) $(YO_URG_FILES) $(TEX_FILES) $(wildcard *.sty) 
-HTML_FILES = $(addprefix $(outdir)/, $(YO_FILES:.yo=.html))
-PS_FILES = $(DVI_FILES:.dvi=.ps)
+EXTRA_DIST_FILES= $(BIB_FILES)
 
 STEPMAKE_TEMPLATES=tex documentation
 LOCALSTEPMAKE_TEMPLATES=lilypond mudela
@@ -26,12 +12,7 @@ LOCALSTEPMAKE_TEMPLATES=lilypond mudela
 export BIBINPUTS:=$(shell pwd)//$(PATHSEP)$(BIBINPUTS)
 include $(depth)/make/stepmake.make 
 
-
-
-
-
-
-dvi: $(OUT_BIB_FILES) $(DVI_FILES)
+dvi: $(DVI_FILES) $(OUT_BIB_FILES)
 
 ps: $(PS_FILES)
 
@@ -41,18 +22,7 @@ default:
 GENHTMLS = engraving colorado  computer-notation
 OUTGENHTMLS = $(addprefix $(outdir)/, $(GENHTMLS:%=%.html))
 
-#urg should generalise and move Lilypond -> StepMake
-# URG.  Lilypond specific. Move out. 
-$(outdir)/%.html: %.data $(depth)/VERSION
-       $(PYTHON) $(step-bindir)/table-to-html.py --columns=7 --linesep='\r' -o $@ $<
-       $(PYTHON) $(step-bindir)/add-html-footer.py  $@
-
-$(outdir)/%.tex: %.data $(depth)/VERSION
-       $(PYTHON) $(step-bindir)/table-to-html.py --columns=7 --linesep='\r'  -o $@ --latex $<
-
-
-
-local-WWW: $(HTML_FILES) $(OUTTEX_FILES:.tex=.ps.gz) $(OUTYO_FILES:.yo=.latex) $(OUTYO_FILES:.yo=.ps.gz) $(addprefix $(outdir)/, $(BIB_FILES:.bib=.html)) $(datafiles)
+local-WWW: $(addprefix $(outdir)/, $(BIB_FILES:.bib=.html))
        $(PYTHON) $(step-bindir)/ls-latex.py  --title 'References on Music Notation' \
          $(YO_FILES) $(OUTYO_FILES:.yo=.latex) $(BIB_FILES) $(DOC_FILES) $(TEX_FILES) \
          | sed "s!$(outdir)/!!g" > $(outdir)/index.html
@@ -63,12 +33,7 @@ $(outdir)/%.bib: %.bib
 # ignore result since bib2html is nonstandard. Errors would halt the RPM build.j  
 $(outdir)/%.html: %.bib
        -bib2html $< $@
+#      $(footify) $@
 
-# Yeah right: 
-# make -k out/mudela.dvi => cp -f out/vocabulary.tex out/mudela.dvi
-
-#out/%: $(outdir)/%
-#      cp -f $< $@
-
-locamlclean:
+localclean:
        rm -f fonts.aux fonts.log feta*.tfm feta*.*pk
index 4b99be2c585861054cf3daa34abff02c5dc24efd..50bcaf5b2d0a30fed5803ed7cfa6bc1e5ff92618 100644 (file)
@@ -11,7 +11,7 @@ footer substitutions:
  * ENV:WEBMASTER,
  * ENV:WEBMASTER
 
->
+-->
 
 <hr>
 Go <a href=%s>back</a> to index of LilyPond.
@@ -23,7 +23,7 @@ Please send GNU LilyPond questions and comments to
 <em>gnu-music-discuss@gnu.org</em></a>.
 <p>
 
-<!-- package %s %s >
+<!-- package %s %s -->
 
 Please send comments on these web pages to 
 <a href="mailto:%s"><em>%s</em></a>
index 55a1efe7ed53462d95afee542560367709c68359..d9b79c0e6ecf49e678ccfdf7205c249e1ccac3d6 100644 (file)
@@ -4,10 +4,9 @@ NAME = documentation
 
 STEPMAKE_TEMPLATES=documentation  texinfo
 
-TEXTS =AIMS $(wildcard CHANGES-*)  $(wildcard ANNOUNCE-*) $(wildcard NEWS-*) interview
+TEXTS =AIMS $(wildcard CHANGES-*[0-9])  $(wildcard ANNOUNCE-*[0-9]) $(wildcard NEWS-*[0-9]) interview
 EXTRA_DIST_FILES = $(TEXTS)
 
-
 include $(depth)/make/stepmake.make 
 
 default: do-doc
index d69f24b3b7a94de6415f702c646b530c60f4da01..f809aba7d3ea6aa3f14ad7ca852a6766e508658d 100644 (file)
@@ -81,7 +81,7 @@ rm -f cmtfm; showln -sf $TEX_TFMDIR $BUILDDIR/cmtfm
 
 if [ -f ../.gdbinit.lilypond ];
 then
-    showln -f ../.gdbinit.lilypond .
+    showln -f ../.gdbinit.lilypond .gdbinit
 fi
 
 if [ -f ../.dstreamrc ]
diff --git a/input/test/no-stem-extend.fly b/input/test/no-stem-extend.fly
new file mode 100644 (file)
index 0000000..35ef31e
--- /dev/null
@@ -0,0 +1,13 @@
+% test noStemExtend
+\context Staff <
+       \context Voice = "a" { 
+               f2 f8 g a b 
+               \property Voice.noStemExtend = 1
+               f2 f8 g a b
+       }
+       \context Voice = "b" { 
+               c''2 c8 b a g
+               \property Voice.noStemExtend = 1
+               c2 c8 b a g
+       }
+>
diff --git a/input/test/uniform-breaking.ly b/input/test/uniform-breaking.ly
new file mode 100644 (file)
index 0000000..b07a7b2
--- /dev/null
@@ -0,0 +1,112 @@
+%{
+Hmm, ik vraag me af of dit al helemaal koel is.
+
+  return abs (this_one.force_f_) + abs (prev.force_f_ - this_one.force_f_)
+      + break_penalties;
+
+Neem als voorbeeld iets dat lijkt op allemande: keuze tussen 2 of drie
+maten per regel.
+
+* 2 lange maten -> lelie kiest 2 /regel  :beetje los
+* 3 korte -> lelie kiest 3 /regel        :beetje krap
+* 2 korte, 1 lange -> 3/regel            :krap
+* 1 korte, 2 lange -> 3/regel            :erg krap
+* 3 lange -> 3/regel                     :urg krap
+
+als je naar beloningen kijkt, kan ik me goed voorstellen dat sprong
+van 'al wat krapper' naar los te groot wordt, en ze dus steeds krapper
+wordt, tot urg krap aan toe, want kracht lineair?  Dat lijkt ook geval
+in allemande.
+
+Zie hoe eerst 10 en 9 mooi op 2maat/regel staan terwijl later tot 14
+toe 3/regel.
+
+Heb niet zomaar beter idee, nog.
+%}
+
+\score{
+       \notes\relative c'{
+               % 10
+               c8 c c c c8 c c c 
+               c8 c c c c8 c c c 
+               c8 c c c c8 ces c ces
+
+               % 9
+               c8 c c c c8 c c c 
+               c8 c c c c8 c c c 
+               c8 c c c c8 c ces c
+
+               % 1
+               c4 c c c
+               c4 c c c
+               c4 c c c
+
+               % 2
+               c4 c c c
+               c4 c c c
+               c4 c c8 c c c
+
+               % 3
+               c4 c c c
+               c4 c c c
+               c8 c c c c8 c c c 
+
+               % 4
+               c4 c c c
+               c4 c c8 c c c
+               c8 c c c c8 c c c 
+
+               % 5
+               c4 c c c
+               c8 c c c c8 c c c 
+               c8 c c c c8 c c c 
+
+               % 6
+               c4 c c8 c c c
+               % c4 c c c8 c
+               c8 c c c c8 c c c 
+               c8 c c c c8 c c c 
+
+               % 7
+               c8 c c c c8 c c c 
+               c8 c c c c8 c c c 
+               c8 c c c c8 c c c 
+
+               % 8
+               c8 c c c c8 c c c 
+               c8 c c c c8 c c c 
+               c8 c c c c8 c c ces
+
+               % 9
+               c8 c c c c8 c c c 
+               c8 c c c c8 c c c 
+               c8 c c c c8 c ces c
+
+               % 10
+               c8 c c c c8 c c c 
+               c8 c c c c8 c c c 
+               c8 c c c c8 ces c ces
+
+               % 11
+               c8 c c c c8 c c c 
+               c8 c c c c8 c c c 
+               c8 c c c ces8 c ces c
+
+               % 12
+               c8 c c c c8 c c c 
+               c8 c c c c8 c c c 
+               c8 c c ces c8 ces c ces
+
+               % 13
+               c8 c c c c8 c c c 
+               c8 c c c c8 c c c 
+               c8 c ces c ces8 c ces c
+
+       }
+       \paper {
+               indent=0.0\mm;
+               linewidth=90.0\mm;
+       }
+}
+
+
index 4c36f261aa4e3c564bc00a430a1c5f3434c13852..0fff51106f00d4227043cd438442079ffdae85df 100644 (file)
@@ -18,7 +18,6 @@ TODO: --> see breathing-sign-engraver.cc
 #include "dimensions.hh"
 #include "direction.hh"
 
-#include <iostream.h>
 
 Breathing_sign::Breathing_sign ()
 {
index eb4c9837010048e5bb803d60157566219075a734..25326109730a7a0a96ccbbc1d8cbea88b4ff19ec 100644 (file)
@@ -14,11 +14,11 @@ Column_x_positions::Column_x_positions()
 {
   energy_f_ = infinity_f;
   satisfies_constraints_b_ = false;
+  force_f_ = 0;
 }
 
 Column_x_positions::~Column_x_positions()
 {
-
 }
 
 
index 63a6adc624f4ec6438388dd516d184592ab1293e..0e0ea46f4be98c6b524783f5ed5fdbb91e5e7259 100644 (file)
@@ -40,6 +40,7 @@ struct Break_node {
   {
     prev_break_i_ = -1;
     line_i_ = 0;
+    demerits_f_ = 0;
   }
 };
 
@@ -56,10 +57,7 @@ Gourlay_breaking::do_solve () const
   optimal_paths.set_size (breaks.size ());
 
   Break_node first_node ;
-  first_node.prev_break_i_ = -1;
-  first_node.line_config_.force_f_ = 0;
   first_node.line_config_.energy_f_ = 0;  
-  first_node.line_i_ = 0;
   
   optimal_paths[0] = first_node; 
   int break_idx=1;
index f0f3dd098dcd173ec2a0ad7a657c2bf1e8a88a60..0e3f1cf7464e116d55fe9a341e2c535892069247 100644 (file)
@@ -60,6 +60,7 @@ DECLARE_LY_SYMBOL(notewidth);
 DECLARE_LY_SYMBOL(non_default);
 DECLARE_LY_SYMBOL(non_rhythmic);
 DECLARE_LY_SYMBOL(no_staff_support);
+DECLARE_LY_SYMBOL(no_stem_extend);
 DECLARE_LY_SYMBOL(octave_dir);
 DECLARE_LY_SYMBOL(origin);
 DECLARE_LY_SYMBOL(output);
index f367d62a2ab16f5284c60ca8999dcf3167281155..06c4f84ffcad003aa0aaf92cb4eebdb8785dc50a 100644 (file)
@@ -7,7 +7,6 @@
 #ifndef MIDI_STREAM_HH
 #define MIDI_STREAM_HH
 
-#include <iostream.h>
 #include "string.hh"
 
 /// Midi outputfile
index cf06c84a5d94ba56683dde3ce246c798c520fc64..1d8fd16b2a1b1449c90f801fe0fdc9e4547e4af3 100644 (file)
 #include "lily-guile.hh"
 #include "main.hh"
 
-#ifdef LYPROT
-#define PROTECT   ly_protect_scm
-#define UNPROTECT ly_unprotect_scm
-#else
-#define PROTECT   scm_protect_object 
-#define UNPROTECT scm_unprotect_object
-#endif
-
 Protected_scm::Protected_scm ()
 {
   object_ = 0;
@@ -25,12 +17,12 @@ Protected_scm::Protected_scm ()
 
 Protected_scm::Protected_scm (SCM s)
 {
-  object_ = s  ? PROTECT (s): 0;
+  object_ = s  ? scm_protect_object (s): 0;
 }
 
 Protected_scm::Protected_scm (Protected_scm const &s)
 {
-  object_ = s.object_ ? PROTECT (s.object_) : 0;
+  object_ = s.object_ ? scm_protect_object (s.object_) : 0;
 }
 
 Protected_scm & 
@@ -39,9 +31,9 @@ Protected_scm::operator =(SCM s)
   if (object_ == s)
     return *this;
   if (object_)
-    UNPROTECT(object_);
+    scm_unprotect_object(object_);
 
-  object_ =  s ? PROTECT (s): 0;
+  object_ =  s ? scm_protect_object (s): 0;
   return *this;
 }
 
@@ -56,8 +48,7 @@ Protected_scm::~Protected_scm ()
 {
   if  (object_)
     {
-      UNPROTECT (object_);
-      object_ =0L;             // be nice to conservative GC
+      scm_unprotect_object (object_);
     }
 }
 
index 919969187c70296f81ca8fd6c159298b8376ed66..7c7797a385c9c43c4ec3256776b86fe1c9fc8309 100644 (file)
@@ -201,7 +201,8 @@ Stem::set_default_stemlen ()
   set_stemend ((dir_ > 0) ? head_positions()[BIGGER] + length_f:
               head_positions()[SMALLER] - length_f);
 
-  if (!grace_b && (dir_ * stem_end_f () < 0))
+  bool no_extend_b = get_elt_property (no_stem_extend_scm_sym) != SCM_BOOL_F;
+  if (!grace_b && !no_extend_b && (dir_ * stem_end_f () < 0))
     set_stemend (0);
 }
 
index 96b0057fa82b2a8893ccdb8b23b5765cb45313da..a3e0eba66c45b9d161e120142ca21d2e8c3921de 100644 (file)
@@ -225,7 +225,7 @@ mmrest_x_minimum = 1.4*\staffheight;
 % chop off this much when next to pp / ff sign.
 crescendo_shorten = 4.0 * \interline;
 crescendo_thickness   = \stafflinethickness;
-crescendo_height = 1.5 * \interline;
+crescendo_height = 0.666 * \interline;
 
 % in internote.
 restcollision_minimum_dist = 3.0;
index da8e76a773cba0ce01e88139c2f3ff5308fceb3a..473a743ecacd7c2677f33a626c791495bfe1c379 100644 (file)
@@ -1,6 +1,5 @@
 
 
-
 \version "1.2.0";
 
 \include "allemande-urtext.ly";
index 8eafa4922afbf34b7b1b0447da981bc4a41ce454..de499111543ca35a3d04fc2d47424ef10d70410f 100644 (file)
@@ -8,6 +8,9 @@
 ;(debug-enable 'backtrace)
 
 ;;; library funtions
+
+; :use-module (ice-9 regex))
+
 (define
   (xnumbers->string l)
   (string-append 
index 13280873875a98b9cbf61e9fa62bad0a95f6fa6f..59bde3bbd7dbd24d3c0f065c3d4050fed0c7492d 100644 (file)
@@ -682,7 +682,7 @@ def compile_all_files (chunks):
                system ('lilypond %s %s' % (lilyopts, texfiles))
 
        for e in eps:
-               cmd = r"""tex %s; dvips -E -o %s %s""" % \
+               cmd = r"""tex '\nonstopmode \input %s'; dvips -E -o %s %s""" % \
                      (e, e + '.eps', e)
                system (cmd)
 
index 3fc89f375fc4c0c287c96922079715fdccc195b9..927cb0999ef78c81708d47500889b4f751358f7c 100644 (file)
@@ -52,9 +52,23 @@ def help ():
                '  -T, --dir-to=TO      diff to directory TO\n'  
                )
 
+def cleanup ():
+       global from_diff, to_diff, prev_cwd
+       os.chdir ('/tmp/package-diff')
+       sys.stderr.write ('Cleaning ... ')
+       os.system ('rm -fr %s %s' % (from_diff, to_diff))
+       sys.stderr.write ('\n')
+       os.chdir (prev_cwd)
+
 def untar (fn):
        # os.system ('pwd');
-       sys.stderr.write ('untarring ' + fn + '\n')
+       try:
+               open (fn)
+       except:
+               sys.stderr.write ("Can't find tarball: %s\n" % fn)
+               cleanup ()
+               sys.exit (1)
+       sys.stderr.write ("Untarring: %s\n" % fn)
        os.system ('gzip --quiet -dc ' + fn + '| tar xf - ')
        sys.stderr.flush ()
 
@@ -62,8 +76,13 @@ def remove_automatic (dirnames):
        files = []
 
        for d in dirnames:
-               for p in pats:
-                       files = files + find.find (p, d)
+               try:
+                       for p in pats:
+                               files = files + find.find (p, d)
+               except:
+                       sys.stderr.write ("Can't find dir: %s\n" % d)
+                       cleanup ()
+                       sys.exit (1)
 
        dirs = map (lambda d: find.find ('out', d), dirnames)
        dirs = reduce (lambda x,y:  x + y, dirs)
@@ -271,10 +290,5 @@ else:
 os.chdir (to_diff)
 makediff (from_diff, to_diff, patch_name) 
 
-os.chdir ('/tmp/package-diff')
-sys.stderr.write ('cleaning ... ')
-os.system ('rm -fr %s %s' % (from_diff, to_diff))
-sys.stderr.write ('\n')
-os.chdir (prev_cwd)
-
+cleanup ()
 
index 9cad7937483a27e047e00e04e6f1b6e7db127aa1..cc6d6ec5ed440c172e9e06a07b792199d2451e2a 100755 (executable)
@@ -60,6 +60,7 @@ except:
        pass
 os.link(orig,  os.path.join (package.release_dir, tarball))
 
+# urg: howto check exit code?
 os.system(sys.executable + ' ' + package.topdir + '/stepmake/bin/package-diff.py --package=' + topdir)
 
 diffname = pn + '.diff.gz'
@@ -67,6 +68,10 @@ rel_pn = package.patch_dir + diffname
 
 diffname = os.path.join (outdir, diffname)
 
-os.rename(diffname, rel_pn)
+try:
+       os.rename(diffname, rel_pn)
+except:
+       sys.stderr.write ("Can't find diff: %s\n" % diffname)
+       sys.exit (1)
 os.link(rel_pn, diffname)
 
index 2ecf0bc232cf81c793f748d0a07e35cab45d64ce..7f820ab4e51689ab64ec32c732318aaf382b30ea 100644 (file)
@@ -9,5 +9,5 @@ mfplain.mem: $(MFPLAIN_MP)
 $(outdir)/%.pfa: $(outdir)/%.0
        $(PYTHON) $(depth)/buildscripts/ps-to-pfa.py --output $(basename $<).pfa $<
        rm -f $(basename $(@F)).[0-9]*
-       rm -f $(basename $<).log $(basename $<).tfm
+       rm -f $(basename $<).log