Re: tie direction !?

2018-07-26 Thread Torsten Hämmerle
Simon Albrecht-2 wrote > The most sensible solution to me seems to be for Tie to use the > neutral-direction property and heed it in such cases, overriding the > direction if it is set. Using Harm's example, setting Tie.neutral-direction to #DOWN will just flip everything around. Then, the first

Re: tie direction !?

2018-07-26 Thread Simon Albrecht
The most sensible solution to me seems to be for Tie to use the neutral-direction property and heed it in such cases, overriding the direction if it is set. Best, Simon On 26.07.2018 13:34, Robert Schmaus wrote: Might be the same thing as here: http://lilypond.1069038.n5.nabble.com/Curious-

Re: Iterating music for voiceOne. Checking with equal?

2018-07-26 Thread David Kastrup
David Kastrup writes: > David Kastrup writes: > >> Thomas Morley writes: >> >>> Hi, >>> >>> I stumbled across >>> (equal? #{ \voiceOne #} voiceOne) >>> returning false. >>> >>> Is it expected behaviour? >> >> equal? is not implemented all that great for "probs" but Music::equal_p >> is impleme

Re: Iterating music for voiceOne. Checking with equal?

2018-07-26 Thread David Kastrup
David Kastrup writes: > Thomas Morley writes: > >> Hi, >> >> I stumbled across >> (equal? #{ \voiceOne #} voiceOne) >> returning false. >> >> Is it expected behaviour? > > equal? is not implemented all that great for "probs" but Music::equal_p > is implemented in a manner where at least > > #(d

Re: tie direction !?

2018-07-26 Thread Robert Schmaus
Might be the same thing as here: http://lilypond.1069038.n5.nabble.com/Curious-thing-about-ties-td196616.html > On 26 Jul 2018, at 12:37, Thomas Morley wrote: > > Hi, > > please consider the following example: > > \version "2.19.82" > > \relative c'' { > f,1 > r4 b~ b8 a b4~ > b8 a b2. >

Re: Iterating music for voiceOne. Checking with equal?

2018-07-26 Thread David Kastrup
Urs Liska writes: > Am 26.07.2018 um 11:57 schrieb Thomas Morley: >> Hi, >> >> I stumbled across >> (equal? #{ \voiceOne #} voiceOne) >> returning false. >> >> Is it expected behaviour? > > Check with \displayMusic, but I'd suspect that #{ \voiceOne #} might > add an additional layer of sequenti

Re: Iterating music for voiceOne. Checking with equal?

2018-07-26 Thread Urs Liska
Am 26.07.2018 um 12:32 schrieb Thomas Morley: 2018-07-26 12:20 GMT+02:00 Urs Liska : Am 26.07.2018 um 11:57 schrieb Thomas Morley: Hi, I stumbled across (equal? #{ \voiceOne #} voiceOne) returning false. Is it expected behaviour? Check with \displayMusic, but I'd suspect that #{ \voice

tie direction !?

2018-07-26 Thread Thomas Morley
Hi, please consider the following example: \version "2.19.82" \relative c'' { f,1 r4 b~ b8 a b4~ b8 a b2. \repeat unfold 8 f8 } The ties have different directions. If you change the example a little bit you may (or may not) get equal directions. Where does it comes from? Or wit differe

Re: Iterating music for voiceOne. Checking with equal?

2018-07-26 Thread David Kastrup
Thomas Morley writes: > Hi, > > I stumbled across > (equal? #{ \voiceOne #} voiceOne) > returning false. > > Is it expected behaviour? equal? is not implemented all that great for "probs" but Music::equal_p is implemented in a manner where at least #(display (equal? voiceOne (ly:music-deep-cop

Re: Iterating music for voiceOne. Checking with equal?

2018-07-26 Thread Thomas Morley
2018-07-26 12:20 GMT+02:00 Urs Liska : > > > Am 26.07.2018 um 11:57 schrieb Thomas Morley: >> >> Hi, >> >> I stumbled across >> (equal? #{ \voiceOne #} voiceOne) >> returning false. >> >> Is it expected behaviour? > > > Check with \displayMusic, but I'd suspect that #{ \voiceOne #} might add an >

Re: Iterating music for voiceOne. Checking with equal?

2018-07-26 Thread Urs Liska
Am 26.07.2018 um 11:57 schrieb Thomas Morley: Hi, I stumbled across (equal? #{ \voiceOne #} voiceOne) returning false. Is it expected behaviour? Check with \displayMusic, but I'd suspect that #{ \voiceOne #} might add an additional layer of sequential-music around the variable. Urs

Iterating music for voiceOne. Checking with equal?

2018-07-26 Thread Thomas Morley
Hi, I stumbled across (equal? #{ \voiceOne #} voiceOne) returning false. Is it expected behaviour? And is the condition in the function below robust? check = #(define-music-function (mus) (ly:music?) (music-map (lambda (m) (if (equal? m #{ \voiceOne #}) ;; below will

Re: Is it possible to replace a number with variable inside a pair?

2018-07-26 Thread David Kastrup
Jan-Peter Voigt writes: > Hi Risto, > > you might go this way: > > lineThickness = 5 > \markup \override #`(thickness . ,lineThickness) \draw-hline > > That is semi-quote the pair with ` (instead of ') and then "unquote" the > variable to retrieve the value with a comma (,) Which is equivalent t

Re: Is it possible to replace a number with variable inside a pair?

2018-07-26 Thread Risto Vääräniemi
Whoa! I would have never found that out by myself. :) Thanks Urs & Jan-Peter. I have to check the Scheme link, too. BR, Risto On 26 July 2018 at 10:40, Jan-Peter Voigt wrote: > Hi Risto, > > you might go this way: > > lineThickness = 5 > \markup \override #`(thickness . ,lineThickness) \draw-hl

Re: Is it possible to replace a number with variable inside a pair?

2018-07-26 Thread Jan-Peter Voigt
Hi Risto, you might go this way: lineThickness = 5 \markup \override #`(thickness . ,lineThickness) \draw-hline That is semi-quote the pair with ` (instead of ') and then "unquote" the variable to retrieve the value with a comma (,) HTH Jan-Peter Am 26.07.2018 um 09:35 schrieb Risto Vääräniemi

Re: Is it possible to replace a number with variable inside a pair?

2018-07-26 Thread Urs Liska
Am 26.07.2018 um 09:35 schrieb Risto Vääräniemi: Hi, I tried the following: lineThickness = 5 \markup \override #'(thickness . #lineThickness) \draw-hline But it seems I cannot give the variable inside the pair. This works: lineThicknessPair = #'(thickness . 5) \markup \override #lineThickn

Is it possible to replace a number with variable inside a pair?

2018-07-26 Thread Risto Vääräniemi
Hi, I tried the following: lineThickness = 5 \markup \override #'(thickness . #lineThickness) \draw-hline But it seems I cannot give the variable inside the pair. This works: lineThicknessPair = #'(thickness . 5) \markup \override #lineThicknessPair \draw-hline Is there any way to make it work