Re: embedded-ps stencil confusion

2008-10-03 Thread Mark Polesky
Ha! I figured it out...
- Mark

---

\version "2.11.61-1"

squareNoteHeads = {
  \override Voice.NoteHead #'stencil =
  #(ly:make-stencil
  (list 'embedded-ps
"gsave
currentpoint translate
BeginEPSF
%%BeginDocument:

newpath
-0.5 -0.5 moveto
-0.5  0.5 lineto
 0.5  0.5 lineto
 0.5 -0.5 lineto
closepath
fill
stroke

%%EndDocument
EndEPSF
grestore")
  (cons -0.5 0.5)
  (cons -0.5 0.5))
}

{ \squareNoteHeads c'' }



  


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


embedded-ps stencil confusion

2008-10-03 Thread Mark Polesky
Hi.

I'd like to make my own stencils using PostScript
commands, but the documentation on this topic isn't
quite there yet, I guess. I don't understand how
the "string" passed to 'embedded-ps is supposed to
be formatted. 

I'm using the ps backend, and the relevant lines in
/scm/output-ps.scm (lines 129-130) are pretty sparse:

(define (embedded-ps string)
  string)

Here's my naive attempt, which is clearly wrong. No
error messages are generated, but no stencil appears. 
My example here would be a square note-head, but it's 
just an example. That is to say, I don't need work-
arounds or clever square note-head solutions; I just 
want to understand how to make embedded-ps stencils.

Thanks!
Mark



---

\version "2.11.61-1"

squareNoteHeads = {
  \override Voice.NoteHead #'stencil =
  #(ly:make-stencil
  (list 'embedded-ps "newpath
  -0.5 -0.5 moveto
  -0.5  0.5 lineto
   0.5  0.5 lineto
   0.5  0   lineto
  closepath
  fill
  stroke")
  (cons (- 1) 1)
  (cons (- 1) 1))
}

{ \squareNoteHeads c'' }


  


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


Re: Does lilypond takes advantage of multi-cores on windows?

2008-10-03 Thread sdfgsdhdshd


Han-Wen Nienhuys-5 wrote:
> 
> this option is mainly for lilypond-book use: it halves the time to
> build the lilypond documentation on my dual core notebook.
> 

This option is not used for musical scores?


-- 
View this message in context: 
http://www.nabble.com/Does-lilypond-takes-advantage-of-multi-cores-on-windows--tp19800443p19808338.html
Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com.



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


Re: Does lilypond takes advantage of multi-cores on windows?

2008-10-03 Thread sdfgsdhdshd


Han-Wen Nienhuys-5 wrote:
> 
> this option is mainly for lilypond-book use: it halves the time to
> build the lilypond documentation on my dual core notebook.
> 

This option is not used for musical scores?


-- 
View this message in context: 
http://www.nabble.com/Does-lilypond-takes-advantage-of-multi-cores-on-windows--tp19800443p19808334.html
Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com.



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


Re: Does lilypond takes advantage of multi-cores on windows?

2008-10-03 Thread sdfgsdhdshd



Han-Wen Nienhuys-5 wrote:
> 
> On Fri, Oct 3, 2008 at 4:33 PM, John Mandereau <[EMAIL PROTECTED]>
> wrote:
>> It may be possible to parallelize some portions of LilyPond code to take
>> advantage of multi-core machines, which gradually become quite common,
>> I'm tempted to have a look at it in the next months, but don't hold your
>> breath :-)
> 
> One tricky aspect is that the GUILE evaluator is fundamentally broken:
> it rewrites Scheme expressions for memoization in thread-unsafe ways
> all over the place.
> 
> For Lily itself, I think it will also be very tricky: evaluating grob
> properties through callbacks is assumes that there is only one
> evaluation going on at the same time.
> 

You mean there must be only one .ly file on the command-line?


-- 
View this message in context: 
http://www.nabble.com/Does-lilypond-takes-advantage-of-multi-cores-on-windows--tp19800443p19808301.html
Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com.



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


Re: Does lilypond takes advantage of multi-cores on windows?

2008-10-03 Thread Han-Wen Nienhuys
On Fri, Oct 3, 2008 at 1:45 PM, Anthony <[EMAIL PROTECTED]> wrote:

>> No, lilypond will only use one core.  That said, you would be able
>> to compile multiple scores at once.
>
>> -djob-count=[number of cores]
>>
>> Regards,
>> Neil
>
> I don't think that job count changes things when you process a single
> input file though.  If you specify multiple input files to process
> then lilypond will fork off into different jobs to get the work done.

this option is mainly for lilypond-book use: it halves the time to
build the lilypond documentation on my dual core notebook.

To use,

$ cat local.make

CPU_COUNT=2

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


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


Re: Does lilypond takes advantage of multi-cores on windows?

2008-10-03 Thread Han-Wen Nienhuys
On Fri, Oct 3, 2008 at 4:33 PM, John Mandereau <[EMAIL PROTECTED]> wrote:
> It may be possible to parallelize some portions of LilyPond code to take
> advantage of multi-core machines, which gradually become quite common,
> I'm tempted to have a look at it in the next months, but don't hold your
> breath :-)

One tricky aspect is that the GUILE evaluator is fundamentally broken:
it rewrites Scheme expressions for memoization in thread-unsafe ways
all over the place.

For Lily itself, I think it will also be very tricky: evaluating grob
properties through callbacks is assumes that there is only one
evaluation going on at the same time.

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


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


Re: Does lilypond takes advantage of multi-cores on windows?

2008-10-03 Thread Anthony W. Youngman
In message <[EMAIL PROTECTED]>, Graham Percival 
<[EMAIL PROTECTED]> writes

On Fri, 3 Oct 2008 08:46:06 -0700 (PDT)
sdfgsdhdshd <[EMAIL PROTECTED]> wrote:



I'm about to buy a new PC with Windows Vista (shame on me), which
will mainly be used to compile lilypond files, all day long.
Will a duo-core or better quad-core accelerate the compilations,
all others characteristics being the same, including processor speed?


No, lilypond will only use one core.  That said, you would be able
to compile multiple scores at once.


No, it WILL accelerate compilations (but probably not by much).

Just as lily will only use one core, so will Windows. It's a pain in the 
proverbial when Windows decides to do something and leaves the user 
whistling waiting for their job - with a dual-core the system will be a 
lot more responsive (ie it'll feel faster) and, with Windows unable to 
hog the entire system, it WILL be a bit faster.


Cheers,
Wol
--
Anthony W. Youngman - [EMAIL PROTECTED]



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


Re: Notation Reference 1.8 "Text" : ready for review

2008-10-03 Thread Valentin Villenave
2008/10/3 Graham Percival <[EMAIL PROTECTED]>:
> Be afraid.  Be very afraid.  :)

I am. Why do you think it took me eight months to complete this section? :-)

> - inspirational headword only uses \italics.  Boring.  (yeah, I
>  know it fits the theme of Beethoven stuff, but since NR 2
> doesn't always follow it, we might want a sexier headword for Text)

I'll ask Trevor B.

> - the syntax for text spanners is a maoing disaster.
>  #'bound-details #'left #'text?!  You've got to be kidding me.

I do agree.

> It would be totally awesome if
>  \startTextSpan #"foo"
> set up the \override.

I do use such a function in my opera. If you ask nicely, I *may*
propose a patch someday :-)

> - final sentence of main text in Text marks:
> When specified at the beginning of a score or at a line break,
> marks will be printed at the beginning of the line (the next line,
> in case of a line break).
>  change to:
> When specified at the a line break, the mark will be printed at
> the beginning of the next line.

"When specified at the a line break"?? You may want to read what you
copy/paste sometimes :)

OK, updated.

>  we already know what happens at the beginning of a score, and
> that sentence is too complicated.  As a general rule, be
> suspicious if you use both parentheses and commas (in a single
> sentence).

In general, I totally prefer, you know, to use commas like, you know, sparingly.

>  [sic], of course.  :)

Yeah, you often make me "sic" :)

> Also consider whether you should use "system" instead of "line".

Well, in this particular case the use of "line" was implied by "line
break". I could change this into "system break", but now we don't want
users to think we'll cause a system failure on their computer, do we?

> Actually, I'd make this a general note for policy.txt: use
> "system" instead of "line".  The term "line" could refer to a
> musical voice, a system, or a literal line.  I'd therefore avoid
> it unless I was talking about an actual line -- say, "a text
> spanner creates a dotted line".

I agree with using "system" iso "line" (that's one of these things I
tell my pupils every week). But I kind of prefer "line break" over
"system break".

> - Separate text: kill the "word processor" thing.  At most, you
>  could say that you were using LilyPond as a text typesetter.

We've already had that argument one year ago. Back then, I went to
http://en.wikipedia.org/wiki/Word_processor and found that LilyPond
hardly lacks anything you can expect from a non-WYSIWYG word
processor. (Besides, I definitely regard this as a killer-feature.)

> Also, what do you mean by "using a specific syntax"? (same
> paragraph)

\markuplines syntax. The next sentence precisely explains what I mean:
"This syntax is described in Multi-page markup. "

And if you're wondering why the link looks buried at the end of the
paragraph, that is because of some stupid policy rule (don't know who
the hell invented it) that requires to put references at the end of
paragraphs :-)

> What does \markuplines do?  If it's not obvious (ie not \slurUp),
> we need an example in the main text.

Do you mean an @example? The same @example you explicitly forbid? :-)

I was tempted to have a markuplines @lilypond block here, but I
couldn't figure out how to print a multi-page snippet image.

Besides, once again, clicking on "Multi-page markup" is obvious enough
to know more about it.

> - 1.8.2 Formatting Text - text markup introduction:
> This syntax even allows to print double quotation marks, by
> preceding them with backslashes.
>  change to
> Double quotation marks may be printed by preceding them with
> backslashes.

OK.

> Are there any other characters that need to be escaped?  What
> about {} ?  IIRC there used to be a list of such symbols... but
> maybe that was somewhere in Vocal music.  Anyway, if {} need
> escaping, that should be mentioned in this paragraph.

Nope. {} does not need to be escaped but to be enclosed in double
quotation marks. RTFNR1.8.2 :)

> I'm still not wild about the
>  d_\markup \italic "... prints \"italic\" letters!"
> without {} following the \markup.  I think it's a good habit to
> get into, and the manual should reinforce good habits.  The first
> example on this page already shows that it's possible to omit the
> {}, with the \markp intenso.

OK.

> I don't understand the point of two \center-column examples.  Why
> is the first one in there?  mentioning Text alignment here isn't
> worth it; people will get to that material on their own.  Kill it;

OK.

> the three \center-column example shows the point of quotes and
> \line.

OK.

> That said, the second example needs one more line:
> c1^\markup { \center-column { a "bbb c" } }

OK.

> Why the IR to TextScript?  AFAIK, there's nothing particular to
> TextScript here; either add TextSpanner and RehearsalMark, or
> remove the TextScript link.

OK.

> - Selecting font size: why the mao aren't these examples in
>  \relative c' ?!  Ugly, ugly!

Actually, they are; 

Re: Does lilypond takes advantage of multi-cores on windows?

2008-10-03 Thread sdfgsdhdshd


john.mandereau wrote:
> 
> It may be possible to parallelize some portions of LilyPond code to take
> advantage of multi-core machines, which gradually become quite common,
> I'm tempted to have a look at it in the next months, but don't hold your
> breath :-)
> 

Thanks for the info.
As i have to compile 150 or more files at the same time, this is important
for me.

Nowadays, Intel and others add more and more cores to each processors, and
also processors per motherboard: soon 16 cores. But as time goes by, the
core speed does not increase very much. As if the performance of each core
enters the "flat part of an exponential" ==> my initial question.

(tx for taking care of my breath as i catched a cold ;-) )




-- 
View this message in context: 
http://www.nabble.com/Does-lilypond-takes-advantage-of-multi-cores-on-windows--tp19800443p19804534.html
Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com.



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


Re: Does lilypond takes advantage of multi-cores on windows?

2008-10-03 Thread John Mandereau
On 2008/10/03 11:14 -0700, sdfgsdhdshd wrote:
> Anthony Boyd-2 wrote:
> >> -djob-count=[number of cores]
> >
> > I don't think that job count changes things when you process a single
> > input file though.  If you specify multiple input files to process
> > then lilypond will fork off into different jobs to get the work done.
> > 
> 
> Are the new processes only on one processor? or several?

It's up to the operating system kernel to spread the load on all CPUs
(or CPU cores); e.g. if you run "lilypond -djob-count=2" and you have no
other processor time-consuming tasks at the same time (if this can ever
happen on Vista :-P) on a dual core CPU, the kernel should spread each
lilypond process on one different core.  The reality may be a bit more
complex, but this is roughly the principle.

It may be possible to parallelize some portions of LilyPond code to take
advantage of multi-core machines, which gradually become quite common,
I'm tempted to have a look at it in the next months, but don't hold your
breath :-)

Cheers,
John



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


Re: Does lilypond takes advantage of multi-cores on windows?

2008-10-03 Thread sdfgsdhdshd



Anthony Boyd-2 wrote:
> 
>> -djob-count=[number of cores]
> 
> I don't think that job count changes things when you process a single
> input file though.  If you specify multiple input files to process
> then lilypond will fork off into different jobs to get the work done.
> 

Are the new processes only on one processor? or several?


-- 
View this message in context: 
http://www.nabble.com/Does-lilypond-takes-advantage-of-multi-cores-on-windows--tp19800443p19803048.html
Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com.



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


Re: Does lilypond takes advantage of multi-cores on windows?

2008-10-03 Thread Patrick Horgan

Graham Percival wrote:

No, since the -dhelp options change more often, and they're more
advanced stuff anyway.
  
If they continue to change frequently, it'd be a good target for a 
script building the documentation page from the output of the -dhelp


Patrick


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


Re: Does lilypond takes advantage of multi-cores on windows?

2008-10-03 Thread Graham Percival
On Fri, 3 Oct 2008 18:16:11 +0100
"Neil Puttock" <[EMAIL PROTECTED]> wrote:

> 2008/10/3  <[EMAIL PROTECTED]>:
> >
> > Where is the doc about this option? i didn't find it in the
> > command-line options doc.
> 
> lilypond -dhelp ;)
> 
> Perhaps we should document more of the command-line options.

No, since the -dhelp options change more often, and they're more
advanced stuff anyway.

If NR 1-4 were finished, I'd say "sure, go for it".  But this is
less important than those chapters, so it should wait until
they're done.

Cheers,
- Graham


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


Re: png cropping

2008-10-03 Thread Jonathan Kulp
Yes, that would probably do it.  I'll see if I can sort any of it out 
tonight after the kids are in bed.  Thanks for the suggestion, as 
always, Patrick. :)


Jon

Patrick Horgan wrote:

Jonathan Kulp wrote:
I've actually tried to do this.  I booted into the Windows partition 
of my machine and installed Cygwin and the netpbm package, but I had 
trouble finding the netpbm stuff from the Cygwin bash shell.  The 
shell seemed very isolated from the rest of the machine, as I couldn't 
access any of the documents in my home directory and in general it 
behaved in much the same way that virtual machines do when I've tried 
running them.  I couldn't even figure out how to run Lilypond from the 
Cygwin prompt, and the script pretty much relies on being able to do 
that :)
It's that pesky PATH thing again:)   If you have the stuff on there, and 
a PATH variable that points to the various places, then it will work.


Patrick



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


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


Re: png cropping

2008-10-03 Thread Patrick Horgan

Francisco Vila wrote:

2008/10/3 Jonathan Kulp <[EMAIL PROTECTED]>:
  

Patrick, you mentioned at some point along the way that it would have been
better if I had started the whole thing in Python instead of bash.  Would
this also have made it easier to port to Windows?

It wouldn't make it any easier or harder.  If you used Python you'd have 
to have the PATH set up and you'd have to have python.  It's just the 
script would have been much easier.


Patrick


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


Re: Does lilypond takes advantage of multi-cores on windows?

2008-10-03 Thread Neil Puttock
2008/10/3  <[EMAIL PROTECTED]>:
>
> Neil Puttock wrote:
>> -djob-count=[number of cores]
>
> Tx.
> Where is the doc about this option? i didn't find it in the command-line 
> options doc.

lilypond -dhelp ;)

Perhaps we should document more of the command-line options.

As Anthony points out though, it's of no use when processing single files.

Regards,
Neil


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


Re: png cropping

2008-10-03 Thread Patrick Horgan

Jonathan Kulp wrote:
I've actually tried to do this.  I booted into the Windows partition 
of my machine and installed Cygwin and the netpbm package, but I had 
trouble finding the netpbm stuff from the Cygwin bash shell.  The 
shell seemed very isolated from the rest of the machine, as I couldn't 
access any of the documents in my home directory and in general it 
behaved in much the same way that virtual machines do when I've tried 
running them.  I couldn't even figure out how to run Lilypond from the 
Cygwin prompt, and the script pretty much relies on being able to do 
that :)
It's that pesky PATH thing again:)   If you have the stuff on there, and 
a PATH variable that points to the various places, then it will work.


Patrick


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


Re: generating pdf and png but no ps

2008-10-03 Thread Jonathan Kulp
Ah, I understand now.  That's nice of you to say...

Surely your choir would never mess anything up? :)

Jon

On Fri, Oct 3, 2008 at 11:19 AM, Alexander Kobel <[EMAIL PROTECTED]> wrote:

>
>
> I didn't dig into your script at all (although I probably will some
> time); my "reinvention of the wheel" merely refers to my longish post a
> few minutes before, with different approaches to problems you seem to
> have already solved in a more elegant way.
> Anyway, I never needed all this stuff so far; I'm perfectly fine with a
> simple PDF file of nice stuff which my choir can mess up... So I'm stuck
> with makefiles and a tag every now and then. My opera is yet to come... :-)
>
>
>

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


Re: Does lilypond takes advantage of multi-cores on windows?

2008-10-03 Thread Anthony
> On Fri, 3 Oct 2008 08:46:06 -0700 (PDT)
> sdfgsdhdshd <[EMAIL PROTECTED]> wrote:
>
> No, lilypond will only use one core.  That said, you would be able
> to compile multiple scores at once.

> -djob-count=[number of cores]
>
> Regards,
> Neil

I don't think that job count changes things when you process a single
input file though.  If you specify multiple input files to process
then lilypond will fork off into different jobs to get the work done.

-Anthony


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


Re: Does lilypond takes advantage of multi-cores on windows?

2008-10-03 Thread Neil Puttock
2008/10/3 Graham Percival <[EMAIL PROTECTED]>:
> On Fri, 3 Oct 2008 08:46:06 -0700 (PDT)
> sdfgsdhdshd <[EMAIL PROTECTED]> wrote:
>
>>
>> I'm about to buy a new PC with Windows Vista (shame on me), which
>> will mainly be used to compile lilypond files, all day long.
>> Will a duo-core or better quad-core accelerate the compilations,
>> all others characteristics being the same, including processor speed?
>
> No, lilypond will only use one core.  That said, you would be able
> to compile multiple scores at once.

-djob-count=[number of cores]

Regards,
Neil


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


Re: generating pdf and png but no ps

2008-10-03 Thread Alexander Kobel
Jonathan Kulp wrote:
> [...]
> I suppose you could say it's a reinvention of the wheel, but this wheel
> rides more smoothly for me :)

I didn't dig into your script at all (although I probably will some
time); my "reinvention of the wheel" merely refers to my longish post a
few minutes before, with different approaches to problems you seem to
have already solved in a more elegant way.
Anyway, I never needed all this stuff so far; I'm perfectly fine with a
simple PDF file of nice stuff which my choir can mess up... So I'm stuck
with makefiles and a tag every now and then. My opera is yet to come... :-)

>>> [...]
>>> Your situation is perfectly suited for the script that Patrick Horgan
>>> and I wrote. [...]
>> These are the moments when I think I should set up my own little project
>> where I can reinvent the wheel for all basic stuff on myself.
>> I'm just missing an idea what this project should be all about... ;-)



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


Re: Does lilypond takes advantage of multi-cores on windows?

2008-10-03 Thread Graham Percival
On Fri, 3 Oct 2008 08:46:06 -0700 (PDT)
sdfgsdhdshd <[EMAIL PROTECTED]> wrote:

> 
> I'm about to buy a new PC with Windows Vista (shame on me), which
> will mainly be used to compile lilypond files, all day long.
> Will a duo-core or better quad-core accelerate the compilations,
> all others characteristics being the same, including processor speed?

No, lilypond will only use one core.  That said, you would be able
to compile multiple scores at once.

Cheers,
- Graham


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


Administrivia - digests now working?

2008-10-03 Thread drl
I never got any response from the GNU postmaster or listmaster folks
but I got a digest for lilypond-user today.  If you reported about
lack of digests as a problem to me directly or to the list in general,
would you please confirm to me (not the list) that you also received
a digest today.

--
David R. Linn - [EMAIL PROTECTED] - list manager for the GNU Lilypond project


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


Re: Notation Reference 1.8 "Text" : ready for review

2008-10-03 Thread Graham Percival
On Thu, 2 Oct 2008 18:51:36 +0200
"Valentin Villenave" <[EMAIL PROTECTED]> wrote:

> I'd like to declare that I officially don't feel competetent enough to
> find anything more on my own to improve the 1.8 section of the
> Notation Reference, aka "Text".

Be afraid.  Be very afraid.  :)

> So, I definitely need your help guys! Please have a look, and feel
> free to comment and criticize whatever comes to your mind.

No mercy, then.


- inspirational headword only uses \italics.  Boring.  (yeah, I
  know it fits the theme of Beethoven stuff, but since NR 2
doesn't always follow it, we might want a sexier headword for Text)

- the syntax for text spanners is a maoing disaster.
  #'bound-details #'left #'text?!  You've got to be kidding me.
It would be totally awesome if
  \startTextSpan #"foo"
set up the \override.
(ok, that's not a doc comment, but you said "critize whatever
comes to your mind, so this is your fault)

- final sentence of main text in Text marks:
When specified at the beginning of a score or at a line break,
marks will be printed at the beginning of the line (the next line,
in case of a line break).
  change to:
When specified at the a line break, the mark will be printed at
the beginning of the next line.
  we already know what happens at the beginning of a score, and
that sentence is too complicated.  As a general rule, be
suspicious if you use both parentheses and commas (in a single
sentence).
  [sic], of course.  :)

Also consider whether you should use "system" instead of "line".
Actually, I'd make this a general note for policy.txt: use
"system" instead of "line".  The term "line" could refer to a
musical voice, a system, or a literal line.  I'd therefore avoid
it unless I was talking about an actual line -- say, "a text
spanner creates a dotted line".

- Separate text: kill the "word processor" thing.  At most, you
  could say that you were using LilyPond as a text typesetter.
Also, what do you mean by "using a specific syntax"? (same
paragraph)

What does \markuplines do?  If it's not obvious (ie not \slurUp),
we need an example in the main text.

- 1.8.2 Formatting Text - text markup introduction:
This syntax even allows to print double quotation marks, by
preceding them with backslashes.
  change to
Double quotation marks may be printed by preceding them with
backslashes.

Are there any other characters that need to be escaped?  What
about {} ?  IIRC there used to be a list of such symbols... but
maybe that was somewhere in Vocal music.  Anyway, if {} need
escaping, that should be mentioned in this paragraph.

I'm still not wild about the
  d_\markup \italic "... prints \"italic\" letters!"
without {} following the \markup.  I think it's a good habit to
get into, and the manual should reinforce good habits.  The first
example on this page already shows that it's possible to omit the
{}, with the \markp intenso.

I don't understand the point of two \center-column examples.  Why
is the first one in there?  mentioning Text alignment here isn't
worth it; people will get to that material on their own.  Kill it;
the three \center-column example shows the point of quotes and
\line.
That said, the second example needs one more line:
c1^\markup { \center-column { a "bbb c" } }

Why the IR to TextScript?  AFAIK, there's nothing particular to
TextScript here; either add TextSpanner and RehearsalMark, or
remove the TextScript link.


- Selecting font size: why the mao aren't these examples in
  \relative c' ?!  Ugly, ugly!
(if you want to change them to top-level markup, that's also fine)

Change:
. the font size can be defined to an absolute value,
. predefined commands allow to easily select standard sizes,
  to:
. the font size can be set to standard sizes,
. the font size can be set to an absolute value,

Change the order of the example as well -- \large is easier to
understand than \fontsize #5, so do it first.  Also, add two more
examples for the \fontsize stuff, and make the indentation match
the other two \markup{ ... } commands.

"alternate font families", second sentence: change the colon to a
period to split it into two sentences.

_New dynamic marks_ and _Manual repeat marks_.: no punctuation
after the first @ref{}.  Remember that we can't do that.

@predef: missing \smaller and \larger.


That's as far as I got before I got bored.

Cheers,
- Graham


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


Does lilypond takes advantage of multi-cores on windows?

2008-10-03 Thread sdfgsdhdshd

I'm about to buy a new PC with Windows Vista (shame on me), which will mainly
be used to compile lilypond files, all day long.
Will a duo-core or better quad-core accelerate the compilations, all
others characteristics being the same, including processor speed?

Thank you.


-- 
View this message in context: 
http://www.nabble.com/Does-lilypond-takes-advantage-of-multi-cores-on-windows--tp19800443p19800443.html
Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com.



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


Re: generating pdf and png but no ps

2008-10-03 Thread Jonathan Kulp

Are you wondering what my lily2image project is about?  Well,

1) me learning how to script (biggest reason of all, probably, since 
this started out only as something I was going to use myself and evolved 
into something much more complicated)


2) creating musical examples (by which I mean images of music notation 
to insert in a document or web page) from lilypond source that are 
cropped properly (lilypond with png output does full pages)


3) being able to choose from variety of image output formats at the same 
moment as calling lilypond rather than having to convert them later;


4) being able to specify parameters with easy-to-remember flags instead 
of long options I have to look up in the documentation every time.


I suppose you could say it's a reinvention of the wheel, but this wheel 
rides more smoothly for me :)


Jon

Alexander Kobel wrote:

Jonathan Kulp wrote:

[...]
Your situation is perfectly suited for the script that Patrick Horgan
and I wrote. [...]

These are the moments when I think I should set up my own little project
where I can reinvent the wheel for all basic stuff on myself.
I'm just missing an idea what this project should be all about... ;-)



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


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


Re: generating pdf and png but no ps

2008-10-03 Thread Alexander Kobel
Jonathan Kulp wrote:
> [...]
> Your situation is perfectly suited for the script that Patrick Horgan
> and I wrote. [...]
These are the moments when I think I should set up my own little project
where I can reinvent the wheel for all basic stuff on myself.
I'm just missing an idea what this project should be all about... ;-)


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


Re: generating pdf and png but no ps

2008-10-03 Thread Sebastian Menge
Am Fri, 03 Oct 2008 16:13:30 +0200
schrieb Alexander Kobel <[EMAIL PROTECTED]>:

> > Is there a simple way to see (e.g. from the shell or an external
> > programming language) how many png-pages lilypond produced?
> Well, three things come into my mind.
> 
> > --png produces file-page1.png file-page2.png etc.
> First, quick 'n' dirty:
>   ls -1 "file-page*.png" | wc -l
> (This is the digit one after ls (one entry per line), and the letter L
> after wc (count lines).)
> Make sure there's nothing else matching to the filename pattern.
> Otherwise you could do a bash loop and count until there's no file of
> the expected name... Or try something like
>   ls -1 | grep -E 'file-page[0-9]+\.png' | wc -l
> 
> But, since you generate the pdf anyway:
> Second, using pdfinfo (which I'm not sure where it comes from, but it
> seems to be standard. Maybe xpdf?):
>   pdfinfo file.pdf | grep "Pages:"
> and remove the "Pages:\t" in your script.
> 
> Third, same idea, and yet another advertising for the great pdftk
> (http://www.accesspdf.com/pdftk/):
>   pdftk file.pdf dump_data | grep "NumberOfPages:"
> and remove the "NumberOfPages: " in your script.

There is no option to get similar output directly from lily?

Hmm, ok. These are enough workarounds to keep going.

And you are right, pdftk is a *great* tool (and FYI it's just a wrapper
to a java-library called iText by Bruno Lowagi. There are ports to
other languages (e.g. c#) , but i dont know about any port to
scheme :-) ) 

Thanks, S.


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


Re: generating pdf and png but no ps

2008-10-03 Thread Jonathan Kulp

Sebastian,

Your situation is perfectly suited for the script that Patrick Horgan 
and I wrote.  Now, the script also crops the extra white space off, so 
you might need to edit the script a bit if you don't want the margins 
cropped off. Just look for the part in the loop that uses pnmcrop.  It 
handles multipage files just fine, and it cleans up .ps files as part of 
the process.  It's very easy to set the resolution and output format 
(png is default, but it also supports many other formats).  Your command 
looks like this for a png output at 72 DPI:


lily2image -r=72 -f=png filename.ly

You can also make a transparent background if you want, and you can set 
it to preview the converted files in your default image viewer with a -p 
 flag.


The only dependency is the netpbm package, easily obtained from most 
linux repositories I would guess.


Script and manpage are attached.

Jonathan

Sebastian Menge wrote:

Am Fri, 3 Oct 2008 14:38:39 +0200
schrieb Sebastian Menge <[EMAIL PROTECTED]>:


How can I generate pdf and png but no ps?

Can I adjust resolution of the png? I just need thumbnails.

Is there a simple way to see (e.g. from the shell or an external
programming language) how many png-pages lilypond produced?


Ok, to clarify this a bit:

I'm invoking lilypond from a php-application and want to reduce the
number of shell commands as far as possible. I also dont want to tidy
up any mess that is generated but not needed. I just want the most
elegant way to generate a pdf and some thumbs to offer it on a web page.

And I know 'rm' and 'imagemagick' :-)

But it seems I need to write a wrapper for that.

Seb.


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



--
Jonathan Kulp
http://www.jonathankulp.com
.TH "lily2image" "1" "1.2" "Jonathan Kulp, Patrick Horgan" "Lilypond Helper 
Tools"
.SH "NAME"
.LP 
lily2image \- Convert lilypond source files into cropped musical examples in a 
variety of image formats.
.SH "SYNTAX"
.LP 
lily2image [\fIoption\fP] [\fIoption\fP] <\fIfilename.ly\fP>
.br 
.SH "DESCRIPTION"
.LP 
This program is designed to use Lilypond source files to create musical 
examples suitable for insertion in documents and web pages.  It requires the 
\fBnetpbm\fR package of image\-manipulation tools and supports a large variety 
of image formats. Without options, it gathers user preferences interactively to 
set the following parameters: resolution, background transparency, and desired 
output format. 
.SH "OPTIONS"
.LP 
.TP 
\fB\-r=, \-\-resolution=\fR
Set resolution to DPI specified by numeric value.
.TP 
\fB\-f=, \-\-format=\fR
Set desired image format.  For a full list of supported formats, see manpages 
for the pnmto and ppmto tools from \fBnetpbm\fR.
.TP 
\fB\-q, \-\-quiet\fR
All echo messages are suppressed and terminal is silent throughout conversion 
process. If any parameters are not set at command line, program assumes 
defaults (-f=png, -r=150).  If any errors occur, check return status for error 
codes.
.TP 
\fB\-p\fR
Preview. Display converted image in default image viewer, or in user\-specified 
viewer if set with \-V.
.TP 
\fB\-t, \-\-transparency\fR 
Set background to transparent (without this option background is white). Only 
png and gif formats support transparent background.
.TP 
\fB\-a, \-\-about\fR
Output program information end exit. 
.TP 
\fB\-u\fR
Output usage information and exit.
.TP 
\fB\-v\fR
Output version information and exit.
.TP 
\fB\-V=\fR
Specify image viewer. Options are "evince", eye of gnome ("eog"), and 
"gwenview" in Linux; "preview" in OSX.
.TP 
.SH "EXAMPLES"
.LP 
Since no options are set, this example will run the program in interactive mode:
.LP 
 lily2image filename.ly
.LP 
You may specify options at the command line. The following example creates a 
gif image with transparent background at a resolution of 300 dpi:
.LP 
 lily2image \-r=300 \-f=gif \-t filename.ly
.LP 
The next example converts to png. Since resolution is not set, user will be 
prompted to enter resolution value:
.LP 
 lily2image \-f=png filename.ly
.LP 
In this example, the resolution is still not set, but user will NOT be prompted 
to enter resolution value because quiet mode is specified.  Resolution will be 
the default 150 DPI:
.LP 
 lily2image \-f=png \-q filename.ly
.LP 
The last example will produce a gif image at 250 DPI with transparent 
background. It will run in quiet mode (suppressing all echo messages) but will 
display image in Evince viewer when finished since the \-p option is set and 
Evince is selected:
.LP 
 lily2image \-f=gif \-r=250 \-t \-q \-p \-V=evince filename.ly
.SH "EXIT STATUS"
.LP
In quiet mode, program exits with various return codes.
.PD 0
.TP
.I 0
Conversion successful.
.TP
.I 40
Transparency not set and no default.
.TP
.I 41
Format not set and no default.
.TP
.I 42
Resolution not set and no default.
.TP
.I 43
Netpbm utilities n

Re: generating pdf and png but no ps

2008-10-03 Thread Alexander Kobel
Sebastian Menge wrote:
> How can I generate pdf and png but no ps?
AFAIK for what you want, no; LilyPond needs the PS for PDF output.
IIRC, recently there was a discussion about implementing a switch to
automatically delete the intermediate PS, but currently there is none.
So you'll have to call a rm yourself. (Which does not harm too much;
it's not that rm generates much traffic even for a very restricted and
low-powered PHP server, is it?)

Wohoo. Just saw Gilles' mail; I think there's some possibility to call
the scheme command from the commandline, too, but you seem to need a
guile-user thingie... Not sure if this really helps, then. See the first
paragraph here:
http://lilypond.org/doc/v2.11/Documentation/user/lilypond-program/Command-line-options-for-lilypond#Command-line-options-for-lilypond

> Can I adjust resolution of the png? I just need thumbnails.
Grep for dresolution here:
http://lilypond.org/doc/v2.11/Documentation/user/lilypond-program/Command-line-options-for-lilypond#Command-line-options-for-lilypond
But: You may end up faster generating the PDF (which you seem to need
anyway) and use convert (ImageMagick) or gs or something to get the PNG;
you won't need a second engraving run then. (Is it possible to use --png
and --pdf output in Lily simultaneously? Never bothered...)

> Is there a simple way to see (e.g. from the shell or an external
> programming language) how many png-pages lilypond produced?
Well, three things come into my mind.

> --png produces file-page1.png file-page2.png etc.
First, quick 'n' dirty:
ls -1 "file-page*.png" | wc -l
(This is the digit one after ls (one entry per line), and the letter L
after wc (count lines).)
Make sure there's nothing else matching to the filename pattern.
Otherwise you could do a bash loop and count until there's no file of
the expected name... Or try something like
ls -1 | grep -E 'file-page[0-9]+\.png' | wc -l

But, since you generate the pdf anyway:
Second, using pdfinfo (which I'm not sure where it comes from, but it
seems to be standard. Maybe xpdf?):
pdfinfo file.pdf | grep "Pages:"
and remove the "Pages:\t" in your script.

Third, same idea, and yet another advertising for the great pdftk
(http://www.accesspdf.com/pdftk/):
pdftk file.pdf dump_data | grep "NumberOfPages:"
and remove the "NumberOfPages: " in your script.


HTH
Alexander


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


Re: generating pdf and png but no ps

2008-10-03 Thread Sebastian Menge
Am Fri, 3 Oct 2008 15:56:05 +0200
schrieb "Gilles THIBAULT" <[EMAIL PROTECTED]>:

> > How can I generate pdf and png but no ps?
> Try 
> #(ly:set-option 'delete-intermediate-files #t)

Yeah. that's exactly what I was looking for:

  lilypond -d delete-intermediate-files=#t test.ly

does the job.

Thanks alot, Seb.


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


Re: generating pdf and png but no ps

2008-10-03 Thread Gilles THIBAULT



How can I generate pdf and png but no ps?
Try 
   #(ly:set-option 'delete-intermediate-files #t)


Gilles


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


Re: generating pdf and png but no ps

2008-10-03 Thread Sebastian Menge
Am Fri, 3 Oct 2008 16:31:08 +0300
schrieb "Dmytro O. Redchuk" <[EMAIL PROTECTED]>:

> 2008/10/3 Gilles Sadowski <[EMAIL PROTECTED]>:
> > Hi.
> 
> >> Can I adjust resolution of the png? I just need thumbnails.
> >
> > $ convert file.png -resize 120 file_resized.png
> Probably, lilypond -dresolution can help, too.
> 
> >> Is there a simple way to see (e.g. from the shell or an external
> >> programming language) how many png-pages lilypond produced?

--png produces file-page1.png file-page2.png etc.

I dont know how many pages there are, but I want a thumbnail in a
html page for "each". So I have to make a loop to generate 
and 's. But for the loop I need the number of pages, I think.

Any other ideas are aprreciated.

Seb.



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


Re: generating pdf and png but no ps

2008-10-03 Thread Sebastian Menge
Am Fri, 3 Oct 2008 14:38:39 +0200
schrieb Sebastian Menge <[EMAIL PROTECTED]>:

> How can I generate pdf and png but no ps?
> 
> Can I adjust resolution of the png? I just need thumbnails.
> 
> Is there a simple way to see (e.g. from the shell or an external
> programming language) how many png-pages lilypond produced?

Ok, to clarify this a bit:

I'm invoking lilypond from a php-application and want to reduce the
number of shell commands as far as possible. I also dont want to tidy
up any mess that is generated but not needed. I just want the most
elegant way to generate a pdf and some thumbs to offer it on a web page.

And I know 'rm' and 'imagemagick' :-)

But it seems I need to write a wrapper for that.

Seb.


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


Re: generating pdf and png but no ps

2008-10-03 Thread Dmytro O. Redchuk
2008/10/3 Gilles Sadowski <[EMAIL PROTECTED]>:
> Hi.

>> Can I adjust resolution of the png? I just need thumbnails.
>
> $ convert file.png -resize 120 file_resized.png
Probably, lilypond -dresolution can help, too.

>> Is there a simple way to see (e.g. from the shell or an external
>> programming language) how many png-pages lilypond produced?

?

>
> Best,
> Gilles

-- 
Dmytro O. Redchuk


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


Re: generating pdf and png but no ps

2008-10-03 Thread Gilles Sadowski
Hi.

> How can I generate pdf and png but no ps?

$ lilypond file.ly
GNU LilyPond 2.10.33
Processing `file.ly'
Parsing...
Interpreting music... [2]
Preprocessing graphical objects...
Layout output to `file.ps'...
Converting to `file.pdf'...
$ rm file.ps

> Can I adjust resolution of the png? I just need thumbnails.

$ convert file.png -resize 120 file_resized.png

> Is there a simple way to see (e.g. from the shell or an external
> programming language) how many png-pages lilypond produced?

?

Best,
Gilles


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


Re: generating pdf and png but no ps

2008-10-03 Thread Tim Slattery
Sebastian Menge <[EMAIL PROTECTED]> wrote:

>Hi
>
>How can I generate pdf and png but no ps?

AFAIK, you can't. My understanding is that Lilypond generates the *.ps
first, then converts that to *.pdf. You could write a script that
invokes the program then deletes the *.ps file.

-- 
Tim Slattery
[EMAIL PROTECTED]
http://members.cox.net/slatteryt



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


generating pdf and png but no ps

2008-10-03 Thread Sebastian Menge
Hi

How can I generate pdf and png but no ps?

Can I adjust resolution of the png? I just need thumbnails.

Is there a simple way to see (e.g. from the shell or an external
programming language) how many png-pages lilypond produced?

Thanks, Sebastian.


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


Re: Notation Reference 1.8 "Text" : ready for review

2008-10-03 Thread Jonathan Kulp
This is really good, Valentin!  The examples are very clear and easy to 
understand.  And although I've followed the thread on documentation 
design, this was the first significant time I'd spent looking at docs in 
the new design. It looks really nice.  Thanks for all the work on 
design, guys!


Jon

Valentin Villenave wrote:

Greetings everybody,

after six months of hard work (and a significant hair loss as far as
Graham is concerned :-)
I'd like to declare that I officially don't feel competetent enough to
find anything more on my own to improve the 1.8 section of the
Notation Reference, aka "Text".

(and, yes, the former sentence should give you a good example of how
hard it is for me to explain things in a clear and simple way)

So, I definitely need your help guys! Please have a look, and feel
free to comment and criticize whatever comes to your mind.

http://kainhofer.com/~lilypond/Documentation/user/lilypond/Text.html#Text

(This section is better understood alongside with Appendix B.6, which
Neil has filled with nice and sensible examples)

Cheers,
Valentin


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



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


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


Re: png cropping

2008-10-03 Thread Francisco Vila
2008/10/3 Jonathan Kulp <[EMAIL PROTECTED]>:
> Patrick, you mentioned at some point along the way that it would have been
> better if I had started the whole thing in Python instead of bash.  Would
> this also have made it easier to port to Windows?

IMO yes, as for the script itself, and no, as for the tools it uses,
that are external anyway.
-- 
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: stem direction \longa

2008-10-03 Thread Mats Bengtsson

Strange, it works find over here, both with versions 2.10 and 2.11
\version "2.10.33"
\relative c'{
\time 4/1
c\longa c''
\stemUp c,, c''
\stemDown c,, c''
}

However, if you use
\override NoteHead #'style = #'baroque
then the neo-mensural note head style is used for
brevis, longa and maxima note heads and in that style,
there are only downward pointing versions (the same
happens if you use the mensural note head style).

  /Mats

Alan Fabian wrote:

Hi,

the \stemUp command does not work for \longa in my score.
Any solutions?

Thank you,
Alan


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


--
=
Mats Bengtsson
Signal Processing
School of Electrical Engineering
Royal Institute of Technology (KTH)
SE-100 44  STOCKHOLM
Sweden
Phone: (+46) 8 790 8463 
   Fax:   (+46) 8 790 7260
Email: [EMAIL PROTECTED]
WWW: http://www.s3.kth.se/~mabe
=



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