Re: Overriding tie-configuration & \shape breaks custom Scheme function since 2.19.24

2016-01-10 Thread Malte Meyn


Am 10.01.2016 um 02:50 schrieb Peter Crighton:
>   (if (or (music-is-of-type? mus 'rest-event)
>   (music-is-of-type? mus 'multi-measure-rest))

The overrides fall into the ‘else’ case and then the tweaks are applied.
I’m not sure why this is changing all of the following note heads (bug?)
but I have a solution for your problem: Just tweak only if there is a
rhythmic-event.

\version "2.19.35"

bgr =
#(define-music-function (music) (ly:music?)
   (music-map
(lambda (mus)
  (cond
   ((or (music-is-of-type? mus 'rest-event)
(music-is-of-type? mus 'multi-measure-rest))
(make-music 'SkipEvent mus))
   ((music-is-of-type? mus 'rhythmic-event)
#{
  \tweak NoteHead.font-size #-2
  \tweak Accidental.font-size #-2
  #mus
#})
   (else
mus)))
music))

\new Staff <<
  \new Voice <<
\relative c' {
  <<
{
  c4 d e f~
  f g a b
}

\bgr {
  g a b c~
  \once \override TieColumn.tie-configuration = #'((0 . 1) (0 . -1))
  c d e f
}
  >>
}
  >>
>>

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


Re: how to add header to markup after score

2016-01-10 Thread Jacques Menu
Thanks folks,

I should have found that end-of-line problem my self, my 0.015 €!

JM

> Le 9 janv. 2016 à 14:43, Marc Hohl  a écrit :
> 
> Am 09.01.2016 um 12:13 schrieb Thomas Morley:
>> 2016-01-09 9:04 GMT+01:00 Marc Hohl :
>>> Am 09.01.2016 um 08:24 schrieb Jacques Menu:
 
 Hello Harm,
 
>>> [...]
>>> 
>>> In procedure memoization in expression (let* (block, too! # ...)
>>> 
>>> This looks as if Harms comment is taken as a scheme command due to wrong
>>> line breaks,
>> 
>> I just copied the LSR-snippet.
>> All merits belong to its author, was Reinhold Kainhofer, I think.
> 
> Ah, ok, so s/Harms/the/ ;-)
> 
> Marc
> 


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


Re: ly:one-line-breaking

2016-01-10 Thread Richard Shann
On Sat, 2016-01-09 at 13:38 -0500, Paul Morris wrote:
> > On Jan 9, 2016, at 1:30 PM, Richard Shann  wrote:
> > 
> > I could not see where the ly:one-line-breaking algorithm was written
> > however (looking in the .scm and .ly files) is it in C++ ?
> 
> Yes, see:
> 
> lily/page-breaking-scheme.cc
> lily/one-line-page-breaking.cc

oh, yes, thanks, I see. That code does look so well-written, but I guess
it would take quite a bit of study of the underlying concepts to
understand how to tweak it.

Richard



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


Re: Overriding tie-configuration & \shape breaks custom Scheme function since 2.19.24

2016-01-10 Thread David Kastrup
Malte Meyn  writes:

> Am 10.01.2016 um 02:50 schrieb Peter Crighton:
>>   (if (or (music-is-of-type? mus 'rest-event)
>>   (music-is-of-type? mus 'multi-measure-rest))
>
> The overrides fall into the ‘else’ case and then the tweaks are applied.
> I’m not sure why this is changing all of the following note heads (bug?)

Intentional.  It's

commit 11a9e5701316d46d34993fadb85482282c9753cc
Author: David Kastrup 
Date:   Sat Jul 11 13:13:34 2015 +0200

Issue 4500: Support chaining \tweak variant of overrides

Something like

{ \once \tweak color #red \tweak font-size 2 NoteHead
  2 c'2
}

previously failed to result in having both tweaks register.

(version 2.19.24) which made sense while \tweak could also be used as an
override, namely between

commit 6e0f8d53951bfad582204df9a85a776463ac6614
Author: David Kastrup 
Date:   Thu Oct 25 14:46:15 2012 +0200

Issue 2929: Allow \tweak to act as a stand-in for \once\override

Making tweak optionally accept a grob specification instead of music
to tweak makes it compatible with the behavior of functions such as
\footnote and \shape, and actually serves to simplify their
implementation.

One slight complication occurs in lyrics mode, as demonstrated by the
change necessary to input/regression/lyric-tweak.ly: with

\tweak color #red reddish fish,

LilyPond tries an override for a grob named "reddish" and fails.
Tweaks in lyrics mode are highly unusual, have not been supported for
long, and their effect can usually better be accomplished in markup
mode instead.  The fix here is to write

\tweak color #red \markup reddish fish,

since LilyPond does not consider explicit markup a candidate for
conversion into symbols.  The same problem is inherent with other
commands using the same kind of symbol-list-or-music? interface, like
\footnote, \hide, \omit.

(version 2.17.6) and

commit 269d0c6d104c40f75e225f93459fd827f4065905
Author: David Kastrup 
Date:   Sat Jul 18 17:30:26 2015 +0200

Issue 4533: Stop the generic \tweak command from working as override

The problem with letting the generic \tweak command work as an override
is that the tweaking of lyric events becomes awkward since plain lyrics
are hard to distinguish from property names.

This renames the combined tweak/override command into \propertyTweak and
changes all callers requiring the combined functionality to call
\propertyTweak (or its Scheme equivalent) rather than \tweak.

The original issue allowing \tweak to act as an override was issue 2929.
The issue allowing tweaks to function in \lyricmode is issue 2543.

(version 2.19.25)

Now that only \propertyTweak does that, maybe \tweak should not do this
kind of chaining but leave it to \propertyTweak.

What should \tweak do then?  Just go forward with the tweak on override
(which achieves nothing)?  Give a warning instead (we don't generally
get one for non-effective tweaks)?  Silently ignore it?

-- 
David Kastrup

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


Re: how to add header to markup after score

2016-01-10 Thread David Kastrup
Jacques Menu  writes:

> Thanks folks,
>
> I should have found that end-of-line problem my self, my 0.015 €!

6 farthings?

-- 
David Kastrup

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


Re: ly:one-line-breaking

2016-01-10 Thread Richard Shann
On Sat, 2016-01-09 at 21:18 +0100, Urs Liska wrote:
> 
> Am 9. Januar 2016 19:30:56 MEZ, schrieb Richard Shann 
> :
> >I was wondering if it would be possible to develop a variant of "all on
> >one line", namely "all on one page", where the page height would be
> >automatically adjusted to fit the music, leaving the width as set.
> 
> I had been thinking about "abusing" lilypond-book-preamble for this and 
> "stitching" the systems together.

Hmm, not at all sure what's going on in that file, it would be nice if
there were some simple tweak that pulled it off though...

Richard



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


Re: how to produce this symbol?

2016-01-10 Thread Pierre Perol-Schneider
I'm glad you liked it.
Just in case, re-readind it, one could think that trill elements look too
thick.
Here's another option:

\version "2.18.2"

\transpose c c'' {
  s2. r4 |
  dis8
  ^\markup {
\translate #'(-5 . 0)
\rotate #-45
\pattern #4 #X #0
%% Optional:
\scale #'(1 . .7)
\musicglyph #"scripts.trill_element"
  }
  e gis b
}

Cheers,
Pierre

2016-01-09 22:15 GMT+01:00 Bric :

> On 01/09/2016 10:48 AM, Pierre Perol-Schneider wrote:
>
>> Hi Bric,
>>
>> How about :
>>
>> \version "2.18.2"
>>
>> \transpose c c'' {
>>   s2. r4 |
>>   dis8
>>   ^\markup {
>> \translate #'(-5 . 0)
>> \rotate #-45
>> \pattern #4 #X #0 \musicglyph #"scripts.trill_element"
>>   }
>>   e gis b
>> }
>>
>
> That works great!  Michael Gerdau's code connects two distinct notes with
> a glissando; this one looks identical to the single-note ornament that is
> in the original music.
>
> thanks.
>
>
>
>
>> Cheers,
>> Pierre
>>
>> 2016-01-09 15:37 GMT+01:00 Bric mailto:b...@flight.us>>:
>>
>> attaching a png of some sort of glissando or downward run.  Does
>> anyone know how to produce it in lilypond ?
>>
>> thanks
>>
>>
>> ___
>> 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 produce this symbol?

2016-01-10 Thread Andrew Bernard
HI Pierre,

Where are markup functions such as rotate and pattern documented?

Andrew


On 11/01/2016, 06:30, "Pierre Perol-Schneider" 
 wrote:

\rotate #-45
\pattern #4 #X #0 


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


Re: how to produce this symbol?

2016-01-10 Thread tisimst
Andrew,

Start here and look in the sub-topics for specific function details:

http://lilypond.org/doc/v2.19/Documentation/notation/text-markup-commands

Best,
Abraham

On Sunday, January 10, 2016, Andrew Bernard [via Lilypond] <
ml-node+s1069038n185780...@n5.nabble.com> wrote:

> HI Pierre,
>
> Where are markup functions such as rotate and pattern documented?
>
> Andrew
>
>
> On 11/01/2016, 06:30, "Pierre Perol-Schneider" <[hidden email]
>  on behalf of [hidden
> email] > wrote:
>
>
> \rotate #-45
> \pattern #4 #X #0
>
>
> ___
> 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/how-to-produce-this-symbol-tp185741p185780.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/how-to-produce-this-symbol-tp185741p185781.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


Hairpin across line break

2016-01-10 Thread Andrew Bernard
When I have a hairpin across a line break, ending on a dynamic which is the 
very first note in the bar, the hairpin does not continue acorss the line as I 
would expect it to. If you extend to the next note, the hairpin continues.

How does one produce the broken hairpin at the start of the next line in this 
sort of case?

Setting Hairpin.to-barline has no effect (and I would not expect it to).

\version "2.19.35"

\relative c'' {
  \clef treble
  \time 1/4

  c c c c c c c_\f\> c c c \break
  c_\pp c c c c c c c c c 
}


Andrew



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


Re: how to produce this symbol?

2016-01-10 Thread Andrew Bernard
Hi Abraham,

Thanks! The command pattern is under ‘Other’.


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


Re: Hairpin across line break

2016-01-10 Thread Pierre Perol-Schneider
Hi Andrew,

Try:

\version "2.19.35"

\relative c'' {
  \clef treble
  \time 1/4

  c c c c c c c_\f
  -\tweak to-barline ##f
  -\tweak after-line-breaking ##t
  \> c c c \break
  c_\pp c c c c c c c c c
}

Cheers,
Pierre

2016-01-11 6:30 GMT+01:00 Andrew Bernard :

> When I have a hairpin across a line break, ending on a dynamic which is
> the very first note in the bar, the hairpin does not continue acorss the
> line as I would expect it to. If you extend to the next note, the hairpin
> continues.
>
> How does one produce the broken hairpin at the start of the next line in
> this sort of case?
>
> Setting Hairpin.to-barline has no effect (and I would not expect it to).
>
> \version "2.19.35"
>
> \relative c'' {
>   \clef treble
>   \time 1/4
>
>   c c c c c c c_\f\> c c c \break
>   c_\pp c c c c c c c c c
> }
>
>
> Andrew
>
>
>
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user
>
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user