Re: lilypond emacs-mode

2005-11-26 Thread Nicolas Sceaux
Daniel Oehry [EMAIL PROTECTED] writes:

 lilypond emacs-mode does not work with CVS version of emacs (22.0.50.1).

Using lilypond-mode from CVS, I apply the following patch for GNU Emacs
22:

Index: lilypond-mode.el
===
RCS file: /cvsroot/lilypond/lilypond/elisp/lilypond-mode.el,v
retrieving revision 1.18
diff -u -r1.18 lilypond-mode.el
--- lilypond-mode.el12 Jun 2005 18:44:29 -  1.18
+++ lilypond-mode.el15 Oct 2005 11:17:42 -
@@ -393,11 +393,11 @@
   (let ((fnameprefix (if (eq LilyPond-command-current 'LilyPond-command-master)
 (substring (LilyPond-get-master-file) 0 -3); suppose 
.ly
   LilyPond-region-file-prefix))
-   (allcount (string-to-number (substring (count-midi-words) 0 -12)))
-   (count (string-to-number (substring (count-midi-words-backwards) 0 
-12
+   (allcount (count-midi-words))
+   (count (count-midi-words-backwards)))
 (concat  fnameprefix
 (if (and ( allcount 1) ( count 0)) ; not first score
-(if (eq count allcount)  ; last score
+(if (= count allcount)  ; last score
 (concat - (number-to-string (+ count -1)))
   (concat - (number-to-string count
 .midi)))
@@ -407,7 +407,7 @@
   (let ((fnameprefix (if (eq LilyPond-command-current 'LilyPond-command-master)
 (substring (LilyPond-get-master-file) 0 -3); suppose 
.ly
   LilyPond-region-file-prefix))
-   (allcount (string-to-number (substring (count-midi-words) 0 -12
+   (allcount (count-midi-words)))
 (concat (if ( allcount 0)  ; at least one midi-score
(concat fnameprefix .midi ))
(if ( allcount 1)  ; more than one midi-score


___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


RE: Extra bracket in score in Lilypond 2.7.18

2005-11-26 Thread liang seng
Hi, I thought I should give visual examples of the problem I had 
encountered.
The source file is score.ly and its contents are exactly the same as what 
I had typed earlier in the thread.
The file scorea.pdf was generated by Lilypond 2.7.17 for Windows (98 and 
XP). This is the score layout, bracketing and spanbar layout that I 
intended. Note that there is only one line of brackets at the beginning of 
the system.
However, the file scoreb.pdf generated by Lilypond 2.7.18 for Windows (98 
and XP) shows the extra bracket encompassing the start of the 3rd to the 5th 
staff (from the top). As written in the source file, I had set \remove 
System_start_delimiter_engraver to remove the extra bracket in the first 
place which works in 2.7.17 but does not in 2.7.18. Is this a possible bug? 
Since I'm not sure if it is I did not post this to the bug mailing list.

Please help.
Thank you.

\version 2.7.17
\layout {
 \context {
   \Score
   \accepts OrchestraStaffGroup
 }
 \context {
   \StaffGroup
   \name OrchestraStaffGroup
   \remove Span_bar_engraver
   \accepts InstrumentStaffGroup
 }
 \context {
   \StaffGroup
   \name InstrumentStaffGroup
   \remove System_start_delimiter_engraver
 }
} \score {
 \relative
\new StaffGroup 
\new Staff  {  R1 } 
\new Staff  {  R1 }  
\new OrchestraStaffGroup 
 \new InstrumentStaffGroup 
  \new GrandStaff 
 \new Staff { R1 }
 \new Staff { R1}
   
  \new Staff  { R1  }  
\new InstrumentStaffGroup 
   \new Staff 
 \context Voice = melody { c'1 }
 \lyricsto melody \new Lyrics { do }
   
 
 \new InstrumentStaffGroup 
   \new Staff { \clef bass R1 }
  }


scorea.pdf
Description: Adobe PDF document


scoreb.pdf
Description: Adobe PDF document
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Extra bracket in score in Lilypond 2.7.18

2005-11-26 Thread Han-Wen Nienhuys

liang seng wrote:
Hi, I thought I should give visual examples of the problem I had 
encountered.
The source file is score.ly and its contents are exactly the same as 
what I had typed earlier in the thread.
The file scorea.pdf was generated by Lilypond 2.7.17 for Windows (98 
and XP). This is the score layout, bracketing and spanbar layout that I 
intended. Note that there is only one line of brackets at the beginning 
of the system.
However, the file scoreb.pdf generated by Lilypond 2.7.18 for Windows 
(98 and XP) shows the extra bracket encompassing the start of the 3rd to 
the 5th staff (from the top). As written in the source file, I had set 
\remove System_start_delimiter_engraver to remove the extra bracket in 
the first place which works in 2.7.17 but does not in 2.7.18. Is this a 
possible bug? Since I'm not sure if it is I did not post this to the bug 
mailing list.


I think this is related to the recent system bracket restructuring. It 
should work unchanged in 2.7.19


--
 Han-Wen Nienhuys - [EMAIL PROTECTED] - http://www.xs4all.nl/~hanwen


___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Extra bracket in score in Lilypond 2.7.18

2005-11-26 Thread liang seng
Hi, by that you mean that this is a bug? Then version 2.7.19 should work the 
same way as in 2.7.17?





___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Lyrics Not Working (Font Problem?)

2005-11-26 Thread Richard Furse
Hi there - having heard good things about Lilypond and needing to typeset for 
SATB, I thought I'd give it a go.

However I cannot get lyrics working - using the following code (taken from the 
lyrics tutorial):


\relative {
r4 c \times 2/3 { f g g }
\times 2/3 { g4( a2) }
}
\addlyrics { I want to break free }


I end up with only the r's and f's visible when viewing the resultant pdf in 
Acrobat - and the style of the f suggests that this is supposed to be a forte 
marking. Is Lilypond somehow picking up the wrong font? I found something on 
the web mentioning a cure for font-related troubles by installing tetex-base, 
but this doesn't seem to have helped.

Clues appreciated!

I'm running Cygwin on XP and used the standard Cygwin installer for the binary 
package. Contents of bug.txt below.

Cheers,

--Richard


bug.txt:

+ set -x
++ basename /usr/bin/bug-lilypond-cygwin
+ name=bug-lilypond-cygwin
+ '[' bug-lilypond-cygwin = bug-lilypond-cygwin ']'
+ cat
Please source this script, ie do:

. /usr/bin/bug-lilypond-cygwin  bug.txt

+ docdir=/usr/share/doc/lilypond-2.6.4
+ '[' '!' -d /usr/share/doc/lilypond-2.6.4 ']'
+ docdir=/usr/doc/lilypond-2.6.4-1
+ '[' '!' -d /usr/doc/lilypond-2.6.4-1 ']'
++ echo '/usr/share/doc/lilypond-[.-0-9]*'
+ docdir='/usr/share/doc/lilypond-[.-0-9]*'
+ '[' '!' -d '/usr/share/doc/lilypond-[.-0-9]*' ']'
++ echo '/usr/doc/lilypond-[.-0-9]*'
+ docdir='/usr/doc/lilypond-[.-0-9]*'
+ echo

+ echo Availability of executables
Availability of executables
+ echo ===
===
+ type -p tex
/usr/bin/tex
+ type -p latex
/usr/bin/latex
+ type -p kpsewhich
/usr/bin/kpsewhich
+ type -p lilypond-bin
+ type -p python
/usr/bin/python
+ type -p lilypond
/usr/bin/lilypond
+ type -p tex.exe
/usr/bin/tex.exe
+ type -p latex.exe
/usr/bin/latex.exe
+ type -p kpsewhich.exe
/usr/bin/kpsewhich.exe
+ type -p lilypond-bin.exe
+ type -p python.exe
/usr/bin/python.exe
+ lilypond-bin --version
/usr/bin/bug-lilypond-cygwin: line 44: lilypond-bin: command not found
+ python -V
Python 2.4.1
+ lilypond --version
GNU LilyPond 2.6.4
This program is free software.  It is covered by the GNU General Public
License and you are welcome to change it and/or distribute copies of it
under certain conditions.  Invoke as `lilypond --warranty' for more
information.


Copyright (c) 1996--2005 by
  Han-Wen Nienhuys [EMAIL PROTECTED]
  Jan Nieuwenhuizen [EMAIL PROTECTED]
  and others.
+ echo

+ echo Test runs
Test runs
+ echo =
=
+ mkdir -p /tmp/lily
+ cd /tmp/lily
+ rm -f 'example-1.*' 'sample2e.*'
+ ls -l
total 0
+ latex '\nonstopmode' '\input' sample2e
This is pdfeTeXk, Version 3.141592-1.21a-2.2 (Web2C 7.5.4)
 file:line:error style messages enabled.
 %-line parsing enabled.
entering extended mode
LaTeX2e 2003/12/01
Babel v3.8d and hyphenation patterns for american, french, german, ngerman, b
ahasa, basque, bulgarian, catalan, croatian, czech, danish, dutch, esperanto, e
stonian, finnish, greek, icelandic, irish, italian, latin, magyar, norsk, polis
h, portuges, romanian, russian, serbian, slovak, slovene, spanish, swedish, tur
kish, ukrainian, nohyphenation, loaded.

(/usr/share/texmf/tex/latex/base/sample2e.tex
(/usr/share/texmf/tex/latex/base/article.cls
Document Class: article 2004/02/16 v1.4f Standard LaTeX document class
(/usr/share/texmf/tex/latex/base/size10.clo))
No file sample2e.aux.
(/usr/share/texmf/tex/latex/base/omscmr.fd) [1] [2] [3] (./sample2e.aux) )
Output written on sample2e.dvi (3 pages, 7496 bytes).
Transcript written on sample2e.log.
+ kpsewhich feta20.mf
+ kpsewhich feta20.pk
+ cp '/usr/doc/lilypond-[.-0-9]*/input/example-1.ly' .
cp: cannot stat `/usr/doc/lilypond-[.-0-9]*/input/example-1.ly': No such file 
or directory
+ cp '/usr/doc/lilypond-[.-0-9]*/input/example-2.ly' .
cp: cannot stat `/usr/doc/lilypond-[.-0-9]*/input/example-2.ly': No such file 
or directory
+ lilypond example-1.ly
GNU LilyPond 2.6.4
warning: can't find file: `example-1.ly'
error: failed files: example-1.ly
+ latex '\nonstopmode' '\input' example-1.tex
This is pdfeTeXk, Version 3.141592-1.21a-2.2 (Web2C 7.5.4)
 file:line:error style messages enabled.
 %-line parsing enabled.
entering extended mode
LaTeX2e 2003/12/01
Babel v3.8d and hyphenation patterns for american, french, german, ngerman, b
ahasa, basque, bulgarian, catalan, croatian, czech, danish, dutch, esperanto, e
stonian, finnish, greek, icelandic, irish, italian, latin, magyar, norsk, polis
h, portuges, romanian, russian, serbian, slovak, slovene, spanish, swedish, tur
kish, ukrainian, nohyphenation, loaded.

! I can't find file `example-1.tex'.
* \nonstopmode \input example-1.tex
 
Please type another input file name
! Emergency stop.
* \nonstopmode \input example-1.tex
 
No pages of output.
Transcript written on texput.log.
+ dvips -o example-1.ps example-1.dvi
This is 

Breakable figured bass extender lines

2005-11-26 Thread liang seng
Hi, I'm using Lilypond to type out some music with figured basses and I came 
up with a unique situation. Is it possible to use a breakable extender line 
over several bars when the break would correspond to a rest in the bass line 
music? Consider the following example:


\version 2.7.17
\relative {

\context Voice {
\clef bass
f,4 r f r f r f r }
\context FiguredBass \figuremode {  \set useBassFigureExtenders = ##t
64 r 6 r 6 r 6 r }  }

As you can see, all the notes f have the same figure. However, is it 
possible to substitute all the figures 6 except the first one with 
extender lines? This is used to mean that the instrument that is playing the 
realized figured bass plays the same chords all the way. The catch is the 
extender line cannot be continuos since it will not make sense as when there 
are rests, the instrument does not play. Therefore, the extender line 
break whenever it encounters a rest. In a way, it can be described that 
the all 6 except the first are relaced by dashes.
I'm highlighting this because there are some scores whose figured bass is 
typed this way.

Thanks



example.pdf
Description: Adobe PDF document
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


LilyPond for Windows 2.7.19, Python

2005-11-26 Thread Thomas Scharkowski
Convert-ly gives the following error message:
--
Traceback (most recent call last):
  File C:\Programme\LilyPond\usr\bin\convert-ly.py, line 32, in ?
import lilylib as ly
  File C:\PROGRA~1\LilyPond\usr\bin\lilylib.py, line 22, in ?
import tempfile
  File /home/hanwen/src/mingw/mingw/inst/python-2.4.2-
1/usr/lib/python2.4/tempfile.py, line 33, in ?
  File /home/hanwen/src/mingw/mingw/inst/python-2.4.2-
1/usr/lib/python2.4/random.py, line 44, in ?
ImportError: No module named math
Process convert-ly.py exited with code 1
--

In version 2.7.12 it worked, the above error also occurs in 2.7.17 
and 2.7.18.

Thomas
Windows XP



___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Print last page of score problem.

2005-11-26 Thread Arthur Dyck
It's kind of hard to tell without seeing your .ly file.  But make sure that 
you have your paper size set correctly.

Arthur

On Friday 25 November 2005 08:37 pm, alanvw wrote:
 Dell 2400 + 512 RAM
 Windows XP Home
 HP3550 Printer
 Version 2.6.4-3

 I cant get the last page of the score to print at the correct spacing and
 as a result the print overshoots the page at the bottom however the other
 pages print correctly. Does anyone have a suggestion?

 Alan Albury-Ward


___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Integration with LyX was: Re: Newbie needs help with LaTeX/lilypond integration

2005-11-26 Thread Bernard Hurley
On Tue, 2005-11-22 at 14:57 -0800, D Josiah Boothby wrote:

Here are the scripts. I'm afraid you will still have to use emacs to
edit the lilypond files. But if you want to write a book with LyX with
embedded lilypond this might be of use. There are two scripts:

lyx-book.sh - a wrapper round lyx that allows you to set up the
environment necessary for calling lilypond-book.

latex-to-lily.sh - a LyX converter.

I have only used it for LyX 1.3.6 and with lilypond 2.7.16 - 2.7.18

There is a README file to tell you how to set it all up

The scripts are experimental so if they burn your toast, start a
neuclear war or ruin you sex life, don't blaim me!

enjoy

Bernard

 
 I'd be personally curious to try this out if you're willing to share it. 
 Lilypond integration (or the lack thereof) is the only thing that has kept 
 me from using LyX or Kile. For some reason I always seem to return to 
 Emacs :)
 
 Josiah
 
-- 
Bernard Hurley [EMAIL PROTECTED]
README

(c) Copyright 2005 Bernard Hurley
License: GNU General Public License Version 2 or later

Make sure you have read and understood this file before proceeding!

--- Section 0 ---
INTRODUCTION



There are two files, both bash shell scripts (TO DO: Pythonise these scripts).
They are:

lyx-book.sh	- Put this in PATH somewhere.
latex-to-lily.sh- Put this somewhere convienient - it does not need to
		  be in the PATH, although it doesn't ralyy matter if it is 

Make sure both files are executable

You will almost certainly need to edit lyx-book.sh to suit your system (see below).
But I would advise you not to touch latex-to-lily.sh if you value your sanity.

Please note that this is all experimental at the moment. It works on my system
with LyX 1.3.6


--- Section 1 ---
WHAT TO EXPECT IN LYX
=

When everything is set up correctly, then to edit a lyx file with embedded
lilypond code, invoke lyx-book.sh (see below for details). There should be thre
things added to your LyX menu system. These are:


1] View = Lilypond Book 
   This should display the final file in your postscript viewer.

2] View = Update = Lilypond Book
   Use this if you wish to update the view

3] File = Export = Lilypond Book
   This actually produces the final .ps file for you. In the unlikely
   event that you actually want the file that is fed through lilypond-
   book use File = Export = Latex, because as far as LyX is concerned
   it is a LaTeX file.

--- Section 1 ---
HOW TO EDIT LYX FILES FOR USE WITH LILYPOND BOOK


First you will need to use that package graphicx. What I do is to do
Layout = Document.. = Preamble and add:
	\usepackage{graphicx}
to the preamble. Yes, there are other ways of doing it, I'm just saying
what I do! Note however it has to be done for every LyX document you
wish to process in this way.

The lilypond can be added into ERT sections with for instance:
\lilypondfile[indent=1.2\cm]{prelude-d.ly}

You can also add lilypond environments to ERT such as:
\lilypond[quote,fragment,staffsize=11]{c' e' g'}

or:
\begin[quote,fragment,staffsize=26]{lilypond}
	c' d' e' f' g'2 g'2
\end{lilypond}

It is not advisable to actually edit large chunks of lilypond code within
ERT as it is not designed for this. So you will probably use a lot of
\lilypondfile directives. Note that if you set up your project file
correctly it is possible to use relative paths in the directive.
Alternatively you can make sure the file is in your PROJECTPATH (see project
files below)

So you will probably still be using emacs or whatever to edit you  lilypond
files. It is a good idea to make sure they are error free before including them
in you LyX document as otherwise you can crash LyX. The present version does not
have the facility to call your editor from LyX - I'm working on that!

--- Section 2 ---
SETTING UP LYX
==

There are two steps.

Step 1] Setting up the file format

Under Edit = Preferences.. = File formats = New make a new file format
with the following information:
 Format:Lilypond-Book
 GUI Name:  Lilypond Book
 Shortcut:  k
 Extension: ps
 Viewer:/usr/share/lyx/scripts/lyxview.sh

Notes:
Format is somewhat arbitrary but you have to be consistent and it should
not contain spaces.
GUI Name is the name that will appear on the menu system.
Shortcut is optional - if you never use short cuts you can leave this field
blank. I have used k because B is already taken on my system.
Extension MUST BE ps. This is because what you are actually seeing
when you do View = Lilypond is a Postscript file (with extension ps)
Viewer is /usr/share/lyx/scripts/lyxview.sh on my system but might be slightly
different on yours. Actually it is the same viewer as used for viewing Postscript
files so you can look at that to see what should go here. On my system this calls
ggv. 

several problems to solve (positioning of objects)

2005-11-26 Thread Jozef Riha
hello,

i am trying to rewrite http://www.3pe.cz/PDFnoty/Immanuel.pdf into
lilypond (was done using Encore). the results of my efforts may be
seen at http://zefo.szm.com/donotdelete/latex/imanuel.pdf

i'd like to ask your for help w/ solving the following formatting problems:

- how to set chord-name (D) or even D/H
- chord-name interferes w/ tempo mark
- i really do not need that blank space under 3rd line, do i?
- any hints/suggestions i am not aware of?

thank you for your helpful reactions. the source-code follows
(transcoded to ascii).

cheers,

-- joe

\version 2.6.3
\header {
title = Immanuel
composer = hudba a text: (c) Jirina Markovova
}
allChords = \chordmode {d1 g r e:m  r1 c r g r e:m r c r g r d:7 r g r
d r e:m r c
g r d r e:m r c d g r d r e:m r c
}

verse = \relative c'{
\time 4/4
\key g \major
\tempo 4=104
\bar |: b4 c d d~ d2 r2 \grace d8 b4 c d fis~ fis d2 r4 b4 c d g,~
g2 r2 g4 a g b~ b2 r2 \bar :|}

sgvoice = \relative c'{
b4 c d g~ g2. e4 e fis g a~ a e2 r4 e e d b'~ b2 r2 d,4 d d c'~ c2 r b a4 r4
}

verseLyricsI = \lyricmode{
Se vsim co mam pri -- cha -- zim s chva -- lou az pred Tvuj trun, pred
Tvo -- ji tvar, Pri -- po -- mi -- nam si nad -- her -- ne di -- lo,
za -- zra -- kem mam vy -- sa -- du dat Jme -- no
}

verseLyricsII = \lyricmode{
tou -- zim tam stat, \skip 8 ne -- chat se sla -- vou na -- pl -- nit
vic, nez do -- sud znam.
}

verseLyricsIII = \lyricmode{
Kra -- sne sny mam, ze ze -- me Ti zpi -- va mo -- hut -- ny chor sly
-- sim uz znit__.
}

verseLyricsIV = \lyricmode{
Stas -- tny ten cas, kdy na -- rod Te vzy -- va,  jen pod Tvou vladou
vsech -- no jde lip
}

refrMelody = \relative c''{
g1 | d2 b'4 a ~ |
a1 |
r1 |
b4 b b b~
b2 g4 e~
e1
r1
g1 | d2 b'4 a ~ |
a1 |
r2 g4 a |
b b b r |
b g2 r4
a8 b g2.~
g2 r2
% Imanuel
g1 | d2 b'4 a~ | a1~ | a4~ g~ fis~ fis~ fis~ e2. | r1 r1
}

refrUpperAccomp = \relative c'{
\key g \major
b d1 | b d2 d fis ~ |
d fis1 | r
e g4 e g e g e g~ |
e g2 e g4 c e~ |
c e1 | r1
% imanuel odpoved
b d1 b d2 b d4 d fis~ | d fis1 | r2 d e4 d fis | e g
e g e g r4 | e g4 e g2 r4 |
e g8 e g e g2.~ | e g2 r
% Imanuel
b d1 | b d2 b d4 d fis~ | d fis1~ | d fis~ | b e | r1 r1
}

refrLowerAccomp = \relative c'{
\key g \major
\clef G_8
g1 | g2 a ~ |
a1 |
r | b4 b b b~ | b2 b4 g~ | g1 r1
% imanuel odpoved
g1 | g2 g4 a4~ | a1 | r2 g4 a4 | b b b r | b b2 r4 | c8 c8 c2.~ | c1
% Imanuel
g1 | g2 g4 a4~ | a1~ | a~ | g | r1 r1
}

refrVerse = \lyricmode{
I -- ma -- nu -- el, na stu -- pen vi -- te -- zu,
I -- ma -- nu -- el, Ty jsi od -- po -- ved vsech mych do -- ta -- zu,
I -- ma -- nu -- el... __
}

\score{

 \new ChordNames \allChords

 \new Staff {
   \context Voice = verse \verse \break \sgvoice
   
 \context Voice = refrMelody \refrMelody
 \new Staff \with {
   fontSize = #-2
  \override StaffSymbol #'staff-space = #(magstep -2)
 } \refrUpperAccomp
 \new Staff \with {
   fontSize = #-2
  \override StaffSymbol #'staff-space = #(magstep -2)
 } \refrLowerAccomp
   
 }
 \new Lyrics \lyricsto verse \verseLyricsI
 \new Lyrics \lyricsto verse \verseLyricsII
 \new Lyrics \lyricsto verse \verseLyricsIII
 \new Lyrics \lyricsto verse \verseLyricsIV
 \new Lyrics \lyricsto refrMelody \refrVerse

 
}


___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: several problems to solve (positioning of objects)

2005-11-26 Thread Gilles

 
 i'd like to ask your for help w/ solving the following formatting problems:
 
 - how to set chord-name (D) or even D/H

See:
  
http://lilypond.org/doc/v2.6/Documentation/user/out-www/lilypond/Introducing-chord-names.html#Introducing-chord-names

 - chord-name interferes w/ tempo mark

Adjust the padding property, e.g.:

  \override Score.MetronomeMark #'padding = #5.0

 - i really do not need that blank space under 3rd line, do i?

No ;-)
[But I don't know where it comes from...]


Best,
Gilles


___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: several problems to solve (positioning of objects)

2005-11-26 Thread Gilles
 
  - i really do not need that blank space under 3rd line, do i?
 
 No ;-)
 [But I don't know where it comes from...]


Then, maybe yes :-}
I assume it's because there is not enough vertical space left to
accomodate the last system (starting at measure 29); that one is
pushed to the next page and the remaining graphical objects are
spread out evenly on the current page.
If you want the objects to be as close as possible to each other,
you might try to change the value of raggedbottom in the \paper
block to ##t. E.g:

\paper {
  raggedbottom = ##t
  raggedlastbottom = ##t
}


Gilles


___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Extracting header fields for use by e.g. LaTeX?

2005-11-26 Thread Michael Haynie


Greetings;

I'm looking for a way to produce Table of Contents entries, Index 
entries, and song numbers for songs in a song book.  In Lilypond 2.2, I 
replaced the the LaTeX titling definitions to suit my needs, but that 
doesn't seem to be an option with 2.6.  Short of hacking scheme in some 
nonstandard way, it's not obvious to me how to proceed.  I'd like to 
avoid non-standard approaches, since they're likely to break with the 
next version of Lilypond.


Ideally, I'd like to have lilypond not set the titles directly -- just 
write a LaTeX snippet defining the relevant portions.  That way I can 
rely on LaTeX's excellent features.  TOC entries and index entries are 
relatively simple to manage.  The most difficult issue will be keeping 
track of song numbers and setting the song number on the right or left 
depending on whether the song is on a right hand page or left hand 
page.  That's easy to handle if the decision is made by LaTeX.  I think 
it would be impractical to have lilypond attempt that task.


Is that possible to accomplish with the current header handling 
mechanisms and lilypond-book?  What would the rough outline look like?


Thanks.



___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: several problems to solve (positioning of objects)

2005-11-26 Thread Jozef Riha
thank you, i implemented fixes to
http://zefo.szm.com/donotdelete/latex/imanuel2.pdf

i've got however few notes/questions:

- there is no way to enter (D) or G/H (first play G, then H) chord names
- is it ok to have tempo mark aligned w/ chord name or should it be
the aligned w/ score? (if latter how to perform that please)
- no idea how to put Refr. string on line 17, before lyrics
Imanuel, na stupen vitezu...

thanks again.

kind regards,

-- joe

2005/11/27, Gilles [EMAIL PROTECTED]:
 
   - i really do not need that blank space under 3rd line, do i?
 
  No ;-)
  [But I don't know where it comes from...]
 

 Then, maybe yes :-}
 I assume it's because there is not enough vertical space left to
 accomodate the last system (starting at measure 29); that one is
 pushed to the next page and the remaining graphical objects are
 spread out evenly on the current page.
 If you want the objects to be as close as possible to each other,
 you might try to change the value of raggedbottom in the \paper
 block to ##t. E.g:

 \paper {
   raggedbottom = ##t
   raggedlastbottom = ##t
 }


 Gilles


___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Extracting header fields for use by e.g. LaTeX?

2005-11-26 Thread Bernard Hurley
On Sat, 2005-11-26 at 20:26 -0500, Michael Haynie wrote:

If you are using lilypond-book it is probably easier to forget about
header fields and do something like:

\section{Prelude}
--- some other text 
\lilypondfile[indent=1.2\cm]{prelude.ly}

in your lytex file. You can then easily generate a TOC.

Bernard

 Is that possible to accomplish with the current header handling 
 mechanisms and lilypond-book?  What would the rough outline look like?
 
 Thanks.
 

-- 
Bernard Hurley [EMAIL PROTECTED]


___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Text-Interface Bug?

2005-11-26 Thread J L

Hi,

I'm not sure whether this is a bug or not. After trying to add text spanners 
and fermatas to a piece, LilyPond crashes, saying that the assertion in 
text-interfaces.cc on line 61 failed. I've attached the offending files and 
also the lilypond logs of that.


Aligorith

_
Find the coolest online games @ http://xtramsn.co.nz/gaming
%{
	Rock compo originally by Mark.	
	Music Notes
%}

\version 2.6.0

% useful bits
rallSpan = \override TextSpanner #'edge-text = #'(rall  . )	
accelSpan = \override TextSpanner #'edge-text = #'(accel  . )



% piano part

pianoRH = {
	\clef treble
	\time 3/4
	
	g d'4  b g'4  d' b'4 |
	d' a'4 a fis'4  fis d'4 |
	g d'4  b g'4  d' b'4 |
	d' a'4 a fis'4  fis d'4 |
	
	g d'4  b g'4  d' b'4 |
	d' a'4 a fis'4  fis d'4 |
	g d'4  b g'4  d' b'4 |
	d' a'4 a fis'4  fis d'4 |
	

	g bes ees'4  bes ees' g'4  ees' g' bes'4 |
	d' f' bes'4  bes d' f'4  f bes d'4 |
	g bes ees'4  bes ees' g'4  ees' g' bes'4 |
	d' f' bes'4  bes d' f'4  bes d' f'4 |
	a d' fis'2.\fermata
	\bar ||
	
	g b4  b d'4  r4 |
	fis a4  a d' r4 |
	e g4  g c'4  r4 |
	g b2. |
	fis b4  fis b4  fis b4 |
	e g4  e g4  e g4 |
	\rallSpan e a2.\startTextSpan |
	d d'2. \stopTextSpan |
	
	b g'2. |
	b d'2. |
	R2.*3
	b e'4  d' e'4  r4 |
	b d'4  r4  b d'4 |
	
	b e'4  r4  b d'4 |
	a c'4  r4  c' e'4 |
	ais cis'4  r4  cis' fis'4 |
	R2. |
	\rallSpan d fis4\startTextSpan  e g4  fis a4 \stopTextSpan |
	
	g d'4  b g'4  d' b'4 |
	d' a'4 a fis'4  fis d'4 |
	g d'4  b g'4  d' b'4 |
	d' a'4 a fis'4  fis d'4 |
	
	g bes ees'4  bes ees' g'4  ees' g' bes'4 |
	d' f' bes'4  bes d' f'4  f bes d'4 |
	g bes ees'4  bes ees' g'4  ees' g' bes'4 |
	d' f' bes'4  bes d' f'4  bes d' f'4 |
	g bes ees'2. | c' f' a'2. | d' g' b'2. |
	b g'4-. \times 2/3 {g d'8-. g d'8-. g d'8-.} g d'4-. | % this bar is weak
	\bar |.
}

pianoLH = {
	\time 3/4
	\clef bass
	%\key c \major	
	
	g,,4  g,, g,4  g,4 |
	d,4  a, d4  a, fis4 |
	g,,4  g,, g,4  g,4 |
	d,4  a, d4  a, fis4 |
	
	g,,4  g,, g,4  g,4 |
	d,4  a, d4  a, fis4 |
	g,,4  g, b,4  g,  d4 |
	R2.*5
	R2.\fermata
	\bar ||
	
	g,, g,4  r4  g,, g,4 |
	d, fis,4  r4  d, fis,4 |
	cis, e,4  r4  cis, e,4 |
	g,, g,4  g,, g,4  g,, g,4 |
	fis,, fis,4  fis,, fis,4  fis,, fis,4 |
	e,, e,4  e,, e,4  e,, e,4 |
	\rallSpan a,, a,2.\startTextSpan | d,, d,2. \stopTextSpan |
	
	g, b,4  r4  g, d4 |
	d, d4  r4  fis, a,4 |
	g, b,4  r4  g, d4 |
	d, d4  r4  fis, a,4 |
	gis, b,4  r4  gis, d4 |
	e, gis,4  r4  g, d4 |
	gis, b,2  r4 |
	
	e, d2 r4 |
	a, c2 r4 |
	fis, cis2 r4 |
	a, d2 r4 |
	\rallSpan d, c2\startTextSpan r4 \stopTextSpan |
	
	g,,4  g,, g,4  g,4 |
	d,4  a, d4  a, fis4 |
	g,,4  g, b,4  g, d4 |
	R2.*5
	ees,, ees,2. | f,, f,2. | 
	b, g2. | 
	g,, g,4-. \times 2/3 {g,, g,8-.  g,, g,8-.  g,, g,8-.} g,, g,4-. | % this bar is weak
	\bar |.
}

% violin part
violinMel = {
	\time 3/4
	\clef treble
	
	R2.*2
	\set Staff.midiInstrument = pizzicato strings
	d''4-.^\markup{\smaller{pizz.}} g''4-. b''4-. |
	a''4-. fis''4-. d''4-. |
	
	%d''4-. g''4-. b''4-. |
	%a''4-. fis''4-. d''4-. |
	d''4-. g''4-. b''4-. |
	a''4-. fis''4-. d''4-. |
	
	r4 r4 g''4-. |
	f''4-. d''4-. bes'4-. |
	r4 r4 g''4-. |
	f''4-. d''4-. d''4-. |
	fis'2-.\fermata r4 \bar ||
	
	\set Staff.midiInstrument = violin
	d''2^\markup{\smaller{arco}} d''4 |
	cis''4 cis''2 |
	b'4 c''4 g'4 |
	b'4 b'2 |
	cis''4 cis''4 cis''4 |
	d''2 e''4 |
	\rallSpan fis''4.\startTextSpan e''8 (d''8 cis''8 |
	b'2) r4 \stopTextSpan |
	
	\set Staff.midiInstrument = pizzicato strings
	fis'4-.^\markup{\smaller{pizz.}} fis'4-. fis'8-. fis'8-. |
	fis'4-. a'4-. g'4-. |
	fis'4-. d'4-. fis'4-. |
	e'4-. fis'4-. g'4-. |
	fis'4-. fis'4-. r4 |
	b'4-. b'4-. r4 |
	gis'2-. r4 |
	
	\set Staff.midiInstrument = violin
	fis''4^\markup{\smaller{arco}} g''4 a''4 |
	g''4 g''4 r4 |
	gis''4 gis''4 r4 |
	a''4 a''4 r4 |
	\rallSpan fis''4\startTextSpan (e''4 d''4) \stopTextSpan |
	
	d''4 g''4 b''4 |
	a''4 fis''4 d''4 |
	d''4 g''4 b''4 |
	a''4 fis''4 d''4 |
	
	r4 r4 g''4 |
	f''4 d''4 bes'4 |
	r4 r4 g''4 |
	f''4 d''4 d''4 |
	c''2. | d''2 b'4 | c''2. | 
	g''4-.  \times 2/3 {g''8 g''8 g''8} c'''4-.
	\bar |.
	
	
}

% soprano part

sopranoMel = {
	\time 3/4
	\clef treble
	\set Staff.midiInstrument = synth voice
	
	R2.*4
	d'4 g'4 b'4 |
	a'4 fis'4 r4 |
	d'4 g'4 b'4 |
	a'4 fis'4 r4 |
	
	r4 r4 ees''4 |
	d''4 bes'4 f'4 |
	r4 r4 ees''4 |
	d''4 bes'4 bes'4 |
	d''2.\fermata  \bar ||
	
	g'4 g'4 g'4 |
	fis'4 fis'2 |
	e'4 e'4 e'4 |
	d'4 d'2 |
	ees'4 ees'4 ees'4 |
	e'!2 e'4 |
	\rallSpan cis'2.\startTextSpan ( | d'2) r4 \stopTextSpan |
	
	b'4 b'4 b'8 b'8 |
	b'4 d''4 c''4 |
	b'4 r4 b'4 |
	a'4 b'4 c''4 |
	b'4 b'4 b'4 |
	e''4 b'4 gis'4 |
	b'2. |
	
	b'4 c''4 d''4 |
	c''4 c''4 r4 |
	cis''4 cis''4 r4 |
	d''4 d''4 r4 |
	\rallSpan fis'4\startTextSpan (g'4 a'4) \stopTextSpan |
	
	d'4 g'4 b'4 |
	a'4 fis'4 r4  |
	d'4 g'4 b'4 |
	a'4 fis'4 r4 |
	
	r4 r4 ees''4 |
	d''4 bes'4 f'4 |
	r4 r4 ees''4 |
	d''4 bes'4 bes'4 |
	g'2. | g'2 a'4 | b'2. | 
	R2. \bar |.
}

sopranoLyrics = \lyricmode {
	Bar -- be -- ques  bur -- ning
	

Re: Extracting header fields for use by e.g. LaTeX?

2005-11-26 Thread Michael Haynie
If I didn't have so many files to manage, I might consider that.  
However, there are enough that the double maintenance would drive me to 
distraction.


The other problem with that solution is that it doesn't allow for the 
placement of a song number beside the title -- think of the typical 
layout of a hymnal.


So I really do need to figure out how to get lilypond to leave the 
titling to LaTeX, somehow.


On Nov 26, 2005, at 9:16 PM, Bernard Hurley wrote:


On Sat, 2005-11-26 at 20:26 -0500, Michael Haynie wrote:

If you are using lilypond-book it is probably easier to forget about
header fields and do something like:

\section{Prelude}
--- some other text 
\lilypondfile[indent=1.2\cm]{prelude.ly}

in your lytex file. You can then easily generate a TOC.

Bernard


Is that possible to accomplish with the current header handling
mechanisms and lilypond-book?  What would the rough outline look like?

Thanks.



--
Bernard Hurley [EMAIL PROTECTED]





___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user