Re: Several pieces into one

2015-05-28 Thread Simon Albrecht

Am 28.05.2015 um 23:03 schrieb Dr. Bernhard Kleine:


Your suggestions worked smoothly. Thank you very much.
Now I would like to know how to force a pageBreak before something, 
e.g after a Solo and before a Tutti, that the Tutti starts the new page.


How to code that?

Well, use the \pageBreak command in that musical moment where you’d like 
to have it. In some cases Lily decides to ignore such a command, if it 
would result in very irregular or loose or condensed spacing, see 
.


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


AW: Several pieces into one

2015-05-28 Thread Dr. Bernhard Kleine
Your suggestions worked smoothly. Thank you very much.
Now I would like to know how to force a pageBreak before something, e.g after a 
Solo and before a Tutti, that the Tutti starts the new page.

How to code that?

 

Kind regards 

Bernhard

 

 

Von: Stephen MacNeil [mailto:classicalja...@gmail.com] 
Gesendet: Donnerstag, 28. Mai 2015 18:31
An: bernhard.kle...@gmx.net; Lilypond-User Mailing List
Betreff: RE: Several pieces into one

 

I create a file and \include the files. you can add markups for space text etc.

\version "2.18.2"

\include "Song1.ly"

\markup {\vspace #3 }

\include "Song2.ly"

\markup {text }

\include "Song3.ly"

\pageBreak

\include "Song4.ly"

\include "Song5.ly"

 

HTH

Stephen

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


Re: Dynamic mark at the end of a bar

2015-05-28 Thread Simon Albrecht

Am 28.05.2015 um 22:45 schrieb David Nalesnik:

Hi Simon,

On Thu, May 28, 2015 at 2:28 AM, Simon Albrecht 
mailto:simon.albre...@mail.de>> wrote:


This sounds like a usecase for \afterGrace. I cooked up a music
function for that, which works quite fine. Does that help you?


This is nice.  I should point out that \afterGrace places the grace 
notes using SimultaneousMusic and skips.

:-)

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


Re: Dynamic mark at the end of a bar

2015-05-28 Thread David Nalesnik
Hi Simon,

On Thu, May 28, 2015 at 2:28 AM, Simon Albrecht 
wrote:

This sounds like a usecase for \afterGrace. I cooked up a music function
> for that, which works quite fine. Does that help you?
>
>
This is nice.  I should point out that \afterGrace places the grace notes
using SimultaneousMusic and skips.  Here's the definition:

afterGraceFraction = #(cons 6 8)
afterGrace =
#(define-music-function (parser location main grace) (ly:music? ly:music?)
   (_i "Create @var{grace} note(s) after a @var{main} music expression.")
   (let ((main-length (ly:music-length main))
 (fraction  (ly:parser-lookup parser 'afterGraceFraction)))
 (make-simultaneous-music
  (list
   main
   (make-sequential-music
(list

 (make-music 'SkipMusic
 'duration (ly:make-duration
0 0
(* (ly:moment-main-numerator main-length)
   (car fraction))
(* (ly:moment-main-denominator main-length)
   (cdr fraction
 (make-music 'GraceMusic
 'element grace)))

%%

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


Re: Is Sibelius really as bad as this?

2015-05-28 Thread Stephen MacNeil
In frescobaldi the tie was picked up as a slur

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


Re: [Frescobaldi] ANN: Frescobaldi 2.18.1

2015-05-28 Thread Tim McNamara
Thank you, Davide!

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


Re: Is Sibelius really as bad as this?

2015-05-28 Thread Jacques Menu
Hello Richard,

Find attached what I get after raw import of the XML file into Sibelius 7.1.3 
and then export as PDF.

It seems there’s no difference with what you got from IMSLP.

JM



weiss_Eb - Full Score.pdf
Description: Adobe PDF document


> Le 28 mai 2015 à 20:58, Richard Shann  a écrit :
> 
> On Thu, 2015-05-28 at 20:22 +0200, Johan Vromans wrote:
>> On Thu, 28 May 2015 19:06:08 +0100
>> Richard Shann  wrote:
>> 
>>> Is Sibelius really this bad (ties treated as slurs, 
>> 
>> I frequently rewrite Sibelius scores into LilyPond, and this is one of the
>> issues that cost a lot of manual preprocessing. Moreover, it makes the
>> composer 'lazy' -- it doesn't matter whether to create a tie or a slur, and
>> the command for tie is apparently very easy.
> 
> But the composer wasn't 'lazy' in this case - the MusicXML shows that
> ties were entered for ties, not slurs, yet they are typeset as if they
> were slurs. (That is, Sibelius exported to MusicXML making the
> distinction between the slurs and the ties correctly, so they must have
> been entered correctly,  but its typesetting is wrong).
> 
>> 
>>> (Oh, and the Sibelius-generated PDF does not render with Evince, but
>>> that is another issue I presume).
>> 
>> Both attachments render fine in my Evince.
> 
> Ah, that'll be down to my version of Evince being too old then...
> 
> Richard
> 
> 
> 
> ___
> 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: Dynamic mark at the end of a bar

2015-05-28 Thread Stephen MacNeil
I like that! I would add

\once \override DynamicText.X-offset = #'1

looks nicer to my eyes



afterDynamic =

#(define-music-function

(parser location mus dyn)

(ly:music? ly:music?)

#{

\afterGrace

$mus

{ \once \override DynamicText.X-offset = #'1 s4 $dyn }

#})


mus = {

c'1

\afterDynamic { c'1\p-\tweak minimum-length 6 \< } \f

c'1

}


\score {

\mus

}


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


Re: Is Sibelius really as bad as this?

2015-05-28 Thread Richard Shann
On Thu, 2015-05-28 at 20:22 +0200, Johan Vromans wrote:
> On Thu, 28 May 2015 19:06:08 +0100
> Richard Shann  wrote:
> 
> > Is Sibelius really this bad (ties treated as slurs, 
> 
> I frequently rewrite Sibelius scores into LilyPond, and this is one of the
> issues that cost a lot of manual preprocessing. Moreover, it makes the
> composer 'lazy' -- it doesn't matter whether to create a tie or a slur, and
> the command for tie is apparently very easy.

But the composer wasn't 'lazy' in this case - the MusicXML shows that
ties were entered for ties, not slurs, yet they are typeset as if they
were slurs. (That is, Sibelius exported to MusicXML making the
distinction between the slurs and the ties correctly, so they must have
been entered correctly,  but its typesetting is wrong).

> 
> > (Oh, and the Sibelius-generated PDF does not render with Evince, but
> > that is another issue I presume).
> 
> Both attachments render fine in my Evince.

Ah, that'll be down to my version of Evince being too old then...

Richard



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


Re: Is Sibelius really as bad as this?

2015-05-28 Thread Johan Vromans
On Thu, 28 May 2015 19:06:08 +0100
Richard Shann  wrote:

> Is Sibelius really this bad (ties treated as slurs, 

I frequently rewrite Sibelius scores into LilyPond, and this is one of the
issues that cost a lot of manual preprocessing. Moreover, it makes the
composer 'lazy' -- it doesn't matter whether to create a tie or a slur, and
the command for tie is apparently very easy.

> (Oh, and the Sibelius-generated PDF does not render with Evince, but
> that is another issue I presume).

Both attachments render fine in my Evince.

-- Johan

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


Re: lilypond-user Digest, Vol 150, Issue 170

2015-05-28 Thread Simon Albrecht
And another policy reminder: always edit the digest subject lines, so 
threads remain coherent.

Thanks, Simon

Am 28.05.2015 um 14:54 schrieb Peter Gentry:
  


-Original Message-
Date: Thu, 28 May 2015 07:17:42 -0500
From: David Nalesnik 
To: Peter Gentry 
Cc: lilypond-user 
Subject: Re: Notehead color on programmed pitch change
Message-ID:


Content-Type: text/plain; charset="utf-8"

On Thu, May 28, 2015 at 6:43 AM, Peter Gentry

wrote:


  Thankyou  David but how is color  associated with NoteHead?

I hope these ramblings of a gnarled old scheme/Lily tyro can be of
general interest

I'm guessing that 'tweaks is some sort of switch to open up

properties

of the current music object.


You've seen
http://lilypond.org/doc/v2.18/Documentation/notation/the-tweak-command?
Any usage of \tweak in the ly file would appear in the 'tweaks
list in the music representation.  Here, instead of using
\tweak in the file, we're achieving the same result by
modifying the music representation directly.

To see the music representation (basically what LilyPond does
to your ly code to make it more digestible) wrap various music
expressions in \displayMusic.  For example:

\displayMusic
{
  \tweak NoteHead.color #red
  c''4
}

Note how the tweak is represented.




In this case "pitch" is a property of  'NoteEvent and I'm guessing
that color here is just NoteHead colour not NoteStem because

NoteStem

is not within the NoteEvent including 'pitch.

NoteStem color may be available in a tweak of another music

object or

possibly supplied by another bit of code (engraver??).
I do not know how code a "tweak" for stem color (apart from an
override in the Lily .ly file) maybe you can't (anyway I

don't want to).
Well, you'd tweak Stem.  And once again, \displayMusic will
show you what is done with your ly code:

\displayMusic
{
  \tweak Stem.color #blue
  c''4
}




Also AFSIU


don't know this one :)



"ly:music-property" extracts various elements of the current music
item (possibly contained in  a deeper Lily code), and allows user
scheme to extract data from the current music object.

ly:music-set-property! does the reverse?


Basically.


*This part of my script kindly supplied by Thomas Morley*

(if (ly:pitch? p)
(let ((new-pitch (naturalize-instrument-range p instrument)))
(ly:music-set-property! music 'pitch new-pitch) (if (and

(not (equal?

p new-pitch)) (color? my-color)) (ly:music-set-property!

music 'tweaks

(acons 'color my-color (ly:music-property music

'tweaks)) In line

3 a pitch is written to the music event it may be the old pitch or a
new pitch.
In line 4 further action is taken if the pitch has been

changed, first

the variable my-color (previously defined) is type checked In line 5
'tweaks is inserted into the current music object.
lines 6 - 8 are a bit obscure somehow the current color is

replaced by

my-color but how?

Cannot find a definition for acons but it must be a variant of cons
("consists") it occurs 8 times in snippets and once in

notation and is

clearly the way to "tweak" associating the Lily 'color with the user
supplied color my-color.


You have to look to sources specifically devoted to Scheme.
http://www.gnu.org/software/guile/docs/docs-1.8/guile-ref/Addin
g-or-Setting-Alist-Entries.html#index-acons-1603

Rather confusingly the format of color has many guises
(x11-color 'red), (1

0 0), simply 'red (no pun intended) and notehead colour can also be
approached via a grob. The notehead grob must be somehow implied in
the (make-music .


The NoteHead grob will ultimately be made as a result of
processing the NoteEvent.  (As will a Stem, any Dots, an
Accidental, etc.)

Various different approaches to Notehead color are evident in
the snippet

repositry agin not much detailed explanation is to be found.


http://www.lilypond.org/doc/v2.18/Documentation/learning/visibi
lity-and-color-of-objects#the-color-property



upline =
#(let ((m (make-articulation "stopped"))) (set! (ly:music-property m
'tweaks) (acons 'font-size 3 (acons 'stencil (lambda (grob)
(grob-interpret-markup grob (make-draw-line-markup '(0 . 1
(ly:music-property m 'tweaks
m)
\relative c' {
a'4^\upline a( c d')_\upline
}


which results in

(make-music
'RelativeOctaveMusic
'element
(make-music
'SequentialMusic
'elements
(list (make-music
'NoteEvent
'articulations
(list (make-music
'ArticulationEvent
'direction
1
'tweaks
(list (cons (quote font-size) 3)
(cons (quote stencil) #)) 'articulation-type
"stopped"))
'duration
(ly:make-duration 2)
'pitch
(ly:make-pitch 0 5))
(make-music
'NoteEvent
'articulations
(list (make-music
'SlurEvent
'span-direction
-1))
'duration
(ly:make-duration 2)
'pitch
(ly:make-pitch 0 5))
(make-music
'NoteEvent
'pitch
(ly:make-pitch 1 0)
'duration
(ly:make-duration 2))
(make-music
'NoteEvent
'articulations
(list (make-music
'SlurEvent
'span-direction
1)
(make-music
'ArticulationEvent
'direction
-1
'tweaks
(list (cons (quote font-size) 3)
(cons (quote stencil) #)) 'articu

Re: [Frescobaldi] Re: ANN: Frescobaldi 2.18.1

2015-05-28 Thread Wilbert Berendsen
Op Thu, 28 May 2015 11:35:26 +0200
Davide Liessi  schreef:

> Il 24/05/15 21.49, Wilbert Berendsen ha scritto:
> > I just released Frescobaldi 2.18.1 in the wild, a maintenance
> > release containing bug fixes, small improvements and translation
> > updates.
> >
> > Homepage: www.frescobaldi.org
> > Download: www.frescobaldi.org/download  
> 
> The Mac OS X self-contained applications (64 bit and 32 bit) are now 
> available for download.
> 
> I'm submitting the updates to the Portfiles right now, so also
> MacPorts users will be able to update their installation soon.

Many thanks!

Wilbert

-- 
Wilbert Berendsen
(http://www.wilbertberendsen.nl)


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


RE: Several pieces into one

2015-05-28 Thread Stephen MacNeil
I create a file and \include the files. you can add markups for space text
etc.

\version "2.18.2"

\include "Song1.ly"

\markup {\vspace #3 }

\include "Song2.ly"

\markup {text }

\include "Song3.ly"

\pageBreak

\include "Song4.ly"

\include "Song5.ly"


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


Re: Several pieces into one

2015-05-28 Thread Phil Holmes

A simple way is shown below:

\markup {"Piece one"}
\score { \repeat unfold 20 c''1 }
\markup {"Piece two"}
\score { \repeat unfold 20 d''1 }



--
Phil Holmes


- Original Message - 
From: Dr. Bernhard Kleine

To: lilypond-user@gnu.org
Sent: Thursday, May 28, 2015 4:16 PM
Subject: Several pieces into one


Hallo,

I would like to add the different movements of the missa into one large 
volume. If one piece left space on a page the other should start 
immediately. How can that be performed?


Kind regards

Bernhard



___
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


Several pieces into one

2015-05-28 Thread Dr. Bernhard Kleine
Hallo, 

 

I would like to add the different movements of the missa into one large
volume. If one piece left space on a page the other should start
immediately. How can that be performed?

 

Kind regards

 

Bernhard

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


RE: lilypond-user Digest, Vol 150, Issue 170

2015-05-28 Thread Peter Gentry
 

>-Original Message-
>Date: Thu, 28 May 2015 07:17:42 -0500
>From: David Nalesnik 
>To: Peter Gentry 
>Cc: lilypond-user 
>Subject: Re: Notehead color on programmed pitch change
>Message-ID:
>   
>
>Content-Type: text/plain; charset="utf-8"
>
>On Thu, May 28, 2015 at 6:43 AM, Peter Gentry 
>
>wrote:
>
>>  Thankyou  David but how is color  associated with NoteHead?
>>
>> I hope these ramblings of a gnarled old scheme/Lily tyro can be of 
>> general interest
>>
>> I'm guessing that 'tweaks is some sort of switch to open up 
>properties 
>> of the current music object.
>>
>
>You've seen
>http://lilypond.org/doc/v2.18/Documentation/notation/the-tweak-command?
>Any usage of \tweak in the ly file would appear in the 'tweaks 
>list in the music representation.  Here, instead of using 
>\tweak in the file, we're achieving the same result by 
>modifying the music representation directly.
>
>To see the music representation (basically what LilyPond does 
>to your ly code to make it more digestible) wrap various music 
>expressions in \displayMusic.  For example:
>
>\displayMusic
>{
>  \tweak NoteHead.color #red
>  c''4
>}
>
>Note how the tweak is represented.
>
>
>
>> In this case "pitch" is a property of  'NoteEvent and I'm guessing 
>> that color here is just NoteHead colour not NoteStem because 
>NoteStem 
>> is not within the NoteEvent including 'pitch.
>>
>> NoteStem color may be available in a tweak of another music 
>object or 
>> possibly supplied by another bit of code (engraver??).
>> I do not know how code a "tweak" for stem color (apart from an 
>> override in the Lily .ly file) maybe you can't (anyway I 
>don't want to).
>>
>
>Well, you'd tweak Stem.  And once again, \displayMusic will 
>show you what is done with your ly code:
>
> \displayMusic
>{
>  \tweak Stem.color #blue
>  c''4
>}
>
>
>
>> Also AFSIU
>>
>
>don't know this one :)
>
>
>> "ly:music-property" extracts various elements of the current music 
>> item (possibly contained in  a deeper Lily code), and allows user 
>> scheme to extract data from the current music object.
>>
>> ly:music-set-property! does the reverse?
>>
>
>Basically.
>
>> *This part of my script kindly supplied by Thomas Morley*
>>
>> (if (ly:pitch? p)
>> (let ((new-pitch (naturalize-instrument-range p instrument))) 
>> (ly:music-set-property! music 'pitch new-pitch) (if (and 
>(not (equal? 
>> p new-pitch)) (color? my-color)) (ly:music-set-property! 
>music 'tweaks 
>> (acons 'color my-color (ly:music-property music 
>'tweaks)) In line 
>> 3 a pitch is written to the music event it may be the old pitch or a 
>> new pitch.
>> In line 4 further action is taken if the pitch has been 
>changed, first 
>> the variable my-color (previously defined) is type checked In line 5 
>> 'tweaks is inserted into the current music object.
>> lines 6 - 8 are a bit obscure somehow the current color is 
>replaced by 
>> my-color but how?
>>
>> Cannot find a definition for acons but it must be a variant of cons
>> ("consists") it occurs 8 times in snippets and once in 
>notation and is 
>> clearly the way to "tweak" associating the Lily 'color with the user 
>> supplied color my-color.
>>
>
>You have to look to sources specifically devoted to Scheme.
>http://www.gnu.org/software/guile/docs/docs-1.8/guile-ref/Addin
>g-or-Setting-Alist-Entries.html#index-acons-1603
>
>Rather confusingly the format of color has many guises 
>(x11-color 'red), (1
>> 0 0), simply 'red (no pun intended) and notehead colour can also be 
>> approached via a grob. The notehead grob must be somehow implied in 
>> the (make-music .
>>
>
>The NoteHead grob will ultimately be made as a result of 
>processing the NoteEvent.  (As will a Stem, any Dots, an 
>Accidental, etc.)
>
>Various different approaches to Notehead color are evident in 
>the snippet
>> repositry agin not much detailed explanation is to be found.
>>
>
>http://www.lilypond.org/doc/v2.18/Documentation/learning/visibi
>lity-and-color-of-objects#the-color-property
>
>
>> upline =
>> #(let ((m (make-articulation "stopped"))) (set! (ly:music-property m 
>> 'tweaks) (acons 'font-size 3 (acons 'stencil (lambda (grob) 
>> (grob-interpret-markup grob (make-draw-line-markup '(0 . 1 
>> (ly:music-property m 'tweaks
>> m)
>> \relative c' {
>> a'4^\upline a( c d')_\upline
>> }
>>
>>
>> which results in
>>
>> (make-music
>> 'RelativeOctaveMusic
>> 'element
>> (make-music
>> 'SequentialMusic
>> 'elements
>> (list (make-music
>> 'NoteEvent
>> 'articulations
>> (list (make-music
>> 'ArticulationEvent
>> 'direction
>> 1
>> 'tweaks
>> (list (cons (quote font-size) 3)
>> (cons (quote stencil) #)) 'articulation-type
>> "stopped"))
>> 'duration
>> (ly:make-duration 2)
>> 'pitch
>> (ly:make-pitch 0 5))
>> (make-music
>> 'NoteEvent
>> 'articulations
>> (list (make-music
>> 'SlurEvent
>> 'span-direction
>> -1))
>> 'duration
>> (ly:make-duration 2)
>> 'pitch
>> (ly:make-pitch 0 5))
>> (make-music
>> 'NoteEvent
>> 'pitch
>> (ly:make-pitch 1 0)
>> 'durat

Re: Notehead color on programmed pitch change

2015-05-28 Thread David Nalesnik
On Thu, May 28, 2015 at 6:43 AM, Peter Gentry 
wrote:

>  Thankyou  David but how is color  associated with NoteHead?
>
> I hope these ramblings of a gnarled old scheme/Lily tyro can be of general
> interest
>
> I'm guessing that 'tweaks is some sort of switch to open up properties of
> the current music object.
>

You've seen
http://lilypond.org/doc/v2.18/Documentation/notation/the-tweak-command?
Any usage of \tweak in the ly file would appear in the 'tweaks list in the
music representation.  Here, instead of using \tweak in the file, we're
achieving the same result by modifying the music representation directly.

To see the music representation (basically what LilyPond does to your ly
code to make it more digestible) wrap various music expressions in
\displayMusic.  For example:

\displayMusic
{
  \tweak NoteHead.color #red
  c''4
}

Note how the tweak is represented.



> In this case "pitch" is a property of  'NoteEvent and I'm guessing that
> color here is just NoteHead colour not NoteStem because NoteStem is not
> within the NoteEvent including 'pitch.
>
> NoteStem color may be available in a tweak of another music object
> or possibly supplied by another bit of code (engraver??).
> I do not know how code a "tweak" for stem color (apart from an override in
> the Lily .ly file) maybe you can't (anyway I don't want to).
>

Well, you'd tweak Stem.  And once again, \displayMusic will show you what
is done with your ly code:

 \displayMusic
{
  \tweak Stem.color #blue
  c''4
}



> Also AFSIU
>

don't know this one :)


> "ly:music-property" extracts various elements of the current music item
> (possibly contained in  a deeper Lily code), and allows user scheme to
> extract data from the current music object.
>
> ly:music-set-property! does the reverse?
>

Basically.

> *This part of my script kindly supplied by Thomas Morley*
>
> (if (ly:pitch? p)
> (let ((new-pitch (naturalize-instrument-range p instrument)))
> (ly:music-set-property! music 'pitch new-pitch)
> (if (and (not (equal? p new-pitch)) (color? my-color))
> (ly:music-set-property! music 'tweaks
> (acons
> 'color my-color
> (ly:music-property music 'tweaks))
> In line 3 a pitch is written to the music event it may be the old pitch or
> a new pitch.
> In line 4 further action is taken if the pitch has been changed, first the
> variable my-color (previously defined) is type checked
> In line 5 'tweaks is inserted into the current music object.
> lines 6 - 8 are a bit obscure somehow the current color is replaced by
> my-color but how?
>
> Cannot find a definition for acons but it must be a variant of cons
> ("consists") it occurs 8 times in snippets and once in notation and is
> clearly the way to "tweak" associating the Lily 'color with the user
> supplied color my-color.
>

You have to look to sources specifically devoted to Scheme.
http://www.gnu.org/software/guile/docs/docs-1.8/guile-ref/Adding-or-Setting-Alist-Entries.html#index-acons-1603

Rather confusingly the format of color has many guises (x11-color 'red), (1
> 0 0), simply 'red (no pun intended) and notehead colour can also be
> approached via a grob. The notehead grob must be somehow implied in the
> (make-music .
>

The NoteHead grob will ultimately be made as a result of processing the
NoteEvent.  (As will a Stem, any Dots, an Accidental, etc.)

Various different approaches to Notehead color are evident in the snippet
> repositry agin not much detailed explanation is to be found.
>

http://www.lilypond.org/doc/v2.18/Documentation/learning/visibility-and-color-of-objects#the-color-property


> upline =
> #(let ((m (make-articulation "stopped")))
> (set! (ly:music-property m 'tweaks)
> (acons 'font-size 3
> (acons 'stencil (lambda (grob)
> (grob-interpret-markup
> grob
> (make-draw-line-markup '(0 . 1
> (ly:music-property m 'tweaks
> m)
> \relative c' {
> a'4^\upline a( c d')_\upline
> }
>
>
> which results in
>
> (make-music
> 'RelativeOctaveMusic
> 'element
> (make-music
> 'SequentialMusic
> 'elements
> (list (make-music
> 'NoteEvent
> 'articulations
> (list (make-music
> 'ArticulationEvent
> 'direction
> 1
> 'tweaks
> (list (cons (quote font-size) 3)
> (cons (quote stencil) #))
> 'articulation-type
> "stopped"))
> 'duration
> (ly:make-duration 2)
> 'pitch
> (ly:make-pitch 0 5))
> (make-music
> 'NoteEvent
> 'articulations
> (list (make-music
> 'SlurEvent
> 'span-direction
> -1))
> 'duration
> (ly:make-duration 2)
> 'pitch
> (ly:make-pitch 0 5))
> (make-music
> 'NoteEvent
> 'pitch
> (ly:make-pitch 1 0)
> 'duration
> (ly:make-duration 2))
> (make-music
> 'NoteEvent
> 'articulations
> (list (make-music
> 'SlurEvent
> 'span-direction
> 1)
> (make-music
> 'ArticulationEvent
> 'direction
> -1
> 'tweaks
> (list (cons (quote font-size) 3)
> (cons (quote stencil) #))
> 'articulation-type
> "stopped"))
> 'duration
> (ly:make-duration 2)
> 'pitch
> (ly:make-pitch 2 1)
>

Please format this--it's really hard to digest.  With gmail, "Paste as
plain text" rather than "Past

RE: Notehead color on programmed pitch change

2015-05-28 Thread Peter Gentry
Thankyou  David but how is color  associated with NoteHead? 
 
I hope these ramblings of a gnarled old scheme/Lily tyro can be of general 
interest
 
I'm guessing that 'tweaks is some sort of switch to open up properties of the 
current music object. 
 
In this case "pitch" is a property of  'NoteEvent and I'm guessing that color 
here is just NoteHead colour not NoteStem because
NoteStem is not within the NoteEvent including 'pitch.
 
NoteStem color may be available in a tweak of another music object or possibly 
supplied by another bit of code (engraver??). 
I do not know how code a "tweak" for stem color (apart from an override in the 
Lily .ly file) maybe you can't (anyway I don't want
to).
 
Also AFSIU "ly:music-property" extracts various elements of the current music 
item (possibly contained in  a deeper Lily code), and
allows user scheme to extract data from the current music object.
 
ly:music-set-property! does the reverse?
This part of my script kindly supplied by Thomas Morley
(if (ly:pitch? p)
(let ((new-pitch (naturalize-instrument-range p instrument)))
(ly:music-set-property! music 'pitch new-pitch)
(if (and (not (equal? p new-pitch)) (color? my-color))
(ly:music-set-property! music 'tweaks
(acons
'color my-color
(ly:music-property music 'tweaks))

In line 3 a pitch is written to the music event it may be the old pitch or a 
new pitch.
In line 4 further action is taken if the pitch has been changed, first the 
variable my-color (previously defined) is type checked
In line 5 'tweaks is inserted into the current music object.
lines 6 - 8 are a bit obscure somehow the current color is replaced by my-color 
but how?
 
Cannot find a definition for acons but it must be a variant of cons 
("consists") it occurs 8 times in snippets and once in notation
and is clearly the way to "tweak" associating the Lily 'color with the user 
supplied color my-color.
Rather confusingly the format of color has many guises (x11-color 'red), (1 0 
0), simply 'red (no pun intended) and notehead colour
can also be approached via a grob. The notehead grob must be somehow implied in 
the (make-music .
Various different approaches to Notehead color are evident in the snippet 
repositry agin not much detailed explanation is to be
found.
 
upline =
#(let ((m (make-articulation "stopped")))
(set! (ly:music-property m 'tweaks)
(acons 'font-size 3
(acons 'stencil (lambda (grob)
(grob-interpret-markup
grob
(make-draw-line-markup '(0 . 1
(ly:music-property m 'tweaks
m)
\relative c' {
a'4^\upline a( c d')_\upline
}
 
 
which results in
 
(make-music
'RelativeOctaveMusic
'element
(make-music
'SequentialMusic
'elements
(list (make-music
'NoteEvent
'articulations
(list (make-music
'ArticulationEvent
'direction
1
'tweaks
(list (cons (quote font-size) 3)
(cons (quote stencil) #))
'articulation-type
"stopped"))
'duration
(ly:make-duration 2)
'pitch
(ly:make-pitch 0 5))
(make-music
'NoteEvent
'articulations
(list (make-music
'SlurEvent
'span-direction
-1))
'duration
(ly:make-duration 2)
'pitch
(ly:make-pitch 0 5))
(make-music
'NoteEvent
'pitch
(ly:make-pitch 1 0)
'duration
(ly:make-duration 2))
(make-music
'NoteEvent
'articulations
(list (make-music
'SlurEvent
'span-direction
1)
(make-music
'ArticulationEvent
'direction
-1
'tweaks
(list (cons (quote font-size) 3)
(cons (quote stencil) #))
'articulation-type
"stopped"))
'duration
(ly:make-duration 2)
'pitch
(ly:make-pitch 2 1)
 
AFAICS tweaks are not documented properly anywhere - some of the possible 
tweaks are presented without detailed explanation in the
notation and snippet manuals - is there another source of information?
 
 


  _  

From: David Nalesnik [mailto:david.nales...@gmail.com] 
Sent: Wednesday, May 27, 2015 5:51 PM
To: Peter Gentry
Cc: lilypond-user; Thomas Morley
Subject: Re: Notehead color on programmed pitch change






On Wed, May 27, 2015 at 4:15 AM, Peter Gentry  
wrote:


[...]




(make-music
  'SequentialMusic
  'elements
  (list (make-music
  'NoteEvent
  'duration
  (ly:make-duration 0)
  'pitch
  (ly:make-pitch 0 0))
(make-music
  'NoteEvent
  'tweaks
  (list (list (quote color) 1.0 0.0 0.0))




[...]
 


Still not sure how to interpret (list (list... But as long as Lily 
does.:)




We're simply creating a nested list: 

(list (quote color) 1.0 0.0 0.0)
==>
(color 1.0 0.0 0.0)

(list (list (quote color) 1.0 0.0 0.0))
==>
((color 1.0 0.0 0.0))

By the way, (quote color) is just "longhand" for 'color

Hope that helps,
David 


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


Re: Putting lyrics below its staff?

2015-05-28 Thread Kaj

Hi Noeck

Sorry for a late answer. I have been away from home and not being able 
to read my e-mail.


On 2015-05-23 20:41, Noeck wrote:

Hi Kaj,

in general you are right: In case there is only one expression,
duplicating the 'brackets', << >> or { } is not needed. You can even
write a single note without brackets:
\new Staff a
but of course not two:
\new Staff a b

At the top level you need something to tell LilyPond that this is music
(\new Staff in the examples above or braces) and not lyrics or commands
or something else:
{ a }
simply writing
a
is not enough.

Your code does not compile and it looks a bit strange.
Well, not strange. Now I see the example is not complete. It is an 
extract from the complete code, which was discussed earlier in the 
thread. Outside the \score block there are definitions of the different 
music parts \mE etc and text parts \tE etc. Another point is that I 
found a strange behaviour in my original version for LilyPond 2.18.2. 
However I also noticed that my example is working fine in LP version 
2.19.20, so the bug I discovered is nowadays corrected.

While you are
right concerning redundant brackets, I wonder why you have staves inside
of voices?
The reason is the original question which dealt with how to get the 
lyrics below a staff appearing not at the beginning but later in the 
music. My original problem was that the lyrics showed up between the 
staves, while I wanted it below its respective staff. The lyrics text is 
not the same for the two staves. This lead to some different suggestion, 
while the final one from Carl was the one really working. However he 
suggested these doubled braces and angles, which I could not think are 
necessary, and you also agreed upon. I think that I understand this now. 
Thank you.

I put a different example here and I comment some of the brackets

\new ChoirStaff << % needed because of 2 staves
   \new Staff << % needed because of 2 voices inside staff
 \new Voice = vA { a b } % {} needed because multiple notes
 \new Voice = vB { c d }
 \new Lyrics \lyricsto vB { Hel -- lo }
   >>
   \new Staff { e f }  % no <<>> needed because only one voice
Does that make sense to you?
Yes, this example works fine for me, even if it does not really deal 
with the original question.


Cheers,
Joram


Thanks everybody for your hints and suggestions, which have finally lead 
me to a working knowledge.

/Kaj

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


Re: ANN: Frescobaldi 2.18.1

2015-05-28 Thread Davide Liessi

Il 24/05/15 21.49, Wilbert Berendsen ha scritto:

I just released Frescobaldi 2.18.1 in the wild, a maintenance
release containing bug fixes, small improvements and translation
updates.

Homepage: www.frescobaldi.org
Download: www.frescobaldi.org/download


The Mac OS X self-contained applications (64 bit and 32 bit) are now 
available for download.


I'm submitting the updates to the Portfiles right now, so also MacPorts 
users will be able to update their installation soon.


Best wishes.
Davide

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


Re: Dynamic mark at the end of a bar

2015-05-28 Thread Simon Albrecht

Hello David,

Am 28.05.2015 um 00:17 schrieb David Sumbler:

On Wed, 2015-05-27 at 16:52 -0500, David Nalesnik wrote:

Hi David,

On Wed, May 27, 2015 at 3:03 PM, David Sumbler 
wrote:
 >
 But both of these are "work-arounds" for something which is
 actually
 fairly normal musical notation.  They are work-arounds because
 one
 method implies that a note is not really the length that it
 appears to
 be, and the other method implies that the dynamics actually
 belong to
 another, silent voice.  Neither of these is true in reality.


Actually, I think I was a little imprecise talking about attaching the
dynamics to a new voice here.  I created SimultaneousMusic, rather
than another Voice context.  Note that this is done commonly enough by
users parameterizing their input: one variable is used to store the
notes, and another to store the dynamics.

Simon also made this point - which I accept.


(This is not to say that there isn't some hackery at work here :) )




 Ideally one shouldn't have to use trial and error, varying the
 length of
 the second invisible rest, to get an acceptable appearance.
 We know
 exactly where the final dynamic should go: it should be
 immediately
 before the bar-line.


Yes, but what of more complex examples, where a composer indicates a
number of inflections on a single note?  There are a number of
examples of that here: https://www.youtube.com/watch?v=uav-OYUJ7BQ
(including a simple one at the very beginning).  How else could you
notate these cases without the simultaneous music approach?

True, but in these cases we actually want the dynamics to be at
particular points within a bar, so the simultaneous music approach is
logical.  In my case, I want the dynamic to appear at the end of the bar
- this, of course is the same moment in time as the start of the next
bar+, but is not the same point on paper.  The simultaneous music
approach, however, requires us to pretend that we want the dynamic at
some arbitrary moment just before the end of the bar.  And the choice of
that moment will vary, depending on how busy the music is on other
staves in the same bar.  It might also mean that we have to use one
value for the score and another for the individual part - yet, in
reality, we just want the dynamic to appear immediately before the
bar-line regardless of what is happening elsewhere in the ensemble.
This sounds like a usecase for \afterGrace. I cooked up a music function 
for that, which works quite fine. Does that help you?


Regards, Simon
\version "2.19.20"

afterDynamic =
#(define-music-function
  (parser location mus dyn)
  (ly:music? ly:music?)
  #{
\afterGrace
$mus
{ s4 $dyn }
  #})

mus = {
  c'1
  \afterDynamic { c'1\p-\tweak minimum-length 10 \< } \f
  c'1
}

\score {
  \mus
}___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user