Re: beams and note stems

2013-05-09 Thread Helge Kruse
Just place the \override as Keith mentioned:
> before the first note of the beam

This works for me.

Regards
Helge

2013/5/9 Mark Stephen Mrotek 

> Mr. Payne:
>
> Thank you for your reply and correction. The command was inserted (see
> attached file). The stems are still of unequal length which is what I want
> to avoid.
>
> Does a command exist that shall make the stems equal length?
>
> Mark
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


\include problem in Scheme function

2013-05-09 Thread Urs Liska
Hi,

I want to implement a way to compile a score from a given music
expression. THe idea is to have a huge score edited in small chunks and
being able to only compile the tiny chunk one works on currently.

First I tried several things to compile a book within the function but
didn't succeed.
Then I realized that it basically could be very simple:

% in an included file
compileSegment =
#(define-music-function (parser location segment)
   (ly:music?)
   segment
   )

music = { c d c }

\compileSegment \music

which returns 'music' as a top-level expression that is compiled to a
score. I would still add a condition that only returns the segment when
the to-be-compiled file is a .ily file and not a .ly file. This way
'music' would only be printed when that segment file is compiled
standalone and not when it is 'used' by another .ly file. 

But this way the \include operations of the original score aren't
applied of course, so I'll get errors about "unknown escaped strings"
when they are used within 'music'.

First I thought to add

#{ \include "initEdition.ily" #}

but this (naturally) doesn't affect the returned 'segment' music.

So the question(s) is/are:
Can I change the above function to apply includes also, i.e. first
return the result of anything in the include files and then the
'segment'?

Or is there a better approach to my problem, i.e. compile a given music
expression to a score, including some \include files (that can be
hardcoded in the function) and only if the compiled file is an .ily, not
a .ly file?

Thanks for any help
Urs


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


Re: \include problem in Scheme function

2013-05-09 Thread David Kastrup
Urs Liska  writes:

> Hi,
>
> I want to implement a way to compile a score from a given music
> expression. THe idea is to have a huge score edited in small chunks and
> being able to only compile the tiny chunk one works on currently.
>
> First I tried several things to compile a book within the function but
> didn't succeed.

Minimal example?

-- 
David Kastrup


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


Re: \include problem in Scheme function

2013-05-09 Thread Urs Liska
Am Donnerstag, den 09.05.2013, 11:38 +0200 schrieb David Kastrup:
> Urs Liska  writes:
> 
> > Hi,
> >
> > I want to implement a way to compile a score from a given music
> > expression. THe idea is to have a huge score edited in small chunks and
> > being able to only compile the tiny chunk one works on currently.
> >
> > First I tried several things to compile a book within the function but
> > didn't succeed.
> 
> Minimal example?
> 

Minimal example (for that part) is already the solution (sometimes you
have to post a question in order to be able to answer it yourself :-)

compileSegment = 
#(define-void-function (parser location segment)
   (ly:music?)
   ; construct book
   (let ((book #{ \book { \score { \new Staff $segment } } #}))
 (ly:book-process book #{ \paper {} #} #{ \layout {} #} 
(ly:parser-output-name parser))
); close let
) % end function

music = { c d e d c \origBreak } % origBreak is defined in an include-file

\compileSegment \music



What I didn't achieve so far is how to \include library files.
It seems I can write an \include statement within \book before \score,
and it seems to find the file.
But it seems there are two problems with that:
a)
'music' is parsed before the \include is done within the function, so
\origBreak is still 'unknown'
b)
I get all sorts of messages about syntax errors in the included file, so
I have the impression such an \include from within a Scheme function is
something quite different from a regular \include in LilyPond mode.



Now what's still missing is the check whether the compiled file is a .ly
or a .ily file.
(ly:parser-output-name parser) gives me everything that's _not_
interesting in this case. Is it possible to get the file extension of
the file currently compiled?

Any further enlightenment highly appreciated!

Urs


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


Re: \include problem in Scheme function

2013-05-09 Thread David Kastrup
Urs Liska  writes:

> Am Donnerstag, den 09.05.2013, 11:38 +0200 schrieb David Kastrup:
>> Urs Liska  writes:
>> 
>> > Hi,
>> >
>> > I want to implement a way to compile a score from a given music
>> > expression. THe idea is to have a huge score edited in small chunks and
>> > being able to only compile the tiny chunk one works on currently.
>> >
>> > First I tried several things to compile a book within the function but
>> > didn't succeed.
>> 
>> Minimal example?
>> 
>
> Minimal example (for that part) is already the solution (sometimes you
> have to post a question in order to be able to answer it yourself :-)
>
> compileSegment = 
> #(define-void-function (parser location segment)
>(ly:music?)
>; construct book
>(let ((book #{ \book { \score { \new Staff $segment } } #}))
>  (ly:book-process book #{ \paper {} #} #{ \layout {} #} 
> (ly:parser-output-name parser))
> ); close let
> ) % end function
>
> music = { c d e d c \origBreak } % origBreak is defined in an include-file
>
> \compileSegment \music
>
> 
>
> What I didn't achieve so far is how to \include library files.

Separate \include library

perhaps?

> It seems I can write an \include statement within \book before \score,
> and it seems to find the file.
> But it seems there are two problems with that:
> a)
> 'music' is parsed before the \include is done within the function, so
> \origBreak is still 'unknown'
> b)
> I get all sorts of messages about syntax errors in the included file, so
> I have the impression such an \include from within a Scheme function is
> something quite different from a regular \include in LilyPond mode.

It is more like an \include from within a \book being something quite
different.  Also with #{ ... #}, ... is not "top level" but a music
expression.

To get top-level, you'll need something like

$(begin
  (ly:parser-parse-string (ly:parser-clone parser) "\\include \"zzz.ly\"")
  #{ \xxx c' c' c' c' #})
which works reasonably well here.

-- 
David Kastrup

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


Re: exponential crescendo... / Mike "experimental" spanners?

2013-05-09 Thread padovani
Really nice! thanks Janek and mike!


2013/5/9 Janek Warchoł 

> 2013/5/9 padovani :
> > Would there be another way to do that? (which would span to the right
> note,
> > and accept "dal niente" circle, for example?)
> >
> > %%code
> > \relative c' {
> > \once \override Hairpin  #'stencil = #ly:text-interface::print
> > \once \override Hairpin #'text = \markup{
> > \path #0.1
> > #'((moveto 0 0)
> > (lineto 6 0.25)
> > (rcurveto 0 0 0.2 0 0.25 0.3)
> > (moveto 0 0)
> > (lineto 6 -0.25)
> > (rcurveto 0 0 0.2 0 0.25 -0.3)
> > )}
> >
> > c2.\< ~
> > c8 d8 e4\!
> > }
> > %%end
> >
> > PS: I remember that Mike Solomon was working with experimental eps/ps
> > spanners... is this in any case integrated into LilyPond?\
>
> Yes, this was added in version 2.17.15 as commit bbfb7404fb
> (
> http://git.savannah.gnu.org/gitweb/?p=lilypond.git;a=commit;h=bbfb7404fbc6e58ac4a48e7e79a61f3cee768e6f
> )
> Documentation is currently being written, see
> http://code.google.com/p/lilypond/issues/detail?id=3235
>
> best,
> Janek
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: exponential crescendo... / Mike "experimental" spanners?

2013-05-09 Thread padovani
[have also posted that here: https://codereview.appspot.com/7615043/
... but issue seems to be closed]


Not sure if it was already mentioned...

just installed 2.17.17 and it seems that the new (and nice!) angled hairpins are
not compatible with the circled tip:

\once \override Hairpin #'circled-tip = ##t %%doesn't work
\once \override Hairpin #'stencil = #flared-hairpin
g4\< ~ g4 ~ g8\f


josé


2013/5/9 padovani 

> Really nice! thanks Janek and mike!
>
>
> 2013/5/9 Janek Warchoł 
>
>> 2013/5/9 padovani :
>> > Would there be another way to do that? (which would span to the right
>> note,
>> > and accept "dal niente" circle, for example?)
>> >
>> > %%code
>> > \relative c' {
>> > \once \override Hairpin  #'stencil = #ly:text-interface::print
>> > \once \override Hairpin #'text = \markup{
>> > \path #0.1
>> > #'((moveto 0 0)
>> > (lineto 6 0.25)
>> > (rcurveto 0 0 0.2 0 0.25 0.3)
>> > (moveto 0 0)
>> > (lineto 6 -0.25)
>> > (rcurveto 0 0 0.2 0 0.25 -0.3)
>> > )}
>> >
>> > c2.\< ~
>> > c8 d8 e4\!
>> > }
>> > %%end
>> >
>> > PS: I remember that Mike Solomon was working with experimental eps/ps
>> > spanners... is this in any case integrated into LilyPond?\
>>
>> Yes, this was added in version 2.17.15 as commit bbfb7404fb
>> (
>> http://git.savannah.gnu.org/gitweb/?p=lilypond.git;a=commit;h=bbfb7404fbc6e58ac4a48e7e79a61f3cee768e6f
>> )
>> Documentation is currently being written, see
>> http://code.google.com/p/lilypond/issues/detail?id=3235
>>
>> best,
>> Janek
>>
>
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: \include problem in Scheme function

2013-05-09 Thread Urs Liska
Am Donnerstag, den 09.05.2013, 13:21 +0200 schrieb David Kastrup:
> Urs Liska  writes:
> 
> > Am Donnerstag, den 09.05.2013, 11:38 +0200 schrieb David Kastrup:
> >> Urs Liska  writes:
> >> 
> >> ...
> >
> > 
> >
> > What I didn't achieve so far is how to \include library files.
> 
> Separate \include library
> perhaps?

Thanks, that actually worked, but I had to ensure that the include is
only done when compiled from the subfile (see below), otherwise it would
be included >2.000 times (because there are so many segments in the
score).

> 
> > It seems I can write an \include statement within \book before \score,
> > and it seems to find the file.
> > But it seems there are two problems with that:
> > a)
> > 'music' is parsed before the \include is done within the function, so
> > \origBreak is still 'unknown'
> > b)
> > I get all sorts of messages about syntax errors in the included file, so
> > I have the impression such an \include from within a Scheme function is
> > something quite different from a regular \include in LilyPond mode.
> 
> It is more like an \include from within a \book being something quite
> different.  Also with #{ ... #}, ... is not "top level" but a music
> expression.
> 
> To get top-level, you'll need something like
> 
> $(begin
>   (ly:parser-parse-string (ly:parser-clone parser) "\\include \"zzz.ly\"")
>   #{ \xxx c' c' c' c' #})
> which works reasonably well here.
> 

Thank you.
Took me a while to get it right, but I managed to find the solution
without asking back again :-) 
Here is the solution (relevant excerpts):

% initEdition.ily
% set a flag when this file is read for the first time
#(define-public editionInitialized #t)

% segmentLayout.ily
% set different layout settings
% set a flag
#(define-public isSegment #t

% compileSegment.ily
includeDefaults = 
#(define-void-function (parser location)()
   (if (defined? 'editionInitialized)
() ; initEdition already read (i.e. we're compiling the score or a part
(ly:parser-parse-string (ly:parser-clone parser) "\\include 
\"initEdition.ily\"
  \\include 
\"segmentLayout.ily\"")
))
\includeDefaults

compileSegment = 
#(define-void-function (parser location segment)
   (ly:music?)
   ; construct book
   (let ((book 
  #{ \book { \score { \new Staff $segment } } #} )) 
 (ly:book-process book #{ \paper {} #} #{ \layout {} #} 
(ly:parser-output-name parser))
); close let
) % end function

% 01.ily etc.

\include "compileSegment.ily"

music = { c d e d }

\compileSegment \music

Now I can also use commands in \music that have been defined in
initEdition.ily

##
BUT: One (hopefully last) issue still drives me crazy:

The above version of compileSegment works but lacks the if-condition:

If I wrap the function body in an if condition:

   (if (defined? 'isSegment)
   ((let ((book 
   #{ \book { \score { \new Staff $segment } } #} ))
 (ly:book-process book #{ \paper {} #} #{ \layout {} #} 
(ly:parser-output-name parser))
 ); close let
   ); close if true expression
   ); close if condition

I get an error:

In expression ((let* # #)):
Wrong type to apply: #

What am I doing wrong wiht this (let) block? Can't I use that inside the
'if true' expression?

Urs


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


Re: \include problem in Scheme function

2013-05-09 Thread Phil Holmes
- Original Message - 
From: "Urs Liska" 

To: 
Sent: Thursday, May 09, 2013 10:25 AM
Subject: \include problem in Scheme function



Hi,

I want to implement a way to compile a score from a given music
expression. THe idea is to have a huge score edited in small chunks and
being able to only compile the tiny chunk one works on currently.



[snip]



Or is there a better approach to my problem, i.e. compile a given music
expression to a score, including some \include files (that can be
hardcoded in the function) and only if the compiled file is an .ily, not
a .ly file?

Thanks for any help
Urs



Have you tried and abandoned \set Score.skipTypesetting ?

--
Phil Holmes

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


Re: \include problem in Scheme function

2013-05-09 Thread Urs Liska
Am Donnerstag, den 09.05.2013, 14:36 +0100 schrieb Phil Holmes:
> - Original Message - 
> From: "Urs Liska" 
> To: 
> Sent: Thursday, May 09, 2013 10:25 AM
> Subject: \include problem in Scheme function
> 
> 
> > Hi,
> > 
> > I want to implement a way to compile a score from a given music
> > expression. THe idea is to have a huge score edited in small chunks and
> > being able to only compile the tiny chunk one works on currently.
> > 
> 
> [snip]
> 
> > 
> > Or is there a better approach to my problem, i.e. compile a given music
> > expression to a score, including some \include files (that can be
> > hardcoded in the function) and only if the compiled file is an .ily, not
> > a .ly file?
> > 
> > Thanks for any help
> > Urs
> 
> 
> Have you tried and abandoned \set Score.skipTypesetting ?

That's another thing.
I want to have just the currently edited music expression...

Urs

> 
> --
> Phil Holmes




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


Re: \include problem in Scheme function

2013-05-09 Thread David Nalesnik
Hi Urs,


On Thu, May 9, 2013 at 8:31 AM, Urs Liska  wrote:


>
> ##
> BUT: One (hopefully last) issue still drives me crazy:
>
> The above version of compileSegment works but lacks the if-condition:
>
> If I wrap the function body in an if condition:
>
>(if (defined? 'isSegment)
>((let ((book
>  
>

You've got one two many left parentheses before your let.

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


Re: \include problem in Scheme function

2013-05-09 Thread Urs Liska
Am Donnerstag, den 09.05.2013, 09:00 -0500 schrieb David Nalesnik:
> Hi Urs,
> 
> 
> On Thu, May 9, 2013 at 8:31 AM, Urs Liska  wrote:
>  
> 
> 
> ##
> BUT: One (hopefully last) issue still drives me crazy:
> 
> The above version of compileSegment works but lacks the
> if-condition:
> 
> If I wrap the function body in an if condition:
> 
>(if (defined? 'isSegment)
>((let ((book
> 
> 
> 
> You've got one two many left parentheses before your let.

Thanks.
I suspected that, but didn't see the forest for the parens (ehm, trees).
I hadn't figured out which closing bracket to remove accordingly.

Now I think I've got it :-) :-)

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



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


Re: \include problem in Scheme function

2013-05-09 Thread David Nalesnik
Urs,

On Thu, May 9, 2013 at 9:12 AM, Urs Liska  wrote:

> Am Donnerstag, den 09.05.2013, 09:00 -0500 schrieb David Nalesnik:
> > Hi Urs,
> >
>


> >
> > You've got one two many left parentheses before your let.
>
> Thanks.
> I suspected that, but didn't see the forest for the parens (ehm, trees).
> I hadn't figured out which closing bracket to remove accordingly.
>
> Now I think I've got it :-) :-)
>
>
Great!

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


RE: beams and note stems

2013-05-09 Thread Mark Stephen Mrotek
Ms. Kruse and Mr. Payne:

Thank you. I had the command before the "des8." After placing it in the
beginning of the {   } I got what I wanted.

Mark 

-Original Message-
From: lilypond-user-bounces+carsonmark=ca.rr@gnu.org
[mailto:lilypond-user-bounces+carsonmark=ca.rr@gnu.org] On Behalf Of
Nick Payne
Sent: Wednesday, May 08, 2013 9:45 PM
To: lilypond-user@gnu.org
Subject: Re: beams and note stems

\times 4/6 { \once \override Beam #'positions = #'(-3 . 3) f32  [ aes des
\change Staff = "right" f aes des ] }

On 09/05/13 13:49, Mark Stephen Mrotek wrote:
> Mr. Payne:
>
> Thank you for your reply and correction. The command was inserted (see 
> attached file). The stems are still of unequal length which is what I 
> want to avoid.
>
> Does a command exist that shall make the stems equal length?
>
> Mark
>
>
> -Original Message-
> From: lilypond-user-bounces+carsonmark=ca.rr@gnu.org
> [mailto:lilypond-user-bounces+carsonmark=ca.rr@gnu.org] On Behalf 
> Of Nick Payne
> Sent: Wednesday, May 08, 2013 8:23 PM
> To: lilypond-user@gnu.org
> Subject: Re: beams and note stems
>
> If you're using 2.16, then \once\override Beam #'concaveness = 0
>
> On 09/05/13 13:07, Mark Stephen Mrotek wrote:
>> Mr. O'Hara:
>>
>> Thank you for your reply and instruction. I followed it (see attached
> file). This error message appears:
>>
>> syntax error, unexpected '=', expecting SCM_FUNCTION or 
>> SCM_IDENTIFIER or
> SCM_TOKEN
>> \once\override Beam.concaveness
>> = 0
>>
>> What did I do wrong?
>>
>> Mark
>>
>> -Original Message-
>> From: lilypond-user-bounces+carsonmark=ca.rr@gnu.org
> [mailto:lilypond-user-bounces+carsonmark=ca.rr@gnu.org] On Behalf 
> Of Keith OHara
>> Sent: Wednesday, May 08, 2013 8:55 AM
>> To: lilypond-user@gnu.org
>> Subject: Re: beams and note stems
>>
>> Mark Stephen Mrotek  ca.rr.com> writes:
>>
>>> How can I get all of the notes beamed and the stems of consistent
length?
>>>
>>
>> \once\override Beam.concaveness = 0  % bug 657 before the first 
>> note of
> the beam.
>>
>>
>>
>> ___
>> lilypond-user mailing list
>> lilypond-user@gnu.org
>> https://lists.gnu.org/mailman/listinfo/lilypond-user
>>
>>
>>
>> ___
>> lilypond-user mailing list
>> lilypond-user@gnu.org
>> https://lists.gnu.org/mailman/listinfo/lilypond-user
>>
>
>
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user
>


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


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


Re: \include problem in Scheme function

2013-05-09 Thread Urs Liska

Am 09.05.2013 16:16, schrieb David Nalesnik:


Urs,

On Thu, May 9, 2013 at 9:12 AM, Urs Liska > wrote:


Am Donnerstag, den 09.05.2013, 09:00 -0500 schrieb David Nalesnik:
> Hi Urs,
>

>
> You've got one two many left parentheses before your let.

Thanks.
I suspected that, but didn't see the forest for the parens (ehm,
trees).
I hadn't figured out which closing bracket to remove accordingly.

Now I think I've got it :-) :-)


Great!


Yes, feels very good.

And I hope it solves an issue with another library I'm having (wanted to 
generalize the generation of music examples for a book through a 
function, and was surprised that the global-staff-size wasn't respected. 
This is probably the same issue: including files from within a music 
expression).


Urs


-David



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


Re: LilyPond 2.16+ on WINE 1.0

2013-05-09 Thread Silas S. Brown
On Wed, May 08, 2013 at 12:50:46PM -0700, Graham Percival wrote:
> On Wed, May 08, 2013 at 08:43:13PM +0100, Silas S. Brown wrote:
> > Thanks Francisco.  Unfortunately the recommended installers
> > don't work for installing modern Lilypond on Debian Sarge.
> Bug report please.

You mean, installing modern Lilypond on an ancient Linux
distro is supposed to be supported?

Well, I downloaded
http://download.linuxaudio.org/lilypond/binaries/linux-x86/lilypond-2.16.2-1.linux-x86.sh
and chmod +x'd it and ran it, and it seemed to install,
but then when I tried to run Lilypond it said:

/usr/local/lilypond/usr/bin/lilypond: /lib/libgcc_s.so.1:
version "GCC_4.0.0" not found (required by
/usr/local/lilypond/usr/bin/lilypond)

so it seems this version of Lilypond won't run without a
version of the GCC library that came with GCC 4.

It'll have to bundle all its dependent libraries (and
hope there's no kernel dependencies in there) to work.

Silas

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


Re: LilyPond 2.16+ on WINE 1.0

2013-05-09 Thread Silas S. Brown
On Wed, May 08, 2013 at 10:13:48PM +0200, Felix Janda wrote:
> Is there no way to upgrade the kernel? From what I've read Debian Sarge
> also ran 2.6.8.

Yes it does, but I seem to remember I had some trouble
getting that going on that laptop.  (I could try again,
but seeing as it's a 16-hour round trip away I'd rather
have a backup plan.  Or maybe the backup plan is old Lilypond.)

Thanks.

Silas

-- 
Silas S Brown http://people.ds.cam.ac.uk/ssb22

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


Re: LilyPond 2.16+ on WINE 1.0

2013-05-09 Thread Graham Percival
On Thu, May 09, 2013 at 09:48:11PM +0100, Silas S. Brown wrote:
> On Wed, May 08, 2013 at 12:50:46PM -0700, Graham Percival wrote:
> > Bug report please.
> 
> You mean, installing modern Lilypond on an ancient Linux
> distro is supposed to be supported?

If there's a specific requirement, then it might be nice to list
them on the lilypond.org/unix.html download page.

> Well, I downloaded
> http://download.linuxaudio.org/lilypond/binaries/linux-x86/lilypond-2.16.2-1.linux-x86.sh
> and chmod +x'd it and ran it, and it seemed to install,
> but then when I tried to run Lilypond it said:
> 
> /usr/local/lilypond/usr/bin/lilypond: /lib/libgcc_s.so.1:
> version "GCC_4.0.0" not found (required by
> /usr/local/lilypond/usr/bin/lilypond)
> 
> so it seems this version of Lilypond won't run without a
> version of the GCC library that came with GCC 4.

Thanks, that's useful info.  Hopefully somebody can add "Requires
gcc 4.0 libraries or higher (included in all modern
distributions)" to the download page.

- Graham

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


Fw: numbered notes

2013-05-09 Thread MING TSANG
Hi lily users:

Is it possible to adapt the following numbr (at end of this email) which 
display number notes to display additional info as to the following table?

Thanks in advance,
Ming. 

Whole (semibreve):  1 - - -Dotted whole:   1 - - - - -Double dotted: 1 
- - - - - - Half (minim):   1 -Dotted half:1 - -  
Double dotted: 1 - - · Quarter (crotchet): 1  Dotted quarter: 1·
 Double dotted: 1·· Eighth (quaver): 1 Dotted eighth: 1· Double 
dotted: 1·· 16th (semiquaver):  1 =


- Forwarded Message -
>From: MING TSANG 
>To: "lilypond-user@gnu.org"  
>Sent: Wednesday, May 1, 2013 10:17:42 PM
>Subject: numbered notes
> 
>
>
>Hi lily user:
>
>
>  Is it possible to modify the following code. I like to display notes in 
>numbered equivalent. eg. key c\major
>f   = 4 - if possible there is a "." below the number e.g. *
>f'  =4 - e.g. 4
>f'' =4 - if possible to display a "." on top of the number e.g.$
>      
>Thanks,
>Ming.
>
>
>
>
>
>
>\version "2.17.0"
>\include "english.ly"
>numbr = #(make-engraver (acknowledgers
>((note-head-interface engraver grob source)
>(let* (
>(context (ly:translator-context engraver))
>(tonic-pitch (ly:context-property context 'tonic))
>(tonic-index (ly:pitch-notename tonic-pitch))
>(event (ly:grob-property grob 'cause))
>(grob-pitch (ly:event-property event 'pitch))
>(grob-index (ly:pitch-notename grob-pitch))
>(delta (modulo (- grob-index tonic-index) 7))
>(name (list-ref '("1" "2" "3" "4" "5" "6" "7") delta))
>(newgrob (ly:engraver-make-grob engraver 'TextScript event)))
>(set! (ly:grob-property newgrob 'text) name)
>musicI= \relative c {\key c\major c4 d e f g a b2  |\break }
>musicII= \relative c' {\key c\major c4 d e f g a b2  |\break }
>musicIII = \relative c'' { \key c\major c4 d e f g a b2  |\break }
>\score{
>\new Staff \with {\consists #numbr }
>  {\musicI \musicII  \musicIII}
>\layout {}
>}
>
><>___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


RE: numbered notes

2013-05-09 Thread Jun Wang
Do you mean JianPu ?I came cross this before 
http://people.ds.cam.ac.uk/ssb22/mwrhome/jianpu-ly.html
ThanksJun
Date: Thu, 9 May 2013 15:43:43 -0700
From: tsan...@rogers.com
Subject: Fw: numbered notes
To: lilypond-user@gnu.org

Hi lily users:
Is it possible to adapt the following numbr (at end of this email) which 
display number notes to display additional info as to the following table?
Thanks in advance,Ming. 
Whole (semibreve):  1 - - -Dotted whole:   1 - - - - -Double dotted: 1 
- - - - - -
 
Half (minim):   1 -Dotted half:1 - -  Double dotted: 1 
- - ·
 
Quarter (crotchet): 1  Dotted quarter: 1· Double dotted: 1··
 
Eighth (quaver):1  Dotted eighth:  1· Double dotted: 1··
 
16th (semiquaver):  1
=
 - Forwarded Message -
   From: MING TSANG 
 To: "lilypond-user@gnu.org"  
 Sent: Wednesday, May 1, 2013 10:17:42 PM
 Subject: numbered notes
   
Hi lily user:
  Is it possible to modify the following code. I like to display notes in 
numbered equivalent. eg. key c\majorf   = 4 - if possible there is a "." 
below the number e.g. *f'  = 4 - e.g. 4  f'' =   4 - if possible to 
display a "." on top of the number e.g.$  Thanks,Ming.


\version "2.17.0"
\include "english.ly"
numbr = #(make-engraver (acknowledgers
 ((note-head-interface engraver grob source)
(let* (
  (context (ly:translator-context engraver))
  (tonic-pitch (ly:context-property context 'tonic))
  (tonic-index (ly:pitch-notename tonic-pitch))
  (event (ly:grob-property grob 'cause))
  (grob-pitch (ly:event-property event 'pitch))
  (grob-index (ly:pitch-notename grob-pitch))
  (delta (modulo (- grob-index tonic-index) 7))
  (name (list-ref '("1" "2" "3" "4" "5" "6" "7") delta))
  (newgrob (ly:engraver-make-grob engraver 'TextScript event)))
   (set! (ly:grob-property newgrob 'text) name)

musicI= \relative c {\key c\major c4 d e f g a b2  |\break }
musicII= \relative c' {\key c\major c4 d e f g a b2  |\break }
musicIII = \relative c'' { \key c\major c4 d e f g a b2  |\break }

\score{
   \new Staff \with {\consists #numbr }
  {\musicI \musicII  \musicIII}
   \layout {}
}

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


Re: numbered notes

2013-05-09 Thread MING TSANG
Hi, Jun:

Yes, I mean jianpu.   That web page was from Silas S. Brown.  He told me that 
jianpy.ly is accepting jianpu based on the table.  Lilypond will not display 
jianpu.  I was told if I want to have jianpu display together I have to enter 
the code twice, one with lilypond and one with jianpu.  I just want to enter 
lilypond code and have option to display jianpu without manually translates it.

Thanks,
Ming.



>
> From: Jun Wang 
>To: MING TSANG ; "lilypond-user@gnu.org" 
> 
>Sent: Thursday, May 9, 2013 7:30:04 PM
>Subject: RE: numbered notes
> 
>
>
> 
>Do you mean JianPu ?
>I came cross this before 
>http://people.ds.cam.ac.uk/ssb22/mwrhome/jianpu-ly.html
>
>
>Thanks
>Jun
>
>
>
>
>Date: Thu, 9 May 2013 15:43:43 -0700
>From: tsan...@rogers.com
>Subject: Fw: numbered notes
>To: lilypond-user@gnu.org
>
>
>Hi lily users:
>
>
>Is it possible to adapt the following numbr (at end of this email) which 
>display number notes to display additional info as to the following table?
>
>
>Thanks in advance,
>Ming. 
>
>
>Whole (semibreve):  1 - - -Dotted whole:   1 - - - - -Double dotted: 1 
>- - - - - - Half (minim):   1 -Dotted half:1 - -  
>Double dotted: 1 - - · Quarter (crotchet): 1  Dotted quarter: 1·   
>  Double dotted: 1·· Eighth (quaver): 1 Dotted eighth: 1· 
>Double dotted: 1·· 16th (semiquaver):  1 =
>
>
>- Forwarded Message -
>>From: MING TSANG 
>>To: "lilypond-user@gnu.org"  
>>Sent: Wednesday, May 1, 2013 10:17:42 PM
>>Subject: numbered notes
>> 
>>
>>
>>Hi lily user:
>>
>>
>>  Is it possible to modify the following code. I like to display notes in 
>>numbered equivalent. eg. key c\major
>>f   = 4 - if possible there is a "." below the number e.g. *
>>f'  =4 - e.g. 4
>>f'' =4 - if possible to display a "." on top of the number e.g.$
>>      
>>Thanks,
>>Ming.
>>
>>
>>
>>
>>
>>
>>\version "2.17.0"
>>\include "english.ly"
>>numbr = #(make-engraver (acknowledgers
>>((note-head-interface engraver grob source)
>>(let* (
>>(context (ly:translator-context engraver))
>>(tonic-pitch (ly:context-property context 'tonic))
>>(tonic-index (ly:pitch-notename tonic-pitch))
>>(event (ly:grob-property grob 'cause))
>>(grob-pitch (ly:event-property event 'pitch))
>>(grob-index (ly:pitch-notename grob-pitch))
>>(delta (modulo (- grob-index tonic-index) 7))
>>(name (list-ref '("1" "2" "3" "4" "5" "6" "7") delta))
>>(newgrob (ly:engraver-make-grob engraver 'TextScript event)))
>>(set! (ly:grob-property newgrob 'text) name)
>>musicI= \relative c {\key c\major c4 d e f g a b2  |\break }
>>musicII= \relative c' {\key c\major c4 d e f g a b2  |\break }
>>musicIII = \relative c'' { \key c\major c4 d e f g a b2  |\break }
>>\score{
>>\new Staff \with {\consists #numbr }
>>  {\musicI \musicII  \musicIII}
>>\layout {}
>>}
>>
>>
>___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user
>
>___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user