Re: problem with Illustrator exported eps using \epsfile

2016-05-05 Thread Ryan Michael
For future thread reference, in adobe illustrator, if you do "Save As > EPS
file"

You want to set the "Preview Format" field to "None"

On Thu, May 5, 2016 at 10:53 PM, Ryan Michael 
wrote:

> You are brilliant Sven! how could you inspect / intuit the binary header?
>
> Currently would just like to shift the eps image to the left of its
> current placement. How can I do that?
>
> On Thu, May 5, 2016 at 10:44 PM, Sven Axelsson 
> wrote:
>
>> On 6 May 2016 at 00:34, Ryan Michael  wrote:
>> >
>> > Forgive me. The error is:
>> >
>> >
>> > lilypond/current/scm/stencil.scm:779:26: Wrong type argument in
>> position 1:
>> > #f
>> >
>> > On Thu, May 5, 2016 at 3:23 PM, Simon Albrecht 
>> > wrote:
>> >>
>> >> On 06.05.2016 00:14, Ryan Michael wrote:
>> >>>
>> >>> I have the following snippet
>> >>>
>> >>> %%%
>> >>>
>> >>> 2\fermata^\markup{
>> >>>  \epsfile #X #20 #"recorder_fingering.eps"
>> >>> }
>> >>>
>> >>> %%%
>> >>>
>> >>> Where I use an eps file generated from Adobe Illustrator.
>> >>> Here is the .eps file
>> >>>
>> >>>
>> http://www.mediafire.com/download/f3st88sh146vbja/recorder_fingering.eps
>> >>>
>> >>>
>> >>> I have had this problem before. I don't know how to solve it.
>> >>
>> >>
>> >> And what _is_ the problem? :-)
>>
>> The file contains a binary header and binary preview data. I suppose
>> Lilypond does not like that. Is it possible to save without preview
>> and thumbnail images in Illustrator (I don't have the program myself)?
>>
>> --
>> Sven Axelsson
>> ++[>++>+++>++>++
>> ><-]>.+..>+.>+.<<-.>>+.>.<<.
>> +++.>-.<<++.>>.<++.>>>++..>>.<.
>>
>
>
>
> --
> ॐ नमः शिवाय
>



-- 
ॐ नमः शिवाय
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: problem with Illustrator exported eps using \epsfile

2016-05-05 Thread Ryan Michael
You are brilliant Sven! how could you inspect / intuit the binary header?

Currently would just like to shift the eps image to the left of its current
placement. How can I do that?

On Thu, May 5, 2016 at 10:44 PM, Sven Axelsson 
wrote:

> On 6 May 2016 at 00:34, Ryan Michael  wrote:
> >
> > Forgive me. The error is:
> >
> >
> > lilypond/current/scm/stencil.scm:779:26: Wrong type argument in position
> 1:
> > #f
> >
> > On Thu, May 5, 2016 at 3:23 PM, Simon Albrecht 
> > wrote:
> >>
> >> On 06.05.2016 00:14, Ryan Michael wrote:
> >>>
> >>> I have the following snippet
> >>>
> >>> %%%
> >>>
> >>> 2\fermata^\markup{
> >>>  \epsfile #X #20 #"recorder_fingering.eps"
> >>> }
> >>>
> >>> %%%
> >>>
> >>> Where I use an eps file generated from Adobe Illustrator.
> >>> Here is the .eps file
> >>>
> >>>
> http://www.mediafire.com/download/f3st88sh146vbja/recorder_fingering.eps
> >>>
> >>>
> >>> I have had this problem before. I don't know how to solve it.
> >>
> >>
> >> And what _is_ the problem? :-)
>
> The file contains a binary header and binary preview data. I suppose
> Lilypond does not like that. Is it possible to save without preview
> and thumbnail images in Illustrator (I don't have the program myself)?
>
> --
> Sven Axelsson
> ++[>++>+++>++>++
> ><-]>.+..>+.>+.<<-.>>+.>.<<.
> +++.>-.<<++.>>.<++.>>>++..>>.<.
>



-- 
ॐ नमः शिवाय
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: problem with Illustrator exported eps using \epsfile

2016-05-05 Thread Sven Axelsson
On 6 May 2016 at 00:34, Ryan Michael  wrote:
>
> Forgive me. The error is:
>
>
> lilypond/current/scm/stencil.scm:779:26: Wrong type argument in position 1:
> #f
>
> On Thu, May 5, 2016 at 3:23 PM, Simon Albrecht 
> wrote:
>>
>> On 06.05.2016 00:14, Ryan Michael wrote:
>>>
>>> I have the following snippet
>>>
>>> %%%
>>>
>>> 2\fermata^\markup{
>>>  \epsfile #X #20 #"recorder_fingering.eps"
>>> }
>>>
>>> %%%
>>>
>>> Where I use an eps file generated from Adobe Illustrator.
>>> Here is the .eps file
>>>
>>> http://www.mediafire.com/download/f3st88sh146vbja/recorder_fingering.eps
>>>
>>>
>>> I have had this problem before. I don't know how to solve it.
>>
>>
>> And what _is_ the problem? :-)

The file contains a binary header and binary preview data. I suppose
Lilypond does not like that. Is it possible to save without preview
and thumbnail images in Illustrator (I don't have the program myself)?

-- 
Sven Axelsson
++[>++>+++>++>++
><-]>.+..>+.>+.<<-.>>+.>.<<.
+++.>-.<<++.>>.<++.>>>++..>>.<.

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


Re: attachments and digest mode

2016-05-05 Thread David Wright
On Thu 05 May 2016 at 11:26:17 (-0700), Flaming Hakama by Elaine wrote:
> > This thread is dying a quick death.  I have raised this issue with the
> > nonsensical digest attachments several times in the last several years.
> > Those threads also died a quick death.  I wonder how many get the Lilypond
> > user list via the digest rather than as individual emails.  I would guess
> > maybe 4 or 5 get the digest, or else this issue would get at least a little
> > attention.
> 
> Another theory is that most people post code inline, so the use of
> attachments is a marginal practice in general, and therefore not worth the
> effort.

"Inline" is an ambiguous term. I understand that you probably mean
%
%{ an inline example %}
%

but there's a more "interesting" meaning in this discussion which is
where people post an inline image in their HTML code. These are not
displayed to people reading emails as text, not are they accessible to
people reading the digest (unless they're using Carl Sorensen's
"special mode" on Outlook).

> I certainly ignore messages that have code only in attachments.  Of course,
> that is by necessity since I can't access these attachments.  But I don't
> feel like I've been left out of much follow-up discussion on that basis,
> since it seems like most replies are inline.
> 
> In most cases, I assume attachments are used because the poster has not
> bothered to create a minimal example.  Because if they did, it would be
> easier to include the code as part of their actual message.

Well, the last attachments I sent were fairly close to minimal for the
problem in hand (making LilyPond run the python interpreter to write LP
code which LP immediately interprets in the same run).

[-- Attachment #2: make-cake.py --]
[-- Type: text/x-python, Encoding: 7bit, Size: 0.1K --]

outfile = open('eat-me.ly', 'w')
print('{ c\'4 }', file=outfile)

[-- Attachment #3: yummy.ly --]
[-- Type: text/x-lilypond, Encoding: 7bit, Size: 0.1K --]

pyMx =
#(define-void-function (parser location)()
(system "python3 make-cake.py")
  )

\pyMx

\include "eat-me.ly"

[-- Attachment #4: yummy.pdf --]
[-- Type: application/pdf, Encoding: base64, Size: 25K --]

[-- application/pdf is unsupported (use 'v' to view this part) --]

[-- Attachment #5: eat-me.ly --]
[-- Type: text/x-lilypond, Encoding: 7bit, Size: 0.1K --]

{ c'4 }

[-- Attachment #6 --]
[-- Type: text/plain, Encoding: 7bit, Size: 0.1K --]

___

> (Of course, there are some cases where attachments are more appropriate.
> But there are workarounds--you can always just ask the poster to resend you
> the attachments in a private email if you feel compelled to help out.  So,
> this issue is not a deal-breaker for me.)
> 
> > Did you succeed in copying David Linn?  Did you get a response?  I don?t
> > think he?s responded on the list.  Do you know any powers that be at
> > gnu.org that are a little lower in the hierarchy?
> 
> I have not made any attempts to contact anyone specific.
> 
> My assumption is that anyone managing a list also reads it.  If not, the
> list needs a new or additional manager, or a liaison.

Yes, but a person who volunteered (or was asked) to manage a list may
not be deal with technical problems such as those we are discussing.
I sent my original observations to webmast...@gnu.org but, as I said,
that might be *too* far up the chain.

Here's the text (inline!):

✂✂

Subject: Broken link

Could you tell me why this link does not exist on your server?

http://lists.gnu.org/archive/html/lilypond-user/attachments/20160312/6eba7c13/attachment.png

I have taken this link from the following email which is a
lilypond-user digest:

Message-ID: 

The first message in this digest has a "scrubbed" attachment.
An email version of this message received directly from the list would
have this attachment. The digest contains the link above in its place.
There is no obvious route by which the attachment is available.

Interestingly however, the attachment *is* available on your server
but at a different address. In this case it is:

http://lists.gnu.org/archive/html/lilypond-user/2016-03/pngHJxj6irVRF.png

Why is this address not given in the digest?

Cheers,
David.

✂✂

Perhaps it was too matter-of-fact.

Cheers,
David.

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


Re: attachments and digest mode

2016-05-05 Thread David Wright
On Fri 06 May 2016 at 00:05:03 (+), Carl Sorensen wrote:
> On 5/4/16 8:00 PM, "Cynthia Karl"  wrote:
> >
> >> Message: 4
> >> Date: Fri, 29 Apr 2016 20:21:28 -0500
> >> From: David Wright 
> >> To: Flaming Hakama by Elaine 
> >> Subject: Re: attachments and digest mode
> >> 
> >> On Fri 29 Apr 2016 at 17:05:05 (-0700), Flaming Hakama by Elaine wrote:
> >> 
> >>> I will note, however, that the suggestions about using images or
> >>> attachments don't seem to work with the list in digest mode.
> >>> 
> >>> Choosing an example from the latest digest, the attachment link yeilds a
> >>> 404 error.
> >>> 
> >>> Is that intentional, that attachments are neither included in the digest,
> >>> nor are they available through links?
> >> 
> >> Some are available through links; just not the ones given in the digest.
> >> I don't know the particulars of your example because I had already
> >> deleted it (not interested in chord mode) by the time I read your
> >>posting.
> >
> >In my experience, all are available through links, but never the ones
> >given in the digest.
> 
> Links on digest work for me, but I get them in a special mode on Outlook.

That's interesting, but not very informative. What do these links look
like? Where precisely do they occur in the digest? Are they in a
section that looks like:

-- next part --
A non-text attachment was scrubbed...
Name: mark.png
Type: image/png
Size: 18016 bytes
Desc: not available
URL: 


--

Do the link addresses look like the above or like this:
http://lists.gnu.org/archive/html/lilypond-user/2016-05/pngMsAi5Dk5bC.png

What's the "special mode"? (I don't use Outlook but my wife does.)

Cheers,
David.

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


Re: attachments and digest mode

2016-05-05 Thread David Wright
On Wed 04 May 2016 at 21:00:22 (-0500), Cynthia Karl wrote:
> 
> > Message: 4
> > Date: Fri, 29 Apr 2016 20:21:28 -0500
> > From: David Wright 
> > To: Flaming Hakama by Elaine 
> > Subject: Re: attachments and digest mode
> > 
> > On Fri 29 Apr 2016 at 17:05:05 (-0700), Flaming Hakama by Elaine wrote:
> > 
> >> I will note, however, that the suggestions about using images or
> >> attachments don't seem to work with the list in digest mode.
> >> 
> >> Choosing an example from the latest digest, the attachment link yeilds a
> >> 404 error.
> >> 
> >> Is that intentional, that attachments are neither included in the digest,
> >> nor are they available through links?
> > 
> > Some are available through links; just not the ones given in the digest.
> > I don't know the particulars of your example because I had already
> > deleted it (not interested in chord mode) by the time I read your posting.
> 
> In my experience, all are available through links, but never the ones given 
> in the digest.

You're probably right. I think I might in the past have looked for a
scrubbed html attachment and forgotten that lots of digest messages
have one of these, and I can only assume they're the html alternative
of a text/html multipart pair.

> > I pointed this out to the powers that be at gnu.org a while back,
> > but that might have been sent too high up the chain of admin. So
> > I'll try copying David Linn into this email instead.
> 
> This thread is dying a quick death.  I have raised this issue with the 
> nonsensical digest attachments several times in the last several years.  
> Those threads also died a quick death.  I wonder how many get the Lilypond 
> user list via the digest rather than as individual emails.  I would guess 
> maybe 4 or 5 get the digest, or else this issue would get at least a little 
> attention. 
> 
> Did you succeed in copying David Linn?

Yes, I sent a personal greeting, and also copied him into the post on
the list.

> Did you get a response?

Not yet.

> I don’t think he’s responded on the list.  Do you know any powers that be at 
> gnu.org that are a little lower in the hierarchy?

'Fraid not.

> Does anyone that gets the digest receive valid attachment URLs?

I don't think that's possible. I don't see an option for subscribing
to the digest in any other format than plain text.

Cheers,
David.

PS you don't need to Cc me, though I don't mind if you do.
(I set my Reply-To: to the list.)

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


Re: attachments and digest mode

2016-05-05 Thread Cynthia Karl

> On May 5, 2016, at 7:05 PM, Carl Sorensen  wrote:
> 
> 
> 
> On 5/4/16 8:00 PM, "Cynthia Karl"  wrote:
> 
>> 
>> In my experience, all are available through links, but never the ones
>> given in the digest.
> 
> Links on digest work for me, but I get them in a special mode on Outlook.

The special mode must originate with the digest sender, because I can’t imagine 
how Outlook could otherwise convert the links I get into the actual links.

What mode is it?  Can you send me in private an example of such a digest?

Thanks,
Pat

> 
> Carl


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


Re: problem with Illustrator exported eps using \epsfile

2016-05-05 Thread David Wright
On Fri 06 May 2016 at 01:14:11 (+0200), Thomas Morley wrote:
> 2016-05-06 0:34 GMT+02:00 Ryan Michael :
> > Forgive me. The error is:
> >
> > lilypond/current/scm/stencil.scm:779:26: Wrong type argument in position 1:
> > #f
> >
> > On Thu, May 5, 2016 at 3:23 PM, Simon Albrecht  
> > wrote:
> >> On 06.05.2016 00:14, Ryan Michael wrote:
> >>> I have the following snippet
> >>>
> >>> %%%
> >>>
> >>> 2\fermata^\markup{
> >>>  \epsfile #X #20 #"recorder_fingering.eps"
> >>> }
> >>>
> >>> %%%
> >>>
> >>> Where I use an eps file generated from Adobe Illustrator.
> >>> Here is the .eps file
> >>>
> >>> http://www.mediafire.com/download/f3st88sh146vbja/recorder_fingering.eps

I used wget on that address and got an HTML page. So I browsed instead,
and got taken to a download button with 846.19KB inscribed on it.

> >>> I have had this problem before. I don't know how to solve it.
> >>
> >> And what _is_ the problem? :-)
> 
> I've no idea what Adobe Illustrator thinks it is doing.
> I had a hard time to open it in any text-editor, most of them simply crashed.
> 
> Then I opened it with gimp and stored it without any change under a
> different name.
> Now it works on my machine.

Your new attachment is 11KB of base64, or just 8643 bytes!
(I left the problem alone.)

Cheers,
David.

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


Re: Multiple place number skip ranges

2016-05-05 Thread Andrew Bernard
Hi David and Harm,

Thank you both for your outstanding work on this topic. David’s final cut works 
perfectly for my needs, and your code Thomas is also highly illuminating.

I feel sure others will use this. A good candidate for an LSR snippet?

Thomas, your my-nmbrs procedure is a glorious example of the sheer beauty of 
Scheme. I had similar, but you get the award for elegant compactness. Such a 
wonderful language.

Andrew



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


Re: attachments and digest mode

2016-05-05 Thread Carl Sorensen


On 5/4/16 8:00 PM, "Cynthia Karl"  wrote:

>
>> Message: 4
>> Date: Fri, 29 Apr 2016 20:21:28 -0500
>> From: David Wright 
>> To: Flaming Hakama by Elaine 
>> Subject: Re: attachments and digest mode
>> 
>> On Fri 29 Apr 2016 at 17:05:05 (-0700), Flaming Hakama by Elaine wrote:
>> 
>>> I will note, however, that the suggestions about using images or
>>> attachments don't seem to work with the list in digest mode.
>>> 
>>> Choosing an example from the latest digest, the attachment link yeilds
>>>a
>>> 404 error.
>>> 
>>> Is that intentional, that attachments are neither included in the
>>>digest,
>>> nor are they available through links?
>> 
>> Some are available through links; just not the ones given in the digest.
>> I don't know the particulars of your example because I had already
>> deleted it (not interested in chord mode) by the time I read your
>>posting.
>
>In my experience, all are available through links, but never the ones
>given in the digest.

Links on digest work for me, but I get them in a special mode on Outlook.

Carl


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


Re: problem with Illustrator exported eps using \epsfile

2016-05-05 Thread Thomas Morley
2016-05-06 0:34 GMT+02:00 Ryan Michael :
>
> Forgive me. The error is:
>
>
> lilypond/current/scm/stencil.scm:779:26: Wrong type argument in position 1:
> #f
>
> On Thu, May 5, 2016 at 3:23 PM, Simon Albrecht 
> wrote:
>>
>> On 06.05.2016 00:14, Ryan Michael wrote:
>>>
>>> I have the following snippet
>>>
>>> %%%
>>>
>>> 2\fermata^\markup{
>>>  \epsfile #X #20 #"recorder_fingering.eps"
>>> }
>>>
>>> %%%
>>>
>>> Where I use an eps file generated from Adobe Illustrator.
>>> Here is the .eps file
>>>
>>> http://www.mediafire.com/download/f3st88sh146vbja/recorder_fingering.eps
>>>
>>>
>>> I have had this problem before. I don't know how to solve it.
>>
>>
>> And what _is_ the problem? :-)
>>
>> Best, Simon
>
>
>
>
> --
> ॐ नमः शिवाय


I've no idea what Adobe Illustrator thinks it is doing.
I had a hard time to open it in any text-editor, most of them simply crashed.

Then I opened it with gimp and stored it without any change under a
different name.
Now it works on my machine.

{
  2
  \fermata^\markup{
   \epsfile #X #20 #"recorder_fingering-harm.eps"
  }
}

Cheers,
  Harm


recorder_fingering-harm.eps
Description: PostScript document
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Multiple place number skip ranges

2016-05-05 Thread David Nalesnik
Correction for cases when you have more pages than you specified ranges for:

On Thu, May 5, 2016 at 9:18 AM, David Nalesnik  wrote:


> \version "2.19.30"
>
>
> #(define (my-nmbrs rngs)
>(append-map (lambda (e) (iota (- (last e) (- (car e) 1)) (car e) 1)) rngs))
>
> #(define-markup-command (use-page-number-ranges layout props arg)
>(number-list?)
>(let ((page-number (chain-assoc-get 'page:page-number props -1)))
>  (interpret-markup layout props
>(if (< page-number (length arg))
>(number->string (list-ref arg (1- page-number)))
>(chain-assoc-get 'page:page-number-string props -1)

#(define-markup-command (use-page-number-ranges layout props ls)
   (number-list?)
   (let ((page-number (chain-assoc-get 'page:page-number props -1))
 (len (length ls)))
 (interpret-markup layout props
   (number->string
(if (< page-number len)
(list-ref ls (1- page-number))
(+ page-number (- (last ls) len)))

>
> \paper {
>   print-first-page-number = ##t
>   print-page-number = ##t
>   oddHeaderMarkup = \markup
>   \fill-line {
> " "
> \on-the-fly #not-first-page \fromproperty #'header:instrument
> \on-the-fly #print-page-number-check-first \use-page-number-ranges
> #(my-nmbrs '((1) (3 5) (7 10)))
>   }
>   evenHeaderMarkup = \markup
>   \fill-line {
> \on-the-fly #print-page-number-check-first \use-page-number-ranges
> #(my-nmbrs '((1) (3 5) (7 10)))
> \on-the-fly #not-first-page \fromproperty #'header:instrument
> " "
>   }
> }
>
> \score {
>   \new Staff {
> \repeat unfold 15 {
>   s1
>   \pageBreak
> }
>   }
> }

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


Re: problem with Illustrator exported eps using \epsfile

2016-05-05 Thread Ryan Michael
Forgive me. The error is:


lilypond/current/scm/stencil.scm:779:26: Wrong type argument in position 1:
#f

On Thu, May 5, 2016 at 3:23 PM, Simon Albrecht 
wrote:

> On 06.05.2016 00:14, Ryan Michael wrote:
>
>> I have the following snippet
>>
>> %%%
>>
>> 2\fermata^\markup{
>>  \epsfile #X #20 #"recorder_fingering.eps"
>> }
>>
>> %%%
>>
>> Where I use an eps file generated from Adobe Illustrator.
>> Here is the .eps file
>>
>> http://www.mediafire.com/download/f3st88sh146vbja/recorder_fingering.eps
>>
>>
>> I have had this problem before. I don't know how to solve it.
>>
>
> And what _is_ the problem? :-)
>
> Best, Simon
>



-- 
ॐ नमः शिवाय
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Some help with music theory

2016-05-05 Thread Carl Sorensen
Thanks to all who replied.  I have several people who have volunteered to
answer my questions.  I'll probably pass them around to different people
so nobody gets too much work.

Thanks for being part of a great community!

Carl



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


Re: problem with Illustrator exported eps using \epsfile

2016-05-05 Thread Simon Albrecht

On 06.05.2016 00:14, Ryan Michael wrote:

I have the following snippet

%%%

2\fermata^\markup{
 \epsfile #X #20 #"recorder_fingering.eps"
}

%%%

Where I use an eps file generated from Adobe Illustrator.
Here is the .eps file

http://www.mediafire.com/download/f3st88sh146vbja/recorder_fingering.eps


I have had this problem before. I don't know how to solve it.


And what _is_ the problem? :-)

Best, Simon

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


problem with Illustrator exported eps using \epsfile

2016-05-05 Thread Ryan Michael
I have the following snippet

%%%

2\fermata^\markup{
 \epsfile #X #20 #"recorder_fingering.eps"
}

%%%

Where I use an eps file generated from Adobe Illustrator.
Here is the .eps file

http://www.mediafire.com/download/f3st88sh146vbja/recorder_fingering.eps


I have had this problem before. I don't know how to solve it.

Thanks!
Ryan.



-- 
ॐ नमः शिवाय
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: attachments and digest mode

2016-05-05 Thread Flaming Hakama by Elaine
> This thread is dying a quick death.  I have raised this issue with the
> nonsensical digest attachments several times in the last several years.
> Those threads also died a quick death.  I wonder how many get the Lilypond
> user list via the digest rather than as individual emails.  I would guess
> maybe 4 or 5 get the digest, or else this issue would get at least a little
> attention.
>

Another theory is that most people post code inline, so the use of
attachments is a marginal practice in general, and therefore not worth the
effort.

I certainly ignore messages that have code only in attachments.  Of course,
that is by necessity since I can't access these attachments.  But I don't
feel like I've been left out of much follow-up discussion on that basis,
since it seems like most replies are inline.

In most cases, I assume attachments are used because the poster has not
bothered to create a minimal example.  Because if they did, it would be
easier to include the code as part of their actual message.

(Of course, there are some cases where attachments are more appropriate.
But there are workarounds--you can always just ask the poster to resend you
the attachments in a private email if you feel compelled to help out.  So,
this issue is not a deal-breaker for me.)



> Did you succeed in copying David Linn?  Did you get a response?  I don?t
> think he?s responded on the list.  Do you know any powers that be at
> gnu.org that are a little lower in the hierarchy?
>

I have not made any attempts to contact anyone specific.

My assumption is that anyone managing a list also reads it.  If not, the
list needs a new or additional manager, or a liaison.



David Elaine Alt
415 . 341 .4954   "*Confusion is
highly underrated*"
ela...@flaminghakama.com
self-immolation.info
skype: flaming_hakama
Producer ~ Composer ~ Instrumentalist
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: broken link at lilypond.org

2016-05-05 Thread Gilberto Agostinho
Hi Urs,

Thanks a lot, I wasn't sure if website related problems should also go to
the bug list.

Cheers,
Gilberto



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/broken-link-at-lilypond-org-tp190394p190396.html
Sent from the User mailing list archive at Nabble.com.

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


Re: broken link at lilypond.org

2016-05-05 Thread Urs Liska
You should usually direct this at the bug-lilypond mailing list, but I
have created an issue
https://sourceforge.net/p/testlilyissues/issues/4848/ and will take care
of it.

Urs


Am 05.05.2016 um 19:35 schrieb Gilberto Agostinho:
> Hi all,
>
> I don't know if I should report this to the bug squad or simply point it our
> here in the user list, but there is a broken link in the main website. In
> the page about the Google Summer of Code
> http://lilypond.org/google-summer-of-code.html , section "Improve default
> beam positioning", a link to a book named Repository of Music Notation
> Mistakes is given. The link address is actually incorrect, missing the last
> words. The correct link should be:
>
> http://imslp.org/wiki/Repository_of_Music-Notation_Mistakes_%28Coulon,_Jean-Pierre%29
>
> Are any of you reading this able to fix it? Else, would you know whom should
> I contact for fixes in the website?
>
> Cheers,
> Gilberto
>
>
>
> --
> View this message in context: 
> http://lilypond.1069038.n5.nabble.com/broken-link-at-lilypond-org-tp190394.html
> Sent from the User mailing list archive at Nabble.com.
>
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user


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


broken link at lilypond.org

2016-05-05 Thread Gilberto Agostinho
Hi all,

I don't know if I should report this to the bug squad or simply point it our
here in the user list, but there is a broken link in the main website. In
the page about the Google Summer of Code
http://lilypond.org/google-summer-of-code.html , section "Improve default
beam positioning", a link to a book named Repository of Music Notation
Mistakes is given. The link address is actually incorrect, missing the last
words. The correct link should be:

http://imslp.org/wiki/Repository_of_Music-Notation_Mistakes_%28Coulon,_Jean-Pierre%29

Are any of you reading this able to fix it? Else, would you know whom should
I contact for fixes in the website?

Cheers,
Gilberto



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/broken-link-at-lilypond-org-tp190394.html
Sent from the User mailing list archive at Nabble.com.

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


Re: Some help with music theory

2016-05-05 Thread Gilberto Agostinho
Hi Carl,

I'd be happy to take a look on your assignments off-list. I don't know
exactly which book you are using (that link lists a couple of pdf files) nor
what specifically are you learning, but I think I might be able to give you
a hand (I am finishing my masters in composition right now).


Take care,
Gilberto



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Some-help-with-music-theory-tp190382p190393.html
Sent from the User mailing list archive at Nabble.com.

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


Fwd: Re: modifying the lilypond-book.ly - file

2016-05-05 Thread Gabriel Ruprecht

Dear lilypond-user,

Jan Nieuwenhuizen, told me to send my question here.
It is about modifying lilypond-book. I searched the web, but without any 
solution.


The original question is below.

Gabriel Ruprecht writes:

Dear Gabriel,

Could you please send your question to lilypond-user@gnu.org?
You can get help there, and others may benefit from your
solution.

Greetings,
Jan


Dear Mister Nieuwenhuizen,

First, I read a lot about documentation and stuff about lilypond and
lilypond-book. I got your mail from inside the ly-file.

I have a question about the lilypond-book.
I'm doing a Latex-Package right now.
Therefore, I need pre-compiled snippets.

In one sentence: I need the snippets, you create with lilypond-book in one
pdf-file. Every snippet should equal a new page.
Is there a possibility to use lilypond-book this way?

The other way would be modifying lilypond-book and distribute it with the
package. The question is, where to modify what.

If you could give me some information, or help me, I would appreciate it very
much.

Best regards,

Gabriel Ruprecht

About me:
I can do some C++, Java and LabView. I already read an introduction to python.

About my project:
I didn't like the existing songbook-packages, so I decided to make my own.
It should be userfriendly, so that non-Tex-safe people can use it.
It is divided in several parts:
-First, the class: The Class formats everything and will be based on two-sided
article class and/or book-class (currently, it's book)
-The FillPages-Package: It fills the page number to a number divideable by a
custom number (i.e. 4). The fill pages will be empty and/or predefined. (works
afaik)
-The Liederbuch-package: This provides the commands, for creating
resource-songbooks. (works afaik)
-Resource-songbooks: For example you digitalize the songbook of some church/
parish. This res.songb. will be \included. From there, the songs will be
inserted via a command.
-designs: There will be a default design, but everyone can create a custom
design.

an example document:

\documentclass[a4paper, 11pt]{Liederheft}
\include{example-resource-songbook}

\begin{document}
\title{example}

\maketitlepage

\insertFillPages

%This inserts the songs.
\LHsong{example-resource-songbook}{1}%second one is songnumber in resource
sonbook
\LHsong{example-resource-songbook}{3}
\LHsong{example-resource-songbook}{476}

\insertFillPages

\end{document}

example-resource-songbook

\begin{Liederbuch}
\begin{Lied}{t}{1}
<>
\end{Lied}
\begin{Lied}{t}{3}
<>
\end{Lied}
\begin{Lied}{t}{476}
<>
\end{Lied}
\end{Liederbuch}






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


Re: Scheme book (p)review

2016-05-05 Thread SoundsFromSound
Urs Liska wrote
> The book is far from complete and from a state where I'd publicly share
> the link but if anyone is interested in (p)reviewing i I'll do so
> privately. Basically I'm interested in three kinds of critical looks
> from different kinds of readers:
> 
> - pointing to issues that are not explained clearly or thoroughly enough
>   (i.e for example where I'm still relying on knowledge the reader
> doesn't have yet)
> - comments on missing topics
> - spotting factual errors

Hi Urs,

I'd be happy to take a look at your book and give you some feedback and
comments from certain perspectives. Happy to help if you still need some
eyes! :)




-
composer | sound designer 
LilyPond Tutorials (for beginners) --> http://bit.ly/bcl-lilypond
--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Scheme-book-p-review-tp190300p190391.html
Sent from the User mailing list archive at Nabble.com.

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


Re: Multiple place number skip ranges

2016-05-05 Thread David Nalesnik
On Thu, May 5, 2016 at 10:22 AM, Thomas Morley  wrote:
> 2016-05-05 16:48 GMT+02:00 David Nalesnik :
>> On Thu, May 5, 2016 at 9:30 AM, Thomas Morley  
>> wrote:
>>
>>> Bolied down to whats _really_ needed. Far better!
>>
>> Well, if you say so!  There's a bit of stuff in your code that I need
>> to come to grips with.  For a while now I haven't been able to open
>> VirtualBox and get to LilyDev on my Win10 machine,
>
> A problem with LilyDev or too busy with none-lilypond tasks?

Oh, no, I don't blame LilyDev!  When I attempt to open Oracle VM
VirtualBox to get to LilyDev, I get a spinner, nothing.  I probably
have to update VirtualBox, but I don't want to do it before I am able
to save a copy of all the work I have.  I feel a little stupid, but I
can't find the files on my system...  And, yes, too many other
responsibilities have kept me from figuring this out.

>
>> I haven't kept up
>> with new developments  (I'm guessing propert-recursive-markup is new?)
>
> Nope.
> It's in fromproperty of 2.16.2 already.
> I simply c/p-ed it and did not research what it actually does.

Ah, OK!

Thanks,
David

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


Re: Multiple place number skip ranges

2016-05-05 Thread Andrew Bernard
Hi Harm,

On 5/05/2016, 11:53 PM, "Thomas Morley"  wrote:

>Right now I don't remember such code. Just to refresh my memory,
>please provide a link.

I don’t have the link but these are the code fragments I collected.

By the way, the subject line for this topic was meant to read ‘multiple page 
number skip ranges’ - but I suppose it’s clear what I meant by now.

Andrew

— snip

% procedures for altering page numbering.


% author: David Nalesnik 2013

#(define-markup-command (skip-page-number-range layout props arg) (number-list?)
   (let ((page-number (chain-assoc-get 'page:page-number props -1)))
 (interpret-markup layout props
   (if (>= page-number (car arg))
   (number->string (+ page-number (1+ (- (cadr arg) (car arg)
   (chain-assoc-get 'page:page-number-string props -1)


% author: Curt McDowell 2013

% define a list of page numbers to skip
% #(define page-number-skip-list '(3 4 7 14))

#(define (pages-less skip-list page offset)
   (if (null? skip-list) offset
   (pages-less (cdr skip-list) page
 (+ offset (if (<= (car skip-list) (+ page offset)) 1 0)

#(define-markup-command (page-number-compute layout props) ()
   (let ((page-number (chain-assoc-get 'page:page-number props 0)))
 (interpret-markup layout props
   (format "~a"
 (+ page-number (pages-less page-number-skip-list page-number 0))



— snip




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


Re: Multiple place number skip ranges

2016-05-05 Thread Thomas Morley
2016-05-05 16:48 GMT+02:00 David Nalesnik :
> On Thu, May 5, 2016 at 9:30 AM, Thomas Morley  
> wrote:
>
>> Bolied down to whats _really_ needed. Far better!
>
> Well, if you say so!  There's a bit of stuff in your code that I need
> to come to grips with.  For a while now I haven't been able to open
> VirtualBox and get to LilyDev on my Win10 machine,

A problem with LilyDev or too busy with none-lilypond tasks?

> I haven't kept up
> with new developments  (I'm guessing propert-recursive-markup is new?)

Nope.
It's in fromproperty of 2.16.2 already.
I simply c/p-ed it and did not research what it actually does.

Cheers,
  Harm

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


Re: Multiple place number skip ranges

2016-05-05 Thread David Nalesnik
On Thu, May 5, 2016 at 9:30 AM, Thomas Morley  wrote:

> Bolied down to whats _really_ needed. Far better!

Well, if you say so!  There's a bit of stuff in your code that I need
to come to grips with.  For a while now I haven't been able to open
VirtualBox and get to LilyDev on my Win10 machine, I haven't kept up
with new developments  (I'm guessing propert-recursive-markup is new?)

--David

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


Re: Multiple place number skip ranges

2016-05-05 Thread Thomas Morley
2016-05-05 16:18 GMT+02:00 David Nalesnik :
> Hi,
>
> On Thu, May 5, 2016 at 8:53 AM, Thomas Morley  
> wrote:
>> Hi Andrew,
>>
>> 2016-05-05 5:57 GMT+02:00 Andrew Bernard :
>>> David Nalesnik and various others I think have written scheme to allow you
>>> to skip a range of numbers when page numbering, or to give a direct list of
>>> page numbers to be used.
>>
>> Right now I don't remember such code. Just to refresh my memory,
>> please provide a link.
>>
>>> I want to be able to specify something like this
>>> list to only have the specified ranges printed, all in one continous score
>>> (yes, there is a use case for this!).
>>>
>>> ((1 24) (52 64) (70 80) (100 110))
>>>
>>> Of course, alternatively you could have list of ranges to skip rather than
>>> include.
>>
>>
>> How about:
>>
>> \version "2.19.36"
>>
>> #(define-markup-command
>>   (page-range-fromproperty layout props page-ranges symbol)
>>   (list? symbol?)
>>
>>   (define (my-nmbrs rngs)
>> (append-map (lambda (e) (iota (- (last e) (- (car e) 1)) (car e) 1)) 
>> rngs))
>>
>>   (let ((m (chain-assoc-get symbol props))
>> (page-nmbr (chain-assoc-get 'page:page-number props -1)))
>> (if (markup? m)
>> ;; prevent infinite loops by clearing the interpreted property:
>> (interpret-markup
>>   layout
>>   (cons
>> (list (cons symbol `(,property-recursive-markup ,symbol)))
>> props)
>>   (if (and (string? m)
>>(number? (string->number m))
>>(= (string->number m) page-nmbr))
>>   (format #f "~a"
>> (let ((my-ranges (my-nmbrs page-ranges)))
>>   ;; if entries from `page-ranges' are done, fall back to
>>   ;; usual page-numbering
>>   (if (> (length my-ranges) (1- page-nmbr))
>>   (list-ref my-ranges (1- page-nmbr))
>>   page-nmbr)))
>>m))
>> empty-stencil)))
>>
>> #(define ranges '((1 24) (52 64) (70 80) (100 110)))
>>
>> \paper {
>>   oddHeaderMarkup = \markup
>>   \fill-line {
>> ""
>> \on-the-fly #not-part-first-page \fromproperty #'header:instrument
>> \on-the-fly #print-page-number-check-first
>>   \page-range-fromproperty #ranges #'page:page-number-string
>>   }
>>
>>   %% evenHeaderMarkup would inherit the value of
>>   %% oddHeaderMarkup if it were not defined here
>>   evenHeaderMarkup = \markup
>>   \fill-line {
>> \on-the-fly #print-page-number-check-first
>>   \page-range-fromproperty #ranges #'page:page-number-string
>> \on-the-fly #not-part-first-page \fromproperty #'header:instrument
>> ""
>>   }
>> }
>>
>>
>> \new Staff \repeat unfold 70 { c''1 \pageBreak }
>>
>
> The reference is to
> http://www.mail-archive.com/lilypond-user%40gnu.org/msg85967.html,
> which I've adapted below to number the given ranges rather than what's
> excluded.
>
> Harm, your mail just came through, so I borrowed your my-nmbrs :)

:)

> For what it's worth::
>
> \version "2.19.30"
>
>
> #(define (my-nmbrs rngs)
>(append-map (lambda (e) (iota (- (last e) (- (car e) 1)) (car e) 1)) rngs))

Bolied down to whats _really_ needed. Far better!

> #(define-markup-command (use-page-number-ranges layout props arg)
>(number-list?)
>(let ((page-number (chain-assoc-get 'page:page-number props -1)))
>  (interpret-markup layout props
>(if (< page-number (length arg))
>(number->string (list-ref arg (1- page-number)))
>(chain-assoc-get 'page:page-number-string props -1)
>
> \paper {
>   print-first-page-number = ##t
>   print-page-number = ##t
>   oddHeaderMarkup = \markup
>   \fill-line {
> " "
> \on-the-fly #not-first-page \fromproperty #'header:instrument
> \on-the-fly #print-page-number-check-first \use-page-number-ranges
> #(my-nmbrs '((1) (3 5) (7 10)))
>   }
>   evenHeaderMarkup = \markup
>   \fill-line {
> \on-the-fly #print-page-number-check-first \use-page-number-ranges
> #(my-nmbrs '((1) (3 5) (7 10)))
> \on-the-fly #not-first-page \fromproperty #'header:instrument
> " "
>   }
> }
>
> \score {
>   \new Staff {
> \repeat unfold 15 {
>   s1
>   \pageBreak
> }
>   }
> }

Cheers,
  Harm

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


Re: Multiple place number skip ranges

2016-05-05 Thread David Nalesnik
Hi,

On Thu, May 5, 2016 at 8:53 AM, Thomas Morley  wrote:
> Hi Andrew,
>
> 2016-05-05 5:57 GMT+02:00 Andrew Bernard :
>> David Nalesnik and various others I think have written scheme to allow you
>> to skip a range of numbers when page numbering, or to give a direct list of
>> page numbers to be used.
>
> Right now I don't remember such code. Just to refresh my memory,
> please provide a link.
>
>> I want to be able to specify something like this
>> list to only have the specified ranges printed, all in one continous score
>> (yes, there is a use case for this!).
>>
>> ((1 24) (52 64) (70 80) (100 110))
>>
>> Of course, alternatively you could have list of ranges to skip rather than
>> include.
>
>
> How about:
>
> \version "2.19.36"
>
> #(define-markup-command
>   (page-range-fromproperty layout props page-ranges symbol)
>   (list? symbol?)
>
>   (define (my-nmbrs rngs)
> (append-map (lambda (e) (iota (- (last e) (- (car e) 1)) (car e) 1)) 
> rngs))
>
>   (let ((m (chain-assoc-get symbol props))
> (page-nmbr (chain-assoc-get 'page:page-number props -1)))
> (if (markup? m)
> ;; prevent infinite loops by clearing the interpreted property:
> (interpret-markup
>   layout
>   (cons
> (list (cons symbol `(,property-recursive-markup ,symbol)))
> props)
>   (if (and (string? m)
>(number? (string->number m))
>(= (string->number m) page-nmbr))
>   (format #f "~a"
> (let ((my-ranges (my-nmbrs page-ranges)))
>   ;; if entries from `page-ranges' are done, fall back to
>   ;; usual page-numbering
>   (if (> (length my-ranges) (1- page-nmbr))
>   (list-ref my-ranges (1- page-nmbr))
>   page-nmbr)))
>m))
> empty-stencil)))
>
> #(define ranges '((1 24) (52 64) (70 80) (100 110)))
>
> \paper {
>   oddHeaderMarkup = \markup
>   \fill-line {
> ""
> \on-the-fly #not-part-first-page \fromproperty #'header:instrument
> \on-the-fly #print-page-number-check-first
>   \page-range-fromproperty #ranges #'page:page-number-string
>   }
>
>   %% evenHeaderMarkup would inherit the value of
>   %% oddHeaderMarkup if it were not defined here
>   evenHeaderMarkup = \markup
>   \fill-line {
> \on-the-fly #print-page-number-check-first
>   \page-range-fromproperty #ranges #'page:page-number-string
> \on-the-fly #not-part-first-page \fromproperty #'header:instrument
> ""
>   }
> }
>
>
> \new Staff \repeat unfold 70 { c''1 \pageBreak }
>

The reference is to
http://www.mail-archive.com/lilypond-user%40gnu.org/msg85967.html,
which I've adapted below to number the given ranges rather than what's
excluded.

Harm, your mail just came through, so I borrowed your my-nmbrs :)

For what it's worth::

\version "2.19.30"


#(define (my-nmbrs rngs)
   (append-map (lambda (e) (iota (- (last e) (- (car e) 1)) (car e) 1)) rngs))

#(define-markup-command (use-page-number-ranges layout props arg)
   (number-list?)
   (let ((page-number (chain-assoc-get 'page:page-number props -1)))
 (interpret-markup layout props
   (if (< page-number (length arg))
   (number->string (list-ref arg (1- page-number)))
   (chain-assoc-get 'page:page-number-string props -1)

\paper {
  print-first-page-number = ##t
  print-page-number = ##t
  oddHeaderMarkup = \markup
  \fill-line {
" "
\on-the-fly #not-first-page \fromproperty #'header:instrument
\on-the-fly #print-page-number-check-first \use-page-number-ranges
#(my-nmbrs '((1) (3 5) (7 10)))
  }
  evenHeaderMarkup = \markup
  \fill-line {
\on-the-fly #print-page-number-check-first \use-page-number-ranges
#(my-nmbrs '((1) (3 5) (7 10)))
\on-the-fly #not-first-page \fromproperty #'header:instrument
" "
  }
}

\score {
  \new Staff {
\repeat unfold 15 {
  s1
  \pageBreak
}
  }
}

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


Re: Multiple place number skip ranges

2016-05-05 Thread Thomas Morley
2016-05-05 15:53 GMT+02:00 Thomas Morley :
> Hi Andrew,
>
> 2016-05-05 5:57 GMT+02:00 Andrew Bernard :
>> David Nalesnik and various others I think have written scheme to allow you
>> to skip a range of numbers when page numbering, or to give a direct list of
>> page numbers to be used.
>
> Right now I don't remember such code. Just to refresh my memory,
> please provide a link.
>
>> I want to be able to specify something like this
>> list to only have the specified ranges printed, all in one continous score
>> (yes, there is a use case for this!).
>>
>> ((1 24) (52 64) (70 80) (100 110))
>>
>> Of course, alternatively you could have list of ranges to skip rather than
>> include.
>
>
> How about:
>
> \version "2.19.36"
>
> #(define-markup-command
>   (page-range-fromproperty layout props page-ranges symbol)
>   (list? symbol?)
>
>   (define (my-nmbrs rngs)
> (append-map (lambda (e) (iota (- (last e) (- (car e) 1)) (car e) 1)) 
> rngs))
>
>   (let ((m (chain-assoc-get symbol props))
> (page-nmbr (chain-assoc-get 'page:page-number props -1)))
> (if (markup? m)
> ;; prevent infinite loops by clearing the interpreted property:
> (interpret-markup
>   layout
>   (cons
> (list (cons symbol `(,property-recursive-markup ,symbol)))
> props)
>   (if (and (string? m)
>(number? (string->number m))
>(= (string->number m) page-nmbr))
>   (format #f "~a"
> (let ((my-ranges (my-nmbrs page-ranges)))
>   ;; if entries from `page-ranges' are done, fall back to
>   ;; usual page-numbering
>   (if (> (length my-ranges) (1- page-nmbr))
>   (list-ref my-ranges (1- page-nmbr))
>   page-nmbr)))
>m))
> empty-stencil)))
>
> #(define ranges '((1 24) (52 64) (70 80) (100 110)))
>
> \paper {
>   oddHeaderMarkup = \markup
>   \fill-line {
> ""
> \on-the-fly #not-part-first-page \fromproperty #'header:instrument
> \on-the-fly #print-page-number-check-first
>   \page-range-fromproperty #ranges #'page:page-number-string
>   }
>
>   %% evenHeaderMarkup would inherit the value of
>   %% oddHeaderMarkup if it were not defined here
>   evenHeaderMarkup = \markup
>   \fill-line {
> \on-the-fly #print-page-number-check-first
>   \page-range-fromproperty #ranges #'page:page-number-string
> \on-the-fly #not-part-first-page \fromproperty #'header:instrument
> ""
>   }
> }
>
>
> \new Staff \repeat unfold 70 { c''1 \pageBreak }
>
>
> HTH,
>   Harm

Limitation:
doesn't work with:
page-number-type = #'roman-upper

Could probably be made working. You need that?

Cheers,
  Harm

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


Re: Multiple place number skip ranges

2016-05-05 Thread Thomas Morley
Hi Andrew,

2016-05-05 5:57 GMT+02:00 Andrew Bernard :
> David Nalesnik and various others I think have written scheme to allow you
> to skip a range of numbers when page numbering, or to give a direct list of
> page numbers to be used.

Right now I don't remember such code. Just to refresh my memory,
please provide a link.

> I want to be able to specify something like this
> list to only have the specified ranges printed, all in one continous score
> (yes, there is a use case for this!).
>
> ((1 24) (52 64) (70 80) (100 110))
>
> Of course, alternatively you could have list of ranges to skip rather than
> include.


How about:

\version "2.19.36"

#(define-markup-command
  (page-range-fromproperty layout props page-ranges symbol)
  (list? symbol?)

  (define (my-nmbrs rngs)
(append-map (lambda (e) (iota (- (last e) (- (car e) 1)) (car e) 1)) rngs))

  (let ((m (chain-assoc-get symbol props))
(page-nmbr (chain-assoc-get 'page:page-number props -1)))
(if (markup? m)
;; prevent infinite loops by clearing the interpreted property:
(interpret-markup
  layout
  (cons
(list (cons symbol `(,property-recursive-markup ,symbol)))
props)
  (if (and (string? m)
   (number? (string->number m))
   (= (string->number m) page-nmbr))
  (format #f "~a"
(let ((my-ranges (my-nmbrs page-ranges)))
  ;; if entries from `page-ranges' are done, fall back to
  ;; usual page-numbering
  (if (> (length my-ranges) (1- page-nmbr))
  (list-ref my-ranges (1- page-nmbr))
  page-nmbr)))
   m))
empty-stencil)))

#(define ranges '((1 24) (52 64) (70 80) (100 110)))

\paper {
  oddHeaderMarkup = \markup
  \fill-line {
""
\on-the-fly #not-part-first-page \fromproperty #'header:instrument
\on-the-fly #print-page-number-check-first
  \page-range-fromproperty #ranges #'page:page-number-string
  }

  %% evenHeaderMarkup would inherit the value of
  %% oddHeaderMarkup if it were not defined here
  evenHeaderMarkup = \markup
  \fill-line {
\on-the-fly #print-page-number-check-first
  \page-range-fromproperty #ranges #'page:page-number-string
\on-the-fly #not-part-first-page \fromproperty #'header:instrument
""
  }
}


\new Staff \repeat unfold 70 { c''1 \pageBreak }


HTH,
  Harm

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


Some help with music theory

2016-05-05 Thread Carl Sorensen
Hi all,

I'm a longtime music novice and lilypond developer (I developed the
FretBoards facility, did much of the figured bass and harp pedals, worked
on beaming, and contributed some documentation).

I have decided I need to learn more music theory, so I found some
information on line[1] and am working through a music theory book.

As I work on this, I'm finding some things that are not well-explained in
the book, but are in the assignments.  I have done some web searching to
find the answers.  I think I'm doing things right, but each site seems to
notate things slightly differently.

Is there anybody who'd be willing (off-list) to review my answers to some
of the assignments and see if they're correct?  Of course, I won't fill
the user list with these assignments, as they are not directly related to
LilyPond.

If you're willing, please let me know.

Thanks,

Carl




1. 
http://www.personal.kent.edu/~sbirch/Theory/11121%20Theory_I/Theory_I.htm


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