mysterious error

2012-05-08 Thread Peter O'Doherty

Using lilypond version 2.14.2 I'm getting the following error.

Drawing systems...lilypond: ../flower/include/drul-array.hh:35: T 
Drul_arrayT::at(Direction) [with T = double]: Assertion `d == 1 || d 
== -1' failed.

^CAborted (core dumped)

It's caused by a piece of code in a big score and the error disappears 
when I test the offending code separately. (I don't wish to post the 
code here publicly.)


Can someone please help?

Many thanks,
Peter

--
//=
-  Peter O'Doherty
-  http://www.peterodoherty.net
-  m...@peterodoherty.net
-  https://joindiaspora.com/people/70716
//=


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


(somewhat OT:) lilypond calling bash script questions

2012-05-08 Thread Urs Liska
Please excuse if I post a linux question here, but I'd prefer not to 
have to find a dedicated forum and subscribe there first ...


I have a project with more than two dozens of lilypond scores. For 
several reasons I have them in individual files which I can't \include 
in a master file.
I would like to write a script that allows me to compile all .ly files 
in one run.

For this I need the following which I didn't find through Google:
How can I sequentially cd to all subdirectories that start with a number?
What I want is to do

cd 01_01_...
lilypond *.ly
cd ..
cd 01_02_...
..

in a form like

for dir in [get me all directories starting with a number]
do
cd $dir
lilypond *.ly
cd ..
done

This _has_ to be absolutely simple, but I didn't manage do find out how 
so far.


Many thanks for any assistance.
Urs


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


Re: (somewhat OT:) lilypond calling bash script questions

2012-05-08 Thread m...@apollinemike.com
On 8 mai 2012, at 11:31, Urs Liska wrote:

 Please excuse if I post a linux question here, but I'd prefer not to have to 
 find a dedicated forum and subscribe there first ...
 
 I have a project with more than two dozens of lilypond scores. For several 
 reasons I have them in individual files which I can't \include in a master 
 file.
 I would like to write a script that allows me to compile all .ly files in one 
 run.
 For this I need the following which I didn't find through Google:
 How can I sequentially cd to all subdirectories that start with a number?
 What I want is to do
 
 cd 01_01_...
 lilypond *.ly
 cd ..
 cd 01_02_...
 ..
 
 in a form like
 

I only speak Python, but I can help you there

import subprocess

NUMBER_OF_DIRS = 10

for x in range(NUMBER_OF_DIRS) :
  subprocess.call(lilypond *.ly, shell=True, cwd=01_+(%.2d % x)+_foobar)

Note that I haven't tested the above, so I can't guarantee it works and you'd 
have to adapt it to your individual case.

Cheers,
MS
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: (somewhat OT:) lilypond calling bash script questions

2012-05-08 Thread Jonas Olson

On 2012-05-08 11:31, Urs Liska wrote:

cd 01_01_...
lilypond *.ly
cd ..
cd 01_02_...
..

in a form like

for dir in [get me all directories starting with a number]
do
cd $dir
lilypond *.ly
cd ..
done


Perhaps like so:

for dir in [0-9]*/;

do

   cd $dir

   lilypond *.ly

   cd -

done


Jonas Olson
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: (somewhat OT:) lilypond calling bash script questions

2012-05-08 Thread Urs Liska

Am 08.05.2012 11:36, schrieb m...@apollinemike.com:

On 8 mai 2012, at 11:31, Urs Liska wrote:


Please excuse if I post a linux question here, but I'd prefer not to have to 
find a dedicated forum and subscribe there first ...

I have a project with more than two dozens of lilypond scores. For several 
reasons I have them in individual files which I can't \include in a master file.
I would like to write a script that allows me to compile all .ly files in one 
run.
For this I need the following which I didn't find through Google:
How can I sequentially cd to all subdirectories that start with a number?
What I want is to do

cd 01_01_...
lilypond *.ly
cd ..
cd 01_02_...
..

in a form like


I only speak Python, but I can help you there

import subprocess

NUMBER_OF_DIRS = 10

for x in range(NUMBER_OF_DIRS) :
   subprocess.call(lilypond *.ly, shell=True, cwd=01_+(%.2d % 
x)+_foobar)

Note that I haven't tested the above, so I can't guarantee it works and you'd 
have to adapt it to your individual case.

Cheers,
MS


Well, I don't speak Python, so I'll hope to get another response.

But from what I can decipher from your script I might have to express 
myself clearer:
The condition for the inclusion of a directory is _only_ that it starts 
with a number.
The dirs with scores in it are named according to opus number, thus 
starting with a two digit number, followed by an underscore and another 
two digit number.
But the unique characteristic is that it begins with a number, as all 
other directories below the project root start with characters.


Thanks anyway
Urs

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



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


Re: (somewhat OT:) lilypond calling bash script questions

2012-05-08 Thread Urs Liska

Am 08.05.2012 11:46, schrieb Jonas Olson:

On 2012-05-08 11:31, Urs Liska wrote:

cd 01_01_...
lilypond *.ly
cd ..
cd 01_02_...
..

in a form like

for dir in [get me all directories starting with a number]
do
cd $dir
lilypond *.ly
cd ..
done


Perhaps like so:
for dir in [0-9]*/;
do

cd $dir

lilypond *.ly

cd -

done

Jonas Olson

Thank you very much. That's it!
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: mysterious error

2012-05-08 Thread David Kastrup
Peter O'Doherty m...@peterodoherty.net writes:

 Using lilypond version 2.14.2 I'm getting the following error.

 Drawing systems...lilypond: ../flower/include/drul-array.hh:35: T
 Drul_arrayT::at(Direction) [with T = double]: Assertion `d == 1 || d
 == -1' failed.
 ^CAborted (core dumped)

 It's caused by a piece of code in a big score and the error disappears
 when I test the offending code separately. (I don't wish to post the
 code here publicly.)

 Can someone please help?

Operating system, compiler, compiled from source or installed from
binaries?

-- 
David Kastrup


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


Re: (somewhat OT:) lilypond calling bash script questions

2012-05-08 Thread David Kastrup
Urs Liska li...@ursliska.de writes:

 Please excuse if I post a linux question here, but I'd prefer not to
 have to find a dedicated forum and subscribe there first ...

 I have a project with more than two dozens of lilypond scores. For
 several reasons I have them in individual files which I can't \include
 in a master file.
 I would like to write a script that allows me to compile all .ly files
 in one run.
 For this I need the following which I didn't find through Google:
 How can I sequentially cd to all subdirectories that start with a number?
 What I want is to do

 cd 01_01_...
 lilypond *.ly
 cd ..
 cd 01_02_...
 ..

 in a form like

 for dir in [get me all directories starting with a number]
 do
 cd $dir
 lilypond *.ly
 cd ..
 done

 This _has_ to be absolutely simple, but I didn't manage do find out
 how so far.

for dir in [0-9]*/
do
  cd $dir
  lilypond *.ly
  cd ..
done

-- 
David Kastrup


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


Re: mysterious error

2012-05-08 Thread Peter O'Doherty

On 05/08/2012 12:08 PM, David Kastrup wrote:

Peter O'Dohertym...@peterodoherty.net  writes:


Using lilypond version 2.14.2 I'm getting the following error.

Drawing systems...lilypond: ../flower/include/drul-array.hh:35: T
Drul_arrayT::at(Direction) [with T = double]: Assertion `d == 1 || d
== -1' failed.
^CAborted (core dumped)

It's caused by a piece of code in a big score and the error disappears
when I test the offending code separately. (I don't wish to post the
code here publicly.)

Can someone please help?

Operating system, compiler, compiled from source or installed from
binaries?



Ubuntu 12.04 (the error above is one which has started appearing after 
upgrading from 11.04, lilypond version has not changed), installed from 
binary.


--
//=
-  Peter O'Doherty
-  http://www.peterodoherty.net
-  m...@peterodoherty.net
-  https://joindiaspora.com/people/70716
//=


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


Re: mysterious error

2012-05-08 Thread David Kastrup
Peter O'Doherty m...@peterodoherty.net writes:

 On 05/08/2012 12:08 PM, David Kastrup wrote:
 Peter O'Dohertym...@peterodoherty.net  writes:

 Using lilypond version 2.14.2 I'm getting the following error.

 Drawing systems...lilypond: ../flower/include/drul-array.hh:35: T
 Drul_arrayT::at(Direction) [with T = double]: Assertion `d == 1 || d
 == -1' failed.
 ^CAborted (core dumped)

 It's caused by a piece of code in a big score and the error disappears
 when I test the offending code separately. (I don't wish to post the
 code here publicly.)

 Can someone please help?
 Operating system, compiler, compiled from source or installed from
 binaries?


 Ubuntu 12.04 (the error above is one which has started appearing after
 upgrading from 11.04, lilypond version has not changed), installed
 from binary.

Where did you acquire the binary?  Could be an API incompatibility,
could be a compiler incompatibility.  The 11.10 compiler is known to
break LilyPond versions before 2.15.21
URL:http://code.google.com/p/lilypond/issues/detail?id=1997.

-- 
David Kastrup


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


Re: (somewhat OT:) lilypond calling bash script questions

2012-05-08 Thread Jan Kohnert

Hi,

Am 2012-05-08 11:31, schrieb Urs Liska:

I would like to write a script that allows me to compile all .ly
files in one run.


[...]


in a form like

for dir in [get me all directories starting with a number]
do
cd $dir
lilypond *.ly
cd ..
done


This would be a bash solution:

for dir in $(find . -maxdepth 1 -type d -regex ^\.\/[0-9].*$); do
   cd {dir}
   lilypond *.ly
   cd ..
done

--
Best regards Jan

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


pngtopnm missing?

2012-05-08 Thread Chris Crossen
I am trying to create a .png file from a LilyPond score. I am running
Windows XP. I'm getting an error about pngtopnm. 

 

Is it part of LilyPond?  Should I have it as part of the install?

 

Below is my run output.

 

Thank you,

Chris Crossen

 

C:\ScoreWork\datalilypond -dbackend=eps -dno-gs-load-fonts
-dinclude-eps-fonts -dresolution=96 -danti-alias-factor=2 --png test.ly

GNU LilyPond 2.14.2

Processing `test.ly'

Parsing...

Interpreting music... [8]

Preprocessing graphical objects...

Finding the ideal number of pages...

Fitting music on 1 page...

Drawing systems...

Layout output to `test.eps'...

Converting to PNG...'pngtopnm' is not recognized as an internal or external
command,

operable program or batch file.

GS exited with status: 255   

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


Temporary staff and VerticalAlignment

2012-05-08 Thread Roman Stawski
Hello people

I've come across a problem in 2.15.24 which I don't /believe/ existed in earlier
2.15 versions (although I haven't checked and I couldn't say when it appeared)

---
\version 2.15.24

\new ChoirStaff \with {
\consists Span_bar_engraver
} {
\new Staff = main {

\relative c'' { c1 c1 c1 }
\\ {
s1
\new Staff \relative c'' { g1 g1 }
}

}
}
---

As this stand this generates a programming error grob does not belong to a
VerticalAlignment. The output corresponds to what I want with the bar lines
spanning both staves.

However, if I comment out the \consists line no error appears. (Of course the
output isn't the same either -- the bar lines are confined to their own staves).

Does anyone have an idea how to get an error free compile and the bar lines
spanning.

Thanks for any help



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


Adjustment to tablature output

2012-05-08 Thread Christopher Webster
Is there a recommended way of adjusting TabStaff output so that 
the note-heads (fret indications) appear _above_ rather than _on_ 
the lines representing the strings, please?  This would make it 
more closely resemble English renaissance lute tablature, and I 
have a particular piece of transcription for which that is a 
desirable goal.


I've got as far as guessing that assigning a non-standard 
procedure value as the tabStaffLineLayoutFunction property of 
Tab_note_heads_engraver would probably get me towards where I 
want to be, but alas I'm too stupid and/or too ill-informed to 
see how to write such a procedure.


Thanks in advance for any help or advice.

Christopher W.

Sweden.

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


Too complicated and time consuming ...

2012-05-08 Thread joannesmith

Hello to all.
We are in the process of making our own hymn books (we use shape notes). We
have about 450 hymns that are in paper format right now (copied, pasted,
written on, sloppy, taped, marked, etc.) and I have the job of making them
all look nice. A friend suggested lilypond. I appreciate all that lilypond
can do, but I find that it is taking a painful amount of time The hymns
are not all the same ... and some are really complicated [for me anyway].
The easy ones only take me about 20 minutes or so, however the hard ones can
take more than 3 hours and some I have just given up on for now. Multiply
that by about 450 songs and it is really intimidating to me.

So my question ... maybe there is another program that will better suite my
needs?? Or maybe there is someone here that is really good at entering a
variety of hymns into lilypond and would be willing to help me every now and
then??? But I feel I am too needy ... I might need more help than what
someone is willing to give freely and I certainly do not have money to pay
anyone!!!

Of course I am hoping for a somewhat easier program ... clicking and
dragging sounds very appealing to me right now! Does any such program exist?

Thank you for your time.
-- 
View this message in context: 
http://old.nabble.com/Too-complicated-and-time-consuming-...-tp33763582p33763582.html
Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com.


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


N.C. symbol in chordNames

2012-05-08 Thread worshipgeek

Recently, I've noticed that Lilypond has begun automatically listing N.C.
every time I have put a rest in for a chord.  Often I would use this as a
way to get around tricky rhythms, but now I've got N.C.s scattered all over
my music.  Is there a way to disable this behavior?
-- 
View this message in context: 
http://old.nabble.com/N.C.-symbol-in-chordNames-tp33763589p33763589.html
Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com.


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


Re: N.C. symbol in chordNames

2012-05-08 Thread peter
Use 'S' instead of a rest. It will leave a blank area. 

(Sorry -- I have to top post from my phone. )

Peter Wannemacher
--Original Message--
From: worshipgeek
Sender: lilypond-user-bounces+peter=mainegeek2go@gnu.org
To: lilypond-user@gnu.org
Subject: N.C. symbol in chordNames
Sent: May 8, 2012 14:01


Recently, I've noticed that Lilypond has begun automatically listing N.C.
every time I have put a rest in for a chord.  Often I would use this as a
way to get around tricky rhythms, but now I've got N.C.s scattered all over
my music.  Is there a way to disable this behavior?
-- 
View this message in context: 
http://old.nabble.com/N.C.-symbol-in-chordNames-tp33763589p33763589.html
Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com.


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



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


Re: Too complicated and time consuming ...

2012-05-08 Thread Colin Hall
On Tue, May 08, 2012 at 07:27:11AM -0700, joannesmith wrote:
 A friend suggested lilypond. I appreciate all that lilypond
 can do, but I find that it is taking a painful amount of time

You might prefer:
 
http://musescore.org/

and I have heard good reports of Noteworthy:

http://www.noteworthysoftware.com/

Cheers,
Colin.

-- 

Colin Hall

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


Re: Temporary staff and VerticalAlignment

2012-05-08 Thread Eluze



Am 08.05.2012 12:00, schrieb Roman Stawski:


Does anyone have an idea how to get an error free compile and the bar lines
spanning.

Thanks for any help


from 2.15.27 there will be no more error message for that!

Eluze

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


Re: N.C. symbol in chordNames

2012-05-08 Thread Reedmace Star
* 2012-05-08 20:01 +0200 worshipgeek:
 Recently, I've noticed that Lilypond has begun automatically listing
 N.C. every time I have put a rest in for a chord.  Often I would use
 this as a way to get around tricky rhythms, but now I've got N.C.s
 scattered all over my music.  Is there a way to disable this
 behavior?

Using spacer rests instead of rests (as Peter wrote) is probably the 
most logical solution when you are writing new scores.

But if you really want to just remove the no-chord symbols altogether 
(for example when using old code), put

  \context {
\ChordNames
noChordSymbol = ##f
  } 

inside your layout specification.

R. S.

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


Re: (somewhat OT:) lilypond calling bash script questions

2012-05-08 Thread Urs Liska

Am 08.05.2012 11:46, schrieb Jan Kohnert:

Hi,

Am 2012-05-08 11:31, schrieb Urs Liska:

I would like to write a script that allows me to compile all .ly
files in one run.


[...]


in a form like

for dir in [get me all directories starting with a number]
do
cd $dir
lilypond *.ly
cd ..
done


This would be a bash solution:

for dir in $(find . -maxdepth 1 -type d -regex ^\.\/[0-9].*$); do
   cd {dir}
   lilypond *.ly
   cd ..
done


Wow, that's where I had been looking around without success.
However, Jonas' and David's solution doesn't look as geeky but works 
perfectly.

Thanks
Urs

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


Re: Too complicated and time consuming ...

2012-05-08 Thread Urs Liska

Am 08.05.2012 16:27, schrieb joannesmith:

Hello to all.
We are in the process of making our own hymn books (we use shape notes). We
have about 450 hymns that are in paper format right now (copied, pasted,
written on, sloppy, taped, marked, etc.) and I have the job of making them
all look nice. A friend suggested lilypond. I appreciate all that lilypond
can do, but I find that it is taking a painful amount of time The hymns
are not all the same ... and some are really complicated [for me anyway].
The easy ones only take me about 20 minutes or so, however the hard ones can
take more than 3 hours and some I have just given up on for now. Multiply
that by about 450 songs and it is really intimidating to me.

So my question ... maybe there is another program that will better suite my
needs?? Or maybe there is someone here that is really good at entering a
variety of hymns into lilypond and would be willing to help me every now and
then??? But I feel I am too needy ... I might need more help than what
someone is willing to give freely and I certainly do not have money to pay
anyone!!!

Of course I am hoping for a somewhat easier program ... clicking and
dragging sounds very appealing to me right now! Does any such program exist?

Thank you for your time.
I really can understand your situation. It hasn't been too long that I 
felt similarly - although I must admit (and this may be a big 
'although') that I was fascinated from the beginning, not only of 
LilyPond's quality but also by the implications of the text based approach.


If I were you I would seriously consider giving LilyPond a try.
I know the learning curve is quite steep for a considerable amount of 
time. But if you are looking at 450 pieces this is a long way on which 
you should be able to get quite comfortable with LilyPond along the way.


Especially notable (IMHO) is LilyPond's power when you are talking about 
repetitive things like 450 comparable scores.
Of course you will get your first scores faster with a graphical 
program. But with LilyPond you can for example set up a framework where 
you will only have to enter the plain music for each new hymn. If this 
framework is well thought out (OK, this isn't really trivial and may 
seem impossible for you at the moment), then you have a) a consistent 
layout throughout all your scores and b) can change any aspect of your 
layout or style at any moment practically without any hassle and have 
this reflected in all your scores (for example, besides general style 
decisions you can switch between completely different layouts or part 
collections (individual parts, conductor's vs. pocket score etc.) simply 
through commenting out single lines of code).


The LilyPond community won't do the work for you and can't relieve you 
from learning. But if you are willing to learn and ask the right 
questions you will surely experience good will and considerable 
expertise on this list (I can really tell you that :-) )


HTH
Urs

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


Re: (somewhat OT:) lilypond calling bash script questions

2012-05-08 Thread Reedmace Star
* 2012-05-08 11:46 +0200 Jan Kohnert:
 Am 2012-05-08 11:31, schrieb Urs Liska:
  I would like to write a script that allows me to compile all .ly
  files in one run.

 [...]

 This would be a bash solution:
 
 for dir in $(find . -maxdepth 1 -type d -regex ^\.\/[0-9].*$); do
 cd {dir}
 lilypond *.ly
 cd ..
 done

This is guaranteed to fail as soon as any found directory name contains 
any sort of whitespace. 

[Fun fact: the ONLY characters you can rely on not appearing in a Unix 
file name are the forward slash and the null byte.]

It's overkill in this case anyway (see Jonas' or David's replies), but 
if you really want to explicitly loop over the output of a find command 
call, the proper way to do it is to make it output a list of null-byte 
separated strings with the -print0 option and then use an appropriate 
shell script construct to loop over this. A solid way to do it in bash 
is the following useful idiom:


while IFS= read -r -u3 -d $'\0' FOUND; do
# do what you want with $FOUND
...
done 3 (find [OTHER OPTIONS AS REQUIRED] -print0)


Explanation and alternatives:
http://stackoverflow.com/a/1120952
http://mywiki.wooledge.org/BashFAQ/020


R.S.

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


Re: Adjustment to tablature output

2012-05-08 Thread Choan Gálvez

On 5/8/12 10:48 , Christopher Webster wrote:

Is there a recommended way of adjusting TabStaff output so that the
note-heads (fret indications) appear _above_ rather than _on_ the lines
representing the strings, please? This would make it more closely
resemble English renaissance lute tablature, and I have a particular
piece of transcription for which that is a desirable goal.

I've got as far as guessing that assigning a non-standard procedure
value as the tabStaffLineLayoutFunction property of
Tab_note_heads_engraver would probably get me towards where I want to
be, but alas I'm too stupid and/or too ill-informed to see how to write
such a procedure.


Shouldn't be that difficult. Check this thread: 
http://comments.gmane.org/gmane.comp.gnu.lilypond.general/57580. By 
adjusting the `TabNoteHead #'extra-offset` you can put the letters above 
the lines.


Unfortunately, they won't align that nicely... but I can't help any further.

Best.
--
Choan Gálvez

Ukecosas. Los ukeleles que nos gustan, también para ti
Visítanos: http://ukecosas.es/
Degústanos en Facebook: http://facebook.com/ukecosas

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


Re: is shapeSlur broken?

2012-05-08 Thread David Nalesnik
Hi Urs,


 Hi David,
 as promised I tried out your updated function(s).
 Well, you can't call this a complete test suite, but it seems to work
 perfectly. Many thanks.
 Attached is a version showing that it also/still works with phrasingSlurs.

 I find the warnings very useful. I assume it isn't possible to find out
 and display the 'real' place in the source where the problem comes from? As
 it is, I only know that there is a changed curve that doesn't work anymore,
 but don't know where it is (which can of course be difficult to pin down in
 larger pieces.
 If it isn't possible to identify the calling line in the source code,
 would it be possible to mark the respective curve red? This way one could
 easily spot the problematic grob.


You can do either, or both.  The attached file will display a warning which
includes the input location and (if you uncomment the relevant lines in
shape-curve) print the curves in red.



 That a wrong number of pairs gives strange results is OK. That way one is
 gently pointed towards malformed input ;-)


+1



 So it works like a charm now :-)
 If you could still add the colour or line number feature - or tell me that
 you won't or can't do it - I could make a useable and distributably version
 of the file - maybe as a package together with displayControlPoints (see
 other mail in the other thread).


Sure, please do!  In the meantime, I'll keep tinkering with this and I'll
send along any improvements.

Thank you very much for your comments!

Best,
David


shaping-curves02.ly
Description: Binary data
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Too complicated and time consuming ...

2012-05-08 Thread David Kastrup
joannesmith joannesmith6...@gmail.com writes:

 We are in the process of making our own hymn books (we use shape notes). We
 have about 450 hymns that are in paper format right now

[...]

 Of course I am hoping for a somewhat easier program ... clicking and
 dragging sounds very appealing to me right now! Does any such program
 exist?

Does not sound like a good idea to me.  Clicking and dragging is a
reasonably efficient workflow for graphical arrangement, the kind of
thing you do with scissors and glue.  For writing, the orderly
arrangement of minuscule elements, a keyboard beats it hollow in the
hands of an experienced writer.  If you were talking about 10 hymns, the
savings in learning effort might make up for that.  But not 450.

Try using Frescobaldi URL:http://www.frescobaldi.org for input: it
might make you get into an efficient entry routine somewhat faster.

-- 
David Kastrup


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


Re: Too complicated and time consuming ...

2012-05-08 Thread bobr...@centrum.is


- Original Message -
From: Urs Liska li...@ursliska.de
To: lilypond-user@gnu.org
Sent: Wednesday, May 9, 2012 8:12:07 AM
Subject: Re: Too complicated and time consuming ...

Am 08.05.2012 16:27, schrieb joannesmith:
 Hello to all.
 We are in the process of making our own hymn books (we use shape notes). We
 have about 450 hymns that are in paper format right now (copied, pasted,
 written on, sloppy, taped, marked, etc.) and I have the job of making them
 all look nice. A friend suggested lilypond. I appreciate all that lilypond
 can do, but I find that it is taking a painful amount of time The hymns
 are not all the same ... and some are really complicated [for me anyway].
 The easy ones only take me about 20 minutes or so, however the hard ones can
 take more than 3 hours and some I have just given up on for now. Multiply
 that by about 450 songs and it is really intimidating to me.

 So my question ... maybe there is another program that will better suite my
 needs?? Or maybe there is someone here that is really good at entering a
 variety of hymns into lilypond and would be willing to help me every now and
 then??? But I feel I am too needy ... I might need more help than what
 someone is willing to give freely and I certainly do not have money to pay
 anyone!!!

 Of course I am hoping for a somewhat easier program ... clicking and
 dragging sounds very appealing to me right now! Does any such program exist?

 Thank you for your time.
I really can understand your situation. It hasn't been too long that I 
felt similarly - although I must admit (and this may be a big 
'although') that I was fascinated from the beginning, not only of 
LilyPond's quality but also by the implications of the text based approach.

If I were you I would seriously consider giving LilyPond a try.
I know the learning curve is quite steep for a considerable amount of 
time. But if you are looking at 450 pieces this is a long way on which 
you should be able to get quite comfortable with LilyPond along the way.

Especially notable (IMHO) is LilyPond's power when you are talking about 
repetitive things like 450 comparable scores.
Of course you will get your first scores faster with a graphical 
program. But with LilyPond you can for example set up a framework where 
you will only have to enter the plain music for each new hymn. If this 
framework is well thought out (OK, this isn't really trivial and may 
seem impossible for you at the moment), then you have a) a consistent 
layout throughout all your scores and b) can change any aspect of your 
layout or style at any moment practically without any hassle and have 
this reflected in all your scores (for example, besides general style 
decisions you can switch between completely different layouts or part 
collections (individual parts, conductor's vs. pocket score etc.) simply 
through commenting out single lines of code).

The LilyPond community won't do the work for you and can't relieve you 
from learning. But if you are willing to learn and ask the right 
questions you will surely experience good will and considerable 
expertise on this list (I can really tell you that :-) )

HTH
Urs

I'd like to echo what Urs said about this.  I would, however, describe the 
learning curve as 'long' rather than 'steep.'  Having said that, I would 
suggest that having a project like yours is a good way to get comfortable with 
LilyPond.  With such a large number of hymns to set you'll have an opportunity 
to 'practice' the rudiments of LilyPond and it will become quite easy in a 
fairly short time.  Ultimately you will likely find that entering music as a 
stream of text is actually much quicker dragging/clicking.  I was a fairly 
proficient Finale user and have completely abandoned commercial music printing 
software.  I have also never really been too interested in the graphical front 
ends for LilyPond as the plain text entry is so fast.

-David

As Urs said, you will figure out how to recycle blocks of code for scores 
reducing your workload considerably.

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


Re: is shapeSlur broken?

2012-05-08 Thread Urs Liska

Hi David,

thanks for the new 'delivery'.
I copied it to my project folder, but it's too late now here to 
investigate it (has to wait for tomorrow).
I'm really looking forward to making all this available in a structured 
way (although it will surely take some time).
Experience working with your function and the new options to visualize 
the control-points is so beautiful and such a tremenduous improvement in 
handling LilyPond ...


Best
Urs

Am 09.05.2012 01:49, schrieb David Nalesnik:

Hi Urs,

Hi David,
as promised I tried out your updated function(s).
Well, you can't call this a complete test suite, but it seems to
work perfectly. Many thanks.
Attached is a version showing that it also/still works with
phrasingSlurs.

I find the warnings very useful. I assume it isn't possible to
find out and display the 'real' place in the source where the
problem comes from? As it is, I only know that there is a changed
curve that doesn't work anymore, but don't know where it is (which
can of course be difficult to pin down in larger pieces.
If it isn't possible to identify the calling line in the source
code, would it be possible to mark the respective curve red? This
way one could easily spot the problematic grob.


You can do either, or both.  The attached file will display a warning 
which includes the input location and (if you uncomment the relevant 
lines in shape-curve) print the curves in red.



That a wrong number of pairs gives strange results is OK. That way
one is gently pointed towards malformed input ;-)


+1


So it works like a charm now :-)
If you could still add the colour or line number feature - or tell
me that you won't or can't do it - I could make a useable and
distributably version of the file - maybe as a package together
with displayControlPoints (see other mail in the other thread).


Sure, please do!  In the meantime, I'll keep tinkering with this and 
I'll send along any improvements.


Thank you very much for your comments!

Best,
David


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


Re: Temporary staff and VerticalAlignment

2012-05-08 Thread Roman Stawski
Eluze eluzew at gmail.com writes:

 Am 08.05.2012 12:00, schrieb Roman Stawski:
 
  Does anyone have an idea how to get an error free compile and the bar lines
  spanning.
 
 from 2.15.27 there will be no more error message for that!

Thank you Eluze. I wasn't sure whether there wasn't an actual error somewhere
that was getting ready to explode somewhere down the line.

Apparently not.

Keep up the good work.


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


Re: Too complicated and time consuming ...

2012-05-08 Thread Colin Campbell

On 12-05-08 05:51 PM, David Kastrup wrote:

joannesmithjoannesmith6...@gmail.com  writes:


We are in the process of making our own hymn books (we use shape notes). We
have about 450 hymns that are in paper format right now

[...]


Of course I am hoping for a somewhat easier program ... clicking and
dragging sounds very appealing to me right now! Does any such program
exist?

Does not sound like a good idea to me.  Clicking and dragging is a
reasonably efficient workflow for graphical arrangement, the kind of
thing you do with scissors and glue.  For writing, the orderly
arrangement of minuscule elements, a keyboard beats it hollow in the
hands of an experienced writer.  If you were talking about 10 hymns, the
savings in learning effort might make up for that.  But not 450.

Try using FrescobaldiURL:http://www.frescobaldi.org  for input: it
might make you get into an efficient entry routine somewhat faster.



Another point in favour of Frescobaldi is the ability to define your own 
templates, coupled with the score creation wizard.  When you have a hymn 
set the way you like it, all voicings and spacing to your taste, save 
the result as a template.  When starting the next, use the File | New | 
From template . . . and you're away.  Here is a template I modified, 
and I apologise to the author of the rehearsalMidi function, as I cannot 
remember where I found it.  The thing I found quite wonderful about 
LIlypond is shown in the template: with minor code changes, you can 
produce all sorts of output: piano reduction, individual scores, 
rehearsal MIDIs by voice (run them through timidity and LAME to get MP3s 
for the car CD player), a master MIDI of all voices . . .  I also dump 
the MIDI tracks onto my electronic piano, for rehearsals when we need to 
slow the tempo or run individual voices.


It may be that other, proprietary programs can approach the above, but 
the combination of Lilypond and Frescobaldi is wonderful.  My only wish, 
and this comes back to the OP's problem, is that I can't yet get much of 
a handle on Audiveris.  Ah well, until then, getting a head start with 
the template and blasting the notes in by hand works remarkably well for me!


Cheers,
Colin Why yes, I *do* rave about lilypond! Campbell

--
My two favorite things in life are libraries and bicycles. They both 
move people forward without wasting anything. The perfect day: riding a 
bike to the library.

 - Peter Golkin, museum spokesman (1966- )

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


Re: Too complicated and time consuming ...

2012-05-08 Thread Colin Campbell

On 12-05-08 08:29 PM, Colin Campbell wrote:

snippage
  Here is a template I modified, and I apologise to the author of the 
rehearsalMidi function, as I cannot remember where I found it.


Discussion of the template is *so* much easier when it is actually 
present in the reply!


\version 2.15.34

\language english


\header {

title = Generic Gospel Song

instrument = Male Quartet

composer = Traditional

arranger = The Loan

copyright =\markup { \char ##x00A9 2012 The Composer }

tagline = Engraved with Lilypond

}


\paper {

#(set-paper-size letter)

}


global = {

\key af \major

\time 2/2

\tempo 2=96

}


tenor = \relative c' {

\global

% Music follows here.

c

}


lead = \relative c' {

\global

% Music follows here.

c

}


bari = \relative c {

\global

% Music follows here.

c

}


bass = \relative c {

\global

% Music follows here.

c

}


verse = \lyricmode {

% Lyrics follow here.

}


rehearsalMidi = #

(define-music-function

(parser location name midiInstrument lyrics) (string? string? ly:music?)

#{

\unfoldRepeats 

\new Staff = tenor \new Voice = tenor { s1*0\f \tenor }

\new Staff = lead \new Voice = lead { s1*0\f \lead }

\new Staff = bari \new Voice = bari { s1*0\f \bari }

\new Staff = bass \new Voice = bass { s1*0\f \bass }

\context Staff = $name {

\set Score.midiMinimumVolume = #0.5

\set Score.midiMaximumVolume = #0.5

\set Score.tempoWholesPerMinute = #(ly:make-moment 96 2)

\set Staff.midiMinimumVolume = #0.8

\set Staff.midiMaximumVolume = #1.0

\set Staff.midiInstrument = $midiInstrument

}

\new Lyrics \with {

alignBelowContext = $name

} \lyricsto $name $lyrics



#})


\score {

\new ChoirStaff 

\new Staff \with {

midiInstrument = choir aahs

instrumentName = \markup \center-column { Tenor Lead }

shortInstrumentName = \markup \center-column { Tenor Lead }

} 

\clef treble_8

\new Voice = tenor { \voiceOne \tenor }

\new Voice = lead { \voiceTwo \lead }



\new Lyrics \with {

\override VerticalAxisGroup #'staff-affinity = #CENTER

} \lyricsto tenor \verse

\new Staff \with {

midiInstrument = choir aahs

instrumentName = \markup \center-column { Bari Bass }

shortInstrumentName = \markup \center-column { Bari Bass }

} 

\clef bass

\new Voice = bari { \voiceOne \bari }

\new Voice = bass { \voiceTwo \bass }





\layout { }

\midi { }

}


% Rehearsal MIDI files:

\book {

\bookOutputSuffix tenor

\score {

\rehearsalMidi tenor tenor sax \verse

\midi { }

}

}


\book {

\bookOutputSuffix lead

\score {

\rehearsalMidi lead tenor sax \verse

\midi { }

}

}


\book {

\bookOutputSuffix bari

\score {

\rehearsalMidi bari tenor sax \verse

\midi { }

}

}


\book {

\bookOutputSuffix bass

\score {

\rehearsalMidi bass tenor sax \verse

\midi { }

}

}




--
I've learned that you shouldn't go through life with a catcher's mitt on both 
hands.
You need to be able to throw something back.
-Maya Angelou, poet (1928- )

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


Re: Too complicated and time consuming ...

2012-05-08 Thread Carl Sorensen
On 5/8/12 8:27 AM, joannesmith joannesmith6...@gmail.com wrote:


Hello to all.
We are in the process of making our own hymn books (we use shape notes).
We
have about 450 hymns that are in paper format right now (copied, pasted,
written on, sloppy, taped, marked, etc.) and I have the job of making them
all look nice. A friend suggested lilypond. I appreciate all that lilypond
can do, but I find that it is taking a painful amount of time The
hymns
are not all the same ... and some are really complicated [for me anyway].
The easy ones only take me about 20 minutes or so, however the hard ones
can
take more than 3 hours and some I have just given up on for now. Multiply
that by about 450 songs and it is really intimidating to me.

Please check out the fasoli group.  They have lots of experience in shape
notes with lilypond.

http://www.hosorembo.com/Lily/Lilindex.html


http://groups.google.com/group/fasoli?hl=enpli=1

HTH,

Carl


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


Re: Too complicated and time consuming ...

2012-05-08 Thread Urs Liska
And you can/should of course put most of such a template in an include file.
So you
A) don't duplicate code unnecessarily
B) can change the setting and have this be reflected through all your scores and
C) have nice small files for the actual piece.

Best
Urs
-- 
Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet.



Colin Campbell c...@shaw.ca schrieb:

On 12-05-08 08:29 PM, Colin Campbell wrote: 

snippage

  Here is a template I modified, and I apologise to the author of the 
rehearsalMidi function, as I cannot remember where I found it.  

Discussion of the template is *so* much easier when it is actually present in 
the reply!

\version 2.15.34

\language english


\header {

title = Generic Gospel Song

instrument = Male Quartet

composer = Traditional

arranger = The Loan

copyright =\markup { \char ##x00A9 2012 The Composer }

tagline = Engraved with Lilypond

}


\paper {

#(set-paper-size letter)

}


global = {

\key af \major

\time 2/2

\tempo 2=96

}


tenor = \relative c' {

\global

% Music follows here.

c

}


lead = \relative c' {

\global

% Music follows here.

c

}


bari = \relative c {

\global

% Music follows here.

c

}


bass = \relative c {

\global

% Music follows here.

c

}


verse = \lyricmode {

% Lyrics follow here.

}


rehearsalMidi = #

(define-music-function

(parser location name midiInstrument lyrics) (string? string? ly:music?)

#{

\unfoldRepeats 

\new Staff = tenor \new Voice = tenor { s1*0\f \tenor }

\new Staff = lead \new Voice = lead { s1*0\f \lead }

\new Staff = bari \new Voice = bari { s1*0\f \bari }

\new Staff = bass \new Voice = bass { s1*0\f \bass }

\context Staff = $name {

\set Score.midiMinimumVolume = #0.5

\set Score.midiMaximumVolume = #0.5

\set Score.tempoWholesPerMinute = #(ly:make-moment 96 2)

\set Staff.midiMinimumVolume = #0.8

\set Staff.midiMaximumVolume = #1.0

\set Staff.midiInstrument = $midiInstrument

}

\new Lyrics \with {

alignBelowContext = $name

} \lyricsto $name $lyrics



#})


\score {

\new ChoirStaff 

\new Staff \with {

midiInstrument = choir aahs

instrumentName = \markup \center-column { Tenor Lead }

shortInstrumentName = \markup \center-column { Tenor Lead }

} 

\clef treble_8

\new Voice = tenor { \voiceOne \tenor }

\new Voice = lead { \voiceTwo \lead }



\new Lyrics \with {

\override VerticalAxisGroup #'staff-affinity = #CENTER

} \lyricsto tenor \verse

\new Staff \with {

midiInstrument = choir aahs

instrumentName = \markup \center-column { Bari Bass }

shortInstrumentName = \markup \center-column { Bari Bass }

} 

\clef bass

\new Voice = bari { \voiceOne \bari }

\new Voice = bass { \voiceTwo \bass }





\layout { }

\midi { }

}


% Rehearsal MIDI files:

\book {

\bookOutputSuffix tenor

\score {

\rehearsalMidi tenor tenor sax \verse

\midi { }

}

}


\book {

\bookOutputSuffix lead

\score {

\rehearsalMidi lead tenor sax \verse

\midi { }

}

}


\book {

\bookOutputSuffix bari

\score {

\rehearsalMidi bari tenor sax \verse

\midi { }

}

}


\book {

\bookOutputSuffix bass

\score {

\rehearsalMidi bass tenor sax \verse

\midi { }

}

}




-- I've learned that you shouldn't go through life with a catcher's mitt on 
both hands. You need to be able to throw something back. -Maya Angelou, poet 
(1928- ) ___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user