Re: Centered text lines in markuplist

2016-07-17 Thread Federico Bruni
Il giorno dom 17 lug 2016 alle 4:17, Andrew Bernard 
 ha scritto:

How does one centre a block of justified text spanning multiple pages?
[Text here obviously abbreviated for the purposes of the MWE.]


You cannot change the \paper line-width, right?

I've tried \halign but the last sentence falls out on the left:


\version "2.19.45"

\paper {
 paper-height = 7\cm
 %line-width = 12\cm
}

\markuplist {
 \override #'(line-width . 60)
 \halign #-1.7
 \justified-lines {
   Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus
   scelerisque justo ut posuere aliquam. Integer aliquet eu nunc a
   iaculis. In hac habitasse platea dictumst. Maecenas ornare leo non 
est

   hendrerit, ac ultricies justo porttitor. Nullam pulvinar mollis
   scelerisque. Pellentesque ut quam quis nibh laoreet consequat. 
Etiam vitae

   felis eu leo sodales vulputate.

   Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus
   scelerisque justo ut posuere aliquam. Integer aliquet eu nunc a
   iaculis. In hac habitasse platea dictumst. Maecenas ornare leo non 
est

   hendrerit, ac ultricies justo porttitor. Nullam pulvinar mollis
   scelerisque. Pellentesque ut quam quis nibh laoreet consequat. 
Etiam vitae

   felis eu leo sodales vulputate.
 }
}




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


Re: Scheme controllable text spanner padding

2016-07-17 Thread Urs Liska


Am 16.07.2016 um 21:31 schrieb dtsmarin:
> Thanks a lot David! 
> The next step would be to make pairs of arg's but I think I can do this on
> my own. 
>

See what I meant? One concise question => Instant response ... ;-)

Best
Urs

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


Re: Centered text lines in markuplist

2016-07-17 Thread Andrew Bernard
Hi Federico,

I would like it centred, not left offset - because you can not easily
get it centred this way except by trial and error, and even when it is
off a little bit the  eye notices it.

Also, this solution has the strange problem at the end, which makes it
not much good. Sorry!

Is there no command for centering in the justified mode? We need to
add one I think.

Andrew

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


Re: Centered text lines in markuplist

2016-07-17 Thread Pierre Perol-Schneider
Hi Andrew,

How about:

\version "2.19.45"

\markuplist {
  \fill-line {
\override #'(line-width . 60)
\justify {
  Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus
  scelerisque justo ut posuere aliquam. Integer aliquet eu nunc a
  iaculis. In hac habitasse platea dictumst. Maecenas ornare leo non est
  hendrerit, ac ultricies justo porttitor. Nullam pulvinar mollis
  scelerisque. Pellentesque ut quam quis nibh laoreet consequat. Etiam
vitae
  felis eu leo sodales vulputate.
}
  }
}

Cheers,
Pierre

2016-07-17 11:07 GMT+02:00 Andrew Bernard :

> Hi Federico,
>
> I would like it centred, not left offset - because you can not easily
> get it centred this way except by trial and error, and even when it is
> off a little bit the  eye notices it.
>
> Also, this solution has the strange problem at the end, which makes it
> not much good. Sorry!
>
> Is there no command for centering in the justified mode? We need to
> add one I think.
>
> Andrew
>
> ___
> 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: Centered text lines in markuplist

2016-07-17 Thread Andrew Bernard
Hi Pierre,

Not sure if I was clear in original post. I have a lot of text and it
spans multiple pages. I can't find a way to centre that in a justified
block.

Do I need to go out to TeX or similar?

Andrew

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


Re: Centered text lines in markuplist

2016-07-17 Thread Pierre Perol-Schneider
I'm afraid yes.
AFAIK markups do not handle page breaks.

2016-07-17 11:31 GMT+02:00 Andrew Bernard :

> Hi Pierre,
>
> Not sure if I was clear in original post. I have a lot of text and it
> spans multiple pages. I can't find a way to centre that in a justified
> block.
>
> Do I need to go out to TeX or similar?
>
> Andrew
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Centered text lines in markuplist

2016-07-17 Thread Robert Blackstone

On 17 Jul 2016, at 12:26 , Pierre Perol-Schneider 
 wrote:

> I'm afraid yes.
> AFAIK markups do not handle page breaks.
> 
> 2016-07-17 11:31 GMT+02:00 Andrew Bernard :
> Hi Pierre,
> 
> Not sure if I was clear in original post. I have a lot of text and it
> spans multiple pages. I can't find a way to centre that in a justified
> block.
> 
> Do I need to go out to TeX or similar?
> 
> Andrew
Hi Pierre, Hi Andrew,

Ref.: "AFAIK markups do not handle page breaks"
Maybe it depends on what you mean by "handle". 

I found, by accident almost, that you can insert page breaks manually into a 
long stretch of text by cutting it manually into chunks that fill a page. That 
is: You stop a " marked up page" by inserting  

 }%End of markup
\pageBreak

and then start the next markup page. And so forth.

It is not elegant and it requires a sort of manually fitting of the text on the 
pages but at least it works.

Best regards,
Robert Blackstone


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


Re: Centered text lines in markuplist

2016-07-17 Thread David Kastrup
Pierre Perol-Schneider  writes:

> 2016-07-17 11:31 GMT+02:00 Andrew Bernard :
>
>> Hi Pierre,
>>
>> Not sure if I was clear in original post. I have a lot of text and it
>> spans multiple pages. I can't find a way to centre that in a justified
>> block.
>>
>> Do I need to go out to TeX or similar?

> I'm afraid yes.
> AFAIK markups do not handle page breaks.

Markup lists do.  That was the whole point.

What do you mean with "centred in a justified block"?  What is the last
line supposed to align with?

-- 
David Kastrup

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


Re: Independent Repeat Spanner

2016-07-17 Thread David Nalesnik
dtsmarin wrote
> Hello,
> 
> I'm trying to create an independent repeat spanner. (see attached) 
> rep_spanner.png
>   
> 
> There are several ways to notate what I'm looking for but the same
> principles are applied.
> 
> Obviously my code kinda works but it's not easily configurable, I use this
> quite a lot and it has been a painful experience for me so I thought you
> could help me with this.
> 
> To become usable it has to do the following things:
> a) insert the repeat brackets/barlines automatically 
> b) insert the spanner right after the right Rep bracket
> c) have an arrow when the spanner is broken: 
> broken_spanner.jpg
>   
> d) have an input method like this: 
> c4 \start Rep IndRep d8e d4 ees \stop IndRep\startRepSpanner ..
> \stopRepSpanner #10 <-- padding value so that you can adjust the distance
> between the spanner and the following note. (I don't expect this to be
> auto it's probably a lot to ask, that's just a tidy way of overriding the
> padding.) 

I worked on this a long while ago.  My focus was on boxes with extender
lines and timings, but there
is an option to use barlines.  Not real barlines, simulated ones.

This code might be far more than you want, though it does have limitations. 
The biggest one (other than "simulated barlines") is that it
won't work with patterns occupying more than one staff.  (I would love to
have a mentor with this one.)

So...for what it's worth, see the attached.


> lutoslawski_repetion_spanner_code.ly
> 
>   
I can't compile this file as there are several undefined functions.

Best,
David

frameEngraver-bars-and-boxes.ily

  
frameEngraver-boxes-and-repeats-example.ly

  



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Independent-Repeat-Spanner-tp192713p192751.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: Centered text lines in markuplist

2016-07-17 Thread Andrew Bernard
Hi David,

Tools such as InDesign offer all the possibilities for the last line,
of which there are several, as you know. I would settle for left
aligned. That would be fine, and is a fairly common usage in
typography.

I am sorry if I am not clear. I simply want a relatively narrow column
of justified text that spans multiple pages, centered in the page. But
not just with setting margins, as it is for quoted material in the
context of wider set text, such as you often see in books:

x
x
z
z <- multiple pages of this block
z
zz   <- last line can do this
x
x


Andrew

On 17 July 2016 at 21:35, David Kastrup wrote:

>
> What do you mean with "centred in a justified block"?  What is the last
> line supposed to align with?

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


Re: Centered text lines in markuplist

2016-07-17 Thread David Kastrup
Andrew Bernard  writes:

> Hi David,
>
> Tools such as InDesign offer all the possibilities for the last line,
> of which there are several, as you know. I would settle for left
> aligned. That would be fine, and is a fairly common usage in
> typography.

Sigh.  Can you please tell what you actually want?

> I am sorry if I am not clear. I simply want a relatively narrow column
> of justified text that spans multiple pages, centered in the page. But
> not just with setting margins, as it is for quoted material in the
> context of wider set text, such as you often see in books:
>
> x
> x
> z
> z <- multiple pages of this block
> z
> zz   <- last line can do this
> x
> x

So what _should_ the last line do?  If one actually invests effort, it
is rather frustrating to be told that what one does is crap anyway but
will be looked upon benignly.

So would that be what you actually want or not?  And if not, what
_would_ you consider not just something you "would settle for" but
actually satisfactory?

-- 
David Kastrup

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


Re: Independent Repeat Spanner

2016-07-17 Thread dtsmarin
Hi David,

Thanks a lot for your great code!!!
Well you can't compile my attached file because it needs the file
"definitions.ily" which produces the glyphs  for the repeat brackets that
contain characters from the Bravura font. 

Anyway your code seems to work fine for me. The only things I would change
is a)
the type of the repeat barlines (I prefer the ones with the brackets ) and 
b) the arrow shouldn't be at the end of every spanner but should appear only
if a \break occurs. (See OP)

I wish we could make this work in multiple staves/PianoStaff but for that
purpose I will use my code until something better shows up. 

Best,
Dimitris





--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Independent-Repeat-Spanner-tp192713p192754.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: Centered text lines in markuplist

2016-07-17 Thread David Wright
On Sun 17 Jul 2016 at 19:31:41 (+1000), Andrew Bernard wrote:
> Hi Pierre,
> 
> Not sure if I was clear in original post. I have a lot of text and it
> spans multiple pages. I can't find a way to centre that in a justified
> block.
> 
> Do I need to go out to TeX or similar?

The quick answer: yes.

A longer one: AFAICT LilyPond can justify but can't hyphenate.
Depending on the width of your column, you either make it wide enough
to violate the 65 char rule, or narrow enough that the gaps (from
failure to hyphenate) become an eyesore. (You said "even when it is
off a little bit the  eye notices it" and I noticed the extra space
you typed in there!)

Nor can I see how you deal with the last line of each page (if you
manually split them) so that it justifies it at all. Even in LaTeX
I've had to resort to adding   \parfillskip=0pt   at the end of a
page when setting justified text into an A6 booklet. (I had to
break a specifically shaped paragraph.)

Cheers,
David.

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


Re: Centered text lines in markuplist

2016-07-17 Thread Andrew Bernard
Hi David,

I am unable to understand your response. Is my mail not clear? I
explicitly diagrammed what would be good.

At no point in this topic have I offered criticism of any kind of
lilypond, or your work. Others would verify that I am sure.

Whence this aggression in your reply David? It is entirely unjustified.

In English, which I now must assume is not your primary language since
you seem to not understand perfectly polite writing, to say one 'would
settle for something' is one perfectly normal way of saying that such
as solution would be good, fine, and satisfactory.

In what way is the small diagram I included unclear?

My emails have simply been to ask, can this centering be done? It
appears the answer is no. If that is the case, it would be a good
addition to lilypond, but so far I have not suggested that.

Can you provide evidence that I said 'what you do is crap'? At no
point have I implied this in any way. Would you please calm down and
give people the benefit of the doubt?

The example Federico posted does not work right on the last line, but
that is not criticism of anybody. How could it be?


Andrew



On 17 July 2016 at 23:12, David Kastrup  wrote:
> Andrew Bernard  writes:
>
>> Hi David,
>>
>> Tools such as InDesign offer all the possibilities for the last line,
>> of which there are several, as you know. I would settle for left
>> aligned. That would be fine, and is a fairly common usage in
>> typography.
>
> Sigh.  Can you please tell what you actually want?
>
>> I am sorry if I am not clear. I simply want a relatively narrow column
>> of justified text that spans multiple pages, centered in the page. But
>> not just with setting margins, as it is for quoted material in the
>> context of wider set text, such as you often see in books:
>>
>> x
>> x
>> z
>> z <- multiple pages of this block
>> z
>> zz   <- last line can do this
>> x
>> x
>
> So what _should_ the last line do?  If one actually invests effort, it
> is rather frustrating to be told that what one does is crap anyway but
> will be looked upon benignly.
>
> So would that be what you actually want or not?  And if not, what
> _would_ you consider not just something you "would settle for" but
> actually satisfactory?
>
> --
> David Kastrup

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


Re: Centered text lines in markuplist

2016-07-17 Thread David Kastrup
Andrew Bernard  writes:

> Hi David,
>
> I am unable to understand your response. Is my mail not clear? I
> explicitly diagrammed what would be good.
>
> At no point in this topic have I offered criticism of any kind of
> lilypond, or your work. Others would verify that I am sure.
>
> Whence this aggression in your reply David? It is entirely unjustified.
>
> In English, which I now must assume is not your primary language since
> you seem to not understand perfectly polite writing, to say one 'would
> settle for something' is one perfectly normal way of saying that such
> as solution would be good, fine, and satisfactory.

>From WordNet (r) 3.0 (2006) [wn]:

  settle v
  12: accept despite lack of complete satisfaction; "We settled
  for a lower price"

http://idioms.thefreedictionary.com/settle+for>


settle for something

to agree to accept something (even though something else would be
better). We wanted a redone, but settled for a blue one. \I\Ask your
grocer for Wilson's canned corn—the best corn in cans. Don't settle
for less.

McGraw-Hill Dictionary of American Idioms and Phrasal Verbs. © 2002
by The McGraw-Hill Companies, Inc.


settle for something

to agree to or accept something, although it is not exactly what you
want Patients will have to settle for fewer tests because rising
costs have made them too expensive.

Cambridge Dictionary of American Idioms Copyright © Cambridge
University Press 2003. Reproduced with permission.


settle for

Accept or be satisfied with as a compromise, as in He really wanted
a bigger raise but decided to settle for what they
offered. [Mid-1900s]

The American Heritage® Dictionary of Idioms by Christine
Ammer. Copyright © 2003, 1997 by The Christine Ammer 1992
Trust. Published by Houghton Mifflin Harcourt Publishing
Company. All rights reserved.


settle for
v.
To accept something in spite of not being completely satisfied: I
had to settle for a lower wage than the one I requested.

The American Heritage® Dictionary of Phrasal Verbs. Copyright © 2005
by Houghton Mifflin Harcourt Publishing Company. Published by
Houghton Mifflin Harcourt Publishing Company. All rights reserved.


Looks like my mottled grasp of English rubbed off on other people.
That's the price of being old: you never remember which trends you
actually started yourself.

> In what way is the small diagram I included unclear?

After saying that you'll "settle for" the line being left-justified with
the other lines, your diagram states "last line can do this".  Again,
this sounds like something you don't actually consider optimal but
propose it as some sort of least-resistance compromise, otherwise "last
line should do this" would have seemed more appropriate, at least to
someone as unversed in the subtleties of English language as I happen to
be.

And before you even start, you state "Tools such as InDesign offer all
the possibilities for the last line, of which there are several, as you
know."  Again this sounds like you consider left-alignment of the last
line as a subset at best of what you would really consider complete
support.

So what are we actually supposed to aiming for (rather than settling
for)?

I suppose you could _settle_ for something like

#(define-markup-command (center-to layout props width arg)
  (number? markup?)
  #:properties ((line-width))
  (interpret-markup layout props
   #{ \markup { \hspace #(* 0.5 (- line-width width))
		\override #`(line-width . ,width) #arg }
  #}))

\markuplist
\center-to #60
\justified-lines {
  Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus
  scelerisque justo ut posuere aliquam. Integer aliquet eu nunc a
  iaculis. In hac habitasse platea dictumst. Maecenas ornare leo non est
  hendrerit, ac ultricies justo porttitor. Nullam pulvinar mollis
  scelerisque. Pellentesque ut quam quis nibh laoreet consequat. Etiam vitae
  felis eu leo sodales vulputate.
}


but that does not really tell us what kind of facility or feature is
actually missing in LilyPond.  We don't want to add stuff that works
only for a subset of applications, so the question is what should
actually be there.

How would you have desired your input to look?

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


Re: Start music at specified measure without having to fill the previous.

2016-07-17 Thread Urs Liska


Am 17. Juli 2016 17:40:27 MESZ, schrieb dtsmarin :
>Hello,
>
>I'm working with a lot of time signature changes and it's very
>frustrating
>to calculate all the rests needed to fill the measures before. 
>Is it possible to tell Lilypond start inserting music after a specified
>number of measures even if they have different time signatures? 
>
>I'm sorry if this ability already exists, I couldn't find any info
>about it.
>
>Best,
>Dimitris
>

It might be worth trying if the edition-engraver can do that 
(https://github.com/openlilylib/edition-engraver).

Urs
>
>
>
>--
>View this message in context:
>http://lilypond.1069038.n5.nabble.com/Start-music-at-specified-measure-without-having-to-fill-the-previous-tp192758.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

-- 
Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet.

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


Resetting page numbers between bookparts

2016-07-17 Thread Dosh Doshington
Greetings,

I wish to create a single PDF containing all the parts to my work, instead
of 30-something single PDFs. I would like not to use an external PDF merging
tool since I recompile very often.

This code fails to work since page numbers continue after each page break.

\book {
\bookOutputSuffix "parts"
\bookpart {
 \paper {
  set-first-page-number = 1
 }
 \score { ... }
}
% page numbers continue instead of being reset to 1 <--
\bookpart {
 paper {
  set-first-page-number = 1
 }
 \score { ... }
}
... % other parts follow
}

There exist external \paper blocks in a different .ily files but they do not
have page numbering code.

Assistance will be greatly appreciated.

Thanks.


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


Re: Start music at specified measure without having to fill the previous.

2016-07-17 Thread dtsmarin
Thanks Urs,

could you explain  further this?

Btw, I downloaded the files but they don't work. Too many missing .ily files
that even if I downloaded them I don't get it to work.




--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Start-music-at-specified-measure-without-having-to-fill-the-previous-tp192758p192761.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


Emacs for LilyPond with embedded scheme

2016-07-17 Thread Jeffery Shivers
Hi,

Are there any emacs packages that currently provide (good) syntax
highlighting and indentation for lilypond *including* embedded scheme?

I've tried using lilypond-mode, but have had a better experience just
sticking to scheme-mode when working with lilypond files that are mostly
scheme (that is to say, `.ily` files which are not the actual music
documents). It would be nice to use a single mode that really supports both.

Thanks for any info,
Jeffery
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Use variable to simplify colorizing specific notes

2016-07-17 Thread Jim Garrett
I wonder if anyone could give me some concise advice on how to simplify 
colorizing specific notes.  I know that preceding the note with "\tweak 
color #red" turns the color red but when one has many colorized notes, 
this becomes very cluttered.


I'm transcribing and  analyzing Turkish improvisations, and I'm 
colorizing "stable" notes to help visualize the structure of the 
improvisation.  What I have in mid is setting a variable such as


stable = \tweak color #red

so that in the score I can simply precede a note name with

\stable

However I haven't found any variant of this that works.

Thanks!

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


Re: Use variable to simplify colorizing specific notes

2016-07-17 Thread Noeck
> However I haven't found any variant of this that works.


Hi Jim,

this works for me:


\version "2.19.36"

stable = \tweak #'color #red \etc

{
  a \stable b
}


Cheers,
Joram

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


Re: Start music at specified measure without having to fill the previous.

2016-07-17 Thread Urs Liska
Hi Dimitris,

in general it would be helpful to quote the relevant part of the message
you are replying to because otherwise people might not know what you are
referring to.


Am 17.07.2016 um 18:11 schrieb dtsmarin:
> Thanks Urs,
>
> could you explain  further this?

First I must say I threw in the comment about the edition-engraver from
my mobile, without any further checks. And it seems that right now my
idea doesn't work.

The edition-engraver is a tool that can insert music expressions at
specific positions in a score. That means these elements don't have to
be coded within the music. One typical use case is to do this with
overrides, to separate the engraving tweaks from the musical content. Or
one can insert elements like rehearsal marks or line breaks externally.

So I thought that - when the "mods" are entered as "LilyPond music
expressions" this might also be used to insert actual music at that
specific point in time (the edition-engraver addresses measures by
number, regardless of how "much" time has gone by so far). A quick test
showed that this doesn't work - yet. But I think this would be a
terrific option for many use cases, so one might try if using "music" as
a mod might be made to work. Jan-Peter, what do you think?

>
> Btw, I downloaded the files but they don't work. Too many missing .ily files
> that even if I downloaded them I don't get it to work.

I'm sorry, these openLilyLib libraries are really undocumented yet
(actually I mocked around about this with Abraham Lee on the very thread
on the facebook group where we started off from).

The edition-engraver package *depends* on another package (I *think* it
is only that one), so you have to "install" that other one as well.
You should have one "root" directory somewhere on your computer (e.g.
"oll-lib"), and this directory has to be in LilyPond's search path
(through the -I command line option, or easier in Frescobaldi's
Preferences). Within that root you need the edition-engraver directory
*and* the "oll-core" package (from https://github.com/openlilylib/oll-core).
If you have this you can try the example files from within the
edition-engraver package.

HTH
Urs

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


Re: Use variable to simplify colorizing specific notes

2016-07-17 Thread David Kastrup
Noeck  writes:

>> However I haven't found any variant of this that works.
>
>
> Hi Jim,
>
> this works for me:
>
>
> \version "2.19.36"
>
> stable = \tweak #'color #red \etc
>
> {
>   a \stable b
> }

The 2.18 equivalent is

stable =
#(define-music-function (parser location m) (ly:music?)
   #{ \tweak color #red #m #})

\etc is merely a shorthand for that which tends to go nicely with
tweaks.

-- 
David Kastrup

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


Re: Emacs for LilyPond with embedded scheme

2016-07-17 Thread David Kastrup
Jeffery Shivers  writes:

> Are there any emacs packages that currently provide (good) syntax
> highlighting and indentation for lilypond *including* embedded scheme?

No.

> I've tried using lilypond-mode, but have had a better experience just
> sticking to scheme-mode when working with lilypond files that are mostly
> scheme (that is to say, `.ily` files which are not the actual music
> documents).

Yes.

> It would be nice to use a single mode that really supports both.

Yes.

-- 
David Kastrup

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


Re: 17th century English kbd ornaments

2016-07-17 Thread Michael Rivers
Did anybody ever come up with a way to draw the shake from Purcell in
Lilypond? I'm trying to typeset something from the book cited in the top
post, and my skills are not up to the task.



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/17th-century-English-kbd-ornaments-tp148407p192771.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: Start music at specified measure without having to fill the previous.

2016-07-17 Thread Simon Albrecht

On 17.07.2016 22:45, Urs Liska wrote:

I thought that - when the "mods" are entered as "LilyPond music
expressions" this might also be used to insert actual music at that
specific point in time (the edition-engraver addresses measures by
number, regardless of how "much" time has gone by so far). A quick test
showed that this doesn't work - yet.


Seems more like a use case for gridLY or some similar approach.

Best, Simon

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


Re: Start music at specified measure without having to fill the previous.

2016-07-17 Thread Urs Liska


Am 17.07.2016 um 23:54 schrieb Simon Albrecht:
> On 17.07.2016 22:45, Urs Liska wrote:
>> I thought that - when the "mods" are entered as "LilyPond music
>> expressions" this might also be used to insert actual music at that
>> specific point in time (the edition-engraver addresses measures by
>> number, regardless of how "much" time has gone by so far). A quick test
>> showed that this doesn't work - yet.
>
> Seems more like a use case for gridLY or some similar approach.
>

Oh yes, that might work out.
Dimitris, have a look at the good introduction at
https://github.com/openlilylib/snippets/tree/master/ly/gridly

Urs

> Best, Simon



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


Re: 17th century English kbd ornaments

2016-07-17 Thread Pierre Perol-Schneider
Hi Michael,

I'm not sure about the glyph you're talking about.
I found two:

\version "2.19.45"

purcell = ^\markup\stencil
 #(make-path-stencil
  '(M -0.20  0.05 L  1.55  0.51 M -0.31  0.43 L  1.45  0.90
;; uncomment the line hereunder if necessary:
;; M -0.69 -0.10 L -1.15  1.70
)
  0.17 1 1 #t)

%% Test:
{
  a'\purcell
}

HTH,
Pierre

2016-07-17 23:33 GMT+02:00 Michael Rivers :

> Did anybody ever come up with a way to draw the shake from Purcell in
> Lilypond? I'm trying to typeset something from the book cited in the top
> post, and my skills are not up to the task.
>
>
>
> --
> View this message in context:
> http://lilypond.1069038.n5.nabble.com/17th-century-English-kbd-ornaments-tp148407p192771.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


Re: Independent Repeat Spanner

2016-07-17 Thread David Nalesnik

> Thanks a lot for your great code!!!

Glad I could help!

> Anyway your code seems to work fine for me. The only things I would change
> is a)
> the type of the repeat barlines (I prefer the ones with the brackets )

This would be easy enough to change, I think.  You could probably substitute
your code in the places that draw barlines here.


>  
> b) the arrow shouldn't be at the end of every spanner but should appear
> only if a \break occurs. (See OP)

This can be added as a feature easily enough.  In the meantime, though, you
can use

\alterBroken no-arrowhead #'(#t #f) FrameExtender

to suppress the internal arrowheads.

> I wish we could make this work in multiple staves/PianoStaff but for that
> purpose I will use my code until something better shows up.

It doesn't completely not work.  If I remember correctly, there's an issue
with the vertical positioning
of the extender line.  But it may be more serious than that.  Working on
this was making me feel...queasy...with all of the complications, and I seem
to have blocked it out of my memory.

Best,
David

P.S.  I think I ought to put this up on GitHub.  various versions of the
code are hopelessly scattered about the lists, and putting it in a central
location might lead to improvements from others.  Will let you know.





--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Independent-Repeat-Spanner-tp192713p192775.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: Start music at specified measure without having to fill the previous.

2016-07-17 Thread Carl Sorensen


On 7/17/16 9:40 AM, "dtsmarin"  wrote:

>Hello,
>
>I'm working with a lot of time signature changes and it's very frustrating
>to calculate all the rests needed to fill the measures before.
>Is it possible to tell Lilypond start inserting music after a specified
>number of measures even if they have different time signatures?

Can you define the time signatures to put in parallel with some other
content?

timesigs = {
\time 3/4
\repeat unfold 7 s1*3/4
\time 6/8
\repeat unfold 6 s1*6/8
\time 5/8
}


mynotes = {
\repeat unfold 103 c'8
}

\score {
  \new Staff
  <<
 \timesigs
 \mynotes
  >>
}


By using s1* you get a full measure skip.
By using \repeat unfold N, you N measures.

I realize that it is not quite as nice as saying "set the skip at measure
73", but it seems to me to not be that hard.

It would also be not too hard to create a Scheme function that could take
a list of (measure number, time signature) pairs and return something like
the timesigs variable above.  This would automate the process and get
almost exactly what you want.

HTH,

Carl


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


Re: Start music at specified measure without having to fill the previous.

2016-07-17 Thread Jan-Peter Voigt

Hello Dimitris, hello Carl,

if you split your global/meta-variable with all you your timesigs, you 
can make use of $(mmrest-of-length globalA) to create 
multi-measure-rests, which fill all measures in global:


%

globalA = {
  \time 3/4
  \repeat unfold 3 s1*3/4
  \time 5/8
  \repeat unfold 2 s1*5/8
}
globalB = {
  \time 5/8
  \repeat unfold 1 s1*5/8
  \time 7/4
  \repeat unfold 2 s1*7/4
}

global = { \globalA \globalB }

\new Staff <<
  \global
  { $(mmrest-of-length globalA) c''8 b' d'' c'' a' }
>>

%

To shorten the input, you might use a function like this:

%

% to create skips instead of multimeasure-rests, substitute 'R' with 's'
timespan =
#(define-music-function (num frac)(integer? fraction?)
   #{ \time $frac \repeat unfold $num R$(ly:make-duration 0 0 (car 
frac)(cdr frac)) #})


%%%

{ \timespan 3 7/8 }

%

I thought about extending the edition-engraver. I'll post a comment as 
an answer to Urs message.


HTH
Jan-Peter


Am 18.07.2016 um 05:15 schrieb Carl Sorensen:



On 7/17/16 9:40 AM, "dtsmarin"  wrote:


Hello,

I'm working with a lot of time signature changes and it's very frustrating
to calculate all the rests needed to fill the measures before.
Is it possible to tell Lilypond start inserting music after a specified
number of measures even if they have different time signatures?


Can you define the time signatures to put in parallel with some other
content?

timesigs = {
\time 3/4
\repeat unfold 7 s1*3/4
\time 6/8
\repeat unfold 6 s1*6/8
\time 5/8
}


mynotes = {
\repeat unfold 103 c'8
}

\score {
   \new Staff
   <<
  \timesigs
  \mynotes
   >>
}


By using s1* you get a full measure skip.
By using \repeat unfold N, you N measures.

I realize that it is not quite as nice as saying "set the skip at measure
73", but it seems to me to not be that hard.

It would also be not too hard to create a Scheme function that could take
a list of (measure number, time signature) pairs and return something like
the timesigs variable above.  This would automate the process and get
almost exactly what you want.

HTH,

Carl


___
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: Start music at specified measure without having to fill the previous.

2016-07-17 Thread Jan-Peter Voigt

Hi Urs,



Am 17.07.2016 um 22:45 schrieb Urs Liska:

Hi Dimitris,

...
First I must say I threw in the comment about the edition-engraver from
my mobile, without any further checks. And it seems that right now my
idea doesn't work.

That's right.


The edition-engraver is a tool that can insert music expressions at
specific positions in a score. That means these elements don't have to
be coded within the music. One typical use case is to do this with
overrides, to separate the engraving tweaks from the musical content. Or
one can insert elements like rehearsal marks or line breaks externally.

So I thought that - when the "mods" are entered as "LilyPond music
expressions" this might also be used to insert actual music at that
specific point in time (the edition-engraver addresses measures by
number, regardless of how "much" time has gone by so far). A quick test
showed that this doesn't work - yet. But I think this would be a
terrific option for many use cases, so one might try if using "music" as
a mod might be made to work. Jan-Peter, what do you think?
What I want is the possibility to insert cues with the edition-engraver. 
I wouldn't suggest entering whole scores that way. The problem is, that 
the edition-engraver needs to track time and follow a music stream 
beside the one triggering the main events. The edition-engraver is 
called only on moments, where there is an event triggered in the main 
stream.

For example (incomplete pseudo code):

{ c''1 }
\editionMod cues 1 2/8 Staff { e''8 d'' }

First the mod isn't triggered at all, because there is no event on that 
moment triggering the engraver-slots. Second, if there would be an 
event, how shall the second note get triggered?
That might all be possible, but IISC it leads to a reimplementation of 
the translation process. So Simons suggest of gridly or the like seams 
more usable. (There is a longstanding item on my agenda to document my 
lalily template approach and to produce an openlilylib module for it.)
Back to the topic, I would rather suggest extending the methods of 
assembling music expressions.


Best
Jan-Peter


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