Re: Thin bars

2009-01-19 Thread Dmytro O. Redchuk
Hello,

here is the doc:
http://lilypond.org/doc/v2.12/Documentation/user/lilypond-internals/BarLine#BarLine

and snip:
% -
\layout {
\context {
\Score
\override BarLine #'hair-thickness = #0.1
\override BarLine #'thick-thickness = #0.3
% -

These are *too* thin.

2009/1/20 Fibonacci Prower :
> Well, I just tried printing the document with Adobe Reader under
> WinXP. At least the bars have just the right length, but they still
> look too thick.
> Even if I still used Evince, I could take care of that if there were
> any way to hand-tune the length and thickness of the bars. How do I do
> that?
>
> 2009/1/19 Francisco Vila :
>> These links show already filed bugs on the issue. I am completely sure
>> that I myself filed a bug on poppler or libpoppler regarding to the
>> lilypond barlines, but I cannot find the URL despite of having been
>> searching for half an hour now.
>>
>> Poppler is the PDF rendering library of evince, if I'm not wrong.
>>
>> The bug is annoying because evince is the default document viewer in
>> Ubuntu and printed LilyPond scores are very ugly even on
>> high-resolution printers (or monitors!) when printed (or viewed!) with
>> evince.
>>
>> [Bug 247113] [NEW] vertical bars are too thick
>> http://www.archivum.info/ubuntu-b...@lists.ubuntu.com/2008-07/msg10441.html
>>
>> vertical bars are too thick
>> https://bugs.launchpad.net/ubuntu/+source/poppler/+bug/247113
>> --
>> Francisco Vila. Badajoz (Spain)
>> http://www.paconet.org
> --
> $0='!/msfQ0yjoV!fe!sfldbi!psup!pmpT'x19xor print+map{("\e[7m \e[0m",
> chr ord(chop$0)-1)[$_].("\n")[++$i%72]}split//,unpack'B*',pack'H*',(
> $P='F'x18)."8186078739E1F0F0E19FCF19CCE6667383CF0733099E67E7F39"
> ."FCF218067E7F39FCF319E739F860787399E70F0E1$P"#Perl rulz

-- 
Dmytro O. Redchuk


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


Re: Thin bars

2009-01-19 Thread Fibonacci Prower
Well, I just tried printing the document with Adobe Reader under
WinXP. At least the bars have just the right length, but they still
look too thick.
Even if I still used Evince, I could take care of that if there were
any way to hand-tune the length and thickness of the bars. How do I do
that?

2009/1/19 Francisco Vila :
> These links show already filed bugs on the issue. I am completely sure
> that I myself filed a bug on poppler or libpoppler regarding to the
> lilypond barlines, but I cannot find the URL despite of having been
> searching for half an hour now.
>
> Poppler is the PDF rendering library of evince, if I'm not wrong.
>
> The bug is annoying because evince is the default document viewer in
> Ubuntu and printed LilyPond scores are very ugly even on
> high-resolution printers (or monitors!) when printed (or viewed!) with
> evince.
>
> [Bug 247113] [NEW] vertical bars are too thick
> http://www.archivum.info/ubuntu-b...@lists.ubuntu.com/2008-07/msg10441.html
>
> vertical bars are too thick
> https://bugs.launchpad.net/ubuntu/+source/poppler/+bug/247113
> --
> Francisco Vila. Badajoz (Spain)
> http://www.paconet.org
>
>
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> http://lists.gnu.org/mailman/listinfo/lilypond-user
>



-- 
$0='!/msfQ0yjoV!fe!sfldbi!psup!pmpT'x19xor print+map{("\e[7m \e[0m",
chr ord(chop$0)-1)[$_].("\n")[++$i%72]}split//,unpack'B*',pack'H*',(
$P='F'x18)."8186078739E1F0F0E19FCF19CCE6667383CF0733099E67E7F39"
."FCF218067E7F39FCF319E739F860787399E70F0E1$P"#Perl rulz


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


Re: tuplet bracket required, override doesn't work?

2009-01-19 Thread Jonathan Kulp

Joe Neeman wrote:

On Mon, 2009-01-19 at 18:34 -0600, Jonathan Kulp wrote:

Tom Hall wrote:

Hello List

A triplet that begins with a quaver (8) rest, followed by a crotchet (4) note,
by default prints no bracket. This I thought unusual, more so that an overide as
below seems to make no change either. Is there a simple way to have brackkets
print by default in such cases?

\override TupletBracket #'bracket-visibility = ##t

\times 2/3 { r8 e4 }

%Build 2.12.1-1, OSX.4.11 PPC

Regards

Tom

Strange.  Notice that the bracket appears in all of these except the 
situation Tom gave:


I suspect it's because the r8 e4 example is too narrow. It is the
narrowest of all these examples, so there is probably not enough room
for the tuplet bracket. I'd suggest that the best solution in this case
would be to widen the tuplet bracket rather than suppressing it.

Joe



I think you're right, Joe.  Kieren's suggestion on the other thread 
"spacer notes question" helps here, too.  Adding a little X extent fixes 
the problem:


\times 2/3{ r8 \once \override Stem #'X-extent = #'(-1 . 2) e4 }

Thanks!

Jon

--
Jonathan Kulp
http://www.jonathankulp.com


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


Re: tuplet bracket required, override doesn't work?

2009-01-19 Thread Joe Neeman
On Mon, 2009-01-19 at 18:34 -0600, Jonathan Kulp wrote:
> Tom Hall wrote:
> > Hello List
> > 
> > A triplet that begins with a quaver (8) rest, followed by a crotchet (4) 
> > note,
> > by default prints no bracket. This I thought unusual, more so that an 
> > overide as
> > below seems to make no change either. Is there a simple way to have 
> > brackkets
> > print by default in such cases?
> > 
> > \override TupletBracket #'bracket-visibility = ##t
> > 
> > \times 2/3 { r8 e4 }
> > 
> > %Build 2.12.1-1, OSX.4.11 PPC
> > 
> > Regards
> > 
> > Tom
> > 
> 
> Strange.  Notice that the bracket appears in all of these except the 
> situation Tom gave:

I suspect it's because the r8 e4 example is too narrow. It is the
narrowest of all these examples, so there is probably not enough room
for the tuplet bracket. I'd suggest that the best solution in this case
would be to widen the tuplet bracket rather than suppressing it.

Joe




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


Re: spacing notes question

2009-01-19 Thread Chip

Thanks Kieren,
That's definately a keeper in my mailbox. I was looking at everything 
about spacer notes and spacer rests trying to get something to work 
there and nothing did. Your solution is perfect.

Thanks,
Chip

Kieren MacMillan wrote:

Hi Chip,


How do I resolve this?


When it comes to spacing, I only resort to "spacer notes" in rare 
circumstances — instead, I prefer to manipulate the X-extent of the 
objects, to force the space I need. Here's an example in this case:


%
\version "2.12.0"
\include "english.ly"
music =
{
r16 a a8 a16 a8 g16-\bendAfter #-4 \bar "|"
}
\score
{
\music
}

noteFix = { \once \override Stem #'X-extent = #'(2 . 10) }
fixedMusic =
{
r16 a a8 a16 a8 \noteFix g16-\bendAfter #-4 \bar "|"
}
\score
{
\fixedMusic
}
%

Hope this helps!
Kieren.

__ Information from ESET NOD32 Antivirus, version of virus 
signature database 3777 (20090119) __


The message was checked by ESET NOD32 Antivirus.

http://www.eset.com








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


Re: tuplet bracket required, override doesn't work?

2009-01-19 Thread Jonathan Kulp

Tom Hall wrote:

Hello List

A triplet that begins with a quaver (8) rest, followed by a crotchet (4) note,
by default prints no bracket. This I thought unusual, more so that an overide as
below seems to make no change either. Is there a simple way to have brackkets
print by default in such cases?

\override TupletBracket #'bracket-visibility = ##t

\times 2/3 { r8 e4 }

%Build 2.12.1-1, OSX.4.11 PPC

Regards

Tom



Strange.  Notice that the bracket appears in all of these except the 
situation Tom gave:


\version "2.12.1"

\relative c'' {

%\override TupletBracket #'bracket-visibility = ##t

c8 d \times 2/3{ r8 e4 } \times 2/3{ r4 e8 } \times 2/3{ r8 e e }
\times 2/3{r4 e e } \times 2/3{e8 e4 }
}

I thought at first that it didn't like something about the combination 
of the 8th + quarter durations in a tuplet, but the last example has 
those durations and the bracket appears.  It only leaves the bracket out 
if it's an 8th rest followed by a quarter note.  The quarter rest 
followed by 8th note has a bracket.


Jon
--
Jonathan Kulp
http://www.jonathankulp.com
<>___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: spacing notes question

2009-01-19 Thread Kieren MacMillan

Hi Chip,


How do I resolve this?


When it comes to spacing, I only resort to "spacer notes" in rare  
circumstances — instead, I prefer to manipulate the X-extent of the  
objects, to force the space I need. Here's an example in this case:


%
\version "2.12.0"
\include "english.ly"
music =
{
r16 a a8 a16 a8 g16-\bendAfter #-4 \bar "|"
}
\score
{
\music
}

noteFix = { \once \override Stem #'X-extent = #'(2 . 10) }
fixedMusic =
{
r16 a a8 a16 a8 \noteFix g16-\bendAfter #-4 \bar "|"
}
\score
{
\fixedMusic
}
%

Hope this helps!
Kieren.

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


spacing notes question

2009-01-19 Thread Chip

r16 a a8 a16 a8 g16-\bendAfter #-4

In the above snippet the drop at the end of the measure is cut short by 
the barline. I reviewed the info in the manuals about spacer notes but 
just don't get how to insert a little extra space between the barline 
and the drop. Right now the drop line gets cut very short, almost to a 
drop glissando. I've tried adding s8 or s16 etc but that just results in 
a measure error.

How do I resolve this?
--
Thanks,
Chip


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


tuplet bracket required, override doesn't work?

2009-01-19 Thread Tom Hall

Hello List

A triplet that begins with a quaver (8) rest, followed by a crotchet (4) note,
by default prints no bracket. This I thought unusual, more so that an overide as
below seems to make no change either. Is there a simple way to have brackkets
print by default in such cases?

\override TupletBracket #'bracket-visibility = ##t

\times 2/3 { r8 e4 }

%Build 2.12.1-1, OSX.4.11 PPC

Regards

Tom





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


Re: Suggestion for Notation Reference

2009-01-19 Thread Mats Bengtsson

Jonathan Kulp wrote:




I don't know.  This is definitely a strange example.  The \mark 
command is meant to insert something over a barline, so maybe it'd be 
best to delete this example altogether and reword things a bit so that 
the example with "colla parte" is the only one illustrating this feature.

Agreed! It's very rare to insert textual indications between
the notes within a measure (where, on the other hand, it's
not uncommon to attach textual indications to a specific
note, i.e. using a text script). You might want to replace
"colla parte" with "Coda", but again it's very hard to illustrate
the usefulness of using \mark for textual indications if you're
not allowed to change the alignment to #LEFT or #RIGHT.
I'm not convinced that it's less confusing to avoid the use of
\override and instead provide more or less irrelevant examples
of useful features.

   /Mats



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


Re: Suggestion for Notation Reference

2009-01-19 Thread Jonathan Kulp

Lasse Rempe wrote:




How about "(Reprise)", which is similar to the structural indications 
that the \mark command is meant for? Image attached.  If this looks 
o.k. then I'll make the patch.


I will reiterate my opinion that, in the attached snippet, a reader 
would interpret the text to correspond to the beginning of the second 
bar, whereas logically in the lilypond file it would come _after_ the 
first note. Am I the only one who thinks it is not clean to document 
this as a standard solution?


I don't know.  This is definitely a strange example.  The \mark command 
is meant to insert something over a barline, so maybe it'd be best to 
delete this example altogether and reword things a bit so that the 
example with "colla parte" is the only one illustrating this feature.


Jon

--
Jonathan Kulp
http://www.jonathankulp.com


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


Re: Suggestion for Notation Reference

2009-01-19 Thread Lasse Rempe




How about "(Reprise)", which is similar to the structural indications 
that the \mark command is meant for? Image attached.  If this looks 
o.k. then I'll make the patch.


I will reiterate my opinion that, in the attached snippet, a reader 
would interpret the text to correspond to the beginning of the second 
bar, whereas logically in the lilypond file it would come _after_ the 
first note. Am I the only one who thinks it is not clean to document 
this as a standard solution?



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


Re: Suggestion for Notation Reference

2009-01-19 Thread Jonathan Kulp

Graham Percival wrote:

On Sun, Jan 18, 2009 at 08:27:52PM +0100, Reinhold Kainhofer
wrote:

-BEGIN PGP SIGNED MESSAGE- Hash: SHA1

Am Sonntag, 18. Januar 2009 19:32:45 schrieb Lasse Rempe:

In 1.8.1, the following is used as an example for text marks:

c4 \mark "Allegro" c c c

Tempo indications should not use \mark anyway. They should use
\tempo "Allegro" instead. (Mis-)Using \mark in our official
documentation is a bug in my eyes.


+1

Jonathan, please change this to something else.

Cheers,
- Graham



How about "(Reprise)", which is similar to the structural indications 
that the \mark command is meant for? Image attached.  If this looks o.k. 
then I'll make the patch.


Jon

--
Jonathan Kulp
http://www.jonathankulp.com
<>___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Suggestion for Notation Reference

2009-01-19 Thread Graham Percival
On Sun, Jan 18, 2009 at 08:27:52PM +0100, Reinhold Kainhofer
wrote:
> -BEGIN PGP SIGNED MESSAGE- Hash: SHA1
> 
> Am Sonntag, 18. Januar 2009 19:32:45 schrieb Lasse Rempe:
> > In 1.8.1, the following is used as an example for text marks:
> >
> > c4 \mark "Allegro" c c c
> 
> Tempo indications should not use \mark anyway. They should use
> \tempo "Allegro" instead. (Mis-)Using \mark in our official
> documentation is a bug in my eyes.

+1

Jonathan, please change this to something else.

Cheers,
- Graham


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


Re: Suggestion for Notation Reference

2009-01-19 Thread Lasse Rempe

Reinhold Kainhofer wrote:
No, \mark is mainly used for naming subparts A, B, C, ... These marks are 
centered over the bar line.


Cheers,
Reinhold
Yes, I am aware of this (this is the only thing I use it for, in fact). 
However, the section in question discusses placing more expansive text 
(i.e. full words such as "Allegro", "colla parte", etc.) using the mark 
command. My comment was related to this, not the standard usage for 
rehearsal marks. If no-one considers this a common usage, perhaps it 
should not be in the main part of the "Text mark" section, or at least 
the section should not begin with it?


Lasse



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


Re: "circa" metronome mark

2009-01-19 Thread James E. Bailey


Am 19.01.2009 um 20:27 schrieb J. Van Thuyne:

As the subjoined code obviously isn't working, how exactly would  
you code this

in a correct manner?

   \tempo "Grave, solemn." 2 = 54-56

I presume this property will only accept numbers, not a minus sign.  
How can it

be overridden?

Best regards,

Jethro.

You'd have to do it as a markup. It won't playback correctly,  
obviously, but you can use the old markup way to specify this kind of  
tempo.



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


Re: Suggestion for Notation Reference

2009-01-19 Thread Reinhold Kainhofer
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Am Montag, 19. Januar 2009 02:23:51 schrieb Lasse Rempe:
> Would you consider "Menuetto" / "Trio" as appropriate uses of the \mark
> command? If so, these could perhaps be used in the example.
>
> But even in these cases I would suggest that text in the \mark command,
> unless it comes at the beginning of a line (e.g. at the start of a
> piece) would not usually be centered over the barline it is associated
> to, but rather left-aligned. Do you not agree?

No, \mark is mainly used for naming subparts A, B, C, ... These marks are 
centered over the bar line.

Cheers,
Reinhold
- -- 
- --
Reinhold Kainhofer, reinh...@kainhofer.com, http://reinhold.kainhofer.com/
 * Financial & Actuarial Math., Vienna Univ. of Technology, Austria
 * http://www.fam.tuwien.ac.at/, DVR: 0005886
 * LilyPond, Music typesetting, http://www.lilypond.org
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)

iD8DBQFJdNiyTqjEwhXvPN0RAtYwAKC9qyBwNDqFfKSr0eYRGYQBSJVTKQCeN1wc
Z4LHE+04NGWXEXg+m2Tpyd4=
=t+0t
-END PGP SIGNATURE-


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


"circa" metronome mark

2009-01-19 Thread J . Van Thuyne
As the subjoined code obviously isn't working, how exactly would you code this
in a correct manner?

   \tempo "Grave, solemn." 2 = 54-56

I presume this property will only accept numbers, not a minus sign. How can it
be overridden?

Best regards,

Jethro.



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


Re: \skip substitute in lyrics?

2009-01-19 Thread Paul Scott

Alberto Simões wrote:

Kieren MacMillan wrote:
  

Hi Alberto



Is there any way to compact this kind of construct?
  

The simplest way is probably

sopWordsB = \lyricmode {
  \repeat "unfold" 48 { \skip 4 }
  Re- cor- da- ...
}



1. Would s4 work for \skip 4?  I haven't \skip for many many versions 
since 's' became functional enough.


2. I usually use _ (underscore) to skip applying a lyric syllable to a 
note.  ( \repeat unfold nn _  )


3. Are the quotes on "unfold" necessary?  I don't put quotes on volta, 
unfold or percent and haven't for qui9tes a while.


Paul Scott




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


Re: lilypond-user Digest, Vol 74, Issue 101

2009-01-19 Thread Tim Reeves
> 
> On Fri, 16 Jan 2009 11:59:47 -0700
> Andrew Hawryluk  wrote:
> 
> > Evince has a problem with the barlines (it's a bug). On Ubuntu, I work
> > in Evince while I'm writing, but I print the final PDF from Adobe
> > Acrobat.
> 
> xpdf also does a good job and is lighter than Acroread.  It's in the 
repos.
> 
> -- 
> Nicholas WASTELL
> France
> 
> 

Ha. Microsoft Office and Open Office are "lighter" than Adobe Reader 9! 
(At least on WinXP) It boggles the mind.
I installed Adobe Reader the other day, and when I saw how big it was, I 
promptly uninstalled it and found a free and more functional replacement.


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


Re: splitting chords entered as <>^"with stuff" \etc

2009-01-19 Thread Tim Woodall

On Mon, 19 Jan 2009, Carl D. Sorensen wrote:



I find \relative to work quite nicely for chords, once I understood that
the first note in a chord gets its octave from the first note of the
previous chord.  I use \relative mode virtually exclusively for note entry,
regardless of whether it's in single notes or using the chord construct < >.
I do use absolute when I'm in chordmode.


I learned quite a lot writing the script. I had assumed that it was the
interval that was important in deciding whether a note was higher or
lower than the previous note but I now know that it's based on the note
names and ignores accidentals.

So ceses->fisis will go up while cisis->geses will go down. It's obvious
once you've worked it out but I'd been getting away with fifth (7
semitones)=down, fourth(5 semitones)=up which works in almost all cases
in classical music.  A six semitone interval is fairly unusual and I had
guessed that there would be a setting to decide which way it want
\augfourdown, \augfourup or something like that.

(That explains some of the apparently odd ways I've done some things in
the script. Initially I was converting notes to numbers 0..11 but that's
no use when you need to distinguish between Gb and F# to calculate
whether a ' or , is required.)

Tim.

--
God said, "div D = rho, div B = 0, curl E = - @B/@t, curl H = J + @D/@t,"
and there was light.

   http://www.woodall.me.uk/


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


Re: splitting chords entered as <>^"with stuff" \etc

2009-01-19 Thread David Raleigh Arnold
On Monday 19 January 2009, Carl D. Sorensen wrote:

> This statement is not true when trying to split relative chords and
> produce parallel relative voices, because of the way lilypond works.
> 
> The octave on the first note of a chord in relative mode is determined
> by comparison with the first note of the previous chord.

Back in the day that was not true. I forgot. I don't know whether it
was before or after the change from <<>> to <>. It is no problem to run
the very simple procedure on each first note of each chord and then
on the rest of each chord before splitting, getting all of the absolute
pitches. Two lines of sed, max, would get the punctuation.
Then split as done already. The point is that all of the information is 
there, and it is not necessary to crunch the pitches in any way.  It is 
not necessary to have any expressions of octave other than ,' and their 
absence. Absolute to relative might be more difficult
than the opposite, but I doubt it. I haven't given that any thought.  

Looks as simple as subtracting from the next note instead of adding.

Regards, daveA

-- 
Free download of technical exercises worth a lifetime of practice:
http://www.openguitar.com/dynamic.html  You can play the cards
you're dealt, or improve your hand with DGT.  Very easy guitar
music, solos, duets, exercises.., To contact, visit openguitar.com


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


Re: Whole note tremolo repeats - bug ?

2009-01-19 Thread Simon Bailey

hi,

On Jan 18, 2009, at 10:21 PM, Mats Bengtsson wrote:


Werner LEMBERG wrote:


Looking into the full score of Strauss's `Salome', I can confirm that
(it's one bar before rehearsal number 68, page 50): the position of a
whole note tremolo is exactly the same as if there were a stem.


This is exactly the rule that's formulated in the book "Noter"
by Börje Tyboni (comprehensive Swedish book on music notation,
which usually is trustworthy) - "the position of a whole note tremolo
is the same as if there were a stem".


berlioz's treatise on modern instrumentation also shows the tremolos  
placed as if they were on a stem. see attachment or the source at http://tinyurl.com/9ovrcy 
 (link through to google books). (berlioz may not be authoritative,  
but there are lots of examples of specialist notation in there).


regards,
sb
--
Simon Bailey
Oompa Loompa of Science
+43 699 190 631 25
<>___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: splitting chords entered as <>^"with stuff" \etc

2009-01-19 Thread Carl D. Sorensen



On 1/19/09 5:05 AM, "David Raleigh Arnold"  wrote:

> On Sunday 18 January 2009, Tim Woodall wrote:
>> And, of course, I found some bugs as soon as I'd posted.
>> 
>> Quick breakdown of how it works incase anyone really wants to hack on
>> it.

> Wow. I am impressed, honestly. I am not a programmer, but whether notes
> are written in \relative or absolute pitch all of the information is
> already present. I don't think it is necessary to do anything
> but carry all "," and "'" marks to all following pitches and reduce.
> 
> \relative --> absolute --> reduce
> a, b a c ... --> a, b, a, c, ...
> a,, b' a, c  --> a,, b,,' a,,', c,,', --> a,, b, a,, c,,
> 

This statement is not true when trying to split relative chords and produce
parallel relative voices, because of the way lilypond works.

The octave on the first note of a chord in relative mode is determined by
comparison with the first note of the previous chord.  The octave on
successive notes in a chord is determined by comparison with the previous
note in the current chord.  Therefore, in order to calculate the correct
absolute pitch, you need to get both the previous chord and the current
chord.

And if you want to split the chords into voices that use \relative mode, you
need an algorithm to tell you what the octave symbol should be.  The
algorithm will need to know the absolute octave of the last note in the
current voice, and the absolute octave of the current note in the current
voice, and then make a decision on what the octave symbol should be in the
current voice.

> I've always thought \relative to be quicker for a single simple
> melodic line, but a nightmare for anything with chords
> in it, so I didn't expect that the OP was dealing with
> it. If he was. I'm also not sure whether \relative is
> always necessarily completely linear any more. I haven't used
> it for a while. CRS.  Regards, daveA
> 

I find \relative to work quite nicely for chords, once I understood that
the first note in a chord gets its octave from the first note of the
previous chord.  I use \relative mode virtually exclusively for note entry,
regardless of whether it's in single notes or using the chord construct < >.
I do use absolute when I'm in chordmode.

Regards,

Carl



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


Re: using ly:get-glyph, ly:font-get-glyph

2009-01-19 Thread Han-Wen Nienhuys
On Mon, Jan 19, 2009 at 6:10 AM, Werner LEMBERG  wrote:
>
>> It says that each can "Retrieve a stencil", which strikes me as
>> useful. I was actually looking for a scheme-way of accessing
>> stencils, but the function description is bewildering to me.
>
> Well, improvements are welcome :-)
>
>> Can I somehow use it like this...
>> \once \override NoteHead #'stencil = #(ly:get-glyph font index)

You can't do it this easily.  The font elements within stencils must
constructed correctly to correspond with scaling factors: LilyPond
sets up the font sizes such that 1.0 unit of distance corresponds with
a staff-space.  Since this depends on \paper and \layout settings, you
have to have a font as returned by (for example) ly:grob-default-font.
Typically, this happens from within a grob callback.

Grep for ly:font-get-glyph in the scm directory for examples.

ly:get-glyph should probably be removed as it presupposes some kind of
unspecified encoding.

-- 
Han-Wen Nienhuys - han...@xs4all.nl - http://www.xs4all.nl/~hanwen


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


[SOLVED] Re: Ubuntu can't find lilypond executable

2009-01-19 Thread Bertalan Fodor (LilyPondTool)
I installed the 64bit version - it works. It seems that suprisingly I am 
on a 64 bit machine :-o


Thanks for all of you for the tips.

Bert

Jan Nieuwenhuizen wrote:

Op maandag 19-01-2009 om 12:20 uur [tijdzone +0100], schreef Bertalan
Fodor (LilyPondTool):

  

Jan Nieuwenhuizen wrote:


You state that /usr/local/bin/lilypond-book is being installed,
can you figure out why that's not being run by default?

  
  

It IS run by default. The problem is the following:

$ /usr/local//lilypond/usr/bin/lilypond --verbose test.ly



Look, this is NOT /usr/local/bin/lilypond, you cannot run this.

  

So bash says there is no such file, but stat says there is.



Bash is complaining about python (or possibly another non-existent
file).  Yes, the error message is very confusing, please complain
to bug-b...@gnu.org . I actually once looked into patching this
bug but it is either quite hard (needs linux kernel patch iirc)
or resource-consuming.

Jan.

  


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


Re: Ubuntu can't find lilypond executable

2009-01-19 Thread Bertalan Fodor (LilyPondTool)



It IS run by default. The problem is the following:

$ /usr/local//lilypond/usr/bin/lilypond --verbose test.ly



Look, this is NOT /usr/local/bin/lilypond, you cannot run this.

  

Ok, but then why

$ /usr/local/bin/lilypond
says
exec: 4: /usr/local//lilypond/usr/bin/lilypond: not found

? (Now it's not bash)

What is the secret dependency? How can it be found? Now I installed back 
2.10.25, but it fails with the same message, it used to work before I 
uninstalled it. :-(


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


Re: splitting chords entered as <>^"with stuff" \etc

2009-01-19 Thread David Raleigh Arnold
On Sunday 18 January 2009, Tim Woodall wrote:
> And, of course, I found some bugs as soon as I'd posted.
> 
> Quick breakdown of how it works incase anyone really wants to hack on
> it.
> 
> First it splits the three parts out into three files. Basically all it
> does is remove the other two notes from inside <>. It does depend on 
the
> chord all being on one line to do this. It also makes sure each chord 
on a
> separate line in the output files. Note that line n in one file
> corresponds to line n in the other files as well.
> 
> Next it reads in what it has written into three arrays.
> 
> For each chord it then calculates the number of notes from the first
> note in the previous chord to the first note in this chord (d1) and 
from
> the first note in this chord to the other two notes in this chord (d2
> and d3)
> 
> It subtracts the distance from the first note of the previous chord to
> the other notes in that chord (od1 and od2). Then it calculates how 
many
> octave changes are needed for each step. v1, v2 and v3.
> 
> It replaces any existing ', in the chord with the values in v1,
> v2 and v3 (note that replacing v1 should be a no-op)
> 
> And finally it writes the arrays back into the files it read them 
from.
> 
> Tim.
> 
> 
> #!/bin/bash
> 
> cat test.ly | sed 's/<[^<>a-g]*\([a-g][a-g]*[^a-g>]*\)
[^>]*>\([^<]*\)/\n<\1>\n\2/g' >part1.ly
> cat test.ly | sed 's/<[^<>a-g]*[a-g][a-g]*[^>a-g]*\([a-g]
[a-g]*[^a-g>]*\)[^>]*>\([^<]*\)/\n<\1>\n\2/g' >part2.ly
> cat test.ly | sed 's/<[^<>a-g]*[a-g][a-g]*[^>a-g]*[a-g]
[a-g]*[^>a-g]*\([a-g][a-g]*[^a-g>]*\)[^>]*>\([^<]*\)/\n<\1>\n\2/g' 
>part3.ly
> 
> c=0
> while read -r line; do
>line1[$c]="$line"
>c=$(($c+1))
> done < $( < part1.ly )
> EOF
> 
> c=0
> while read -r line; do
>line2[$c]="$line"
>c=$(($c+1))
> done < $( < part2.ly )
> EOF
> 
> c=0
> while read -r line; do
>line3[$c]="$line"
>c=$(($c+1))
> done < $( < part3.ly )
> EOF
> 
> c=0
> 
> note_cannonical() {
>local note
>local val=0
>local accidental=""
>local octave=0
>note=$( echo $1 | sed "s/[^a-gis',]//g" )
> 
>case $note in
>  a*) val=0 ;;
>  b*) val=1 ;;
>  c*) val=2 ;;
>  d*) val=3 ;;
>  e*) val=4 ;;
>  f*) val=5 ;;
>  g*) val=6 ;;
>  *) echo "Error bad note $note"; exit 1 ;;
>esac
>note=${note#?}
> 
>while [[ "$note" != "" ]]; do
>  case $note in
>es*) accidental="${accidental}es"; note=${note#es} ;;
>is*) accidental="${accidental}is"; note=${note#is} ;;
>\'*) octave=$(($octave+1)); note=${note#?} ;;
>,*)  octave=$(($octave-1)); note=${note#?} ;;
>*) echo "Error bad adjust $note"; exit 1 ;;
>  esac
>done
> 
>echo "$val:$accidental:$octave"
> }
> 
> calc_delta() {
>local p1=${1%%:*}
>local p2=${2%%:*}
>local o2=${2##*:}
>local dn
> 
>if [[ $p2 -gt $p1 ]]; then
>  if [[ $(($p2-$p1)) -le 3 ]]; then
>dn=$(($p2-$p1))
>  else
>dn=$(($p1-7-$p2))
>  fi
>else
>  if [[ $(($p2-$p1)) -ge -3 ]]; then
>dn=$(($p2-$p1))
>  else
>dn=$((7-$p1+$p2))
>  fi
>fi
> 
>dn=$(($o2*7+$dn))
> 
>echo $dn
> }
> 
> calcoctave() {
>local off=$1
>local n=""
> 
>while [[ $off -ge 4 ]]; do
>  n="${n}'"
>  off=$(($off-7))
>done
> 
>while [[ $off -le -4 ]]; do
>  n="${n},"
>  off=$(($off+7))
>done
> 
>echo $n
> }
> 
> note() {
>local p=${1%%:*}
>local a=${1#*:}
>local n=("a" "b" "c" "d" "e" "f" "g")
> 
>echo "${n[$p]}${a%:*}"
> }
> 
> replace_note() {
>local from="$1"
>local r=$2
>local innote=0
>local d
>local ret=""
> 
> 
>while [[ "$from" != "" ]]; do
>  d=$( echo "$from" | sed "s/\(.\).*/\1/" )
>  from="${from#?}"
>  case $d in
>[a-g])
>  if [[ $innote == 0 ]]; then
>ret="$ret$r"
>innote=1
>  elif [[ $innote != 1 ]]; then
>ret="$ret$d"
>  fi
>  ;;
>[is\',])
>  if [[ $innote != 1 ]]; then
>ret="$ret$d"
>  fi
>  ;;
>\ )
>  ret="$ret$d"
>  ;;
>*)
>  if [[ $innote == 1 ]]; then
>innote=2
>  fi
>  ret="$ret$d"
>  ;;
>  esac
>done
>echo $ret
> }
> 
> n1="2"
> od2=0
> od3=0
> 
> while [[ $c -lt ${#line1[*]} ]]; do
>if [[ ! -z "${line1[$c]}" && "${line1[$c]#*>}" == "" && "${line1
[$c]%<*}" = "" ]]; then
>  nc1=$( note_cannonical "${line1[$c]}" )
>  nc2=$( note_cannonical "${line2[$c]}" )
>  nc3=$( note_cannonical "${line3[$c]}" )
>  echo $nc1 $nc2 $nc3
>  d1=$( calc_delta $n1 $nc1 )
>  d2=$(($d1 + $( calc_delta $nc1 $nc2 ) ))
>  d3=$(($d2 + $( calc_delta $nc2 $nc3 ) ))
>  echo $d1 $d2 $d3
>  v1=$( calcoctave $d1 )
>  v2=$( calcoctave $(($d2-$od2)) )
>  v3=$( calcoctave $(($d3-$od3)) )
>  echo $v1 $v2 $v3
>  out1="$(note $nc1)$v1"
>  out2="$(no

Re: Ubuntu can't find lilypond executable

2009-01-19 Thread Jan Nieuwenhuizen
Op maandag 19-01-2009 om 12:20 uur [tijdzone +0100], schreef Bertalan
Fodor (LilyPondTool):

> Jan Nieuwenhuizen wrote:
> > You state that /usr/local/bin/lilypond-book is being installed,
> > can you figure out why that's not being run by default?
> >
> >   
> It IS run by default. The problem is the following:
> 
> $ /usr/local//lilypond/usr/bin/lilypond --verbose test.ly

Look, this is NOT /usr/local/bin/lilypond, you cannot run this.

> So bash says there is no such file, but stat says there is.

Bash is complaining about python (or possibly another non-existent
file).  Yes, the error message is very confusing, please complain
to bug-b...@gnu.org . I actually once looked into patching this
bug but it is either quite hard (needs linux kernel patch iirc)
or resource-consuming.

Jan.

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



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


Re: Ubuntu can't find lilypond executable

2009-01-19 Thread Francisco Vila
2009/1/19 Bertalan Fodor (LilyPondTool) :
> It IS run by default. The problem is the following:
>
> $ /usr/local//lilypond/usr/bin/lilypond --verbose test.ly


your output of "whereis lilypond" was /usr/local/bin/lilypond, so try

$ /usr/local/bin/lilypond test.ly

I have lilypond correctly installed and obtain a segfault from

$ /usr/local//lilypond/usr/bin/lilypond

Your executable is exactly /usr/local/bin/lilypond, and
/usr/local//lilypond is not a Windows-style folder in the path where
executables are.

-- 
Francisco Vila. Badajoz (Spain)
http://www.paconet.org


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


Re: Ubuntu can't find lilypond executable

2009-01-19 Thread Bertalan Fodor (LilyPondTool)

I'm afraid we are going to speak about not the real problem.


Jan Nieuwenhuizen wrote:

You state that /usr/local/bin/lilypond-book is being installed,
can you figure out why that's not being run by default?

  

It IS run by default. The problem is the following:

$ /usr/local//lilypond/usr/bin/lilypond --verbose test.ly

bash: /usr/local//lilypond/usr/bin/lilypond: No such file or directory

$ stat /usr/local//lilypond/usr/bin/lilypond


 File: `/usr/local//lilypond/usr/bin/lilypond'
 Size: 2676660 Blocks: 5240   IO Block: 4096   regular file
Device: fd01h/64769dInode: 755793  Links: 1
Access: (0755/-rwxr-xr-x)  Uid: (0/root)   Gid: (0/root)
Access: 2009-01-19 12:17:17.0 +0100
Modify: 2007-09-20 04:54:45.0 +0200
Change: 2009-01-19 12:16:50.0 +0100


So bash says there is no such file, but stat says there is.

This is my problem to be solved.



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


Re: Ubuntu can't find lilypond executable

2009-01-19 Thread Jan Nieuwenhuizen
Op maandag 19-01-2009 om 18:55 uur [tijdzone +0800], schreef Graham
Breed:

> That's weird.  I see this in 
> ~/lilypond/usr/bin/lilypond-book as well.  But lilypond-book 
> works for me.  The binary is ~/bin/lilypond-book and that 
> overrides the Python version.

lilydev is Han-Wen.  You're not supposed to run

PREFIX/lilypond/bin/lilypond

directly, so having a nonexistent python location after the #! should
not be a problem (though I think this has been fixed in gub3).

The idea is to run

PREFIX/bin/lilypond (or PREFIX/bin/lilypond-book)

which wrap the raw executables, taking care of LD_LIBRARY_PATH
and/or python/guile interpreter locations.

You state that /usr/local/bin/lilypond-book is being installed,
can you figure out why that's not being run by default?

Jan.

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



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


Re: Ubuntu can't find lilypond executable

2009-01-19 Thread Bertalan Fodor (LilyPondTool)

Francisco Vila wrote:

2009/1/19 Bertalan Fodor (LilyPondTool) :
  

No, it's not me. The lilypond-book script contains this as the first line:

#!/home/lilydev/vc/gub/target/tools/root/usr/bin/python



Your system has a lilydev user you are not aware of. From my poor
knowledge of install internals, it seems that the lilydev user has
previously installed lilypond system-wide from a gub compile.

  
No, actually there are two lilypond-book scripts. One is just an sh 
wrapper for the python script.
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Ubuntu can't find lilypond executable

2009-01-19 Thread Francisco Vila
2009/1/19 Bertalan Fodor (LilyPondTool) :
> I don't really want to update the kernel if it is not a must. (There are
> many services running on the server.)

I only meant that fresh installs of lilypond work perfectly on fresh
installs of Ubuntu. Any further changes to the PATH or whatever could
produce problems.

> The output of the installer script is:
>
> Making /usr/local/lilypond/
> Creating script /usr/local/bin/lilypond
> Creating script /usr/local/bin/lilypond-wrapper.python
> Creating script /usr/local/bin/lilypond-wrapper.guile
> Creating script /usr/local/bin/uninstall-lilypond
> Untarring lilypond-2.12.1-1.linux-x86.sh
> To uninstall lilypond, run...

This shows a successful install, but if /usr/local/bin is not in your
$ echo $PATH
output, indeed the executable is not found. (do not post that output here).

-- 
Francisco Vila. Badajoz (Spain)
http://www.paconet.org


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


Re: Ubuntu can't find lilypond executable

2009-01-19 Thread Francisco Vila
2009/1/19 Graham Breed :
> Bertalan Fodor (LilyPondTool) wrote:
>
>> No, it's not me. The lilypond-book script contains this as the first line:
>>
>> #!/home/lilydev/vc/gub/target/tools/root/usr/bin/python
>
> That's weird.  I see this in ~/lilypond/usr/bin/lilypond-book as well.  But
> lilypond-book works for me.  The binary is ~/bin/lilypond-book and that
> overrides the Python version.

I have
#!/bin/sh
export 
PYTHONPATH="/usr/local/lilypond/usr/lib/lilypond/current/python/:/usr/local/lilypond/usr/share/lilypond/current/python/:$PYTHONPATH"

as the first two lines of /usr/local/bin/lilypond-book.

If you are trying to install and use a system-wide lilypond as root,
you should not have a working lilypond binary in ~/bin and in the PATH
at the same time.

-- 
Francisco Vila. Badajoz (Spain)
http://www.paconet.org


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


Re: Ubuntu can't find lilypond executable

2009-01-19 Thread Francisco Vila
2009/1/19 Bertalan Fodor (LilyPondTool) :
> No, it's not me. The lilypond-book script contains this as the first line:
>
> #!/home/lilydev/vc/gub/target/tools/root/usr/bin/python

Your system has a lilydev user you are not aware of. From my poor
knowledge of install internals, it seems that the lilydev user has
previously installed lilypond system-wide from a gub compile.

-- 
Francisco Vila. Badajoz (Spain)
http://www.paconet.org


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


Re: Ubuntu can't find lilypond executable

2009-01-19 Thread Bertalan Fodor (LilyPondTool)

Oh, then that's alright like that.
I hope I don't have to upgrade the ubuntu installation. I don't want to 
start wandering in dependency hell.


Graham Breed wrote:

Bertalan Fodor (LilyPondTool) wrote:

No, it's not me. The lilypond-book script contains this as the first 
line:


#!/home/lilydev/vc/gub/target/tools/root/usr/bin/python


That's weird.  I see this in ~/lilypond/usr/bin/lilypond-book as 
well.  But lilypond-book works for me.  The binary is 
~/bin/lilypond-book and that overrides the Python version.



 Graham






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


Re: Ubuntu can't find lilypond executable

2009-01-19 Thread Graham Breed

Bertalan Fodor (LilyPondTool) wrote:


No, it's not me. The lilypond-book script contains this as the first line:

#!/home/lilydev/vc/gub/target/tools/root/usr/bin/python


That's weird.  I see this in 
~/lilypond/usr/bin/lilypond-book as well.  But lilypond-book 
works for me.  The binary is ~/bin/lilypond-book and that 
overrides the Python version.



 Graham


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


Re: Ubuntu can't find lilypond executable

2009-01-19 Thread Bertalan Fodor (LilyPondTool)

Graham Breed wrote:

Bertalan Fodor (LilyPondTool) wrote:
I'm not sure this says that the given file wasn't found.  I think it 
says that the given file was executed and returned the error "not 
found".

Hm. That can be true - as there is a problem with running lilypond-book:

/usr/local/lilypond/usr/bin/lilypond-book
bash: /usr/local/lilypond/usr/bin/lilypond-book: 
*/home/lilydev/vc/gub/target/*tools/root/usr/bin/python: bad 
interpreter: No such file or directory


It perhaps is related.


What's this "lilydev"?  Is that you?  It looks like you're getting the 
version you installed mixed up with a development copy you have.


Note: the executable file you run is a shell script.  Look at it and 
it'll tell you the library path it's using.



   Graham



No, it's not me. The lilypond-book script contains this as the first line:

#!/home/lilydev/vc/gub/target/tools/root/usr/bin/python

Bert



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


Re: Ubuntu can't find lilypond executable

2009-01-19 Thread Bertalan Fodor (LilyPondTool)
I don't really want to update the kernel if it is not a must. (There are 
many services running on the server.)


The output of the installer script is:

Making /usr/local/lilypond/
Creating script /usr/local/bin/lilypond
Creating script /usr/local/bin/lilypond-wrapper.python
Creating script /usr/local/bin/lilypond-wrapper.guile
Creating script /usr/local/bin/uninstall-lilypond
Untarring lilypond-2.12.1-1.linux-x86.sh
To uninstall lilypond, run

   /usr/local//bin/uninstall-lilypond


For license and warranty information, consult

   /usr/local/lilypond/license/README


Francisco Vila wrote:

2009/1/19 Bertalan Fodor (LilyPondTool) :
  

If you mean 2.12, right. Otherwise I hope you uninstalled 2.11 as well.

Are you using a 32-bit Ubuntu installation on a 64-bit machine?

  

Afaik the machine is 32-bit as well, its an Intel P4.

Linux version 2.6.17-12-generic (r...@king) (gcc version 4.1.2 20060928
(prerelease) (Ubuntu 4.1.1-13ubuntu5)) #2 SMP Sun Sep 23 19:39:38 UTC 2007
(Ubuntu 2.6.17-12.41-generic)



latest Ubuntu comes with version 2.6.27-9 of the Linux kernel.

Anyway, the distributed installer has always worked for me, so I'd
recommend you to uninstall it again, purge any old version and try to
install it from scratch.

From your output of lilypond-book I infer that the install did not
success, because lilypond comes with a Python inside, if I'm not
wrong.

Please post the output of the installing command.

  


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


Re: Ubuntu can't find lilypond executable

2009-01-19 Thread Bertalan Fodor (LilyPondTool)

I am root.

Francisco Vila wrote:

Bertalan, it is possible that sudo sh lilypond---etc does not work for
an user without privileges. Only users who are in the sudoers file can
issue sudo commands.

Try again as the privileged user (the first you created on install of Ubuntu)
  





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


Re: Ubuntu can't find lilypond executable

2009-01-19 Thread Francisco Vila
Bertalan, it is possible that sudo sh lilypond---etc does not work for
an user without privileges. Only users who are in the sudoers file can
issue sudo commands.

Try again as the privileged user (the first you created on install of Ubuntu)
-- 
Francisco Vila. Badajoz (Spain)
http://www.paconet.org


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


Re: Ubuntu can't find lilypond executable

2009-01-19 Thread Francisco Vila
2009/1/19 Bertalan Fodor (LilyPondTool) :
>
>> If you mean 2.12, right. Otherwise I hope you uninstalled 2.11 as well.
>>
>> Are you using a 32-bit Ubuntu installation on a 64-bit machine?
>>
>
> Afaik the machine is 32-bit as well, its an Intel P4.
>
> Linux version 2.6.17-12-generic (r...@king) (gcc version 4.1.2 20060928
> (prerelease) (Ubuntu 4.1.1-13ubuntu5)) #2 SMP Sun Sep 23 19:39:38 UTC 2007
> (Ubuntu 2.6.17-12.41-generic)

latest Ubuntu comes with version 2.6.27-9 of the Linux kernel.

Anyway, the distributed installer has always worked for me, so I'd
recommend you to uninstall it again, purge any old version and try to
install it from scratch.

>From your output of lilypond-book I infer that the install did not
success, because lilypond comes with a Python inside, if I'm not
wrong.

Please post the output of the installing command.

-- 
Francisco Vila. Badajoz (Spain)
http://www.paconet.org


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


Re: Ubuntu can't find lilypond executable

2009-01-19 Thread Martin Tarenskeen


On Mon, Jan 19, 2009 at 10:30:42AM +0100, Bertalan Fodor (LilyPondTool) wrote:
> I tried to install LilyPond 2.12 on an Ubuntu machine. I found a very  
> strange thing I couldn't explain, and couldn't solve.
> I used the script to install:
>
> sudo /sh lilypond-X.Y.Z.linux-x86.sh
>
> /Then I try to run lilypond:
> lilypond test.ly
>
> and I get:
>
> exec: 4: /usr/local//lilypond/usr/bin/lilypond: not found
>
> But the file is actually there:

Strange location for an executable ?? I think something has gone wrong 
somewhere. 

did you try
export PATH=$PATH:/usr/local/lilypond/usr/bin  
before running lilypond test.ly ?

/usr/local/lilypond/usr/bin is problably not in the PATH environment variable.

I don't know the install script, but normal places to intall an executable like 
lilypond are /usr/bin/ or 
/usr/local/bin ??

-- 

Martin Tarenskeen


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


Re: Ubuntu can't find lilypond executable

2009-01-19 Thread Graham Breed

Bertalan Fodor (LilyPondTool) wrote:
I'm not sure this says that the given file wasn't found.  I think it says that 
the given file was executed and returned the error "not found".

Hm. That can be true - as there is a problem with running lilypond-book:

/usr/local/lilypond/usr/bin/lilypond-book
bash: /usr/local/lilypond/usr/bin/lilypond-book: 
*/home/lilydev/vc/gub/target/*tools/root/usr/bin/python: bad interpreter: No 
such file or directory


It perhaps is related.


What's this "lilydev"?  Is that you?  It looks like you're 
getting the version you installed mixed up with a 
development copy you have.


Note: the executable file you run is a shell script.  Look 
at it and it'll tell you the library path it's using.



   Graham



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


Re: Ubuntu can't find lilypond executable

2009-01-19 Thread Bertalan Fodor (LilyPondTool)

Francisco Vila wrote:

2009/1/19 Bertalan Fodor (LilyPondTool) :
  

I'm not sure this says that the given file wasn't found.  I think it says
that the given file was executed and returned the error "not found".



I obtain another message.

$ lilypond unexisting.ly
GNU LilyPond 2.12.1
warning: cannot find file: `unexisting.ly'
error: failed files: "unexisting.ly"

  

Hm. That can be true - as there is a problem with running lilypond-book:

/usr/local/lilypond/usr/bin/lilypond-book
bash: /usr/local/lilypond/usr/bin/lilypond-book:
/home/lilydev/vc/gub/target/tools/root/usr/bin/python: bad interpreter: No
such file or directory

It perhaps is related.



I have it in another path.

$ whereis lilypond-book
lilypond-book: /usr/local/bin/lilypond-book

  

For me:
/usr/local/bin/lilypond-book
exec: 6: /usr/local/lilypond/usr/bin/python: not found


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


Re: Ubuntu can't find lilypond executable

2009-01-19 Thread Francisco Vila
2009/1/19 Bertalan Fodor (LilyPondTool) :
>
> I'm not sure this says that the given file wasn't found.  I think it says
> that the given file was executed and returned the error "not found".

I obtain another message.

$ lilypond unexisting.ly
GNU LilyPond 2.12.1
warning: cannot find file: `unexisting.ly'
error: failed files: "unexisting.ly"

>
> Hm. That can be true - as there is a problem with running lilypond-book:
>
> /usr/local/lilypond/usr/bin/lilypond-book
> bash: /usr/local/lilypond/usr/bin/lilypond-book:
> /home/lilydev/vc/gub/target/tools/root/usr/bin/python: bad interpreter: No
> such file or directory
>
> It perhaps is related.

I have it in another path.

$ whereis lilypond-book
lilypond-book: /usr/local/bin/lilypond-book

-- 
Francisco Vila. Badajoz (Spain)
http://www.paconet.org


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


Re: Ubuntu can't find lilypond executable

2009-01-19 Thread Bertalan Fodor (LilyPondTool)



If you mean 2.12, right. Otherwise I hope you uninstalled 2.11 as well.

Are you using a 32-bit Ubuntu installation on a 64-bit machine?
  

Afaik the machine is 32-bit as well, its an Intel P4.

Linux version 2.6.17-12-generic (r...@king) (gcc version 4.1.2 20060928 
(prerelease) (Ubuntu 4.1.1-13ubuntu5)) #2 SMP Sun Sep 23 19:39:38 UTC 
2007 (Ubuntu 2.6.17-12.41-generic)



Have you installed the 32-bit or the 64-bit lilypond binary?

  

32.

Bert



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


Re: Ubuntu can't find lilypond executable

2009-01-19 Thread Francisco Vila
2009/1/19 Bertalan Fodor (LilyPondTool) :
> Francisco Vila wrote:
>> What's the output of "whereis lilypond" ?
>
>
> lilypond: /usr/local/bin/lilypond /usr/local/lilypond

same as mine.


>> Did you have the lilypond package previously installed from the
> standard repositories?
>
> No, IIRC I used the installer script for 2.10. Before installing 2.11 I
> uninstalled it.

If you mean 2.12, right. Otherwise I hope you uninstalled 2.11 as well.

Are you using a 32-bit Ubuntu installation on a 64-bit machine?

Have you installed the 32-bit or the 64-bit lilypond binary?

-- 
Francisco Vila. Badajoz (Spain)
http://www.paconet.org


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


Re: Ubuntu can't find lilypond executable

2009-01-19 Thread Bertalan Fodor (LilyPondTool)


I'm not sure this says that the given file wasn't found.  I think it 
says that the given file was executed and returned the error "not found".

Hm. That can be true - as there is a problem with running lilypond-book:

/usr/local/lilypond/usr/bin/lilypond-book
bash: /usr/local/lilypond/usr/bin/lilypond-book: 
*/home/lilydev/vc/gub/target/*tools/root/usr/bin/python: bad 
interpreter: No such file or directory


It perhaps is related.

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


Re: Ubuntu can't find lilypond executable

2009-01-19 Thread Graham Breed

Bertalan Fodor (LilyPondTool) wrote:
I tried to install LilyPond 2.12 on an Ubuntu machine. I found a very strange 
thing I couldn't explain, and couldn't solve.

I used the script to install:

sudo /sh lilypond-X.Y.Z.linux-x86.sh


I did a local install, and it works fine as

~/bin/lilypond

and so on for the other applications.  This seems to be the 
way to go so that I can keep the "stable" version from the 
repository.  Maybe it'll still work for you.


(Actually, it seems to be the default now, but never mind.)


/Then I try to run lilypond:
lilypond test.ly

and I get:

exec: 4: /usr/local//lilypond/usr/bin/lilypond: not found


I'm not sure this says that the given file wasn't found.  I 
think it says that the given file was executed and returned 
the error "not found".



But the file is actually there:

stat /usr/local//lilypond/usr/bin/lilypond

File: `/usr/local//lilypond/usr/bin/lilypond'
Size: 3586224 Blocks: 7016   IO Block: 4096   regular file
Device: fd01h/64769dInode: 755771  Links: 1
Access: (0755/-rwxr-xr-x)  Uid: (0/root)   Gid: (0/root)
Access: 2009-01-19 10:24:01.0 +0100
Modify: 2008-12-31 19:13:22.0 +0100
Change: 2009-01-19 10:23:10.0 +0100


That's the right file.


 Graham


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


Re: Trying to start once again...

2009-01-19 Thread Bertalan Fodor (LilyPondTool)



I find this confusing, so many cloned menus, furthermore when they _do
not_ bring you directly to the LilyPondTool options.

Also the name is not consistent. Multiple names LilyPondTool,
LilyTool, Lily4jEdit, are confusing for novices.

Bertalan: when you have the time, please put some order on this all.
At least for me as a teacher, I always have to explain all these
inconsistencies so that my pupils do not get lost.

  


Yes. All of that is true. Unfortunately my original name was not too 
good. I could hardly change that because, sourceforge doesn't allow 
changing the name from lily4jedit, and I don't want to change the 
package and class names from LilyTool to LilyPondTool.

But regarding the menus it would not be very hard to make it consistent.



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


Re: Ubuntu can't find lilypond executable

2009-01-19 Thread Bertalan Fodor (LilyPondTool)



Francisco Vila wrote:

2009/1/19 Bertalan Fodor (LilyPondTool) :
  

I tried to install LilyPond 2.12 on an Ubuntu machine. I found a very
strange thing I couldn't explain, and couldn't solve.
I used the script to install:

sudo sh lilypond-X.Y.Z.linux-x86.sh



I hope this is not the exact command you issued.
  

No, it's not :-)



Then I try to run lilypond:
lilypond test.ly

and I get:

exec: 4: /usr/local//lilypond/usr/bin/lilypond: not found



What's the output of "whereis lilypond" ?
  

lilypond: /usr/local/bin/lilypond /usr/local/lilypond

  

But the file is actually there:

stat /usr/local//lilypond/usr/bin/lilypond

File: `/usr/local//lilypond/usr/bin/lilypond'



Did you have the lilypond package previously installed from the
standard repositories?

  
No, IIRC I used the installer script for 2.10. Before installing 2.11 I 
uninstalled it.


Bert


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


Re: Ubuntu can't find lilypond executable

2009-01-19 Thread Francisco Vila
2009/1/19 Bertalan Fodor (LilyPondTool) :
> I tried to install LilyPond 2.12 on an Ubuntu machine. I found a very
> strange thing I couldn't explain, and couldn't solve.
> I used the script to install:
>
> sudo sh lilypond-X.Y.Z.linux-x86.sh

I hope this is not the exact command you issued.
>
> Then I try to run lilypond:
> lilypond test.ly
>
> and I get:
>
> exec: 4: /usr/local//lilypond/usr/bin/lilypond: not found

What's the output of "whereis lilypond" ?

>
> But the file is actually there:
>
> stat /usr/local//lilypond/usr/bin/lilypond
>
> File: `/usr/local//lilypond/usr/bin/lilypond'

Did you have the lilypond package previously installed from the
standard repositories?

-- 
Francisco Vila. Badajoz (Spain)
http://www.paconet.org


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


Re: Thin bars

2009-01-19 Thread Francisco Vila
These links show already filed bugs on the issue. I am completely sure
that I myself filed a bug on poppler or libpoppler regarding to the
lilypond barlines, but I cannot find the URL despite of having been
searching for half an hour now.

Poppler is the PDF rendering library of evince, if I'm not wrong.

The bug is annoying because evince is the default document viewer in
Ubuntu and printed LilyPond scores are very ugly even on
high-resolution printers (or monitors!) when printed (or viewed!) with
evince.

[Bug 247113] [NEW] vertical bars are too thick
http://www.archivum.info/ubuntu-b...@lists.ubuntu.com/2008-07/msg10441.html

vertical bars are too thick
https://bugs.launchpad.net/ubuntu/+source/poppler/+bug/247113
-- 
Francisco Vila. Badajoz (Spain)
http://www.paconet.org


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


Ubuntu can't find lilypond executable

2009-01-19 Thread Bertalan Fodor (LilyPondTool)
I tried to install LilyPond 2.12 on an Ubuntu machine. I found a very 
strange thing I couldn't explain, and couldn't solve.

I used the script to install:

sudo /sh lilypond-X.Y.Z.linux-x86.sh

/Then I try to run lilypond:
lilypond test.ly

and I get:

exec: 4: /usr/local//lilypond/usr/bin/lilypond: not found

But the file is actually there:

stat /usr/local//lilypond/usr/bin/lilypond

File: `/usr/local//lilypond/usr/bin/lilypond'
Size: 3586224 Blocks: 7016   IO Block: 4096   regular file
Device: fd01h/64769dInode: 755771  Links: 1
Access: (0755/-rwxr-xr-x)  Uid: (0/root)   Gid: (0/root)
Access: 2009-01-19 10:24:01.0 +0100
Modify: 2008-12-31 19:13:22.0 +0100
Change: 2009-01-19 10:23:10.0 +0100

Could you please help me on this?

Thanks,

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


Re: using ly:get-glyph, ly:font-get-glyph

2009-01-19 Thread Werner LEMBERG

> It says that each can "Retrieve a stencil", which strikes me as
> useful. I was actually looking for a scheme-way of accessing
> stencils, but the function description is bewildering to me.

Well, improvements are welcome :-)

> Can I somehow use it like this...
> \once \override NoteHead #'stencil = #(ly:get-glyph font index)
> ?
> 
> Is font a string, symbol, or an actual font?
> Is index a number? How do I know what number 
> a particular glyph is? How does this work???
> 
> None of these seemed to work (don't laugh, but
> I'm seriously stabbing in the dark here):

> (ly:font-get-glyph 'Emmentaler '"Half notehead")

You can't directly access the font name, it seems.  Look at the
definition of the `musicglyph' markup command in
define-markup-commands.scm which uses ly:paper-get-font to get a font
handle for ly:font-get-glyph.

I assume the same is true for ly:get-glyph -- there is no example code
in lilypond which uses this function (which is, admittedly, not very
useful in general).


Werner


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


Re: Thin bars

2009-01-19 Thread Johan Vromans
Johan Vromans  writes:

> This definitely looks like the problem discussed here earlier.

See message  and thread.

http://www.squirrel.nl/pub/xfer/lpev.png shows an example.

-- Johan


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


Re: Thin bars

2009-01-19 Thread Johan Vromans
Fibonacci Prower  writes:

> Well, I just tried printing it, and the bars look even worse - not
> only are they too thick, they also seem to be a bit too long, so that
> they go beyond the limits of the staff on both sides

This definitely looks like the problem discussed here earlier.

Did you try different programs to print with?

-- Johan


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


Re: Trying to start once again...

2009-01-19 Thread Francisco Vila
2009/1/18 Michael Falkenburg :
> Francisco Vila wrote:
>> Configure LilyPondTool so that the path to the lilypond executable is
>> /usr/local/bin
>>
>
> Where do I do this?
>


Go to the menu Plugins -> LilyPondTool -> Development -> LilyTool
Options, the go to the "LilyPondTool -> General" section on the left
pane, you'll see something like "Path to the executable" .

Or go to the menu Plugins->Plugin Options
Or push the "LilyPond > " button in the LilyPondTool toolbar, then go
to Development, etc.

I find this confusing, so many cloned menus, furthermore when they _do
not_ bring you directly to the LilyPondTool options.

Also the name is not consistent. Multiple names LilyPondTool,
LilyTool, Lily4jEdit, are confusing for novices.

Bertalan: when you have the time, please put some order on this all.
At least for me as a teacher, I always have to explain all these
inconsistencies so that my pupils do not get lost.

-- 
Francisco Vila. Badajoz (Spain)
http://www.paconet.org


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


Re: \skip substitute in lyrics?

2009-01-19 Thread Wilbert Berendsen
Op zondag 18 januari 2009, schreef Kieren MacMillan:
> Of course, there are more complicated ways as well (using \set  
> associatedVoice, etc.).

That would be starting a new lyrics context at the desired moment: 

\score {
  <<
\new Staff \new Voice = "mel" \relative c' {
  c d e f g f e d
}
\new Lyrics \lyricsto "mel" {
  ha ha ha ha
  <<
{ ha ha ha ha }
\new Lyrics {
  \set associatedVoice = "mel"
  ho ho ho ho
}
  >>
}
  >>
}


[btw: it would be nice if the new Lyrics context would inherit its 
associatedvoice from its parent context. It would then not be necessary to 
write the \set associatedVoice command.]

best regards,
Wilbert Berendsen

-- 
Frescobaldi, LilyPond editor for KDE: http://www.frescobaldi.org/
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user