Re: convert-ly in 2.19.36-1

2016-02-14 Thread Malte Meyn



Am 15.02.2016 um 08:01 schrieb Anders Eriksson:

When I take an old .ly file, with version \version "2.19.15", and run
convert-ly I get \version "2.19.32"

Have I done something wrong or is there a "bug"?


This means that there are no syntax changes between 2.19.32 and 
2.19.36/no convert-ly rules after 2.19.32. Everything ok ;)



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


Re: convert-ly in 2.19.36-1

2016-02-14 Thread Pierre Perol-Schneider
Hi Anders,

No, it isn't. See note:
http://www.lilypond.org/doc/v2.19/Documentation/usage/invoking-convert_002dly
Simply put \version 2.19.36 instead as soon as your .ly file uses the
latest syntax.

Cheers,
Pierre

2016-02-15 8:01 GMT+01:00 Anders Eriksson :

> I have just updated to version 2.19.36-1.
>
> When I take an old .ly file, with version \version "2.19.15", and run
> convert-ly I get \version "2.19.32"
>
> Have I done something wrong or is there a "bug"?
>
> // Anders
>
>
> ___
> 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: Scripting the \paper blocks output

2016-02-14 Thread N. Andrew Walsh
Hi Andrew,

Ha! Works like a charm! Thanks, that's going to be super-handy when I, uh …
start my lilypond publishing empire. Seriously, though, that's some cool
scripting magic.

For others who might want to use the function, one remark: note that the
quotation marks for the "catalog-number" variable are not straight-quotes
in the provided example (they're so-called "smart-quotes", which Scheme
does not recognize and throws a syntax error if not replaced). So, make
that trivial change, and you're all set for automagically-generated catalog
IDs. I also re-named the variable to "composer-shortstring" to make clear
that it's not the definition set in \header, and that it can be a different
format from the full name.

Cheers,

A

On Mon, Feb 15, 2016 at 7:35 AM, Andrew Bernard 
wrote:

> Hi Andrew,
>
> If I follow you correctly, then this would work:
>
> Put these vars in directly in your lilypond file:
>
> composer = "Bob Smith"
> catalog-number = “001”
>
>
> In default.ily, create this function:
>
> #(define-markup-command (substitute layout props) ()
>(interpret-markup layout props
>  (markup (string-append composer "." catalog-number))
>  ))
>
>
>
> Then use it in default.ily as follows:
>
>  \on-the-fly #not-part-first-page \line { Klang Büro \substitute }
>
>
> I am sure you can think of a better function name than I can.
>
> Obviously you can format the substitute string as per your desire.
>
> Andrew
>
>
>
>
>
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


convert-ly in 2.19.36-1

2016-02-14 Thread Anders Eriksson

I have just updated to version 2.19.36-1.

When I take an old .ly file, with version \version "2.19.15", and run 
convert-ly I get \version "2.19.32"


Have I done something wrong or is there a "bug"?

// Anders


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


Re: Horizontal spacing - choir

2016-02-14 Thread Noeck
If you can't guess the name, here is a way to find it:

lilypond -dshow-available-fonts x

will print you a list of font families, font configs and font
directories on your system.

lilypond -dshow-available-fonts x 2>&1| grep family | sort | uniq

will print only the families and their name in alphabetic order. So you
can find your font there and copy the name instead of guessing.

Cheers,
Joram

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


Re: Scripting the \paper blocks output

2016-02-14 Thread Andrew Bernard
Hi Andrew,

If I follow you correctly, then this would work:

Put these vars in directly in your lilypond file:

composer = "Bob Smith"
catalog-number = “001”

In default.ily, create this function:

#(define-markup-command (substitute layout props) ()
   (interpret-markup layout props
 (markup (string-append composer "." catalog-number))
 ))


Then use it in default.ily as follows:

 \on-the-fly #not-part-first-page \line { Klang Büro \substitute }

I am sure you can think of a better function name than I can.

Obviously you can format the substitute string as per your desire.

Andrew






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


Re: Using 'scheme?' as predicate in a markup function.

2016-02-14 Thread Pierre Perol-Schneider
Yess!
Thank you David.

2016-02-15 0:35 GMT+01:00 David Kastrup :

> Pierre Perol-Schneider  writes:
>
> > Hi,
> >
> > After some fights with 'draw-line thickness in a score containing numbers
> > of arrows I've created this markup function:
> > http://lsr.di.unimi.it/LSR/Item?id=1026
> > My intention was to stick to the 'arrow-head syntax. So it goes:
> >
> > #(define-markup-command (foo layout props  axis  direction) (scheme?
> > scheme?)
> >   (interpret-markup layout props
> > (if (and (eq? axis X)(eq? direction 1))
> > (markup "foo")
> > (markup "no foo"
> >
> > I've never use 'scheme? before. Could this be problematic? If yes, is
> there
> > any other way?
>
> ly:dir? maybe.
>
> --
> David Kastrup
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Using 'scheme?' as predicate in a markup function.

2016-02-14 Thread David Kastrup
Pierre Perol-Schneider  writes:

> Hi,
>
> After some fights with 'draw-line thickness in a score containing numbers
> of arrows I've created this markup function:
> http://lsr.di.unimi.it/LSR/Item?id=1026
> My intention was to stick to the 'arrow-head syntax. So it goes:
>
> #(define-markup-command (foo layout props  axis  direction) (scheme?
> scheme?)
>   (interpret-markup layout props
> (if (and (eq? axis X)(eq? direction 1))
> (markup "foo")
> (markup "no foo"
>
> I've never use 'scheme? before. Could this be problematic? If yes, is there
> any other way?

ly:dir? maybe.

-- 
David Kastrup

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


Using 'scheme?' as predicate in a markup function.

2016-02-14 Thread Pierre Perol-Schneider
Hi,

After some fights with 'draw-line thickness in a score containing numbers
of arrows I've created this markup function:
http://lsr.di.unimi.it/LSR/Item?id=1026
My intention was to stick to the 'arrow-head syntax. So it goes:

#(define-markup-command (foo layout props  axis  direction) (scheme?
scheme?)
  (interpret-markup layout props
(if (and (eq? axis X)(eq? direction 1))
(markup "foo")
(markup "no foo"

I've never use 'scheme? before. Could this be problematic? If yes, is there
any other way?

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


Re: Horizontal spacing - choir

2016-02-14 Thread Carl-Henrik Buschmann
Things are comming along. What i find is that some fonts simply does not work 
and thus activates the horrendous sans-serif thing. 

Thank you!


Carl-Henrik

> 14. feb. 2016 kl. 23.00 skrev Noeck :
> 
> Hi Carl-Henrik,
> 
> that's what I mean by figure out the correct font name. On lilybin,
> these two work for me:
> \override Lyrics.LyricText.font-name = "Palatino"
> \override Lyrics.LyricText.font-name = "Palatino Regular"
> 
> Your name "Palatino-Regular" does not exist and then some ugly default
> sans-serif font is chosen.
> 
> Cheers,
> Joram


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


Re: Fw: Re: digital music editions - is Lilypond a suitable tool forit?

2016-02-14 Thread David Wright
On Sun 14 Feb 2016 at 21:50:08 (+), musicus wrote:
> > I don't understand. The only difference between your two attachments
> > appears to be that the second one has DOS-style line endings.
> > What does that affect?
> My browser didn't show the first one as attachement, but displayed the content
> as an image and the javascript button did not work. Apparently you received
> both as an attached file?

That's correct; and both work, thanks.
Somebody emailed me, guessing that this might have been the sort of
reason you felt the need to attach it again.
Sorry I can't make a constructive comment on the code; javascript is
still outside my sphere of knowledge.

Cheers,
David.

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


Re: Horizontal spacing - choir

2016-02-14 Thread Noeck
Hi Carl-Henrik,

that's what I mean by figure out the correct font name. On lilybin,
these two work for me:
\override Lyrics.LyricText.font-name = "Palatino"
\override Lyrics.LyricText.font-name = "Palatino Regular"

Your name "Palatino-Regular" does not exist and then some ugly default
sans-serif font is chosen.

Cheers,
Joram

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


Re: Horizontal spacing - choir

2016-02-14 Thread Noeck
Hi Carl-Hendrik,

please use the code I sent you, because it works here, I tested it. If
you then want to put it elsewhere or change things, do it step by step
to see which step fails.

Does this minimal example work for you?

{ a a a a }
\addlyrics { A B C D }

\layout {
  \override Lyrics.LyricText.font-name = "Arial"
  \override Lyrics.LyricText.font-size = -1
}

Possible problems are:
- Did you forget the 'Lyrics.' part?
- You need a string, so either #"fontname" or "fontname"
- Sometimes it is difficult to find the correct font name
Try with an easy name of a font that you know is installed on your
computer. For example: the font Century Schoolbook is not just called
like this, but rather "Century Schoolbook L". Or I often use Linux
Libertine which is called "Linux Libertine O"

> Regardless of font, how to make the font size smaller?

Have you seen my mail?


Cheers,
Joram

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


Re: Where can I find lilyJazz (fonts.openlilylib.org is gone)

2016-02-14 Thread tisimst
No worries, Jacques. I sent him the files already.

Best,
Abraham

On Sunday, February 14, 2016, Jacques Menu-3 [via Lilypond] <
ml-node+s1069038n187211...@n5.nabble.com> wrote:

> Hello Ernie,
>
> I copied the .zip archive recenlty to my machine, send it to you right now.
>
> JM
>
> Le 7 févr. 2016 à 23:54, tisimst <[hidden email]
> > a écrit :
>
> Ernie,
>
> I've been in the process of moving everything to a new website. I
> apologize to everyone who has tried to access it lately and haven't been
> able to. I'll send you a private message later with the files. More details
> soon. I should have the site ready for public access by the end of this
> week.
>
> Best,
> Abraham
>
> On Sunday, February 7, 2016, Ernie Braganza [via Lilypond] < href="x-msg://13/user/SendEmail.jtp?type=nodenode=186999i=0"
> target="_top" rel="nofollow" link="external" class="">[hidden email]> wrote:
>
>> I wanted to try lilyJazz, but I am unable to find the font. The
>> fonts.openlilylib.org site is not accessible (404 error). Is there an
>> alternative site?
>>
>> Thanks for your help.
>>
>> Ernie
>>
>> ___
>> lilypond-user mailing list
>> [hidden email] 
>> https://lists.gnu.org/mailman/listinfo/lilypond-user
>>
>>
>> --
>> If you reply to this email, your message will be added to the discussion
>> below:
>>
>> http://lilypond.1069038.n5.nabble.com/Where-can-I-find-lilyJazz-fonts-openlilylib-org-is-gone-tp186994.html
>> To start a new topic under User, email > href="javascript:_e(%7B%7D,cvml,ml-node%[hidden email]
>> );"
>> target="_blank">ml-node+s1069038n3h2@...
>> To unsubscribe from Lilypond, click here.
>> NAML
>> 
>>
>
> --
> View this message in context: Re: Where can I find lilyJazz
> (fonts.openlilylib.org is gone)
> 
> Sent from the User mailing list archive
>  at Nabble.com
> .
> ___
> lilypond-user mailing list
> [hidden email] 
> https://lists.gnu.org/mailman/listinfo/lilypond-user
>
>
>
> ___
> lilypond-user mailing list
> [hidden email] 
> https://lists.gnu.org/mailman/listinfo/lilypond-user
>
>
> --
> If you reply to this email, your message will be added to the discussion
> below:
>
> http://lilypond.1069038.n5.nabble.com/Where-can-I-find-lilyJazz-fonts-openlilylib-org-is-gone-tp186994p187211.html
> To start a new topic under User, email ml-node+s1069038n...@n5.nabble.com
> 
> To unsubscribe from Lilypond, click here
> 
> .
> NAML
> 
>




--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Where-can-I-find-lilyJazz-fonts-openlilylib-org-is-gone-tp186994p187214.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: unusual lyric placement in second verse

2016-02-14 Thread dl . mcnamara
Simon, thank you for taking so much time with this, 
I'm learning quite a bit. And will more closely examine your version posted to 
lilybin. 
If you see deficiencies in the coding style please let me know what they are. 

Dave 






- Original Message -

From: "Simon Albrecht"  
To: "dl mcnamara"  
Cc: lilypond-user@gnu.org 
Sent: Sunday, February 14, 2016 2:38:10 PM 
Subject: Re: unusual lyric placement in second verse 

On 14.02.2016 20:27, dl.mcnam...@comcast.net wrote: 
> Thanks Simon, you've pointed me in the right direction. 
> Here's the updated score http://lilybin.com/l8kuff/3 (I neglected 
> to save the #2 version before sending the email). 
> This is totally workable for me. 

While you may consider it ‘workable’, this is definitely not correct. 
You have nested instances of \new Lyrics, with the result that none of 
the lyrics are correctly (center-)aligned. What’s more, lyric extenders 
and hyphens are incorrectly used, and you need a proper german ß. 
If you intend to publish this on Mutopia, bear in mind that what you are 
doing needs to be representative of LilyPond, and so have publication 
quality. And I don’t even speak about coding style. 
Here’s a corrected version: . 

Yours, Simon 

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


Re: unusual lyric placement in second verse

2016-02-14 Thread Simon Albrecht

On 14.02.2016 21:40, dl.mcnam...@comcast.net wrote:
If you see deficiencies in the coding style please let me know what 
they are.


For example to always surround = and { } with spaces. Also indentation 
should be only by 2 spaces per level – the Frescobaldi auto-formatter 
does a good job.


Best, Simon

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


Re: aligning an arrow

2016-02-14 Thread David Wright
On Sun 14 Feb 2016 at 20:21:57 (+0100), Robert Blackstone wrote:
> 
> On 14 Feb 2016, at 13:18 , Phil Holmes  wrote:
> 
> > Your way of laying this out is rather unusual,
> 
> A beginner's messy product but I was glad it worked (except for the third 
> arrow). But I see that your suggested manner ...
> 
> > Instead of all those hidden notes, I'd suggest using spacer rests (s4 for a 
> > crochet spacer).  Don't use stemUp or stemDown here - stick with voiceOne 
> > and voiceTwo.  If you use \omit \Stem rather than hide, the arrow won't 
> > have to avoid the hidden stem and will be placed as you wish.
> > 
> > I would also get rid of all those separate voices, and put all my voiceOne 
> > music in one variable and all my voiceTwo in another: much easier to read
> 
> ... is in all respects far more elegant and it produces what I need.
> 
> Thanks for the lesson.

... which one can illustrate with three diagrams:
yours.pngthe mysterious misalignment
unhidden.png the backstage antics showing the collision
why.png  why the other arrows didn't collide:
 _their_ near neighbours weren't shrunk, so the
 stems were further to the right.

I hadn't a clue what your source was doing until I expanded it
vertically. In the source to why.png, any line which has %% on it
has been deleted or modified. (I also inserted a \time 4/4)

Cheers,
David.
\version "2.18.2"
\relative c'
{
  \new Staff
  {
\omit Staff.TimeSignature
\clef "soprano"
<<
  {
	\stemUp a'4
	%% \once \hideNotes
	a
	%% \once \hideNotes
	a g
  }
  \bar "||"
  \new Voice
  {
	\voiceTwo \stemDown
	f4 \set fontSize = #-4
	%% \single \hide Stem
	e
	%% \single \hide Stem
	d2*1/2 %%
	^\markup {
	  \combine \arrow-head #Y #DOWN ##f \draw-line #'( 0 . 2)
	}
	\unset fontSize
	c4 %%
	|
  }
>>
<<
  {
	\time 5/4
	\stemUp c'
	%% \once \hideNotes
	c
	%% \once \hideNotes
	c
	%% \once \hideNotes
	c d
  }
  \bar "||"
  \new Voice
  {
	\voiceTwo \stemDown c, \set fontSize = #-4
	%% \single  \hide Stem
	d
	%% \single \hide Stem
	e
	%% \single \hide Stem
	f2*1/2 %%
	^\markup {
	  \combine \arrow-head #Y #DOWN ##f \draw-line #'( 0 . 2)
	}
	\unset fontSize  g4 |
  }
>>
<<
  {
	\time 4/4 %%
	\stemUp c
	%% \set fontSize = #-4
	%% \single \hide Stem
	b
%^\markup { \combine \arrow-head #Y #DOWN ##f \draw-line #'( 0 . 2) }
	%% \single \hide Stem
	a \unset fontSize  g } \bar "||"
  \new Voice
  {
	\voiceTwo \stemDown
	{
	  e4 \set fontSize = #-4
	  %% \once \hideNotes
	  d2*1/2 %%
	  ^\markup {
	\combine \arrow-head #Y #DOWN ##f \draw-line #'( 0 . 2)
	  }
	  %% \once \hideNotes
	  d4 %%
	  \unset fontSize c
	}
	|
  }
>>
\bar "||"
  }
}
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Horizontal spacing - choir

2016-02-14 Thread Carl-Henrik Buschmann
Joram,

Thank you - will test. Sorry to say your mail did not come to my mailbox, only 
in the digest. Will check my subscription settings.
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Fw: Re: digital music editions - is Lilypond a suitable tool for it?

2016-02-14 Thread David Wright
On Sun 14 Feb 2016 at 19:51:53 (+), musicus wrote:
> Sorry, didn't know that an attached html file does'nt work...
> Please change the attached file to ".html"

I don't understand. The only difference between your two attachments
appears to be that the second one has DOS-style line endings.
What does that affect?

Cheers,
David.

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


Re: Horizontal spacing - choir

2016-02-14 Thread Carl-Henrik Buschmann
Hi,

It did something, but not what i expect. Cannot get it to conform to the font i 
wish. Running latest OS X and latest lily-stuff.

http://lilybin.com/15a0y9/10 



> 14. feb. 2016 kl. 22.05 skrev Carl-Henrik Buschmann :
> 
> Joram,
> 
> Thank you - will test. Sorry to say your mail did not come to my mailbox, 
> only in the digest. Will check my subscription settings.

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


Re: Fw: Re: digital music editions - is Lilypond a suitable tool forit?

2016-02-14 Thread musicus

> I don't understand. The only difference between your two attachments
> appears to be that the second one has DOS-style line endings.
> What does that affect?
My browser didn't show the first one as attachement, but displayed the 
content as an image and the javascript button did not work. Apparently 
you received both as an attached file?


Cheers,
musicus___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: It is possible de play Snear Roll Midi with midi TAG, if yes, how ?

2016-02-14 Thread Steve Prud'Homme
Ok, that is realy cool. I want to improve something.If i take for example
OpenMPT and I look in the event list (pattern) to this snear roll midi file
http://stash.reaper.fm/oldsb/17708/FLroll3.mid.
We see is that the velocity is random, so it is possible to randomize the
note velocity and the space between note like that :

ModPlug Tracker  IT

|D-301v32TF0|...
|...|...
|D-301v23...|...
|D-301v29...|...
|D-301v23...|...
|D-301v20...|...
|===|...
|D-301v12...|...
|D-301v10...|...
|D-301v16...|...
|===|...
|D-301v05...|...
|D-301v15...|...
|...|...
|D-301v16...|...
|D-301v23...|...
|===|...
|D-301v17...|...
|...|...
|D-301v15...|D-301v12...
|===|===
|D-301v17...|...
|===|...
|D-301v16...|...
|D-301v14...|...
|D-301v10...|...
|D-301v16...|...
|===|...
|D-301v20...|...
|...|...
|D-301v18...|...
|D-301v11...|...
|D-301v17...|...
|===|...
|D-301v20...|...
|===|...
|D-301v15...|...
|D-301v11...|...
|D-301v14...|...
|D-301v18...|...
|===|...
|D-301v15...|...
|D-301v13...|...
|===|...
|D-301v15...|...
|D-301v20...|...
|===|...
|D-301v17...|D-301v12...
|===|===
|D-301v18...|...
|===|...
|D-301v20...|...
|D-301v20...|...
|D-301v14...|...
|===|...
|D-301v20...|...
|D-301v18...|...
|D-301v17...|...
|===|...
|D-301v10...|...
|D-301v20...|...
|D-301v23...|...
|===|...
|D-301v18...|...
|D-301v15...|...
|===|...
|D-301v21...|...
|D-301v21...|...
|===|...
|D-301v20...|...
|D-301v12...|...
|===|...
|D-301v18...|...
|D-301v25...|...
|===|...
|D-301v23...|...
|D-301v20...|...
|D-301v28...|...
|D-301v28...|...
|===|...
|D-301v23...|...
|D-301v20...|...
|===|...
|D-301v25...|...
|D-301v25...|...
|===|...
|D-301v24...|...
|D-301v28...|...
|===|...
|D-301v25...|...
|D-301v25...|...
|D-301v25...|...
|===|...
|D-301v18...|...
|D-301v38...|...
|===|...
|D-301v29...|...
|D-301v25...|...
|D-301v24...|...
|===|...
|D-301v47...|...
|D-301v47...|...
|===|...
|D-301v29...|...
|D-301v32...|...
|===|...
|D-301v38...|...
|D-301v29...|...
|D-301v47...|...
|===|...
|D-301v64...|...
|...|...
|D-301v64...|...


2016-02-08 15:52 GMT-05:00 tisimst :

> Steve,
>
> On Mon, Feb 8, 2016 at 1:33 PM, Steve Prud'Homme [via Lilypond] <[hidden
> email] > wrote:
>
>> In this post :
>> http://lists.gnu.org/archive/html/lilypond-user/2011-05/msg00028.html
>> We transform what is seen like an arpegio in this :
>>
>>   \tag #'midi {
>> \set tieWaitForNote = ##t
>> \grace { ef16 ~ af ~ bf ~ ef ~ } 2
>> \unset tieWaitForNote
>>   }
>>
>> So we cheat. So it is possible cheat midi to recreate a rool.
>> Question : What is a roll 1/64 notes 1/128 notes ?
>> How can I cheat to fake a snear roll.
>>
>
> Try this out:
>
> %
>
> \version "2.18.2"
>
> drumroll = \drummode {
>   \tag #'midi {
> \repeat unfold 64 sn64  % <--- here's what we want to hear
>   sn8->
>   }
>   \tag #'engrave {
> sn1 \startTrillSpan  % <--- here's what we want to see
> sn8-> \stopTrillSpan
>   }
> }
>
> % Engraved score
> \score {
>   \new DrumStaff {
> \keepWithTag #'engrave \drumroll
>   }
>   \layout {}
> }
>
> % MIDI score
> \score {
>   \new DrumStaff {
> \keepWithTag #'midi \drumroll
>   }
>   \midi {}
> }
>
> %
>
> HTH,
> Abraham
>
>
> --
> View this message in context: Re: It is possible de play Snear Roll Midi
> with midi TAG, if yes, how ?
> 
> 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
>
>


-- 
Posté par Steve 

Re: Best way to provide LilyPond via thumb drive

2016-02-14 Thread Simon Albrecht

On 14.02.2016 17:11, Colin Campbell wrote:

the Spanish version of the docs might be more or less out of date


I just saw that the Spanish version has been extensively updated very 
recently. I don’t know if this revision has already made it into a 
release, but it seems that in general this translation is quite well 
maintained.


Best, Simon

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


Re: Horizontal spacing - choir

2016-02-14 Thread Carl-Henrik Buschmann
I tried this inside the lyrics, i dont see any change though:

\override LyricText #'font-name = #Alegreya-Regular

http://lilybin.com/15a0y9/8 (thought it does not compile in lilybin - it works 
fine on my mac).

DRAWING blanks, again.


Carl-Henrik

> 14. feb. 2016 kl. 17.40 skrev Carl-Henrik Buschmann :
> 
> Thank you for the heads up. Will revise the dynamics, slurs and phrasings.
> 
> Fonts. I’ve tried looking in the manual but i shoot blanks: how do i change 
> the font and font size of the lyrics?
> 
> 
>> 14. feb. 2016 kl. 15.44 skrev Simon Albrecht :
>> 
>> Hello,
>> 
>> On 14.02.2016 12:58, Carl-Henrik Buschmann wrote:
>>> I need advice on how to best typeset my SATB score. The problem revolves 
>>> around horizontal spacing.
>>> 
>>> http://lilybin.com/15a0y9/2
>>> 
>>> I feel it is a bit cramped and the breaks do not flow naturally.
>> 
>> I don’t think it’s cramped – well, I like ‘cramped’ old Peters editions, so 
>> that may be anachronistic and personal taste.
>> 
>>> What can i do to improve?
>> 
>> Choose a narrower text font – I like and often use Alegreya from 
>> fontsquirrel.org. I’d not advise using a smaller text font, since it gives 
>> an ill proportion between text and music size. However I find it perfectly 
>> alright to use a fontsize of 16 for choral scores. It will remain well 
>> legible.
>> 
>> What’s more, (well-made) choral scores _always_ print dynamics above the 
>> staff to not have them on the same side like the lyrics. There’s a number of 
>> cases in your example where I’d also move slurs and ties, maybe even scripts 
>> above the staff. But that’s a matter of style as well.
>> 
>> And I’d suggest to always use proper lyric hyphens, since the misaligned 
>> syllables at the end of bars 19 and 39 are confusing. You can avoid creating 
>> a melisma with the slur by either removing slurMelismaBusy from 
>> melismaBusyProperties or using phrasing slurs { \( \) }.
>> 
>> HTH, Simon
> 


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


Re: unusual lyric placement in second verse

2016-02-14 Thread dl . mcnamara
Thanks Simon, you've pointed me in the right direction. 
Here's the updated score http://lilybin.com/l8kuff/3 (I neglected 
to save the #2 version before sending the email). 
This is totally workable for me. 

Dave 

- Original Message -

From: "Simon Albrecht"  
To: "dl mcnamara"  
Cc: lilypond-user@gnu.org 
Sent: Sunday, February 14, 2016 1:47:57 PM 
Subject: Re: unusual lyric placement in second verse 

On 14.02.2016 19:46, Simon Albrecht wrote: 
> On 14.02.2016 16:42, dl.mcnam...@comcast.net wrote: 
>> I'm not sure how your suggestion would mesh with the piece's overall 
>> structure; 
>> Here's a more complete take: 
>> http://lilybin.com/l8kuff/2 
> 
> There’s nothing in that link – could you try again? 
> 
>> (I tried to trim extra stuff for a minimal example). 
>> A complete version is here 
>> http://imslp.nl/imglnks/usimg/d/db/IMSLP04156-Bach_-_BGA_439-518.pdf 
>> it's number 16 (page 8). 
>> 
>> The A section is repeated with different lyrics, this is followed by 
>> a few more, non-repeated, phrases. 
> 
> It’s a known problem that we don’t have a satisfactory interface for 
> that kind of structure in lyrics. Ideally there would be some sensible 
> input method, automatically arranging the lyrics so the alternatives 
> for the repeat are correctly arranged, with braces, and the following 
> piece centered. But this is no more than a wish. 
> Given the current set of tools, I’d suggest to continue 

Sorry, here I sent prematurely. The easiest way is to just write the 
lyrics for the ‘Abgesang’ (the part after the repeat) in the lower of 
the lyrics contexts. Maybe I’ll come back with a refined solution. 

> 
>> 
>> I thought that it would be sensible and useful to have separate 
>> variables for the full melody, the full lyrics, bass, and figures. 
>> I like this because it keeps the commands within the score block 
>> relatively simple, and thus allows me to easily turn off the lyrics 
>> (for example) 
>> by just commenting out a single line. 
> 
> Of course; I don’t (yet) do it the same way myself, but I understand 
> the intent. But I hope you’re getting my point: if I have to skim 
> through 100 lines of code first and understand which variable points 
> where, that keeps me from getting at the actual problem. 
> 
>> This gets to something that is not (to my knowledge) well documented: 
>> what 
>> is a good way of organizing and structuring the lilypond content? 
> 
> Well, there are some hints in the manuals, but basically there is a 
> lot of liberty in this respect. Everything is possible, from the most 
> simple structure without using variables (though that’s almost never 
> sensible) to very advanced Scheme framework like GridLY or other 
> solutions. 
> It would be desirable to have more generally accepted standards here, 
> for multiple reasons, but on the other hand it would really take away 
> flexibility. I think that in this field LilyPond is just a very 
> ‘young’ project and we’ll have to go a long way still. 
> 
> Best, Simon 
> 
> ___ 
> 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: unusual lyric placement in second verse

2016-02-14 Thread Simon Albrecht

On 14.02.2016 16:42, dl.mcnam...@comcast.net wrote:
I'm not sure how your suggestion would mesh with the piece's overall 
structure;

Here's a more complete take:
http://lilybin.com/l8kuff/2


There’s nothing in that link – could you try again?


(I tried to trim extra stuff for a minimal example).
A complete version is here 
http://imslp.nl/imglnks/usimg/d/db/IMSLP04156-Bach_-_BGA_439-518.pdf

it's number 16 (page 8).

The A section is repeated with different lyrics, this is followed by
 a few more, non-repeated, phrases.


It’s a known problem that we don’t have a satisfactory interface for 
that kind of structure in lyrics. Ideally there would be some sensible 
input method, automatically arranging the lyrics so the alternatives for 
the repeat are correctly arranged, with braces, and the following piece 
centered. But this is no more than a wish.

Given the current set of tools, I’d suggest to continue



I thought that it would be sensible and useful to have separate
variables for the full melody, the full lyrics, bass, and figures.
I like this because it keeps the commands within the score block
relatively simple, and thus allows me to easily turn off the lyrics 
(for example)

by just commenting out a single line.


Of course; I don’t (yet) do it the same way myself, but I understand the 
intent. But I hope you’re getting my point: if I have to skim through 
100 lines of code first and understand which variable points where, that 
keeps me from getting at the actual problem.



This gets to something that is not (to my knowledge) well documented: what
is a good way of organizing and structuring the lilypond content?


Well, there are some hints in the manuals, but basically there is a lot 
of liberty in this respect. Everything is possible, from the most simple 
structure without using variables (though that’s almost never sensible) 
to very advanced Scheme framework like GridLY or other solutions.
It would be desirable to have more generally accepted standards here, 
for multiple reasons, but on the other hand it would really take away 
flexibility. I think that in this field LilyPond is just a very ‘young’ 
project and we’ll have to go a long way still.


Best, Simon

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


Re: unusual lyric placement in second verse

2016-02-14 Thread Simon Albrecht

On 14.02.2016 19:46, Simon Albrecht wrote:

On 14.02.2016 16:42, dl.mcnam...@comcast.net wrote:
I'm not sure how your suggestion would mesh with the piece's overall 
structure;

Here's a more complete take:
http://lilybin.com/l8kuff/2


There’s nothing in that link – could you try again?


(I tried to trim extra stuff for a minimal example).
A complete version is here 
http://imslp.nl/imglnks/usimg/d/db/IMSLP04156-Bach_-_BGA_439-518.pdf

it's number 16 (page 8).

The A section is repeated with different lyrics, this is followed by
 a few more, non-repeated, phrases.


It’s a known problem that we don’t have a satisfactory interface for 
that kind of structure in lyrics. Ideally there would be some sensible 
input method, automatically arranging the lyrics so the alternatives 
for the repeat are correctly arranged, with braces, and the following 
piece centered. But this is no more than a wish.

Given the current set of tools, I’d suggest to continue


Sorry, here I sent prematurely. The easiest way is to just write the 
lyrics for the ‘Abgesang’ (the part after the repeat) in the lower of 
the lyrics contexts. Maybe I’ll come back with a refined solution.






I thought that it would be sensible and useful to have separate
variables for the full melody, the full lyrics, bass, and figures.
I like this because it keeps the commands within the score block
relatively simple, and thus allows me to easily turn off the lyrics 
(for example)

by just commenting out a single line.


Of course; I don’t (yet) do it the same way myself, but I understand 
the intent. But I hope you’re getting my point: if I have to skim 
through 100 lines of code first and understand which variable points 
where, that keeps me from getting at the actual problem.


This gets to something that is not (to my knowledge) well documented: 
what

is a good way of organizing and structuring the lilypond content?


Well, there are some hints in the manuals, but basically there is a 
lot of liberty in this respect. Everything is possible, from the most 
simple structure without using variables (though that’s almost never 
sensible) to very advanced Scheme framework like GridLY or other 
solutions.
It would be desirable to have more generally accepted standards here, 
for multiple reasons, but on the other hand it would really take away 
flexibility. I think that in this field LilyPond is just a very 
‘young’ project and we’ll have to go a long way still.


Best, Simon

___
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: How to trigger rall. in articulate.ly

2016-02-14 Thread Simon Albrecht

On 14.02.2016 16:47, Richard Shann wrote:

On Sun, 2016-02-14 at 13:15 +0100, David Kastrup wrote:

Richard Shann  writes:


The articulate.ly script appears to support rallentando but I can't
figure out how to trigger it. In LilyPond AFAIK rall. is expressed as
text in a text spanner, there's no dedicated event type (if I'm using
the right sort of terminology here ...)

And that's how articulate appears to be doing it:

((TextScriptEvent)
 (let ((t (ly:music-property e 'text)))
  (if (not (string? t))
   (loop factor (cons e newelements) tail actions)
   (begin
(cond
 ((or
   (string= t "rall")

[...]

Should it rather (or additionally) heed \tempo "rall" ?  Probably.

Thank you - I should have seen this passage but, somehow, didn't. Some
experimenting (working back from TextScriptEvent mentioned there) and I
have got it to work - it requires some input like ^"rall." without any
preceding \italic or \mark or ..., in other words, very sensitive to the
exact syntax.


Didn’t Harm recently much improve the markup->string procedure, so it 
could be used here?


Best, Simon

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


Re: aligning an arrow

2016-02-14 Thread Robert Blackstone

On 14 Feb 2016, at 13:18 , Phil Holmes  wrote:

> Your way of laying this out is rather unusual,

A beginner's messy product but I was glad it worked (except for the third 
arrow). But I see that your suggested manner ...

> Instead of all those hidden notes, I'd suggest using spacer rests (s4 for a 
> crochet spacer).  Don't use stemUp or stemDown here - stick with voiceOne and 
> voiceTwo.  If you use \omit \Stem rather than hide, the arrow won't have to 
> avoid the hidden stem and will be placed as you wish.
> 
> I would also get rid of all those separate voices, and put all my voiceOne 
> music in one variable and all my voiceTwo in another: much easier to read

... is in all respects far more elegant and it produces what I need.

Thanks for the lesson.

Best regards,

Robert Blackstone



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


Re: Horizontal spacing - choir

2016-02-14 Thread Simon Albrecht

On 14.02.2016 20:24, Carl-Henrik Buschmann wrote:

I tried this inside the lyrics, i dont see any change though:

\override LyricText #'font-name = #Alegreya-Regular


You need to give the font name as a string, in this case:
\override LyricText.font-name = "Alegreya"
(untested)

HTH, Simon

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


Re: unusual lyric placement in second verse

2016-02-14 Thread Simon Albrecht

On 14.02.2016 20:27, dl.mcnam...@comcast.net wrote:

Thanks Simon, you've pointed me in the right direction.
Here's the updated score http://lilybin.com/l8kuff/3 (I neglected
to save the #2 version before sending the email).
This is totally workable for me.


While you may consider it ‘workable’, this is definitely not correct. 
You have nested instances of \new Lyrics, with the result that none of 
the lyrics are correctly (center-)aligned. What’s more, lyric extenders 
and hyphens are incorrectly used, and you need a proper german ß.
If you intend to publish this on Mutopia, bear in mind that what you are 
doing needs to be representative of LilyPond, and so have publication 
quality. And I don’t even speak about coding style.

Here’s a corrected version: .

Yours, Simon

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


Re: Horizontal spacing - choir

2016-02-14 Thread Carl-Henrik Buschmann
No luck, at least on my system. 

Regardless of font, how to make the font size smaller?


Carl-Henrik

> 14. feb. 2016 kl. 20.27 skrev Simon Albrecht :
> 
> On 14.02.2016 20:24, Carl-Henrik Buschmann wrote:
>> I tried this inside the lyrics, i dont see any change though:
>> 
>> \override LyricText #'font-name = #Alegreya-Regular
> 
> You need to give the font name as a string, in this case:
> \override LyricText.font-name = "Alegreya"
> (untested)
> 
> HTH, Simon


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


Re: Where can I find lilyJazz (fonts.openlilylib.org is gone)

2016-02-14 Thread Jacques Menu Muzhic
Hello Ernie,

I copied the .zip archive recenlty to my machine, send it to you right now.

JM

> Le 7 févr. 2016 à 23:54, tisimst  a écrit :
> 
> Ernie,
> 
> I've been in the process of moving everything to a new website. I apologize 
> to everyone who has tried to access it lately and haven't been able to. I'll 
> send you a private message later with the files. More details soon. I should 
> have the site ready for public access by the end of this week.
> 
> Best,
> Abraham
> 
> On Sunday, February 7, 2016, Ernie Braganza [via Lilypond] <[hidden email] 
> > wrote:
> I wanted to try lilyJazz, but I am unable to find the font. The 
> fonts.openlilylib.org  site is not accessible 
> (404 error). Is there an alternative site?
> 
> Thanks for your help.
> 
> Ernie
> 
> ___ 
> lilypond-user mailing list 
> [hidden email]  
> https://lists.gnu.org/mailman/listinfo/lilypond-user 
> 
> 
> 
> If you reply to this email, your message will be added to the discussion 
> below:
> http://lilypond.1069038.n5.nabble.com/Where-can-I-find-lilyJazz-fonts-openlilylib-org-is-gone-tp186994.html
>  
> 
> To start a new topic under User, email  href="javascript:_e(%7B%7D,cvml,ml-node%2bs1069038n...@n5.nabble.com);"
>  target="_blank">ml-node+s1069038n3h2@... 
> To unsubscribe from Lilypond, click here 
> .
> NAML 
> 
> View this message in context: Re: Where can I find lilyJazz 
> (fonts.openlilylib.org is gone) 
> 
> 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


Fw: Re: digital music editions - is Lilypond a suitable tool for it?

2016-02-14 Thread musicus

Sorry, didn't know that an attached html file does'nt work...
Please change the attached file to ".html"

JavaScript_Test3.html.rename
Description: Binary data
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Avoiding PhrasingSlur/accidental collisions

2016-02-14 Thread Noeck
Hi Andrew,

this [1] is more automatic:

\relative c {
  \override PhrasingSlur.details.accidental-collision = #1000
  \repeat tremolo 8 { es'''32\( es, } es'!2\) |
}

I don't know what it actually means. Probably sth. like the value is
very high (1000) so there is definitely a collision to avoid? But it works.

HTH,
Joram


[1]: http://comments.gmane.org/gmane.comp.gnu.lilypond.general/93785

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


Re: aligning an arrow

2016-02-14 Thread Phil Holmes
Your way of laying this out is rather unusual, and partly causes your 
problem.  Instead of all those hidden notes, I'd suggest using spacer rests 
(s4 for a crochet spacer).  Don't use stemUp or stemDown here - stick with 
voiceOne and voiceTwo.  If you use \omit \Stem rather than hide, the arrow 
won't have to avoid the hidden stem and will be placed as you wish.


I would also get rid of all those separate voices, and put all my voiceOne 
music in one variable and all my voiceTwo in another: much easier to read.


--
Phil Holmes


- Original Message - 
From: "Robert Blackstone" 

To: 
Sent: Sunday, February 14, 2016 11:38 AM
Subject: aligning an arrow



Dear all,

In the following example I would like to lower the arrow above the third 
bar to the level of those in bars 1 and 2, but up till now I have not 
found a way to accomplish it. Either the arrow stays at the same level or 
it disappears altogether.


%
\version "2.18.2"
\relative c' {
\new Staff { \omit Staff.TimeSignature \clef "soprano"
<<
{\stemUp a'4 \once \hideNotes  a \once \hideNotes a g }\bar "||"
\new Voice {\voiceTwo \stemDown  f4 \set fontSize = #-4 \single \hide Stem 
e \single \hide Stem d^\markup { \combine \arrow-head #Y #DOWN ##f 
\draw-line #'( 0 . 2) } \unset fontSize c |}



<<
{\time 5/4  \stemUp c' \once \hideNotes c \once \hideNotes c \once 
\hideNotes c d } \bar "||"
\new Voice {\voiceTwo \stemDown c, \set fontSize = #-4 \single  \hide Stem 
d \single \hide Stem e \single \hide Stem f^\markup { \combine \arrow-head 
#Y #DOWN ##f \draw-line #'( 0 . 2) } \unset fontSize  g4 |}



<<
{\stemUp c \set fontSize = #-4 \single \hide Stem b %^\markup { \combine 
\arrow-head #Y #DOWN ##f \draw-line #'( 0 . 2) }
\single \hide Stem a \unset fontSize  g } \bar "||" \new Voice {\voiceTwo 
\stemDown { e4 \set fontSize = #-4 \once \hideNotes d^\markup { \combine 
\arrow-head #Y #DOWN ##f \draw-line #'( 0 . 2) }

\once \hideNotes d \unset fontSize c } |}

\bar "||" }

}%

Thanks in advance for any help.

Best regards,

Robert Blackstone
___
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: aligning an arrow

2016-02-14 Thread Robert Blackstone
Many thanks, Pierre. 

It is perfect now with extra-offset #'(0 . -1.2).

Best regards,
Robert

On 14 Feb 2016, at 13:13 , Pierre Perol-Schneider 
 wrote:

> Hi Robert,
> 
> Try:
> 
> ^\tweak extra-offset #'(0 . -2) %% <= or whatever is needed
> -\markup
> { 
>   \combine 
>   \arrow-head #Y #DOWN ##f 
>   \draw-line #'(0 . 2) 
> } 
> 
> Cheers,
> Pierre
> 
> 
> 
> 2016-02-14 12:38 GMT+01:00 Robert Blackstone :
> Dear all,
> 
> In the following example I would like to lower the arrow above the third bar 
> to the level of those in bars 1 and 2, but up till now I have not found a way 
> to accomplish it. Either the arrow stays at the same level or it disappears 
> altogether.
> 
> %
> \version "2.18.2"
> \relative c' {
> \new Staff { \omit Staff.TimeSignature \clef "soprano"
> <<
> {\stemUp a'4 \once \hideNotes  a \once \hideNotes a g }\bar "||"
> \new Voice {\voiceTwo \stemDown  f4 \set fontSize = #-4 \single \hide Stem e 
> \single \hide Stem d^\markup { \combine \arrow-head #Y #DOWN ##f \draw-line 
> #'( 0 . 2) } \unset fontSize c |}
> >>
> <<
> {\time 5/4  \stemUp c' \once \hideNotes c \once \hideNotes c \once \hideNotes 
> c d } \bar "||"
> \new Voice {\voiceTwo \stemDown c, \set fontSize = #-4 \single  \hide Stem d 
> \single \hide Stem e \single \hide Stem f^\markup { \combine \arrow-head #Y 
> #DOWN ##f \draw-line #'( 0 . 2) } \unset fontSize  g4 |}
> >>
> <<
> {\stemUp c \set fontSize = #-4 \single \hide Stem b %^\markup { \combine 
> \arrow-head #Y #DOWN ##f \draw-line #'( 0 . 2) }
> \single \hide Stem a \unset fontSize  g } \bar "||" \new Voice {\voiceTwo 
> \stemDown { e4 \set fontSize = #-4 \once \hideNotes d^\markup { \combine 
> \arrow-head #Y #DOWN ##f \draw-line #'( 0 . 2) }
> \once \hideNotes d \unset fontSize c } |}
> >> \bar "||" }
> }%
> 
> Thanks in advance for any help.
> 
> Best regards,
> 
> Robert Blackstone
> ___
> 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


Vertical spacing question.

2016-02-14 Thread Hwaen Ch'uqi
Greetings All,

I would like to temporarily influence the vertical spacing of a piece,
idally using this form:

\override StaffGrouper.staff-staff-spacing.padding = #5

In the NR for version 2.19.36, this type of command is shown in a
\with block, resulting in the entire score spaced accordingly. So I
thought to try the stretchability key; this improved the overall
spacing slightly, though the staves in the final system of my piece
were curiously spaced much further apart than necessary. So I moved on
to the \overrideProperty command with
NonMusicalPaperColumn.line-break-system-details and the
alignment-distances key. However, I could not find how one undoes
\overrideProperty. Or is it like \tweak, a once-and-done command?

Thank you for any advice.

Hwaen Ch'uqi

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


Re: Horizontal spacing - choir

2016-02-14 Thread Noeck
Dear Carl-Henrik,

I would suggest to reduce the global staff size to 19. That gives you
more space both vertically and horizontally. And I would remove your
custom system-system-spacing as it makes it harder to recognize what
belongs to which system. I don't know if that is an option for you.

Cheers,
Joram

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


Re: Horizontal spacing - choir

2016-02-14 Thread Pierre Perol-Schneider
With the same number of systems?

\layout {
   system-count = 18
   \context {
  \Score
  \override LyricText #'font-size = #-1
}
}

If not fine, have you tried Joram's idea?



2016-02-14 13:22 GMT+01:00 Carl-Henrik Buschmann :

> It definitly helps, but it still feels cramped.
>
> I used:
> \context {
>   \Score
>   \override LyricText #'font-size = #-1
> }
>
>
>
> 14. feb. 2016 kl. 13.16 skrev Pierre Perol-Schneider <
> pierre.schneider.pa...@gmail.com>:
>
> Hi Carl-Henrik,
>
> How about a smaller font size for the lyrics?
>
> Cheers,
> Pierre
>
> 2016-02-14 12:58 GMT+01:00 Carl-Henrik Buschmann :
>
>> Hey,
>>
>> I need advice on how to best typeset my SATB score. The problem revolves
>> around horizontal spacing.
>>
>> http://lilybin.com/15a0y9/2
>>
>> I feel it is a bit cramped and the breaks do not flow naturally. What can
>> i do to improve?
>>
>> In the source you will see what i have already attempted. Perhaps those
>> attempts are the way to go but the eyes of the crowd usually works wonders.
>>
>>
>> Best,
>> Carl-Henrik
>>
>>
>> ___
>> 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: Horizontal spacing - choir

2016-02-14 Thread Carl-Henrik Buschmann
http://lilybin.com/15a0y9/6
Things are coming along quite nicely. Thank you for your suggestions. 

I'd appreciate any tips you all see to make this even more beautiful.



> 14. feb. 2016 kl. 13.37 skrev Pierre Perol-Schneider 
> :
> 
> With the same number of systems?
> 
> \layout {
>system-count = 18
>\context { 
>   \Score 
>   \override LyricText #'font-size = #-1 
> } 
> }
> 
> If not fine, have you tried Joram's idea?
> 
> 
> 
> 2016-02-14 13:22 GMT+01:00 Carl-Henrik Buschmann  >:
> It definitly helps, but it still feels cramped. 
> 
> I used:
> \context { 
>   \Score 
>   \override LyricText #'font-size = #-1 
> } 
> 
> 
> 
>> 14. feb. 2016 kl. 13.16 skrev Pierre Perol-Schneider 
>> >:
>> 
>> Hi Carl-Henrik,
>> 
>> How about a smaller font size for the lyrics?
>> 
>> Cheers,
>> Pierre
>> 
>> 2016-02-14 12:58 GMT+01:00 Carl-Henrik Buschmann > >:
>> Hey,
>> 
>> I need advice on how to best typeset my SATB score. The problem revolves 
>> around horizontal spacing. 
>> 
>> http://lilybin.com/15a0y9/2 
>> 
>> I feel it is a bit cramped and the breaks do not flow naturally. What can i 
>> do to improve?
>> 
>> In the source you will see what i have already attempted. Perhaps those 
>> attempts are the way to go but the eyes of the crowd usually works wonders.
>> 
>> 
>> Best,
>> Carl-Henrik
>> 
>> 
>> ___
>> 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: How to trigger rall. in articulate.ly

2016-02-14 Thread David Kastrup
Richard Shann  writes:

> The articulate.ly script appears to support rallentando but I can't
> figure out how to trigger it. In LilyPond AFAIK rall. is expressed as
> text in a text spanner, there's no dedicated event type (if I'm using
> the right sort of terminology here ...)

And that's how articulate appears to be doing it:

   ((TextScriptEvent)
(let ((t (ly:music-property e 'text)))
 (if (not (string? t))
  (loop factor (cons e newelements) tail actions)
  (begin
   (cond
((or
  (string= t "rall")
  (string= t "Rall")
  (string= t "rit.")
  (string= t "rall."))
 (loop factor (cons e newelements) tail (cons 'rall actions)))
((or
  (string= t "accelerando")
  (string= t "accel")
  (string= t "accel."))
 (loop factor (cons e newelements) tail (cons 'accel actions)))
((or
  (string= t "poco accel."))
 (loop factor (cons e newelements) tail (cons 'pocoAccel actions)))
((or
  (string= t "poco rall.")
  (string= t "poco rit."))
 (loop factor (cons e newelements) tail (cons 'pocoRall actions)))
((or (string= t "a tempo")
  (string= t "tempo I"))
   (loop factor (cons e newelements) tail (cons 'aTempo actions)))
(else (loop factor (cons e newelements) tail actions)))

Should it rather (or additionally) heed \tempo "rall" ?  Probably.

-- 
David Kastrup

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


Re: Horizontal spacing - choir

2016-02-14 Thread Pierre Perol-Schneider
Hi Carl-Henrik,

How about a smaller font size for the lyrics?

Cheers,
Pierre

2016-02-14 12:58 GMT+01:00 Carl-Henrik Buschmann :

> Hey,
>
> I need advice on how to best typeset my SATB score. The problem revolves
> around horizontal spacing.
>
> http://lilybin.com/15a0y9/2
>
> I feel it is a bit cramped and the breaks do not flow naturally. What can
> i do to improve?
>
> In the source you will see what i have already attempted. Perhaps those
> attempts are the way to go but the eyes of the crowd usually works wonders.
>
>
> Best,
> Carl-Henrik
>
>
> ___
> 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: Avoiding PhrasingSlur/accidental collisions

2016-02-14 Thread Trevor Daniels

Noeck wrote Sunday, February 14, 2016 12:10 PM

> this [1] is more automatic:
> 
> \relative c {
>  \override PhrasingSlur.details.accidental-collision = #1000
>  \repeat tremolo 8 { es'''32\( es, } es'!2\) |
> }
> 
> I don't know what it actually means. Probably sth. like the value is
> very high (1000) so there is definitely a collision to avoid? But it works.

It sets the value of the penalty incurred if there is a collision with an 
accidental.  The sum of the penalties incurred for various positions of the 
phrasing slur are compared and the position with the lowest penalty sum is 
selected as the best position.

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


Restoring tuplet numbers

2016-02-14 Thread Hilary Snaden
Version 2.18.2

\hide TupletNumber and \omit TupletNumber are mentioned in the notation
manual, and they seem to do what I want them to. But is there a
similarly straightforward way of restoring tuplet numbers after they
have been hidden or omitted?

-- 
Hilary

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


Re: Best way to provide LilyPond via thumb drive

2016-02-14 Thread Simon Albrecht

Hello Ralph,

On 12.02.2016 14:06, Ralph Palmer wrote:
Soon, I shall be visiting a music school which almost certainly has 
computers but which probably has little internet access. I would like 
to give them a thumb drive with all the files they would need for 
setup, learning, and running LilyPond. The biggest catch, probably, is 
that it would be best if it were in Spanish. Also, I don't know what 
their operating system is, so I would like to make it available as 
Linux, Windows, and Apple. I'm hoping that the only part that would 
need to be in Spanish would be the manuals. Can anyone help me out or 
point me in the right direction?


I think I can only comment on Linux installation, and on manuals.
For Linux ‘installation’ it is actually sufficient to just copy the 
lilypond/ folder.
As to the manuals, you can obtain a full copy (including all languages) 
via the --doc option in the Unix installation shell script.


HTH, Simon

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


Horizontal spacing - choir music

2016-02-14 Thread Carl-Henrik Buschmann
Hey,

I need advice on how to best typeset my SATB score. The problem revolves around 
horizontal spacing. 

http://lilybin.com/15a0y9/2

I feel it is a bit cramped and the breaks do not flow naturally. In the source 
you will see what i have already attempted. Perhaps those attempts are the way 
to go but i need the eyes of the crowd. 


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


Re: Horizontal spacing - choir

2016-02-14 Thread Simon Albrecht

Hello,

On 14.02.2016 12:58, Carl-Henrik Buschmann wrote:
I need advice on how to best typeset my SATB score. The problem 
revolves around horizontal spacing.


http://lilybin.com/15a0y9/2

I feel it is a bit cramped and the breaks do not flow naturally.


I don’t think it’s cramped – well, I like ‘cramped’ old Peters editions, 
so that may be anachronistic and personal taste.



What can i do to improve?


Choose a narrower text font – I like and often use Alegreya from 
fontsquirrel.org. I’d not advise using a smaller text font, since it 
gives an ill proportion between text and music size. However I find it 
perfectly alright to use a fontsize of 16 for choral scores. It will 
remain well legible.


What’s more, (well-made) choral scores _always_ print dynamics above the 
staff to not have them on the same side like the lyrics. There’s a 
number of cases in your example where I’d also move slurs and ties, 
maybe even scripts above the staff. But that’s a matter of style as well.


And I’d suggest to always use proper lyric hyphens, since the misaligned 
syllables at the end of bars 19 and 39 are confusing. You can avoid 
creating a melisma with the slur by either removing slurMelismaBusy from 
melismaBusyProperties or using phrasing slurs { \( \) }.


HTH, Simon

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


manual \harmonic

2016-02-14 Thread BB

In the manual 2.18
http://lilypond.org/doc/v2.18/Documentation/notation/guitar
I found the example for harmonic

\relative c' {
  \clef "treble_8"
  \override Staff.NoteHead.style = #'harmonic-mixed
  d^\markup { \italic { \fontsize #-2 { "harm. 12" }}} 1
}

could not switch back to normal notation? I do not think that as a bug but my 
problem. I would recommend to tell in the manual how to get back to normal 
notataion.

For some short harmonic sequences I find marking the harmonic pitch with 
\harmonic much easier to do and to understand for simple minded user

4
1
^\markup { \italic { \fontsize #-2 { "harm. 12" }}}
1


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


Scripting the \paper blocks output

2016-02-14 Thread N. Andrew Walsh
Hi List,

I have an included file, "default.ily" that I use for my stylesheet,
comprising the following \paper block:

\paper {
   %% Set system-system distance

  system-system-spacing.basic-distance = #32

  indent = 18\mm
  two-sided = "true"
  inner-margin = 15.0\mm
  outer-margin = 3.3\mm
  top-margin = 8.0\mm
  bottom-margin = 12.0\mm

  %% Set Page numbers to the bottom
  oddHeaderMarkup = \markup \fill-line { " " }
 evenHeaderMarkup = \markup \fill-line { " " }
 oddFooterMarkup = \markup \abs-fontsize #10 \fill-line {
 \on-the-fly #not-part-first-page \line {Klang Büro xx.xxx }
 \on-the-fly #print-page-number-check-first \fromproperty
#'page:page-number-string
 }
 evenFooterMarkup = \markup \abs-fontsize #10 \fill-line {
 \on-the-fly #print-page-number-check-first \fromproperty
#'page:page-number-string
 \on-the-fly #not-part-first-page \line {Klang Büro xx.xxx }
 }

   %% Set default page size
   #(set-paper-size "a4")

}

What I'm interested in are the lines with the "xx.xxx" part. I'd like to
automate that to output, on a per-book basis, some string that uniquely
identifies the piece as some combination of composer name and serial
number. This is taken from the Carus Verlag's practice of numbering, by
which Bach's works are numbered as 31.xxx, with "xxx" replaced by the BWV
number.

It doesn't have to be purely numerical. I'd be happy to, say, just take the
first two letters of the composer's last name, and then number the pieces
sequentially as I finish them. What I would really like to do, though, is
to set that number of the piece as a variable in the master .ly file, and
have the .ily file pull it and the composer's identifier on the fly (so
that I don't have to change the .ily file each time I work on a piece with
a different number).

So, I have my .ly file, and there's a line of pseudo-code like:
composer = { Bob Smith }
catalognumber = { 001 }

and the .ily file automatically replaces "xx.xxx" with "Sm.001".

Is there a way to do that?

Cheers,

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


Re: unusual lyric placement in second verse

2016-02-14 Thread Simon Albrecht

Hello,

On 14.02.2016 15:56, dl.mcnam...@comcast.net wrote:


I'm typesetting a hymn where the first section is (volta) repeated 
with different lyrics.
The way that the words are laid out across the two different lines 
seems odd and distracting to me --

particularly on the fourth and eighth bar.

(a) why is lilypond laying the two line out displaced from one another?
(b) is there a way to make things line up better?


You don’t use \lyricsto when you create the second Lyrics context, hence 
the problem.

Structurally it would be much clearer if you did something like


\version "2.18.2"

global = {
  \key f \major
  \time 3/4
}

melody = {
  \repeat volta 2 \relative c'' {
% A section
a4 f g |
a4 (b) c |
c2 b4 |
c2.\fermata |

a4 bes a |
g2 f4 |
a2 (g4) |
f2.
  } \break

}

textA = \lyricmode {
  % First A section
  Er -- mun -- tre dich, mein schwa -- cher Geist,
  und tra -- ge gross Ver -- lan -- gen,
}
textB = \lyricmode {
  % Second A section
  ein klei -- nes Kind, das Va -- ter heißt,
  mit Freu -- den zu em -- pfan -- gen.
}

\score {
  \context PianoStaff <<
\new Staff = "upper" { \clef treble \global \new Voice = "melody" 
\melody}

\new Lyrics \lyricsto "melody" \textA
\new Lyrics \lyricsto "melody" \textB
  >>
}
%%

HTH, Simon

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


Re: aligning an arrow

2016-02-14 Thread Pierre Perol-Schneider
Hi Robert,

Try:

^\tweak extra-offset #'(0 . -2) %% <= or whatever is needed
-\markup
{
  \combine
  \arrow-head #Y #DOWN ##f
  \draw-line #'(0 . 2)
}

Cheers,
Pierre



2016-02-14 12:38 GMT+01:00 Robert Blackstone :

> Dear all,
>
> In the following example I would like to lower the arrow above the third
> bar to the level of those in bars 1 and 2, but up till now I have not found
> a way to accomplish it. Either the arrow stays at the same level or it
> disappears altogether.
>
> %
> \version "2.18.2"
> \relative c' {
> \new Staff { \omit Staff.TimeSignature \clef "soprano"
> <<
> {\stemUp a'4 \once \hideNotes  a \once \hideNotes a g }\bar "||"
> \new Voice {\voiceTwo \stemDown  f4 \set fontSize = #-4 \single \hide Stem
> e \single \hide Stem d^\markup { \combine \arrow-head #Y #DOWN ##f
> \draw-line #'( 0 . 2) } \unset fontSize c |}
> >>
> <<
> {\time 5/4  \stemUp c' \once \hideNotes c \once \hideNotes c \once
> \hideNotes c d } \bar "||"
> \new Voice {\voiceTwo \stemDown c, \set fontSize = #-4 \single  \hide Stem
> d \single \hide Stem e \single \hide Stem f^\markup { \combine \arrow-head
> #Y #DOWN ##f \draw-line #'( 0 . 2) } \unset fontSize  g4 |}
> >>
> <<
> {\stemUp c \set fontSize = #-4 \single \hide Stem b %^\markup { \combine
> \arrow-head #Y #DOWN ##f \draw-line #'( 0 . 2) }
> \single \hide Stem a \unset fontSize  g } \bar "||" \new Voice {\voiceTwo
> \stemDown { e4 \set fontSize = #-4 \once \hideNotes d^\markup { \combine
> \arrow-head #Y #DOWN ##f \draw-line #'( 0 . 2) }
> \once \hideNotes d \unset fontSize c } |}
> >> \bar "||" }
> }%
>
> Thanks in advance for any help.
>
> Best regards,
>
> Robert Blackstone
> ___
> 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: Horizontal spacing - choir

2016-02-14 Thread Carl-Henrik Buschmann
It definitly helps, but it still feels cramped. 

I used:
\context { 
  \Score 
  \override LyricText #'font-size = #-1 
} 



> 14. feb. 2016 kl. 13.16 skrev Pierre Perol-Schneider 
> :
> 
> Hi Carl-Henrik,
> 
> How about a smaller font size for the lyrics?
> 
> Cheers,
> Pierre
> 
> 2016-02-14 12:58 GMT+01:00 Carl-Henrik Buschmann  >:
> Hey,
> 
> I need advice on how to best typeset my SATB score. The problem revolves 
> around horizontal spacing. 
> 
> http://lilybin.com/15a0y9/2 
> 
> I feel it is a bit cramped and the breaks do not flow naturally. What can i 
> do to improve?
> 
> In the source you will see what i have already attempted. Perhaps those 
> attempts are the way to go but the eyes of the crowd usually works wonders.
> 
> 
> Best,
> Carl-Henrik
> 
> 
> ___
> 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: Restoring tuplet numbers

2016-02-14 Thread David Kastrup
Hilary Snaden  writes:

> Version 2.18.2
>
> \hide TupletNumber and \omit TupletNumber are mentioned in the notation
> manual, and they seem to do what I want them to. But is there a
> similarly straightforward way of restoring tuplet numbers after they
> have been hidden or omitted?

\undo \hide TupletNumber and \undo \omit TupletNumber come to mind.  Of
course, you could do \once \omit TupletNumber in the first place, or use

\single \omit TupletNumber \tuplet ...

for omitting the tuplet number on a specific single tuplet.

-- 
David Kastrup

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


Re: positioning a rest

2016-02-14 Thread Simon Albrecht

On 12.02.2016 22:02, Noeck wrote:

the problem with your code is that your code says the second rest is in
\oneVoice (this means there are no other simultaneous voices around).
But there is the c' at the same time in \voiceTwo and that confuses
LilyPond. If you mark the voices correctly, you will get this:

\version "2.19.32"
{
   \new Staff <<
 \time 3/4
 \new Voice { \oneVoice r4 \voiceOne r g' }
 \new Voice { \oneVoice s4 \voiceTwo c'2 }
   >>
}

Now the rest is on the top line emphasizing that it belongs to the upper
of simultaneous voice. Which is ok, but perhaps exaggerated. If you want
to reproduce your original measure exactly,
\override Rest.staff-position = 0 helps as Ben said.


IMO LilyPond’s choice to position the rest is clearly superior to that 
from the other engraving you posted. Often it is a bad idea to stick 
exactly to an example.


Best, Simon

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


Re: Horizontal offset in polyphonic contexts.

2016-02-14 Thread Simon Albrecht

Hello Guy,

On 12.02.2016 23:17, Guy Stalnaker wrote:
Code below produces perplexing results."\once \override 
NoteColumn.X-offset" works in two situations, but not a third, and 
shifts the wrong notes on a fourth. I do not understand why. Why does 
the .X-offset work for ExampleTwo and ExampleFour, but not when set in 
the polyphonic context ExampleCombinedOne? Removing the \new Voice 
from the polyphonic context in ExampleCombinedTwo does result in 
horizontal shifting, but not of the bf', rather the  chord!


The NoteColumn #'force-shift has no effect in any of these examples 
(though it does work in other parts of my score). 


You are much likely to receive answers if you give tiny examples 
(), since 100 lines of code are 
a lot to deal with.


– NoteColumn.force-hshift only works if there are multiple note columns 
(i.e. in different voices) at the same musical moment.
– In polyphonic situations, you should not use \stemXXX commands to set 
stem direction; this will be handled automatically by the \voiceXXX 
commands.
– Lily prefers placing the  chord to the right because of the 
augmentation dots. I think that is a good choice, but it’s perfectly 
possible to do it the other way. Just uncomment the override in the 
following example.


The easiest way to handle this should likely be

%%%
\version "2.18.2"
\language "english"

{
  \time 6/4
  2 4 2 4 |
  <<
{ 2. }
\\
{
  %\once\override NoteColumn.force-hshift = 2.5
  bf'2 af'4
}
  >> 2.
}
%%

By the way, I wonder why you may still be using 2.17.3. Surely you could 
greatly benefit from the changes introduced since then?


HTH, Simon

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


Re: Avoiding PhrasingSlur/accidental collisions

2016-02-14 Thread Simon Albrecht

On 14.02.2016 11:57, N. Andrew Walsh wrote:

I see the following possible override:

\once \override PhrasingSlur.details.accidental-collision = #'(3)

but that doesn't seem to have any effect. Am I modifying the wrong 
grob here?


As Joram pointed out, you need to set this to a number, not a list. It 
needn’t be prefixed with # either.


Best, Simon

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


Re: Horizontal offset in polyphonic contexts.

2016-02-14 Thread Guy Stalnaker
Simon,

My code simply (!) tried to show the various ways I'd attempted a solution.
Thanks for wading through it nonetheless.

But you were absolutely right about the LP version. My example was based on
a previous poster's question to the LP list (found via Google) about this
same positioning problem. I copied their code to see how it worked and did
not modify the version directive.

That said, I apparently have differing versions of LP on my several
computers. That "problem" existed when using LP on one (hence the list
email) but disappeared when using LP on another that has, apparently, a
newer  release.

I apologize for not posting a follow-up to the list cancelling my "problem."

Also, thanks for the explanation of what works where and why. Though  I've
been using LP for a long time (seven years) I realized when researching
this problem that I really don't understand it's fundamental architecture
and logic. It's time I did. I'm going to work through the manual until I
"get" it.

Thanks again.

Guy


-- 
Guy Stalnaker
jimmyg...@gmail.com
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


unusual lyric placement in second verse

2016-02-14 Thread dl . mcnamara
Hey all, 

I'm typesetting a hymn where the first section is (volta) repeated with 
different lyrics. 
The way that the words are laid out across the two different lines seems odd 
and distracting to me -- 
particularly on the fourth and eighth bar. 

(a) why is lilypond laying the two line out displaced from one another? 
(b) is there a way to make things line up better? 

Dave 


Here is what's causing the problem (also attached): 


\version "2.18.2" 

%--Default staff size is 20 
#(set-global-staff-size 20) 

\paper { 
top-margin = 8\mm %-minimum top-margin: 8mm 
top-markup-spacing.basic-distance = #6 %-dist. from bottom of top margin to the 
first markup/title 
markup-system-spacing.basic-distance = #5 %-dist. from header/title to first 
system 
top-system-spacing.basic-distance = #12 %-dist. from top margin to system in 
pages with no titles 
last-bottom-spacing.basic-distance = #12 %-pads music from copyright block 
% ragged-bottom = ##f 
% ragged-last-bottom = ##f 
} 

global = { 
\key f \major 
\time 3/4 
} 


melody={ 
\repeat volta 2 \relative c'' { % A section 
a4 f g | 
a4 (b) c | 
c2 b4 | 
c2.\fermata | 

a4 bes a | 
g2 f4 | 
a2 (g4) | 
f2. 
} \break 


} 

hymn=\lyricmode { << 
{ % First A section 
Er -- mun -- tre dich, mein schwa -- cher Geist, 
und tra -- ge gross Ver -- lan -- gen, 
%Gott, wie gross ist dei -- ne Gü -- te die mein Herz auf Er -- den schmeckt 
} 
\new Lyrics { % Second A section 
ein klei -- nes Kind, das Va -- ter heisst, mit Freu -- den zu em -- pfan -- 
gen. 
%Ach, wie labt sich mein Ge -- mü -- the, wenn mich Noth un Tod er -- schreckt 
} 
>> 
} 

%---Typeset music and generate midi 
\score { 
\context PianoStaff << 
%-Midi instrument values at 
% 
http://lilypond.org/doc/v2.18/Documentation/snippets/midi#midi-demo-midiinstruments
 
\set PianoStaff.midiInstrument = "acoustic grand" 
\new Staff = "upper" { \clef treble \global \new Voice = "melody" \melody} 
\new Lyrics \lyricsto "melody" {\hymn} 
>> 
\layout{ } 
\midi { \tempo 4 = 70 } 
} 


bwv_454_trimmed.pdf
Description: Adobe PDF document

\version "2.18.2"

%--Default staff size is 20
#(set-global-staff-size 20)

\paper {
top-margin = 8\mm  %-minimum top-margin: 8mm
top-markup-spacing.basic-distance = #6 %-dist. from bottom of top margin to the first markup/title
markup-system-spacing.basic-distance = #5  %-dist. from header/title to first system
top-system-spacing.basic-distance = #12%-dist. from top margin to system in pages with no titles
last-bottom-spacing.basic-distance = #12   %-pads music from copyright block
%ragged-bottom = ##f
%ragged-last-bottom = ##f
}

global = {
  \key f \major
  \time 3/4 
}


melody={
  \repeat volta 2 \relative c'' { % A section
a4 f g |
a4 (b) c |
c2 b4 |
c2.\fermata |

a4 bes a |
g2 f4 |
a2 (g4) |
f2.
  } \break


}

hymn=\lyricmode { <<
  { % First A section 
Er -- mun -- tre dich, mein schwa -- cher Geist,
und tra -- ge gross Ver -- lan -- gen,
%Gott, wie gross ist dei -- ne Gü -- te die mein Herz auf Er -- den schmeckt
  }
  \new Lyrics { % Second A section
ein klei -- nes Kind, das Va -- ter heisst, mit Freu -- den zu em -- pfan -- gen.
%Ach, wie labt sich mein Ge -- mü -- the, wenn mich Noth un Tod er -- schreckt 
  }
>>
}

%---Typeset music and generate midi
\score {
\context PianoStaff <<
%-Midi instrument values at 
% http://lilypond.org/doc/v2.18/Documentation/snippets/midi#midi-demo-midiinstruments
\set PianoStaff.midiInstrument = "acoustic grand"
\new Staff = "upper" { \clef treble \global \new Voice = "melody" \melody}
\new Lyrics \lyricsto "melody" {\hymn}
>>
\layout{ }
\midi  { \tempo 4 = 70 }
}
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: unusual lyric placement in second verse

2016-02-14 Thread dl . mcnamara
Sorry about the attachments; here's a lilybin link 

http://lilybin.com/l8kuff/1 

Dave 

- Original Message -

From: "dl mcnamara"  
To: lilypond-user@gnu.org 
Sent: Sunday, February 14, 2016 9:56:57 AM 
Subject: unusual lyric placement in second verse 

Hey all, 

I'm typesetting a hymn where the first section is (volta) repeated with 
different lyrics. 
The way that the words are laid out across the two different lines seems odd 
and distracting to me -- 
particularly on the fourth and eighth bar. 

(a) why is lilypond laying the two line out displaced from one another? 
(b) is there a way to make things line up better? 

Dave 


Here is what's causing the problem (also attached): 


\version "2.18.2" 

%--Default staff size is 20 
#(set-global-staff-size 20) 

\paper { 
top-margin = 8\mm %-minimum top-margin: 8mm 
top-markup-spacing.basic-distance = #6 %-dist. from bottom of top margin to the 
first markup/title 
markup-system-spacing.basic-distance = #5 %-dist. from header/title to first 
system 
top-system-spacing.basic-distance = #12 %-dist. from top margin to system in 
pages with no titles 
last-bottom-spacing.basic-distance = #12 %-pads music from copyright block 
% ragged-bottom = ##f 
% ragged-last-bottom = ##f 
} 

global = { 
\key f \major 
\time 3/4 
} 


melody={ 
\repeat volta 2 \relative c'' { % A section 
a4 f g | 
a4 (b) c | 
c2 b4 | 
c2.\fermata | 

a4 bes a | 
g2 f4 | 
a2 (g4) | 
f2. 
} \break 


} 

hymn=\lyricmode { << 
{ % First A section 
Er -- mun -- tre dich, mein schwa -- cher Geist, 
und tra -- ge gross Ver -- lan -- gen, 
%Gott, wie gross ist dei -- ne Gü -- te die mein Herz auf Er -- den schmeckt 
} 
\new Lyrics { % Second A section 
ein klei -- nes Kind, das Va -- ter heisst, mit Freu -- den zu em -- pfan -- 
gen. 
%Ach, wie labt sich mein Ge -- mü -- the, wenn mich Noth un Tod er -- schreckt 
} 
>> 
} 

%---Typeset music and generate midi 
\score { 
\context PianoStaff << 
%-Midi instrument values at 
% 
http://lilypond.org/doc/v2.18/Documentation/snippets/midi#midi-demo-midiinstruments
 
\set PianoStaff.midiInstrument = "acoustic grand" 
\new Staff = "upper" { \clef treble \global \new Voice = "melody" \melody} 
\new Lyrics \lyricsto "melody" {\hymn} 
>> 
\layout{ } 
\midi { \tempo 4 = 70 } 
} 

___ 
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: manual \harmonic

2016-02-14 Thread David Kastrup
BB  writes:

> In the manual 2.18
> http://lilypond.org/doc/v2.18/Documentation/notation/guitar
> I found the example for harmonic
>
> \relative c' {
>   \clef "treble_8"
>   \override Staff.NoteHead.style = #'harmonic-mixed
>   d^\markup { \italic { \fontsize #-2 { "harm. 12" }}} 1
> }
>
> could not switch back to normal notation? I do not think that as a bug
> but my problem. I would recommend to tell in the manual how to get
> back to normal notataion.

I'd consider it a documentation bug since the example is not in a form
useful for larger contexts.  That's not helpful.

I'll take a look.

-- 
David Kastrup

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


Re: Best way to provide LilyPond via thumb drive

2016-02-14 Thread Colin Campbell

On 16-02-12 06:06 AM, Ralph Palmer wrote:

Greetings -

Soon, I shall be visiting a music school which almost certainly has 
computers but which probably has little internet access. I would like 
to give them a thumb drive with all the files they would need for 
setup, learning, and running LilyPond. The biggest catch, probably, is 
that it would be best if it were in Spanish. Also, I don't know what 
their operating system is, so I would like to make it available as 
Linux, Windows, and Apple. I'm hoping that the only part that would 
need to be in Spanish would be the manuals. Can anyone help me out or 
point me in the right direction?





Given the limited internet access, you should probably download all 3 
packages from the Lilypond website, and you can also get the 
documentation package in Spanish from the Manuals page on the same site. 
The whole thing would amount to 100Mb or so, and could easily go on a 
CD, thumb drive, or even your smartphone. I suggest the latest 
development build (2.19.36) for the features, but the Spanish version of 
the docs might be more or less out of date, so be cautious and make sure 
the school knows about the various mailing lists.


Kudos on the evangelism, too!


Cheers,
Colin
--
The true civilization is where every man gives to every other every 
right that he claims for himself.

-Robert Green Ingersoll, lawyer and orator (1833-1899)

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


Re: Horizontal spacing - choir

2016-02-14 Thread Phil Holmes
Be a little careful with your English idioms.  In British English "shoot 
blanks" means you are sterile.  "Draw blanks" means you could not find 
anything.


My wife was amused :-)

--
Phil Holmes


- Original Message - 
From: "Carl-Henrik Buschmann" 

To: "Simon Albrecht" 
Cc: "lilypond-user" 
Sent: Sunday, February 14, 2016 4:40 PM
Subject: Re: Horizontal spacing - choir


Thank you for the heads up. Will revise the dynamics, slurs and phrasings.

Fonts. I’ve tried looking in the manual but i shoot blanks: how do i change 
the font and font size of the lyrics?




14. feb. 2016 kl. 15.44 skrev Simon Albrecht :

Hello,

On 14.02.2016 12:58, Carl-Henrik Buschmann wrote:
I need advice on how to best typeset my SATB score. The problem revolves 
around horizontal spacing.


http://lilybin.com/15a0y9/2

I feel it is a bit cramped and the breaks do not flow naturally.


I don’t think it’s cramped – well, I like ‘cramped’ old Peters editions, 
so that may be anachronistic and personal taste.



What can i do to improve?


Choose a narrower text font – I like and often use Alegreya from 
fontsquirrel.org. I’d not advise using a smaller text font, since it gives 
an ill proportion between text and music size. However I find it perfectly 
alright to use a fontsize of 16 for choral scores. It will remain well 
legible.


What’s more, (well-made) choral scores _always_ print dynamics above the 
staff to not have them on the same side like the lyrics. There’s a number 
of cases in your example where I’d also move slurs and ties, maybe even 
scripts above the staff. But that’s a matter of style as well.


And I’d suggest to always use proper lyric hyphens, since the misaligned 
syllables at the end of bars 19 and 39 are confusing. You can avoid 
creating a melisma with the slur by either removing slurMelismaBusy from 
melismaBusyProperties or using phrasing slurs { \( \) }.


HTH, Simon



___
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: Horizontal spacing - choir

2016-02-14 Thread Noeck

> Fonts. I’ve tried looking in the manual but i shoot blanks: how do i change 
> the font and font size of the lyrics?

This is rather well described here in the first chapter:
1.8.3 Musical notation > Text > Fonts
http://lilypond.org/doc/v2.18/Documentation/notation/fonts

For your case:

\layout {
  \override Lyrics.LyricText.font-name = "Arial"
  \override Lyrics.LyricText.font-size = -1
}

% Just please do not choose Arial ;)

HTH,
Joram

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


Re: unusual lyric placement in second verse

2016-02-14 Thread dl . mcnamara
Thanks Simon, 

I'm not sure how your suggestion would mesh with the piece's overall structure; 
Here's a more complete take: 
http://lilybin.com/l8kuff/2 
(I tried to trim extra stuff for a minimal example). 
A completed version is here 
http://imslp.nl/imglnks/usimg/d/db/IMSLP04156-Bach_-_BGA_439-518.pdf 
it's number 16 (page 8). 

The A section is repeated with different lyrics, this is followed by 
a few more, non-repeated, phrases. 

I thought that it would be sensible and useful to have separate 
variables for the full melody, the full lyrics, bass, and figures. 
I like this because it keeps the commands within the score block 
relatively simple, and thus allows me to easily turn off the lyrics (for 
example) 
by just commenting out a single line. 

This gets to something that is not (to my knowledge) well documented: what 
is a good way of organizing and structuring the lilypond content? 

Dave 


- Original Message -

From: "Simon Albrecht"  
To: "dl mcnamara" , lilypond-user@gnu.org 
Sent: Sunday, February 14, 2016 10:13:47 AM 
Subject: Re: unusual lyric placement in second verse 

Hello, 

On 14.02.2016 15:56, dl.mcnam...@comcast.net wrote: 
> 
> I'm typesetting a hymn where the first section is (volta) repeated 
> with different lyrics. 
> The way that the words are laid out across the two different lines 
> seems odd and distracting to me -- 
> particularly on the fourth and eighth bar. 
> 
> (a) why is lilypond laying the two line out displaced from one another? 
> (b) is there a way to make things line up better? 

You don’t use \lyricsto when you create the second Lyrics context, hence 
the problem. 
Structurally it would be much clearer if you did something like 

 
\version "2.18.2" 

global = { 
\key f \major 
\time 3/4 
} 

melody = { 
\repeat volta 2 \relative c'' { 
% A section 
a4 f g | 
a4 (b) c | 
c2 b4 | 
c2.\fermata | 

a4 bes a | 
g2 f4 | 
a2 (g4) | 
f2. 
} \break 

} 

textA = \lyricmode { 
% First A section 
Er -- mun -- tre dich, mein schwa -- cher Geist, 
und tra -- ge gross Ver -- lan -- gen, 
} 
textB = \lyricmode { 
% Second A section 
ein klei -- nes Kind, das Va -- ter heißt, 
mit Freu -- den zu em -- pfan -- gen. 
} 

\score { 
\context PianoStaff << 
\new Staff = "upper" { \clef treble \global \new Voice = "melody" 
\melody} 
\new Lyrics \lyricsto "melody" \textA 
\new Lyrics \lyricsto "melody" \textB 
>> 
} 
%% 

HTH, Simon 

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


Re: Horizontal spacing - choir

2016-02-14 Thread Carl-Henrik Buschmann
Thank you for the heads up. Will revise the dynamics, slurs and phrasings.

Fonts. I’ve tried looking in the manual but i shoot blanks: how do i change the 
font and font size of the lyrics?


> 14. feb. 2016 kl. 15.44 skrev Simon Albrecht :
> 
> Hello,
> 
> On 14.02.2016 12:58, Carl-Henrik Buschmann wrote:
>> I need advice on how to best typeset my SATB score. The problem revolves 
>> around horizontal spacing.
>> 
>> http://lilybin.com/15a0y9/2
>> 
>> I feel it is a bit cramped and the breaks do not flow naturally.
> 
> I don’t think it’s cramped – well, I like ‘cramped’ old Peters editions, so 
> that may be anachronistic and personal taste.
> 
>> What can i do to improve?
> 
> Choose a narrower text font – I like and often use Alegreya from 
> fontsquirrel.org. I’d not advise using a smaller text font, since it gives an 
> ill proportion between text and music size. However I find it perfectly 
> alright to use a fontsize of 16 for choral scores. It will remain well 
> legible.
> 
> What’s more, (well-made) choral scores _always_ print dynamics above the 
> staff to not have them on the same side like the lyrics. There’s a number of 
> cases in your example where I’d also move slurs and ties, maybe even scripts 
> above the staff. But that’s a matter of style as well.
> 
> And I’d suggest to always use proper lyric hyphens, since the misaligned 
> syllables at the end of bars 19 and 39 are confusing. You can avoid creating 
> a melisma with the slur by either removing slurMelismaBusy from 
> melismaBusyProperties or using phrasing slurs { \( \) }.
> 
> HTH, Simon


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


Re: How to trigger rall. in articulate.ly

2016-02-14 Thread Richard Shann
On Sun, 2016-02-14 at 13:15 +0100, David Kastrup wrote:
> Richard Shann  writes:
> 
> > The articulate.ly script appears to support rallentando but I can't
> > figure out how to trigger it. In LilyPond AFAIK rall. is expressed as
> > text in a text spanner, there's no dedicated event type (if I'm using
> > the right sort of terminology here ...)
> 
> And that's how articulate appears to be doing it:
> 
>((TextScriptEvent)
> (let ((t (ly:music-property e 'text)))
>  (if (not (string? t))
>   (loop factor (cons e newelements) tail actions)
>   (begin
>(cond
> ((or
>   (string= t "rall")
[...]
> Should it rather (or additionally) heed \tempo "rall" ?  Probably.

Thank you - I should have seen this passage but, somehow, didn't. Some
experimenting (working back from TextScriptEvent mentioned there) and I
have got it to work - it requires some input like ^"rall." without any
preceding \italic or \mark or ..., in other words, very sensitive to the
exact syntax.

Richard













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


How to trigger rall. in articulate.ly

2016-02-14 Thread Richard Shann
The articulate.ly script appears to support rallentando but I can't
figure out how to trigger it. In LilyPond AFAIK rall. is expressed as
text in a text spanner, there's no dedicated event type (if I'm using
the right sort of terminology here ...)

The background is that I have now got Denemo playing back the enhanced
MIDI output from articulate.ly while showing it animated on an SVG
typeset and I want to investigate what happens if there is a gradual
tempo change.
Any help would be much appreciated.

Richard



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


Fwd: Re: repeat

2016-02-14 Thread BB
Sorry for causing confusion. Indeed i pressed the wrong button, so this 
mail did not arrive at the user mailinglist but just to Johan Vromans.  
That was not my attention.


I think using ossia staff is the simpliest way of notation.

Sorry for my inattention!


 Forwarded Message 
Subject:Re: repeat
Date:   Fri, 12 Feb 2016 13:55:06 +0100
From:   BB 
To: Johan Vromans 



Thank's. That seems to be a good solution!

On 12.02.2016 12:37, Johan Vromans wrote:

On Fri, 12 Feb 2016 12:29:47 +0100
BB  wrote:


The input of the notes is not the problem, one could easily copy/paste.
I try to shorten the sheet and make it more overseeable.

I've once wished for something like

   \repeat volta 2 { AAA \alternative{{ BB1 }{ BB2 }} CCC }

There is no (official) concept of "end of alternative".

For the sheet, I would resort to just writing the first note and add a
markup silimar to "2nd time, play XXX". Maybe write the other note on a
small ossia staff?




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


Fwd: Re: repeat

2016-02-14 Thread BB
just checking my maillist, I found another posting not correctly sent to 
the list. For completeness I add it now to teh list.


Sorry!


 Forwarded Message 
Subject:Re: repeat
Date:   Fri, 12 Feb 2016 12:29:47 +0100
From:   BB 
To: Johan Vromans 



The input of the notes is not the problem, one could easily copy/paste.
I try to shorten the sheet and make it more overseeable.

On 12.02.2016 09:48, Johan Vromans wrote:

On Thu, 11 Feb 2016 14:48:18 +0100
BB  wrote:


That works, but the long note sequence has to be repeated - exactly
that's what I would like to avoid.

If entering the notes is the problem, you can put them in a variable.

___
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: Avoiding PhrasingSlur/accidental collisions

2016-02-14 Thread Noeck
I don't know if there are easier or more automatic ways of avoiding
this, but you can move the slur up (change the 0.5 to your liking):

\relative c {
  \shape #'((0 . 0.5) (0 . 0.5) (0 . 0.5) (0 . 0.5)) PhrasingSlur
  \repeat tremolo 8 { es'''32\( es, } es'!2\) |
}

Slurs can even cross accidentals:

  { d''( gis'') }

and this looks fine for me.

Cheers,
Joram

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


Horizontal spacing - choir

2016-02-14 Thread Carl-Henrik Buschmann
Hey,

I need advice on how to best typeset my SATB score. The problem revolves around 
horizontal spacing. 

http://lilybin.com/15a0y9/2 

I feel it is a bit cramped and the breaks do not flow naturally. What can i do 
to improve?

In the source you will see what i have already attempted. Perhaps those 
attempts are the way to go but the eyes of the crowd usually works wonders.


Best,
Carl-Henrik

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


aligning an arrow

2016-02-14 Thread Robert Blackstone
Dear all,

In the following example I would like to lower the arrow above the third bar to 
the level of those in bars 1 and 2, but up till now I have not found a way to 
accomplish it. Either the arrow stays at the same level or it disappears 
altogether.

%
\version "2.18.2"
\relative c' { 
\new Staff { \omit Staff.TimeSignature \clef "soprano"
<<  
{\stemUp a'4 \once \hideNotes  a \once \hideNotes a g }\bar "||" 
\new Voice {\voiceTwo \stemDown  f4 \set fontSize = #-4 \single \hide Stem e 
\single \hide Stem d^\markup { \combine \arrow-head #Y #DOWN ##f \draw-line #'( 
0 . 2) } \unset fontSize c |} 
>> 
<<  
{\time 5/4  \stemUp c' \once \hideNotes c \once \hideNotes c \once \hideNotes c 
d } \bar "||" 
\new Voice {\voiceTwo \stemDown c, \set fontSize = #-4 \single  \hide Stem d 
\single \hide Stem e \single \hide Stem f^\markup { \combine \arrow-head #Y 
#DOWN ##f \draw-line #'( 0 . 2) } \unset fontSize  g4 |} 
>> 
<< 
{\stemUp c \set fontSize = #-4 \single \hide Stem b %^\markup { \combine 
\arrow-head #Y #DOWN ##f \draw-line #'( 0 . 2) }
\single \hide Stem a \unset fontSize  g } \bar "||" \new Voice {\voiceTwo 
\stemDown { e4 \set fontSize = #-4 \once \hideNotes d^\markup { \combine 
\arrow-head #Y #DOWN ##f \draw-line #'( 0 . 2) } 
\once \hideNotes d \unset fontSize c } |} 
>> \bar "||" }
}%

Thanks in advance for any help.

Best regards, 

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


Re: Detect slurred notes in callback function

2016-02-14 Thread Jakub Pavlík
Hi David,

as promised, here is my unsuccessful attempt based on a closure preserving
state information between invocations.

Regards,
Jakub

---

\version "2.19.32"

#(define (contains-slur-event-with-direction? lst direction)
   (if (null-list? lst)
   #f
   (if (music-is-of-type? (car lst) 'slur-event)
 (eq? (ly:music-property (car lst) 'span-direction) direction)
 (contains-slur-event-with-direction? (cdr lst) direction

#(define (notehead-articulations notehead)
   (let ((noteevent (ly:event-property (event-cause notehead)
'music-cause)))
(ly:music-property noteevent 'articulations)))

#(define (slur-opener? notehead)
   (contains-slur-event-with-direction? (notehead-articulations notehead)
1))

#(define (slur-closer? notehead)
   (contains-slur-event-with-direction? (notehead-articulations notehead)
-1))

#(define (make-in-slur-callback inSlur notInSlur)
   (let ((slursOpen 0))
 (display "+++ Factory executed")
 ; this closure will be executed for each NoteHead
 (lambda (grob)
   (begin
(display "+++ Closure executed")
; to see the order of NoteHead the callback is called for
(display-scheme-music (ly:event-property (event-cause grob)
'origin))
 (cond
  ((slur-opener? grob) (set! slursOpen (+ slursOpen 1)))
  ((slur-closer? grob) (set! slursOpen (- slursOpen 1
 (if (> slursOpen 0)
 (inSlur grob)
 (notInSlur grob)))
   )))

\score {
  \relative c' {
\override NoteHead #'color = #(make-in-slur-callback
  (lambda (grob) red)
  (lambda (grob) black))

d e( f) g( a b c)
  }
}
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Avoiding PhrasingSlur/accidental collisions

2016-02-14 Thread N. Andrew Walsh
Hi List,

I'm working with the following expression:

\version "2.19.36"

\relative c {
  \repeat tremolo 8 { es'''32\( es, } es'!2\) |
}

When that's stretched out a bit (or even, actually, here) the PhrasingSlur
collides with the accidental. How do I avoid this? I see the following
possible override:

\once \override PhrasingSlur.details.accidental-collision = #'(3)

but that doesn't seem to have any effect. Am I modifying the wrong grob
here?

Thanks for the help,

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