Re: Adjustment to tablature output

2012-05-09 Thread Christopher Webster


From:Choan Gálvez
Subject: Re: Adjustment to tablature output
Date:Wed, 09 May 2012 01:23:26 +0200
User-agent:  Mozilla/5.0 (Macintosh; Intel Mac OS X 10.5;   rv:12.0) 
Gecko/20120428 Thunderbird/12.0.1
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


Many thanks for the advice and the link.

In the meantime, I searched this list's archives more carefully 
and found a solution which works perfectly.


Posted by Neil Puttock on Fri, 8 Apr 2011 20:40:16 +0100 and 
archived at 
http://lists.gnu.org/archive/html/lilypond-user/2011-04/msg00187.html 
:



\override TabNoteHead #'Y-offset =
#(lambda (grob)
   (+ (/ (ly:staff-symbol-staff-space grob) 2)
  (ly:staff-symbol-referencer::callback grob)))
\override TabNoteHead #'whiteout = ##f


What wasn't immediately obvious to me was where to insert that 
fragment, but I got lucky at the first attempt by putting it 
inside the \with construct for my TabStaff :


  \new TabStaff
  \with
  {
tablatureFormat = #fret-letter-tablature-format
fretLabels = #luteFretLabels% defined elsewhere by me
stringTunings = #bandoraTuningSet   % defined elsewhere by me
\override TabNoteHead #'Y-offset =
  #(lambda (grob)
(+ (/ (ly:staff-symbol-staff-space grob) 2)
  (ly:staff-symbol-referencer::callback grob)))
\override TabNoteHead #'whiteout = ##f
\remove Clef_engraver
\remove Time_signature_engraver
  }
  {
% stuff ...
  }

I'd like to plead with the LilyPond developers to provide a more 
obvious and better documented way of achieving the same effect, 
but this presumably isn't the right place for that.


For the moment, I'm happy.  Many thanks.

Christopher W.

Stockholm, Sweden.


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


Re: Too complicated and time consuming ...

2012-05-09 Thread Johan Vromans
joannesmith joannesmith6...@gmail.com writes:

 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?

Producing 450 typeset scores takes time. Reasonable short hyms (approx
40 bars, 3 verses of text) will require a couple of hours each, no
matter what tool you are going to use.

When you're new to LilPond, the first several scores will require much
more time, while later in the process, when you get the hang of it, and
you have developed good templates, it will be much faster.

I can recommend a tool like Frescobaldi which may be easier to get
started.

Sometimes it helps when another person reads the score and dictates the
notes to you so you only have to concentrate on entering the notes.

Once you have templates, you can ask other people to join in.

But remember: typesetting scores takes time. The end result will be your
reward.

-- Johan

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


Re: pngtopnm missing?

2012-05-09 Thread Phil Holmes
I don't know why this happens, but you can cure it simply by replacing all the 
other options you're using with -fpng:

lilypond -fpng test.ly

--
Phil Holmes


  - Original Message - 
  From: Chris Crossen 
  To: lilypond-user@gnu.org 
  Sent: Tuesday, May 08, 2012 4:30 AM
  Subject: pngtopnm missing?


  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
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Installing LilyPond fonts for use in programs under

2012-05-09 Thread Philip Thomas
philip.tho...@bluewin.ch writes:

 Is it possible to install the Feta/Emmentaler font(s?) in Windows 7 so that 
characters become 
 available in applications running under Windows?

Jan Nieuwenhuizen writes:

The easiest way to 
do that is probably by installing Denemo

http://www.denemo.org/Download

Thanks, Jan.

I tried it, and the font was indeed then present in font lists 
under Windows, but in a rather quirky way -- small glyphs with difficult-to-use 
spacing. My workaround: When I need a 
LilyPond glyph in a Windows program, I produce it in PDF format from a .ly file 
by the conventional LilyPond route, and 
then use Adobe Reader's snapshot feature to copy and paste it. Not entirely 
satisfactory since resizing of the pasted 
image results in some loss of definition of the image, but I'll work on 
improving that.

Philip

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


Re: Installing LilyPond fonts for use in programs under Windows 7

2012-05-09 Thread Philip Thomas
philip.tho...@bluewin.ch wrote:

 And by the way, what is the relationship between Feta and Emmentaler?

Han-Wen 
Nienhuys replied:

feta was the original Type1 font.  Since Type1 fonts can only hold 256
entries, we had several of 
them.  Later we unified them into
Emmentaler (a big cheese) which has all the glyphs in a single font.

Nice! -- 
especially since feta cheese has been a protected designation of origin 
product in the European Union since 2002, 
whereas the name Emmentaler is not protected and thus available for any 
cheesemaker to use. The metaphor can easily 
get stretched too far, though: Emmentaler cheese is characteristically full of 
holes ...

Suggestion: The documentation 
led me to be confused as to the font name. For example, in the Notation 
Reference (v.2.14.2), section A.7 (page 575), 
one finds:

A.7  The Feta font
The following symbols are available in the Emmentaler font ...

Not exactly a top 
priority matter, but at some stage the terminology might be worth clarifying.

Philip

___
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-09 Thread Álex R . Mosteo
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.

Another shot: if what you need is to compile all *.ly below a folder, this 
might serve:

find . -name '*.ly' | while read i; do lilypond $i; done

Using read takes care of whitespace.

Or, more compact:

find . -name '*.ly' -exec lilypond '{}' \;

Although this won't work if the file must be inside a folder complying with 
the number pattern.

Alex.

 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: Too complicated and time consuming ...

2012-05-09 Thread Urs Liska
He doesn't even have to copypaste sources.
Just save it to an appropriate place and name and include it.

Hope the OP is still with us ;-)
Best
Urs
-- 
Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet.



Francisco Vila paconet@gmail.com schrieb:

2012/5/8 Colin Hall colingh...@gmail.com:
 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/

Are these capable of shape notes? I'm not sure.

I strongly agree with that David said: _especially_ for 450 hymns, if
I were you, I'd go definitely for LilyPond. Dragging sounds might be
better only for 1-10 pieces at most, and still you'd have to edit them
all once and again when you decide to change the overall look.
Instead, learn to use the \include command for paper and layout blocks
in LilyPond.

An unexpected feature you could discover is, you can teach the basics
(just note entry) to people so they save those notes in a text file
with a distinct filename. Then you can copy and paste that into your
music declarations such as tenor = { } , then use those variables in a
template such as \score {  \new Staff { \tenor }   }

Finally, I recommend Frescobaldi for everyday work. Type some notes,
hit CTRL+M, done. Errors? hit CTRL+E.

Good luck!
-- 
Francisco Vila. Badajoz (Spain)
www.paconet.org , www.csmbadajoz.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-09 Thread Janek Warchoł
Hi Joanne,

On Tue, May 8, 2012 at 4:27 PM, 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.
 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??

You can always ask questions on this mailing list.  If you spend at
least 15 minutes searching for a solution yourself (in manuals and
mailing list archives) and give your e-mail a descriptive subject,
chances are high that you'll get an answer within a day (sometimes a
lot faster).

I could help a bit, too.  Could you say something more about your project?
- how many hymns have you entered?  Could you send the sources of the
ones which caused most problems?
- is this your first LilyPond project?
- did you try to use Frescobaldi?

hope this helps,
Janek

___
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-09 Thread Christopher Webster

A variant of Alex's suggestion (below):

find . -type d -name [0-9]* -print | while read dir
do
(
cd $dir;
for f in *.ly
do
lilypond $f
done
)
done

I've typed this directly in my mail client without testing it, so 
it's to be expected that some details will need correction.  
Sorry about that.



Christopher W.


*From*: Álex R . Mosteo
*Subject*: 	Re: (somewhat OT:) lilypond calling bash script 
questions

*Date*: Wed, 09 May 2012 11:37:47 +0200
*User-agent*:   KNode/4.8.3

-

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./


Another shot: if what you need is to compile all *.ly below a folder, this
might serve:

find . -name '*.ly' | while read i; do lilypond $i; done

Using read takes care of whitespace.

Or, more compact:

find . -name '*.ly' -exec lilypond '{}' \;

Although this won't work if the file must be inside a folder complying with
the number pattern.

Alex.


/  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: Adjustment to tablature output

2012-05-09 Thread Choan Gálvez

On 5/9/12 09:34 , Christopher Webster wrote:


From: Choan Gálvez
Subject: Re: Adjustment to tablature output
Date: Wed, 09 May 2012 01:23:26 +0200
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.5; rv:12.0)
Gecko/20120428 Thunderbird/12.0.1
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


Many thanks for the advice and the link.

In the meantime, I searched this list's archives more carefully and
found a solution which works perfectly.

Posted by Neil Puttock on Fri, 8 Apr 2011 20:40:16 +0100 and archived at
http://lists.gnu.org/archive/html/lilypond-user/2011-04/msg00187.html :


\override TabNoteHead #'Y-offset =
#(lambda (grob)
(+ (/ (ly:staff-symbol-staff-space grob) 2)
(ly:staff-symbol-referencer::callback grob)))
\override TabNoteHead #'whiteout = ##f


What wasn't immediately obvious to me was where to insert that fragment,
but I got lucky at the first attempt by putting it inside the \with
construct for my TabStaff :

\new TabStaff
\with
{
tablatureFormat = #fret-letter-tablature-format
fretLabels = #luteFretLabels % defined elsewhere by me
stringTunings = #bandoraTuningSet % defined elsewhere by me
\override TabNoteHead #'Y-offset =
#(lambda (grob)
(+ (/ (ly:staff-symbol-staff-space grob) 2)
(ly:staff-symbol-referencer::callback grob)))
\override TabNoteHead #'whiteout = ##f
\remove Clef_engraver
\remove Time_signature_engraver
}
{
% stuff ...
}


Nice. But... it still results in the same ugly (to me) vertical 
alignments: letters with ascendant strokes look nice, letters with 
descendant strokes are aligned by its bottom, letters without ascendants 
or descendants leave a gap between its bottom and the line. See attachment.


% simplified example
\version 2.14.2
\new TabStaff
  \with
  {
tablatureFormat = #fret-letter-tablature-format
\override TabNoteHead #'Y-offset =
  #(lambda (grob)
(+ (/ (ly:staff-symbol-staff-space grob) 2)
  (ly:staff-symbol-referencer::callback grob)))
\override TabNoteHead #'whiteout = ##f
  }
  {
e' f' fis' g' gis' a' ais' b' c'' cis'' d'' dis'' e'' f'' fis'' g'' 
gis''

  }
% end example

Best.
--
Choan Gálvez


tab_letters_above_line.pdf
Description: Adobe PDF document
___
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-09 Thread David Kastrup
Christopher Webster christop...@claytonwebster.net writes:

 A variant of Alex's suggestion (below):

 find . -type d -name [0-9]* -print | while read dir
 do
     (
         cd $dir;
         for f in *.ly
         do
             lilypond $f
         done
     )
 done

find is looking _recursively_, arbitrarily deep.  It is the wrong tool
for the job.

-- 
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-09 Thread Dossy Shiobara
This may or may not do exactly what you want:

find [0-9]* -name '*.ly' -print | while read f; do
cd `dirname $f`
lilypond `basename $f`
done

On 5/9/12 9:39 AM, Christopher Webster wrote:
 /How can I sequentially cd to all subdirectories that start with a number?/

-- 
Dossy Shiobara |  He realized the fastest way to change
do...@panoptic.com |   is to laugh at your own folly -- then you
http://panoptic.com/   |   can let go and quickly move on. (p. 70) 
  * WordPress * jQuery * MySQL * Security * Business Continuity *

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


Re: Adjustment to tablature output

2012-05-09 Thread Christopher Webster



On 2012-05-09 16:01, Choan Gálvez wrote:

. . .

Many thanks for the advice and the link.

In the meantime, I searched this list's archives more 
carefully and

found a solution which works perfectly.

Posted by Neil Puttock on Fri, 8 Apr 2011 20:40:16 +0100 and 
archived at
http://lists.gnu.org/archive/html/lilypond-user/2011-04/msg00187.html 
:



\override TabNoteHead #'Y-offset =
#(lambda (grob)
(+ (/ (ly:staff-symbol-staff-space grob) 2)
(ly:staff-symbol-referencer::callback grob)))
\override TabNoteHead #'whiteout = ##f


What wasn't immediately obvious to me was where to insert that 
fragment,
but I got lucky at the first attempt by putting it inside the 
\with

construct for my TabStaff :

\new TabStaff
\with
{
tablatureFormat = #fret-letter-tablature-format
fretLabels = #luteFretLabels % defined elsewhere by me
stringTunings = #bandoraTuningSet % defined elsewhere by me
\override TabNoteHead #'Y-offset =
#(lambda (grob)
(+ (/ (ly:staff-symbol-staff-space grob) 2)
(ly:staff-symbol-referencer::callback grob)))
\override TabNoteHead #'whiteout = ##f
\remove Clef_engraver
\remove Time_signature_engraver
}
{
% stuff ...
}



Nice. But... it still results in the same ugly (to me) vertical 
alignments: letters with ascendant strokes look nice, letters 
with descendant strokes are aligned by its bottom, letters 
without ascendants or descendants leave a gap between its 
bottom and the line. See attachment.


% simplified example
\version 2.14.2
\new TabStaff
  \with
  {
tablatureFormat = #fret-letter-tablature-format
\override TabNoteHead #'Y-offset =
  #(lambda (grob)
(+ (/ (ly:staff-symbol-staff-space grob) 2)
  (ly:staff-symbol-referencer::callback grob)))
\override TabNoteHead #'whiteout = ##f
  }
  {
e' f' fis' g' gis' a' ais' b' c'' cis'' d'' dis'' e'' f'' 
fis'' g'' gis''

  }
% end example

Best.


Yes, I agree.  There's always scope for stuff to be even better, 
and this too could be even better.


It solves my immediate problem, though.  I want something I can 
compare against a facsimile original (and other candidate 
sources), and then play from (on a bass viol in an obscure 
/scordatura/), rather than something to publish for others.  This 
meets both those needs.  Believe me, it's _much_ easier to read 
than the original.


Thanks again.  All the best.

Christopher W.



___
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-09 Thread Christopher Webster

-
*From*: David Kastrup
*Subject*: 	Re: (somewhat OT:) lilypond calling bash script 
questions

*Date*: Wed, 09 May 2012 16:01:54 +0200
*User-agent*:   Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux)

-
Christopher Websteraddress@hidden  writes:

/  A variant of Alex's suggestion (below):/

/  find . -type d -name [0-9]* -print | while read dir/
/  do/
/   (/
/   cd $dir;/
/   for f in *.ly/
/   do/
/   lilypond $f/
/   done/
/   )/
/  done/

find is looking _recursively_, arbitrarily deep.  It is the wrong tool
for the job.

--
David Kastrup

Apologies.  My misunderstanding.  I thought that recursion was 
the desired behaviour.  If not, then something more like this 
should do it:


for d in [0-9]*
do
if test -d $d
then
(
cd $d
for f in *.ly
do
lilypond $f
done
)
fi
done

Once again, I've typed this straight into the mail client without 
testing, so the obvious risks are present.


All the best

Christopher W.


___
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-09 Thread Urs Liska

Thanks all for the generous feedback.

But the very simple solution that Jonas Olson posted quite early solved 
the issue.

for dir in [0-9]*/; was is exactly what I needed.

Best
Urs

Am 09.05.2012 16:31, schrieb Christopher Webster:


*From*: David Kastrup
*Subject*:  Re: (somewhat OT:) lilypond calling bash script questions
*Date*: Wed, 09 May 2012 16:01:54 +0200
*User-agent*:   Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux)


Christopher Websteraddress@hidden  writes:

/  A variant of Alex's suggestion (below):/

/  find . -type d -name [0-9]* -print | while read dir/
/  do/
/   (/
/   cd $dir;/
/   for f in *.ly/
/   do/
/   lilypond $f/
/   done/
/   )/
/  done/

find is looking _recursively_, arbitrarily deep.  It is the wrong tool
for the job.

--
David Kastrup

Apologies.  My misunderstanding.  I thought that recursion was the 
desired behaviour.  If not, then something more like this should do it:


for d in [0-9]*
do
if test -d $d
then
(
cd $d
for f in *.ly
do
lilypond $f
done
)
fi
done

Once again, I've typed this straight into the mail client without 
testing, so the obvious risks are present.


All the best

Christopher W.




___
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: is shapeSlur broken?

2012-05-09 Thread Urs Liska

Hi David,

now I tested your new function.
OK, I didn't test more than the sources you provided, but I think they 
give all the necessary combinations.


So my conclusion is: This is awesome!

I won't ever live without this (as long as LilyPond is concerned) 
anymore - as long as it won't get broken by new versions.


One idea to make it even more comfortable and generic to use would be 
not to hard-code the color within the function.
If one could somehow set the color outside the function one could 
personalize it to ones needs.


As this is kind of a library thing, I think it isn't necessary to make 
this settable at runtime through the function call.
Maybe one could define a variable for the color above the function, 
setting #black as default.
Then anybody can easily see how to adapt it even if she/he doesn't 
understand the function itself.
Ah, I just realized that this way one could still set the color in the 
music source by redefininge the variable ...


I would be happy about this enhancement.
But I really have to admit that this is quite low priority because the 
function is already extremely helpful.


Best and thanks again
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


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


Re: Adjustment to tablature output

2012-05-09 Thread Carl Sorensen
On 5/9/12 8:01 AM, Choan Gálvez choan.gal...@gmail.com wrote:


Nice. But... it still results in the same ugly (to me) vertical
alignments: letters with ascendant strokes look nice, letters with
descendant strokes are aligned by its bottom, letters without ascendants
or descendants leave a gap between its bottom and the line. See
attachment.

The challenge is that note heads are intended to be centered vertically on
the desired placement.  And apparently your usage for tablature is to have
the fret labels *rest* on the staff line, rather than be *centered* in the
staff gap.

This is potentially resolvable, because markup text does have a baseline
reference.  It will require something more than adding the offset, however.

Probably a new stencil function should be defined, and the stencil
property of the TabNoteHead overwritten.

I don't have time to write the new function right now, but I hope that
pointing you (or others) in the right direction may help.

Thanks,

Carl


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


Re: Installing LilyPond fonts for use in programs under Windows 7

2012-05-09 Thread Carl Sorensen
On 5/9/12 3:23 AM, Philip Thomas philip.tho...@bluewin.ch wrote:

philip.tho...@bluewin.ch wrote:

 And by the way, what is the relationship between Feta and Emmentaler?

Han-Wen 
Nienhuys replied:

feta was the original Type1 font.  Since Type1 fonts can only hold 256
entries, we had several of
them.  Later we unified them into
Emmentaler (a big cheese) which has all the glyphs in a single font.

Nice! -- 
especially since feta cheese has been a protected designation of origin
product in the European Union since 2002,
whereas the name Emmentaler is not protected and thus available for any
cheesemaker to use. The metaphor can easily
get stretched too far, though: Emmentaler cheese is characteristically
full of holes ...

And the Emmentaler font is also full of holes.  It doesn't cover all of
the standard code points.

Thanks,

Carl


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


Re: is shapeSlur broken?

2012-05-09 Thread David Nalesnik
Hi Urs,

On Wed, May 9, 2012 at 10:13 AM, Urs Liska li...@ursliska.de wrote:

  Hi David,

 now I tested your new function.
 OK, I didn't test more than the sources you provided, but I think they
 give all the necessary combinations.

 So my conclusion is: This is awesome!

 I won't ever live without this (as long as LilyPond is concerned) anymore
 - as long as it won't get broken by new versions.


Great!  I'm very happy to hear this!


 One idea to make it even more comfortable and generic to use would be not
 to hard-code the color within the function.
 If one could somehow set the color outside the function one could
 personalize it to ones needs.

 As this is kind of a library thing, I think it isn't necessary to make
 this settable at runtime through the function call.
 Maybe one could define a variable for the color above the function,
 setting #black as default.
 Then anybody can easily see how to adapt it even if she/he doesn't
 understand the function itself.
 Ah, I just realized that this way one could still set the color in the
 music source by redefininge the variable ...

 I would be happy about this enhancement.
 But I really have to admit that this is quite low priority because the
 function is already extremely helpful.


This isn't difficult to do.  As you say, you could define a variable for
color above the function.  All you would need to do then is replace red
with the name of the variable in the two places it occurs.  In the attached
file, I do this and give several ways of specifying the color you want.
 (Of course, it's the last definition that is actually used.)


 Best and thanks again

 Urs


You're very welcome!

Best,
David


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


[ANN] Schumann - Album for the Young. Version 1. (in French or German)

2012-05-09 Thread Phil Hézaine

Hi all,

This publication comes in 2 forms:

 a version with FINGERING

 a version without FINGERING

so the pianists, whichever they are students or professors, will use it 
at their convenience, at least let's hope so.


You should also be noted that this publication is currently available 
(09/May/2012) in 2 languages:


   in French

   in German

A complete edition in another language can be easily seen if you know 
translate yourself the French or German language. If you are interested 
or want to learn more, write me. I'll address you then a list already 
easy to translate expressions.


The Album for the Youth of Robert Schumann is published under the terms 
of the free Art license, see:


http://www.artlibre.org/licence/lal/ (fr, en, de, es, pt, it)


The Lilypond source + midi into the pdfs are in tar.bz2 format. Problems 
with unpacking of this format (on Windows or Mac), you will find them in 
zip format on the site.


Download at the following address:

http://superbonus.project.free.fr/spip.php?article50

Be happy.
Phil.

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


RE: pngtopnm missing?

2012-05-09 Thread Chris Crossen
That's what I tried first. It works, but the .PNG files don't look anywhere
near as good as the PDFs. I was trying to get a good-looking .PNG file with
the -danti-alias-factor=2 parameter.

 

From: Phil Holmes [mailto:m...@philholmes.net] 
Sent: Wednesday, May 09, 2012 0:46
To: Chris Crossen; lilypond-user@gnu.org
Subject: Re: pngtopnm missing?

 

I don't know why this happens, but you can cure it simply by replacing all
the other options you're using with -fpng:

 

lilypond -fpng test.ly


--
Phil Holmes

 

 

- Original Message - 

From: Chris Crossen mailto:ch...@crossen.net  

To: lilypond-user@gnu.org 

Sent: Tuesday, May 08, 2012 4:30 AM

Subject: pngtopnm missing?

 

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

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


Re: Adjustment to tablature output

2012-05-09 Thread David Nalesnik
Hi,

On Wed, May 9, 2012 at 10:13 AM, Carl Sorensen c_soren...@byu.edu wrote:

 On 5/9/12 8:01 AM, Choan Gálvez choan.gal...@gmail.com wrote:

 
 Nice. But... it still results in the same ugly (to me) vertical
 alignments: letters with ascendant strokes look nice, letters with
 descendant strokes are aligned by its bottom, letters without ascendants
 or descendants leave a gap between its bottom and the line. See
 attachment.

 The challenge is that note heads are intended to be centered vertically on
 the desired placement.  And apparently your usage for tablature is to have
 the fret labels *rest* on the staff line, rather than be *centered* in the
 staff gap.

 This is potentially resolvable, because markup text does have a baseline
 reference.  It will require something more than adding the offset, however.

 Probably a new stencil function should be defined, and the stencil
 property of the TabNoteHead overwritten.

 I don't have time to write the new function right now, but I hope that
 pointing you (or others) in the right direction may help.


I'm not confident I understand how you'd like the letters to align.  If you
want the bottom-most point of the letters to touch the staff line (even
though this means that they won't line up as in the text I'm typing now),
then the stencil override Carl mentions might be achieved like this:

\new TabStaff
 \with
 {
   tablatureFormat = #fret-letter-tablature-format
   \override TabNoteHead #'whiteout = ##f
 }
 {
   \override TabNoteHead #'stencil = #(lambda (grob)
 (ly:stencil-translate-axis
   (ly:stencil-aligned-to (tab-note-head::print grob) Y -1)
   (ly:staff-symbol-line-thickness grob) Y))
   e' f' fis' g' gis' a' ais' b' c'' cis'' d'' dis'' e'' f'' fis'' g'' gis''
 }

For some reason, the override won't work for me inside the \with block.

Do you want some separation between the characters and the staff line?  If
not, the line-thickness of the staff line should be halved.

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


Re: Adjustment to tablature output

2012-05-09 Thread Christopher Webster

Thank you, David.

I must preface my remarks by saying that I'm no expert in lute 
tablature, and by repeating that my immediate needs are met by 
what I now know how to ask LilyPond to do for me.


But I think a typical example of what one might ideally achieve 
is at 
http://tony.c.pagesperso-orange.fr/fretful/Viol/Hume/PDF/111ThePrincesAlmayne.pdf 
or any of the other files linked from 
http://tony.c.pagesperso-orange.fr/fretful/ViolPage.htm#table .  
Those seem to have been typeset by a program named StringWalker, 
which I think has been superseded by one named Django.  (See 
http://musickshandmade.com/projects/DjangoDemo/Help/html/djangoversusstringwalker.html).


All the best

/Christopher/.

On 2012-05-10 02:09, David Nalesnik wrote:


Hi,

On Wed, May 9, 2012 at 10:13 AM, Carl Sorensen 
c_soren...@byu.edu mailto:c_soren...@byu.edu wrote:


On 5/9/12 8:01 AM, Choan Gálvez choan.gal...@gmail.com
mailto:choan.gal...@gmail.com wrote:


Nice. But... it still results in the same ugly (to me)
vertical
alignments: letters with ascendant strokes look nice,
letters with
descendant strokes are aligned by its bottom, letters
without ascendants
or descendants leave a gap between its bottom and the
line. See
attachment.

The challenge is that note heads are intended to be
centered vertically on
the desired placement.  And apparently your usage for
tablature is to have
the fret labels *rest* on the staff line, rather than be
*centered* in the
staff gap.

This is potentially resolvable, because markup text does
have a baseline
reference.  It will require something more than adding the
offset, however.

Probably a new stencil function should be defined, and the
stencil
property of the TabNoteHead overwritten.

I don't have time to write the new function right now, but
I hope that
pointing you (or others) in the right direction may help.


I'm not confident I understand how you'd like the letters to 
align.  If you want the bottom-most point of the letters to 
touch the staff line (even though this means that they won't 
line up as in the text I'm typing now), then the stencil 
override Carl mentions might be achieved like this:


\new TabStaff
 \with
 {
   tablatureFormat = #fret-letter-tablature-format
   \override TabNoteHead #'whiteout = ##f
 }
 {
   \override TabNoteHead #'stencil = #(lambda (grob)
 (ly:stencil-translate-axis
   (ly:stencil-aligned-to (tab-note-head::print grob) Y -1)
   (ly:staff-symbol-line-thickness grob) Y))
   e' f' fis' g' gis' a' ais' b' c'' cis'' d'' dis'' e'' f'' 
fis'' g'' gis''

 }

For some reason, the override won't work for me inside the 
\with block.


Do you want some separation between the characters and the 
staff line?  If not, the line-thickness of the staff line 
should be halved.


HTH,
David


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


Re: Adjustment to tablature output

2012-05-09 Thread Carl Sorensen
On 5/9/12 6:09 PM, David Nalesnik david.nales...@gmail.com wrote:


Hi,

On Wed, May 9, 2012 at 10:13 AM, Carl Sorensen
c_soren...@byu.edu wrote:

On 5/9/12 8:01 AM, Choan Gálvez choan.gal...@gmail.com wrote:


Nice. But... it still results in the same ugly (to me) vertical
alignments: letters with ascendant strokes look nice, letters with
descendant strokes are aligned by its bottom, letters without ascendants
or descendants leave a gap between its bottom and the line. See
attachment.


The challenge is that note heads are intended to be centered vertically on
the desired placement.  And apparently your usage for tablature is to have
the fret labels *rest* on the staff line, rather than be *centered* in the
staff gap.

This is potentially resolvable, because markup text does have a baseline
reference.  It will require something more than adding the offset,
however.

Probably a new stencil function should be defined, and the stencil
property of the TabNoteHead overwritten.

I don't have time to write the new function right now, but I hope that
pointing you (or others) in the right direction may help.




I'm not confident I understand how you'd like the letters to align.  If
you want the bottom-most point of the letters to touch the staff line
(even though this means that they won't line up as in the text I'm typing
now), then the stencil override Carl
 mentions might be achieved like this:


\new TabStaff
 \with
 {
   tablatureFormat = #fret-letter-tablature-format
   \override TabNoteHead #'whiteout = ##f
 }
 {
   \override TabNoteHead #'stencil = #(lambda (grob)
 (ly:stencil-translate-axis
   (ly:stencil-aligned-to (tab-note-head::print grob) Y -1)
   (ly:staff-symbol-line-thickness grob) Y))
   e' f' fis' g' gis' a' ais' b' c'' cis'' d'' dis'' e'' f'' fis'' g''
gis''
 }



For some reason, the override won't work for me inside the \with block.


Do you want some separation between the characters and the staff line?
If not, the line-thickness of the staff line should be halved.

I'm pretty sure he wants to use the *baseline* of the characters to align
relative to the staff line.  So you can't use tab-note-head::print, since
it centers the *total extent* of the characters.

You need to find the character lookup from tab-note-head::print, and use
the character lookup to get the markup to be displayed, and offset that
from the staff line.  You'll have to do all the calculations to get to the
right string, I think.

I may be able to look at this some this weekend.

Thanks,

Zcarl


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