Re: hide and omit behaviour

2015-09-07 Thread Michael Gerdau
Hi Joram,

> The first triplet should show the number, the following not. In rare
> cases, I would like to force the triplet number again. I tried to do
> this with \omit TupletNumber, but there is one problem as this snippet
> shows:

[snippet snipped]

> How can I achieve a "showTupletNumberOnce" like I tried with
> \once \undo \omit TupletNumber? Or is the only possibility to do \undo
> and then again \omit after wards?

Your snippet behaves exactly like you tell it. Or in other words:
You tell it to omit numbers and then say "don't omit once" and it
does exactly that. After it is back to omitting mode.

The following snippet shows this:

\version "2.18.2"
{
  \tupletSpan 4
  \tuplet 3/2 {
a8-"default" a a
\omit TupletNumber
a-"omit" a a
\once \undo \omit TupletNumber
a8-"once undo" a a
%\omit TupletNumber
a-"default again" a a
a a a
a-"still default" a a
  }
  r2
}

HTH,
Michael
-- 
 Michael Gerdau   email: m...@qata.de
 GPG-keys available on request or at public keyserver

signature.asc
Description: This is a digitally signed message part.
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: hide and omit behaviour

2015-09-07 Thread Michael Gerdau
[forget my last mail...hit return too early while checking my example...]

> I am trying to achieve this for triplets:
> The first triplet should show the number, the following not. In rare
> cases, I would like to force the triplet number again. I tried to do
> this with \omit TupletNumber, but there is one problem as this snippet
> shows:

[snippet snipped]

> How can I achieve a "showTupletNumberOnce" like I tried with
> \once \undo \omit TupletNumber? Or is the only possibility to do \undo
> and then again \omit after wards?

I don't know but I guess the "\once" does not work in this case
because it pops the "\omit" off the stack and does not push it back.

Not sure pushing things back is part of the "\once" functionality.

As I understand "\once" something like 
"\once \show TupletNumber"
would work but I don't know of it's existance...

HTH,
Michael
-- 
 Michael Gerdau   email: m...@qata.de
 GPG-keys available on request or at public keyserver

signature.asc
Description: This is a digitally signed message part.
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: hide and omit behaviour

2015-09-07 Thread Andrew Bernard
Hi Joram,

Rather than trying to figure pushing and popping state from a notional stack, I 
just do what you want with some simple functions. Crude but effective.

I have quickly adapted these three functions from ones I use to turn on or off 
tuplet brackets and numbers at will. I think you get the idea. Does this help?

Andrew

% 

\version "2.19.26"

% tuplet functions

tupletNumberOff = {
%\once \override TupletBracket.bracket-visibility = ##f
\once \override TupletNumber.stencil = #point-stencil
}

tupletNumberOffAll = {
%\override TupletBracket.bracket-visibility = ##f
\override TupletNumber.stencil = #point-stencil
}

tupletNumberOn = {
%\override TupletBracket.bracket-visibility = ##t
\revert TupletNumber.stencil
}


{
  \tupletSpan 4
\tuplet 3/2 {
a8-"default" a a
\omit TupletNumber
a-"omit" a a
\undo \omit TupletNumber
a8-"undo" a a
\omit TupletNumber
a-"omit" a a
\once \undo \omit TupletNumber
a-"once undo" a a
a-"why not omitted again?" a a
}
r2
}

{
  \tupletSpan 4
\tuplet 3/2 {
a8 a a
\tupletNumberOffAll
a a a
a8 a a
a a a
\tupletNumberOn
a a a
\tupletNumberOffAll
a a a
}
r2
}



% 






On 7/09/2015 10:17, "Noeck" 
 wrote:

>Hi,
>
>I am trying to achieve this for triplets:
>The first triplet should show the number, the following not. In rare
>cases, I would like to force the triplet number again. I tried to do
>this with \omit TupletNumber, but there is one problem as this snippet
>shows:
>
>{
>  \tupletSpan 4
>  \tuplet 3/2 {
>a8-"default" a a
>\omit TupletNumber
>a-"omit" a a
>\undo \omit TupletNumber
>a8-"undo" a a
>\omit TupletNumber
>a-"omit" a a
>\once \undo \omit TupletNumber
>a-"once undo" a a
>a-"why not omitted again?" a a
>  }
>  r2
>}
>
>How can I achieve a "showTupletNumberOnce" like I tried with
>\once \undo \omit TupletNumber? Or is the only possibility to do \undo
>and then again \omit after wards?
>
>Thanks
>Joram
>
>___
>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: hide and omit behaviour

2015-09-07 Thread David Kastrup
Michael Gerdau  writes:

> [forget my last mail...hit return too early while checking my example...]
>
>> I am trying to achieve this for triplets:
>> The first triplet should show the number, the following not. In rare
>> cases, I would like to force the triplet number again. I tried to do
>> this with \omit TupletNumber, but there is one problem as this snippet
>> shows:
>
> [snippet snipped]
>
>> How can I achieve a "showTupletNumberOnce" like I tried with
>> \once \undo \omit TupletNumber? Or is the only possibility to do \undo
>> and then again \omit after wards?
>
> I don't know but I guess the "\once" does not work in this case
> because it pops the "\omit" off the stack and does not push it back.
>
> Not sure pushing things back is part of the "\once" functionality.

It isn't.  Correct.  Plain context properties don't have either stack or
the subproperty complications of \override, so \once\unset, as opposed
to \once\revert, indeed works.

> As I understand "\once" something like 
> "\once \show TupletNumber"
> would work but I don't know of it's existance...

Try looking in the manual for how to set the _style_ of tuplet numbers.
I think this works by overriding the stencil callback, so just doing
\once followed by whatever would reestablish the normal tuplet look is
likely to work.

-- 
David Kastrup

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


Re: hide and omit behaviour

2015-09-07 Thread Noeck
Thanks David,

>> Not sure pushing things back is part of the "\once" functionality.
> 
> It isn't.  Correct.  Plain context properties don't have either stack or
> the subproperty complications of \override, so \once\unset, as opposed
> to \once\revert, indeed works.

That explains it, thanks.

> Try looking in the manual for how to set the _style_ of tuplet numbers.
> I think this works by overriding the stencil callback, so just doing
> \once followed by whatever would reestablish the normal tuplet look is
> likely to work.

As usually, your guess is right and very helpful. That works perfectly:
\once \override TupletNumber.stencil = #ly:tuplet-number::print

Thanks also for all other replies to my question.

Cheers,
Joram

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


Re: hide and omit behaviour

2015-09-07 Thread Noeck
Hi Andrew,

thanks, but I wonder why do you use a #point-stencil instead of ##f –
which would be equivalent to my \omit version (if I understand things
correctly), wouldn't it?

Cheers,
Joram

Am 07.09.2015 um 10:10 schrieb Andrew Bernard:
> tupletNumberOff = {
>   %\once \override TupletBracket.bracket-visibility = ##f
>   \once \override TupletNumber.stencil = #point-stencil
> }
> 
> tupletNumberOffAll = {
>   %\override TupletBracket.bracket-visibility = ##f
>   \override TupletNumber.stencil = #point-stencil
> }
> 
> tupletNumberOn = {
>   %\override TupletBracket.bracket-visibility = ##t
>   \revert TupletNumber.stencil
> }

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


what's wrong with \partial

2015-09-07 Thread Jinsong Zhao

Hi there,

The following snippet can't give correct output. It produced the 
following warnings:


warning: barcheck failed at: -1/4
\partial2 d4
 |

\version "2.19.26"
\relative c' {
\clef "treble"
\key g \major
\tempo 4 = 100
\numericTimeSignature
\time 3/4

\partial2 d4 |
g4 g g |
}

If \partial2 was replaced with r2, there is no warnings. However, I 
don't want the rest sign at the beginning of this piece.


I appreciate you for any suggestions.

Best regards,
Jinsong



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


Re: what's wrong with \partial

2015-09-07 Thread Andrew Bernard
Hello Jinsong,

That’s because your barcheck is in the wrong spot. You have two 4’s in the 
upbeat.

\version "2.19.26"
\relative c' {
\clef "treble"
\key g \major
\tempo 4 = 100
\numericTimeSignature
\time 3/4

\partial 2 d4 g4 |
g g
}



Andrew





On 7/09/2015 22:40, "Jinsong Zhao" 
 wrote:

>Hi there,
>
>The following snippet can't give correct output. It produced the 
>following warnings:
>
>warning: barcheck failed at: -1/4
>\partial2 d4


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


Re: what's wrong with \partial

2015-09-07 Thread bobr...@centrum.is
Try this:

Change \partial 2 to \partial 4

"\partial 2" means that the first measure contains a half-note's worth of time. 
 It does *not* mean the first part of the measure you want to leave out.  You 
obviously want only one quarter note in the partial measure so you need 
'\partial 4'.

-David

- Original Message -
> From: "Jinsong Zhao" 
> To: "lilypond-user" 
> Sent: Monday, September 7, 2015 12:40:42 PM
> Subject: what's wrong with \partial
> 
> Hi there,
> 
> The following snippet can't give correct output. It produced the
> following warnings:
> 
> warning: barcheck failed at: -1/4
> \partial2 d4
>   |
> 
> \version "2.19.26"
> \relative c' {
> \clef "treble"
> \key g \major
> \tempo 4 = 100
> \numericTimeSignature
> \time 3/4
> 
> \partial2 d4 |
> g4 g g |
> }
> 
> If \partial2 was replaced with r2, there is no warnings. However, I
> don't want the rest sign at the beginning of this piece.
> 
> I appreciate you for any suggestions.
> 
> Best regards,
> Jinsong
> 
> 
> 
> ___
> 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: what's wrong with \partial

2015-09-07 Thread Michael Gerdau
On Monday 07 September 2015 20:40:42 Jinsong Zhao wrote:
> \version "2.19.26"
> \relative c' {
> \clef "treble"
> \key g \major
> \tempo 4 = 100
> \numericTimeSignature
> \time 3/4
> 

You probably mean
\partial 4 d4 |

> g4 g g |
> }

\partial expect a duration (of the partial). You have it inversed.
See 
http://www.lilypond.org/doc/v2.19/Documentation/notation/displaying-rhythms#upbeats

HTH,
Michael
-- 
 Michael Gerdau   email: m...@qata.de
 GPG-keys available on request or at public keyserver

signature.asc
Description: This is a digitally signed message part.
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: hide and omit behaviour

2015-09-07 Thread Simon Albrecht

Am 07.09.2015 um 11:00 schrieb Noeck:

Hi Andrew,

thanks, but I wonder why do you use a #point-stencil instead of ##f –
which would be equivalent to my \omit version (if I understand things
correctly), wouldn't it?
Sometimes, e.g. with NoteHeads IIRC, it causes problems if you have no 
stencil at all. That’s what a point-stencil is useful for – it’s 
invisible and has no extent, but it provides a reference point.

However in this case I don’t think it would be necessary.

HTH,
Simon

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


Re: hide and omit behaviour

2015-09-07 Thread Andrew Bernard
Setting it to #f was causing fatal crashes in Fedora 22 until the amazing 
developers got it fixed. Using #point-stencil was found to avoid the problem.

Andrew




On 7/09/2015 19:00, "Noeck" 
 wrote:

>Hi Andrew,
>
>thanks, but I wonder why do you use a #point-stencil instead of ##f –
>which would be equivalent to my \omit version (if I understand things
>correctly), wouldn't it?


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


Style question for bar checks

2015-09-07 Thread Noeck
Hi,

this is a question of ly code style:
Would you recommend putting the bar check always after the note or in
some circumstances also after an including brace?

Background: In many cases it is wrong to put a bar check outside braces
because it is then outside the music expression and appears as its own
music expression. Like:

  \alternative {
{ a2 b } |  % wrong
{ a2 a } |  % wrong
  }

This makes me think one should perhaps always write `a | }`
instead of `a } |` – but how about this case?

  a2 \tuplet 3/2 { a4 a a } |

Would anyone prefer this?

  a2 \tuplet 3/2 { a4 a a | }

Cheers,
Joram


PS: And yes, of course, it does not matter really.

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


Re: Style question for bar checks

2015-09-07 Thread Keith OHara
Noeck  gmx.de> writes:

> Would you recommend putting the bar check always after the note or in
> some circumstances also after an including brace?
 
>   \alternative {
> { a2 b } |  % wrong
> { a2 a } |  % wrong
>   }

If there is more than one measure in each alternative sequence,
then the | go inside each the {} for each sequence.
If each alternative sequence is shorter than one measure, 
the | has to go outside the entire \alternative {{} {}} |

Alternatives that fit exactly one measure could be written either way.
I prefer a single | outside the \alternative 

> This makes me think one should perhaps always write `a | }`
> instead of `a } |` – but how about this case?
>   a2 \tuplet 3/2 { a4 a a } |

The tuplet is less than a measure long, so the | makes more sense outside.

I make fewer mistakes when I use Michael Hendry's style 
http://lists.gnu.org/archive/html/lilypond-user/2015-04/msg00892.html

| \alternative {{a2 b} {a b}}
| \tuplet 3/2 {a4 a a} a2
| a2 \tuplet 3/2 {a4 a a}
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


octava sign

2015-09-07 Thread Ole Schmidt
Hi,

I need something like "8va opt."
How can I tweak the "\ottava #1" command to achive this?

thanks for a hint

ole






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


shapeII (openlilylib) with v2.19.25

2015-09-07 Thread Simon Albrecht

Hello,

I have a problem with \shapeII (from openlilylib; in the override-like 
form) using v2.19.25. The following snippet:


\version "2.19.25"
\include "notation-snippets/shaping-bezier-curves/shapeII.ily"

{
  \shapeII #'((0 . 2)) #'(Slur)
  c''( b)
}


has been working up to v2.19.23, but with .25 I get

/tmp/frescobaldi-5ZX7nT/tmpQSaLj0/test-shapeII.ly:5:3 <0>: error: wrong 
type for argument 3. Expecting music, found (list (quote Slur))


\shapeII #'((0 . 2)) #'(Slur)

/tmp/frescobaldi-5ZX7nT/tmpQSaLj0/test-shapeII.ly:5:3 <1>: error: error 
in #{ ... #}


\shapeII #'((0 . 2)) #'(Slur)


and the override has no effect.
The problem does not lie with the symbol-list-or-music? predicate in 
itself, as I might have suspected (but of course such a defect would 
have shown up much earlier), and I don’t know where to search for the 
problem.


TIA for any help,
Simon
\version "2.17.26"

\header {
  snippet-title = "Improved \shape"
  snippet-author = "Janek Warchoł, David Nalesnik"
  snippet-source = ""
  snippet-description = \markup {

  }
  % add comma-separated tags to make searching more effective:
  tags = "slurs, ties, bezier curves, shape"
  % is this snippet ready?  See meta/status-values.md
  status = "working, unfinished"
}

% This is a duplication of code introduced for \offset.
% TODO: make that function (in scm/music-functions.scm) define-public
#(define (find-value-to-offset prop self alist)
   "Return the first value of the property @var{prop} in the property
   alist @var{alist} @em{after} having found @var{self}."
(let ((segment (member (cons prop self) alist)))
  (if (not segment)
  (assoc-get prop alist)
  (assoc-get prop (cdr segment)

% Return the dir-most head from note-column.
% TODO: implement in C++ with a Scheme interface.
#(define (get-extremal-head note-column dir)
   (let ((elts (ly:grob-object note-column 'elements))
 (init -inf.0)
 (result #f))
 (for-each
  (lambda (idx)
(let* ((elt (ly:grob-array-ref elts idx)))
  (if (grob::has-interface elt 'note-head-interface)
  (let ((off (ly:grob-property elt 'Y-offset)))
(if (> (* off dir) init)
(begin
 (set! init off)
 (set! result elt)))
  (reverse (iota (ly:grob-array-length elts
 result))

shapeII =
#(define-music-function (parser location all-specs item)
   (list? symbol-list-or-music?)
   (_i "TODO: write description when finished")

   (define (single-point-spec? x)
 (or (number-pair? x)
 (and (not (null? x))
  (or (number? (car x))
  (symbol? (car x))

   (define (shape-curve grob)
 (let* ((orig (ly:grob-original grob))
(siblings (if (ly:spanner? grob)
  (ly:spanner-broken-into orig) '()))
(total-found (length siblings))
(immutable-props (ly:grob-basic-properties grob))
(value (find-value-to-offset 'control-points shape-curve 
immutable-props))
(default-cpts (if (procedure? value)
  (value grob)
  value))
(slur-dir (ly:grob-property grob 'direction)))

   ;; ;; ;
   ;; functions for handling various types of specs: ;

   ;; flips offset values for right points and downward slurs
   (define (symmetrical-offset coords offs side)
 (cons (+ (car coords)(* -1 side (second offs)))
   (+ (cdr coords) (* slur-dir (third offs)

   ;; position a cpt in polar coordinates.
   (define (polar-coords points spec side absolute?)
 (let* ((x-dif (- (car (last points)) (car (first points
(y-dif (- (cdr (last points)) (cdr (first points
(slur-length (sqrt (+ (expt x-dif 2) (expt y-dif 2
(radius (* slur-length (third spec)))
(ref-slope (if absolute? 0 (atan (/ y-dif x-dif
(angl (+ (degrees->radians (second spec))
(* -1 side ref-slope slur-dir)))
(ref-pt (if (= LEFT side)
(first points)
(last points)))
(x-coord (- (car ref-pt) (* side radius (cos angl
(y-coord (+ (cdr ref-pt) (* slur-dir radius (sin angl)
   (cons x-coord y-coord)))

   ;; adjust a middle cpt relative to its default polar-coordinates.
   ;; TODO: merge with the function above?
   (define (rel-polar-coords points spec side)
 (let* ((point1 (if (= LEFT side)
(first default-cpts)
(last default-cpts)))
(point2 (if (= LEFT side)
(second default-cpts)
(third default-cpts)))
(x-dif (- (car

Re: octava sign

2015-09-07 Thread Phil Holmes
- Original Message - 
From: "Ole Schmidt" 

To: 
Sent: Monday, September 07, 2015 8:22 PM
Subject: octava sign



Hi,

I need something like "8va opt."
How can I tweak the "\ottava #1" command to achive this?

thanks for a hint

ole


Have a look in the documentation:

http://lilypond.org/doc/v2.19/Documentation/notation/displaying-pitches#ottava-brackets

--
Phil Holmes 



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


Re: Style question for bar checks

2015-09-07 Thread David Kastrup
Noeck  writes:

> Hi,
>
> this is a question of ly code style:
> Would you recommend putting the bar check always after the note or in
> some circumstances also after an including brace?
>
> Background: In many cases it is wrong to put a bar check outside braces
> because it is then outside the music expression and appears as its own
> music expression. Like:
>
>   \alternative {
> { a2 b } |  % wrong
> { a2 a } |  % wrong
>   }
>
> This makes me think one should perhaps always write `a | }`
> instead of `a } |` – but how about this case?
>
>   a2 \tuplet 3/2 { a4 a a } |
>
> Would anyone prefer this?
>
>   a2 \tuplet 3/2 { a4 a a | }

You are cheating with your question because you are omitting relevant
context.  If this is part of

   \alternative { a2 \tuplet 3/2 { a4 a a | } }

then you are obviously asking for trouble by moving | outside.  As a
rule of thumb, if the final | would be the first to occur at its level
at all, I lean towards moving it outside.

-- 
David Kastrup

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


Re: shapeII (openlilylib) with v2.19.25

2015-09-07 Thread Noeck
Hi Simon,

I have no 2.19.25 installed (so perhaps it produces the same error), but
how about
\shapeII #'((0 . 2)) Slur
? This is understood by older Ly versions, too.

HTH,
Joram

Am 07.09.2015 um 21:26 schrieb Simon Albrecht:
> version "2.19.25"
> \include "notation-snippets/shaping-bezier-curves/shapeII.ily"
> 
> {
>   \shapeII #'((0 . 2)) #'(Slur)
>   c''( b)
> }

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


Re: shapeII (openlilylib) with v2.19.25

2015-09-07 Thread Simon Albrecht

Am 07.09.2015 um 21:31 schrieb Noeck:

Hi Simon,

I have no 2.19.25 installed (so perhaps it produces the same error), but
how about
\shapeII #'((0 . 2)) Slur
? This is understood by older Ly versions, too.
Both are exactly equivalent. I only accidentally pasted the #'(Slur) 
version which I had also used in testing – it doesn’t change the problem 
either way. Normally I write Slur, of course.


Yours, Simon

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


Re: shapeII (openlilylib) with v2.19.25

2015-09-07 Thread David Kastrup
Simon Albrecht  writes:

> Hello,
>
> I have a problem with \shapeII (from openlilylib; in the override-like
> form) using v2.19.25. The following snippet:
> 
> \version "2.19.25"
> \include "notation-snippets/shaping-bezier-curves/shapeII.ily"
>
> {
>   \shapeII #'((0 . 2)) #'(Slur)
>   c''( b)
> }
> 
>
> has been working up to v2.19.23, but with .25 I get
>
> /tmp/frescobaldi-5ZX7nT/tmpQSaLj0/test-shapeII.ly:5:3 <0>: error:
> wrong type for argument 3. Expecting music, found (list (quote Slur))
>
> \shapeII #'((0 . 2)) #'(Slur)
>
> /tmp/frescobaldi-5ZX7nT/tmpQSaLj0/test-shapeII.ly:5:3 <1>: error:
> error in #{ ... #}
>
> \shapeII #'((0 . 2)) #'(Slur)
>
>
> and the override has no effect.
> The problem does not lie with the symbol-list-or-music? predicate in
> itself, as I might have suspected (but of course such a defect would
> have shown up much earlier), and I don’t know where to search for the
> problem.

\tweak no longer accepts a symbol/symbol-list as its last argument and
needs to get replaced with \propertyTweak when used in that facility.

-- 
David Kastrup

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


Re: shapeII (openlilylib) with v2.19.25

2015-09-07 Thread Urs Liska


Am 7. September 2015 22:48:33 MESZ, schrieb David Kastrup :
>Simon Albrecht  writes:
>
>> Hello,
>>
>> I have a problem with \shapeII (from openlilylib; in the
>override-like
>> form) using v2.19.25. The following snippet:
>> 
>> \version "2.19.25"
>> \include "notation-snippets/shaping-bezier-curves/shapeII.ily"
>>
>> {
>>   \shapeII #'((0 . 2)) #'(Slur)
>>   c''( b)
>> }
>> 
>>
>> has been working up to v2.19.23, but with .25 I get
>>
>> /tmp/frescobaldi-5ZX7nT/tmpQSaLj0/test-shapeII.ly:5:3 <0>: error:
>> wrong type for argument 3. Expecting music, found (list (quote Slur))
>>
>> \shapeII #'((0 . 2)) #'(Slur)
>>
>> /tmp/frescobaldi-5ZX7nT/tmpQSaLj0/test-shapeII.ly:5:3 <1>: error:
>> error in #{ ... #}
>>
>> \shapeII #'((0 . 2)) #'(Slur)
>>
>>
>> and the override has no effect.
>> The problem does not lie with the symbol-list-or-music? predicate in
>> itself, as I might have suspected (but of course such a defect would
>> have shown up much earlier), and I don’t know where to search for the
>> problem.
>
>\tweak no longer accepts a symbol/symbol-list as its last argument and
>needs to get replaced with \propertyTweak when used in that facility.
>

Simon,

please create an ossue on GitHub with this information.
Should be updated with a version switch.
>-- 
>David Kastrup
>
>___
>lilypond-user mailing list
>lilypond-user@gnu.org
>https://lists.gnu.org/mailman/listinfo/lilypond-user

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

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


Re: shapeII (openlilylib) with v2.19.25

2015-09-07 Thread David Kastrup
Urs Liska  writes:

> Am 7. September 2015 22:48:33 MESZ, schrieb David Kastrup :
>>Simon Albrecht  writes:
>>
>>> Hello,
>>>
>>> I have a problem with \shapeII (from openlilylib; in the
>>override-like
>>> form) using v2.19.25. The following snippet:
>>> 
>>> \version "2.19.25"
>>> \include "notation-snippets/shaping-bezier-curves/shapeII.ily"
>>>
>>> {
>>>   \shapeII #'((0 . 2)) #'(Slur)
>>>   c''( b)
>>> }
>>> 
>>>
>>> has been working up to v2.19.23, but with .25 I get
>>>
>>> /tmp/frescobaldi-5ZX7nT/tmpQSaLj0/test-shapeII.ly:5:3 <0>: error:
>>> wrong type for argument 3. Expecting music, found (list (quote Slur))
>>>
>>> \shapeII #'((0 . 2)) #'(Slur)
>>>
>>> /tmp/frescobaldi-5ZX7nT/tmpQSaLj0/test-shapeII.ly:5:3 <1>: error:
>>> error in #{ ... #}
>>>
>>> \shapeII #'((0 . 2)) #'(Slur)
>>>
>>>
>>> and the override has no effect.
>>> The problem does not lie with the symbol-list-or-music? predicate in
>>> itself, as I might have suspected (but of course such a defect would
>>> have shown up much earlier), and I don’t know where to search for the
>>> problem.
>>
>>\tweak no longer accepts a symbol/symbol-list as its last argument and
>>needs to get replaced with \propertyTweak when used in that facility.
>>
>
> Simon,
>
> please create an ossue on GitHub with this information.
> Should be updated with a version switch.

Or the calling code just splits between \tweak/\override based on
argument type.  Then you don't need a version switch.

-- 
David Kastrup

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


Re: shapeII (openlilylib) with v2.19.25

2015-09-07 Thread Simon Albrecht



Am 07.09.2015 um 22:52 schrieb Urs Liska:


Simon,

please create an issue on GitHub with this information.



Should be updated with a version switch.

Done. I included the new file in the issue.

Yours, Simon

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


Re: shapeII (openlilylib) with v2.19.25

2015-09-07 Thread Simon Albrecht

Am 07.09.2015 um 22:48 schrieb David Kastrup:

Simon Albrecht  writes:


Hello,

I have a problem with \shapeII (from openlilylib; in the override-like
form) using v2.19.25. The following snippet:

\version "2.19.25"
\include "notation-snippets/shaping-bezier-curves/shapeII.ily"

{
   \shapeII #'((0 . 2)) #'(Slur)
   c''( b)
}


has been working up to v2.19.23, but with .25 I get

/tmp/frescobaldi-5ZX7nT/tmpQSaLj0/test-shapeII.ly:5:3 <0>: error:
wrong type for argument 3. Expecting music, found (list (quote Slur))

\shapeII #'((0 . 2)) #'(Slur)

/tmp/frescobaldi-5ZX7nT/tmpQSaLj0/test-shapeII.ly:5:3 <1>: error:
error in #{ ... #}

\shapeII #'((0 . 2)) #'(Slur)


and the override has no effect.
The problem does not lie with the symbol-list-or-music? predicate in
itself, as I might have suspected (but of course such a defect would
have shown up much earlier), and I don’t know where to search for the
problem.

\tweak no longer accepts a symbol/symbol-list as its last argument and
needs to get replaced with \propertyTweak when used in that facility.


Thanks, that did it.
Yours, Simon

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