Re: Voices and Edition Engraver

2016-03-11 Thread Jan-Peter Voigt
... I wrote an engraver, that displays the currentBarNumber for the current 
Staff. I once used that as an interim solution to get the needed timing info.
I am going to send it after the weekend.

Best
Jan-Peter


Am 12. März 2016 08:38:51 MEZ, schrieb Jan-Peter Voigt :
>Hi Graham,
>
>polymetric scores are supported right now. The EE uses the current
>Timing-Context to get the currentBarNumber and measurePosition. So the
>problem is, to find the right barnumber/measure-pos for the
>editionMods.
>Kieren and Urs suggested to enter mods with a timing info like two
>quavers after mark "X". That would solve that problem - and I have an
>idea how to do that. And object/grob-IDs would be extremely helpful
>too.
>
>I am busy this weekend, but I will work on it again next week.
>
>Cheers
>Jan-Peter
>
>Am 11. März 2016 23:36:37 MEZ, schrieb Graham King
>:
>>On Fri, 2016-03-11 at 22:12 +0100, Urs Liska wrote:
>>
>>> We have *just* begun with a rewrite [of the Edition Engraver]...
>>
>>Urs, 
>>do you plan to support polymetric scores with the new edition? 
>>
>>all the best
>>-- Graham
>>
>>
>>
>>
>>___
>>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

-- 
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: Voices and Edition Engraver

2016-03-11 Thread Jan-Peter Voigt
Hi Graham,

polymetric scores are supported right now. The EE uses the current 
Timing-Context to get the currentBarNumber and measurePosition. So the problem 
is, to find the right barnumber/measure-pos for the editionMods.
Kieren and Urs suggested to enter mods with a timing info like two quavers 
after mark "X". That would solve that problem - and I have an idea how to do 
that. And object/grob-IDs would be extremely helpful too.

I am busy this weekend, but I will work on it again next week.

Cheers
Jan-Peter

Am 11. März 2016 23:36:37 MEZ, schrieb Graham King :
>On Fri, 2016-03-11 at 22:12 +0100, Urs Liska wrote:
>
>> We have *just* begun with a rewrite [of the Edition Engraver]...
>
>Urs, 
>do you plan to support polymetric scores with the new edition? 
>
>all the best
>-- Graham
>
>
>
>
>___
>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: Voices and Edition Engraver

2016-03-11 Thread Jan-Peter Voigt
Hi Samuel,

I am aware of this issue and hope to find a solution, while rewriting the EE. 
Most times, I can address the Staff context to apply the tweak.
It seems, that the "start-timestep" slot is not called in some circumstances.

For now, best
Jan-Peter

Am 11. März 2016 21:48:27 MEZ, schrieb tyronicus :
>Fellow Ponders,
>
>I'm trying to use the Edition Engraver for the first time. In the
>(smallish)
>example below, see how in the current method that I use of splitting
>and
>joining voices, the Ed.Engr. seems to be confused about when the voice
>starts,
>and thus, I'm unable to modify the slur in \voiceTwo.
>
>I get the following error in the log:
>
>warning: missing @ 1 # Voice/B
>warning: ---> \override NoteHead #'color = (0.0 0.0 1.0)
>warning: ---> \override Slur #'color = (1.0 0.0 0.0)
>
>Any tips on how I could do this? Do I need to change the way I handle
>Voices?
>
>%%
>
>\version "2.19.37"
>
>twoVoices = #(define-music-function (one two)(ly:music? ly:music?)
>#{ << { \voiceOne $one } \new Voice { \voiceTwo $two } >> \oneVoice #})
>
>tenN = \relative c' {\key b \minor\clef "G_8"
>  \twoVoices { b2.( cis4) } { fis,2( g4 b) }
>   4   2
>}
>
>\include "editorial-tools/edition-engraver/definitions.ily"
>
>\layout {
>  \context { \Voice
>\consists \editionEngraver ##f
>  }
>}
>
>\score {
>  \new Voice \tenN
>}
>
>\addEdition octavo
>\editionMod octavo 1 0/4 Voice.A \override Slur.color = #green
>\editionMod octavo 1 0/4 Voice.B \override NoteHead.color = #blue
>\editionMod octavo 1 0/4 Voice.B \override Slur.color = #red
>
> 
>
>
>
>
>--
>View this message in context:
>http://lilypond.1069038.n5.nabble.com/Voices-and-Edition-Engraver-tp188450.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

-- 
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: Voices and Edition Engraver

2016-03-11 Thread Graham King
On Fri, 2016-03-11 at 22:12 +0100, Urs Liska wrote:

> We have *just* begun with a rewrite [of the Edition Engraver]...

Urs, 
do you plan to support polymetric scores with the new edition? 

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


Re: How to join notes in markup?

2016-03-11 Thread Thomas Morley
2016-03-11 11:21 GMT+01:00 tisimst :

> (though further suggestions for improvement
> are welcome).
>
> Thanks,
> Abraham

Hi Abraham,

just had a more thoroughly look at your snippet at
http://lsr.di.unimi.it/LSR/Item?id=1029

The biggest issue I see is how to change fontsize. I post my own
commented suggestion below.
Best would be that score-markup would respect \fontsize, not sure how
to do that (if possible at all), though.

#(define-markup-command (ezscore layout props mus) (ly:music?)
;; introduce a property to make overriding it possible
  #:properties ((size 0))
  (interpret-markup layout props
#{
  \markup {
\score {
;; work on a copy of music! Hence $ not #
  \new RhythmicStaff { $mus }
  \layout {
\context {
  \RhythmicStaff
  \remove Clef_engraver
  \remove Time_signature_engraver
;; Don't remove Staff_symbol_engraver, omit StaffSymbol.
;; (probably set line-count zero, alternatively)
;; In order to keep changes for fontSize/staff-space/thickness possible,
;; Stem/Beam etc rely on it for thickness, length etc

  \omit StaffSymbol
  fontSize = #size
  \override StaffSymbol.staff-space = #(magstep size)
  \override StaffSymbol.thickness = #(magstep size)
}
indent = 0
  }
}
  }
#}))

%%

\markup {
  Let's try something simple:
  \note #"8" #UP + \note #"8" #UP =
  % BEFORE USING EZNOTES...
  \combine
\combine
%% slightly simplified, here and below
  \note #"4" #UP
  \translate #'(1.25 . 2.8) \beam #3 #0 #.5
\concat {
  \hspace #3
  \note #"4" #UP
}
  . Yikes! Not so easy by hand.
}

\markup {
  Much easier:
  \note #"8" #UP + \note #"8" #UP =
  % AFTER USING EZNOTES...
  \ezscore ##{ { c8[ c] } #}.
  % LET'S DO SOMETHING HARDER NOW...
  Now try constructing
%% size-override applied
  \override #'(size . -6)
  \ezscore ##{
{
%% spacing-incrementadjusted, according to the size-override.
\override Score.SpacingSpanner.spacing-increment = #1
\override TupletNumber.text =
  #(tuplet-number::append-note-wrapper
 (tuplet-number::non-default-tuplet-fraction-text 12 7) "8")
\tuplet 12/7 { c4. c c c }
}
  #}
  manually!
}

HTH, best
  Harm

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


Re: Voices and Edition Engraver

2016-03-11 Thread tyronicus
Kieren wrote
> I know of no workaround; you simply have to put the tweak in the content.


Urs wrote
> We have *just* begun with a rewrite, and yes, the ID addressing is a
> crucial part of it. But of course it will take its time.

Thanks, both of you.
Samuel



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Voices-and-Edition-Engraver-tp188450p188456.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: Voices and Edition Engraver

2016-03-11 Thread Urs Liska
9

Am 11. März 2016 22:01:52 MEZ, schrieb Kieren MacMillan 
:
>Hi,
>
>> I'm trying to use the Edition Engraver for the first time. In the
>(smallish)
>> example below, see how in the current method that I use of splitting
>and
>> joining voices, the Ed.Engr. seems to be confused about when the
>voice starts,
>> and thus, I'm unable to modify the slur in \voiceTwo.
>
>This is a limitation of the current Edition Engraver. If there are no
>similar grobs in the score at the same moment, you can simply push the
>mod to an enclosing context (e.g., Staff or Score), but when you’ve got
>multiple similar grobs — like in your example — I know of no
>workaround; you simply have to put the tweak in the content.
>
>There have been discussions of improving [or even rewriting] the EE to
>accept explicit context ids, which would solve your problem. But for
>now, I believe what you want to do can’t be done.

We have *just* begun with a rewrite, and yes, the ID addressing is a crucial 
part of it. But of course it will take its time.

Urs
>
>Sorry,
>Kieren.
>
>
>Kieren MacMillan, composer
>‣ website: www.kierenmacmillan.info
>‣ email: i...@kierenmacmillan.info
>
>
>___
>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: Voices and Edition Engraver

2016-03-11 Thread Kieren MacMillan
Hi,

> I'm trying to use the Edition Engraver for the first time. In the (smallish)
> example below, see how in the current method that I use of splitting and
> joining voices, the Ed.Engr. seems to be confused about when the voice starts,
> and thus, I'm unable to modify the slur in \voiceTwo.

This is a limitation of the current Edition Engraver. If there are no similar 
grobs in the score at the same moment, you can simply push the mod to an 
enclosing context (e.g., Staff or Score), but when you’ve got multiple similar 
grobs — like in your example — I know of no workaround; you simply have to put 
the tweak in the content.

There have been discussions of improving [or even rewriting] the EE to accept 
explicit context ids, which would solve your problem. But for now, I believe 
what you want to do can’t be done.

Sorry,
Kieren.


Kieren MacMillan, composer
‣ website: www.kierenmacmillan.info
‣ email: i...@kierenmacmillan.info


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


Re: Variable slur thickness

2016-03-11 Thread Thomas Morley
2016-03-11 14:31 GMT+01:00 Sharon Rosner :
>> I've managed to bypass using before-line-breaking AND after-line-breaking
>> by assigning the function to the 'thickness property and having each grob
>> internally calculate its own control points rather than relying on it
>> being
>> calculated elsewhere (also attached):
>
> Works great! I improved it further by making it compatible with ties too:
>
>
> #(define (variable-slur-thickness min-l max-l min-t max-t) (lambda (grob)
>   (let* ((cpf (if (grob::has-interface grob 'tie-interface)
>   ly:tie::calc-control-points
>   ly:slur::calc-control-points))
>  (cpt (cpf grob))
>  (cp0 (car cpt)) (cp3 (cadddr cpt))
>  (dx (- (car cp3) (car cp0)))
>  (dy (- (cdr cp3) (cdr cp0)))
>  (len (magnitude (make-rectangular dx dy)))
>  (thickness
>(cond ((< len min-l) min-t)
>  ((> len max-l) max-t)
>  (else (+ min-t (* (- len min-l)
>  (/ (- max-t min-t) (- max-l min-l
>
>  thickness)))
>
>
>> The only thing I'm (slightly) concerned with is
>> the duplicate control-point calculation in this function and how it might
>> affect compilation times if this were applied to a large orchestral score,
>> for example.
>
> A preliminary check with a 17-page score shows a pretty negligible effect on
> compilation time, 0.6s (the total time is about 21s), or about 2.7%
> additional compilation time. A small price to pay for more beauty!
>
> Sharon



How about below,
Should work for all bows, hence the name is changed

#(define (variable-bow-thickness min-l max-l min-t max-t)
  (lambda (grob)
;; Get the procedure to calculate the control-points
;; If none use `fall-back' to return a default-value for 'thickness
(let ((cpf (assoc-get 'control-points (ly:grob-basic-properties grob)))
  (fall-back 1.2))
  (if (procedure? cpf)
  (let* ((cpt (cpf grob))
 (cp0 (car cpt))
 (cp3 (cadddr cpt))
 (dx (- (car cp3) (car cp0)))
 (dy (- (cdr cp3) (cdr cp0)))
 (len (magnitude (make-rectangular dx dy)))
 (thickness
   (cond ((< len min-l) min-t)
 ((> len max-l) max-t)
 (else (+ min-t (* (- len min-l)
   (/ (- max-t min-t) (- max-l min-l
thickness)
  fall-back


Cheers,
 Harm

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


Re: Piano_Tab Notation; Tie customization

2016-03-11 Thread Paul Morris
Hi Philip,

> On Mar 10, 2016, at 3:40 PM, Philip Bergwerf  
> wrote:
> 
> i was thinking about tweaking
> the ties. Is it possible in lilypond to make a horizontal straight line
> between tied notes? 

I’m pretty sure tie shapes can be customized.  Maybe take a look at this 
snippet, although it is for slurs:

http://lsr.di.unimi.it/LSR/Item?id=777

Or the other snippets that come up with an LSR search for “shape”.

Maybe that helps,
-Paul
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


new lilypond guitar site

2016-03-11 Thread Jim Tisdall

Hi,

Although it's still early days...

http://GuitarAvatar.net

creates scores for student/teacher use.

Scales, arpeggios, rhythms, melodic patterns, audio,
lots of fingering alternatives.

Chords/harmony in active development but not live yet.

Examples of fingering approaches
from the chapters of a book in development.

And no doubt plenty of bugs in what is live ;>)

I thought you lot might like to see how I'm using lilypond.

Peace,
Jim

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


Voices and Edition Engraver

2016-03-11 Thread tyronicus
Fellow Ponders,

I'm trying to use the Edition Engraver for the first time. In the (smallish)
example below, see how in the current method that I use of splitting and
joining voices, the Ed.Engr. seems to be confused about when the voice
starts,
and thus, I'm unable to modify the slur in \voiceTwo.

I get the following error in the log:

warning: missing @ 1 # Voice/B
warning: ---> \override NoteHead #'color = (0.0 0.0 1.0)
warning: ---> \override Slur #'color = (1.0 0.0 0.0)

Any tips on how I could do this? Do I need to change the way I handle
Voices?

%%

\version "2.19.37"

twoVoices = #(define-music-function (one two)(ly:music? ly:music?)
  #{ << { \voiceOne $one } \new Voice { \voiceTwo $two } >> \oneVoice #})

tenN = \relative c' {\key b \minor\clef "G_8"
  \twoVoices { b2.( cis4) } { fis,2( g4 b) }
   4   2
}

\include "editorial-tools/edition-engraver/definitions.ily"

\layout {
  \context { \Voice
\consists \editionEngraver ##f
  }
}

\score {
  \new Voice \tenN
}

\addEdition octavo
\editionMod octavo 1 0/4 Voice.A \override Slur.color = #green
\editionMod octavo 1 0/4 Voice.B \override NoteHead.color = #blue
\editionMod octavo 1 0/4 Voice.B \override Slur.color = #red

 




--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Voices-and-Edition-Engraver-tp188450.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: Piano_Tab Notation; questions ;-)

2016-03-11 Thread Paul Morris
Hi Philip,

Glad you found the information on the MNP site helpful.  I’ve been down many of 
these paths in order to get LilyPond to support Clairnote music notation 
(http://clairnote.org).  (At some point you might want to look at my 
clairnote-code.ly file (http://clairnote.org/software/).)

More below...

> On Mar 10, 2016, at 4:12 PM, Philip Bergwerf  
> wrote:
> 
> 1. how can i place the rests in a custom default position? When writing low
> on a staff i want a rest also low on the staff. and i think it would be more
> clear if rests from voice two are always placed down and for voice one up.
> How to do this?

See the attached .ly file with some old code that shows a way to do this.  
You’ll need to get fairly fluent in scheme to do everything that you'll want to 
do.

> 2. I made this custom staff using
> %begin
> \override Staff.StaffSymbol #'line-positions = #'(enter line positions)
> %end
> .
> Sometimes the note is not fitting on the staff so i have to change the key
> or make some extra lines. (look at bar 79) I did this by the following code:
> %begin
> \stopStaff \override Staff.StaffSymbol #'line-positions = #'(21 19 16 14 12
> 9 7 4 2 0 -2.8 -3 -3.2 -4.8 -5 -5.2 -8 -10 -12 -15 -17 -20 -22 -24 -27 -29
> -32 -34 -36) \startStaff
> %end
> This is a lot of text. Is there a way to increase text when changing the
> number of stafflines? 

You can store it all in a variable and then just use that.

%%%

\version "2.19.36"

myLinePositions = {
  \stopStaff 
  \override Staff.StaffSymbol #'line-positions = #'(21 19 16 14 12
9 7 4 2 0 -2.8 -3 -3.2 -4.8 -5 -5.2 -8 -10 -12 -15 -17 -20 -22 -24 -27 -29
-32 -34 -36) 
  \startStaff
}

{ 
  c d e f 
  \myLinePositions
  c d e f
}

%%%



> 3. Is it possible to make you own for example \pianotabStaff?

Search the LSR for "Defining a Custom Staff Context"
http://lsr.di.unimi.it/LSR/Search

HTH,
-Paul




rests-vertical-position.ly
Description: Binary data



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


Slurs and augmentation dots

2016-03-11 Thread Sharon Rosner
Hi all,

Still on the subject of slurs, I found a potentially buggy behaviour of slurs 
when used in conjunction with dotted rhythms. Apparently, if the first or last 
notes of a slur are dotted, and on a staff line (whereby the dot is raised to 
the space immediately above), the slur is positioned too far above the note 
heads.

In the enclosed pdf, I marked the “bad” slurs red. In addition, there are a few 
slurs that are too curved, but I can’t tell if that is related or not to 
augmentation dots (I've noticed that slurs are sometimes too curvy, regardless 
of the actual rhythm).

My question: Is this a bug? Is there a way to control this behaviour?

Thanks
Sharon



slur.ly
Description: Binary data



slur.pdf
Description: Adobe PDF document
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Question about Denemo accessibility with mac with voice overfor Richard Shann possibly?

2016-03-11 Thread Blöchl Bernhard

Sorry for multiple replies, but I forgot to send this link
https://accessiblemusicnotation.wordpress.com/
I think, as your are willing to help, that might be the rewarding target 
...


Am 11.03.2016 19:06, schrieb Richard Shann:

On Thu, 2016-03-10 at 19:18 -0600, Daniel Contreras wrote:

Hello everyone,


Lilypond has been my go to software for the past few semesters and I
have found it very useful and I am very grateful to all who have
contributed to its development.  My question is about the Denemo
software,


denemo-de...@gnu.org is the place to ask...


 particularly the possibility of making it accessible for blind users.
I know that may be a long shot, but I am willing to help in anyway
that i can. If anyone is interested, and or if this is even remotely
possible, i haved copied a link which will hopefully be useful.


I think it is indeed a long shot, Denemo is very short of developers :(

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: Question about Denemo accessibility with mac with voice overfor Richard Shann possibly?

2016-03-11 Thread Blöchl Bernhard

Please check this link:
https://musescore.org/en/node/37476

Am 11.03.2016 19:06, schrieb Richard Shann:

On Thu, 2016-03-10 at 19:18 -0600, Daniel Contreras wrote:

Hello everyone,


Lilypond has been my go to software for the past few semesters and I
have found it very useful and I am very grateful to all who have
contributed to its development.  My question is about the Denemo
software,


denemo-de...@gnu.org is the place to ask...


 particularly the possibility of making it accessible for blind users.
I know that may be a long shot, but I am willing to help in anyway
that i can. If anyone is interested, and or if this is even remotely
possible, i haved copied a link which will hopefully be useful.


I think it is indeed a long shot, Denemo is very short of developers :(

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


Default text fonts change CenturySchL to Tex Gyre Schola?

2016-03-11 Thread Thomas Scharkowski
Only recently I noticed the change of the default text fonts in 
LilyPond. When did this take place and why?

Just curious.

Thomas

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


Re: Question about Denemo accessibility with mac with voice overfor Richard Shann possibly?

2016-03-11 Thread Richard Shann
On Thu, 2016-03-10 at 19:18 -0600, Daniel Contreras wrote:
> Hello everyone, 
> 
> 
> Lilypond has been my go to software for the past few semesters and I
> have found it very useful and I am very grateful to all who have
> contributed to its development.  My question is about the Denemo
> software,

denemo-de...@gnu.org is the place to ask...

>  particularly the possibility of making it accessible for blind users.
> I know that may be a long shot, but I am willing to help in anyway
> that i can. If anyone is interested, and or if this is even remotely
> possible, i haved copied a link which will hopefully be useful.

I think it is indeed a long shot, Denemo is very short of developers :(

Richard




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


Re: Use "#f" instead of "false" in manuals

2016-03-11 Thread BB

Thank you for to care about and doing the work!

On 11.03.2016 14:12, Palmer Ralph wrote:
On Sat, Mar 5, 2016 at 4:11 AM, Urs Liska > wrote:




Am 05.03.2016 um 09:51 schrieb Blöchl Bernhard:
> I would recommend to add the options a user has to any item in the
> chapter (maybe in other chapters as well)
> 4.1.6 Other \paper variables
> in the actual example that would mean
>  print-page-number
> default is ##true. If set to false (##f), page numbers are not
> printed. Example of use:
>  print-page-number = ##f
>
> Is there any adress to send this as a recommendation to the manual
> editors? It is not a bug so I think the bug list is not the correct
> address?
>

I agree that the use of the words "true" and "false" in that
context is
suboptimal and will confuse users who are still struggling with
"false",
"#f" and "##f".
I'm not completely sure what the best resolution is.

The bug-lilypond list is the right address for such issues,
therefore I
CC to that list with a modified subject.

Urs


Thanks. This has been submitted as Issue #4792 : 
https://sourceforge.net/p/testlilyissues/issues/4792/

Ralph


___
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: Use "#f" instead of "false" in manuals (was: OT: pagenumber)

2016-03-11 Thread Palmer Ralph
On Sat, Mar 5, 2016 at 4:11 AM, Urs Liska  wrote:

>
>
> Am 05.03.2016 um 09:51 schrieb Blöchl Bernhard:
> > I would recommend to add the options a user has to any item in the
> > chapter (maybe in other chapters as well)
> > 4.1.6 Other \paper variables
> > in the actual example that would mean
> >  print-page-number
> > default is ##true. If set to false (##f), page numbers are not
> > printed. Example of use:
> >  print-page-number = ##f
> >
> > Is there any adress to send this as a recommendation to the manual
> > editors? It is not a bug so I think the bug list is not the correct
> > address?
> >
>
> I agree that the use of the words "true" and "false" in that context is
> suboptimal and will confuse users who are still struggling with "false",
> "#f" and "##f".
> I'm not completely sure what the best resolution is.
>
> The bug-lilypond list is the right address for such issues, therefore I
> CC to that list with a modified subject.
>
> Urs
>

Thanks. This has been submitted as Issue #4792 :
https://sourceforge.net/p/testlilyissues/issues/4792/
Ralph
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Variable slur thickness

2016-03-11 Thread Sharon Rosner
> I've managed to bypass using before-line-breaking AND after-line-breaking
> by assigning the function to the 'thickness property and having each grob
> internally calculate its own control points rather than relying on it
> being
> calculated elsewhere (also attached):

Works great! I improved it further by making it compatible with ties too:


#(define (variable-slur-thickness min-l max-l min-t max-t) (lambda (grob)
  (let* ((cpf (if (grob::has-interface grob 'tie-interface)
  ly:tie::calc-control-points
  ly:slur::calc-control-points))
 (cpt (cpf grob))
 (cp0 (car cpt)) (cp3 (cadddr cpt))
 (dx (- (car cp3) (car cp0)))
 (dy (- (cdr cp3) (cdr cp0)))
 (len (magnitude (make-rectangular dx dy)))
 (thickness
   (cond ((< len min-l) min-t)
 ((> len max-l) max-t)
 (else (+ min-t (* (- len min-l)
 (/ (- max-t min-t) (- max-l min-l
 
 thickness)))


> The only thing I'm (slightly) concerned with is
> the duplicate control-point calculation in this function and how it might
> affect compilation times if this were applied to a large orchestral score,
> for example.

A preliminary check with a 17-page score shows a pretty negligible effect on
compilation time, 0.6s (the total time is about 21s), or about 2.7%
additional compilation time. A small price to pay for more beauty!

Sharon



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Variable-slur-thickness-tp188374p188441.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: Variable slur thickness

2016-03-11 Thread tisimst
Thomas and Sharon,

On Fri, Mar 11, 2016 at 3:17 AM, Thomas Morley-2 [via Lilypond] <
ml-node+s1069038n188435...@n5.nabble.com> wrote:

> 2016-03-11 10:23 GMT+01:00 Sharon Rosner <[hidden email]
> >:
> >> This problem arose before.
> >> One needs to set 'thickness before-line-breaking, but then you don't
> >> have access to the control-points, as far as I remember.
> >> I'm not sure there is any way, have to think about it.
> >
> > Can you explain what’s going on?
>
> I can't, at least not yet (if at all). My regular job is calling, have to
> run.
> I'll try to look at it again in the evening.


I've managed to bypass using before-line-breaking AND after-line-breaking
by assigning the function to the 'thickness property and having each grob
internally calculate its own control points rather than relying on it being
calculated elsewhere (also attached):



\version "2.19.36"
#(define (variable-slur-thickness min-l max-l min-t max-t) (lambda (grob)
  (let* ((cpt (ly:slur::calc-control-points grob))
 (cp0 (car cpt)) (cp3 (cadddr cpt))
 (x0 (car cp0)) (y0 (cdr cp0))
 (x1 (car cp3)) (y1 (cdr cp3))
 (len (sqrt (+ (expt (- x1 x0)  2) (expt (- y1 y0)  2
 (thickness
   (if (<= len max-l)
 (if (< len min-l)
min-t
(+ min-t
  (* (- len min-l)
(/ (- max-t min-t) (- max-l min-l)
 max-t)))
 thickness)))

\score {
  \relative c' { \repeat unfold 12 { c1( d) c( d e) c( d e f) c( d e f g) }
}

  \layout {
\override Slur.thickness = #(variable-slur-thickness 3 10 1 12.7)
  }
}



This is certainly an extreme case to illustrate the effect, but it seems to
be working as designed. If we are all satisfied with the functionality,
I'll update the snippet. The only thing I'm (slightly) concerned with is
the duplicate control-point calculation in this function and how it might
affect compilation times if this were applied to a large orchestral score,
for example.

Best,
Abraham


variable-slur-thickness.ly (1K) 

variable-slur-thickness.pdf (44K) 





--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Variable-slur-thickness-tp188374p188437.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: How to join notes in markup?

2016-03-11 Thread tisimst
On Thu, Mar 10, 2016 at 3:00 PM, Thomas Morley-2 [via Lilypond] <
ml-node+s1069038n188412...@n5.nabble.com> wrote:

> 2016-03-10 20:40 GMT+01:00 tisimst <[hidden email]
> >:
>
> > Pierre,
> >
> > On Thu, Mar 10, 2016 at 12:35 PM, Schneidy [via Lilypond] <[hidden
> email]>
> > wrote:
> >>
> >> A tiny little question:
> >>
> >> \version "2.19.37"
> >>
> >> \markup {
> >>   Let's try something simple:
> >>   \note #"8" #UP + \note #"8" #UP =
> >>   \combine
> >> \combine
> >>   \note-by-number #2 #0 #UP
> >>
> >>   %\override #'(line-join-style . bevel) \path #.4 #'((moveto 1.18
> 3)
> >> (lineto 4.34 3)(closepath))
> >>   %% how about using 'beam instead ?
> >>   \translate #'(1.25 . 2.8)\beam #3 #0 #.5
> >>
> >> \concat {
> >>   \hspace #3
> >>   \note-by-number #2 #0 #UP
> >> }
> >>   . Yikes! Not so easy by hand.
> >> }
> >
> >
> > I get what you're saying. The point though is that you're going to need
> to
> > do some kind of manual placement of lines/beams/dots/numbers/whatever
> (i.e.,
> > via \translate #'(...), etc.) for each part of the music. That's the
> beauty
> > of that function, since it takes care of all that automatically! That's
> all
> > the example was meant to show. (I didn't create the "before" part of the
> > example, btw. Not that it matters.)
>
> You want to show the advantage of your approach compared with the
> _best_ what LilyPond could do before not compared to some worse
> coding.
> Hence, I'd change the "before" to using \beam.


That's fair. The change has been applied (thanks, Pierre!). I also tweaked
the verbiage of the description (though further suggestions for improvement
are welcome).

Thanks,
Abraham




--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/How-to-join-notes-in-markup-tp187711p188436.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: Variable slur thickness

2016-03-11 Thread Thomas Morley
2016-03-11 10:23 GMT+01:00 Sharon Rosner :
>> This problem arose before.
>> One needs to set 'thickness before-line-breaking, but then you don't
>> have access to the control-points, as far as I remember.
>> I'm not sure there is any way, have to think about it.
>
> Can you explain what’s going on?

I can't, at least not yet (if at all). My regular job is calling, have to run.
I'll try to look at it again in the evening.

Cheers,
  Harm

> As far as I could tell from debugging the callback gets called for all slurs, 
> but for some reason beginning on the second line the call to 
> ly:grob-set-property! takes effect *only* for slurs that are broken.
>
> Is this behaviour intentional or is it a bug?
>
> Sharon

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


Re: OT: Help needed to package cross-platform python application

2016-03-11 Thread tisimst
Thanks, everyone! I think I got it all sorted out.

Best,
Abraham

On Friday, March 11, 2016, Federico Bruni-2 [via Lilypond] <
ml-node+s1069038n18842...@n5.nabble.com> wrote:

> Il giorno ven 11 mar 2016 alle 9:22, Federico Bruni
> <[hidden email] >
> ha scritto:
>
> > Il giorno mer 9 mar 2016 alle 23:46, Abraham Lee
> > <[hidden email] >
> ha scritto:
> >> I have developed a couple of python PDF utilities that make certain
> >> batch processing operations a little easier. I'd like to make some
> >> binary files of the utilities so that users can just download and
> >> use them without needing to worry about setting up a python
> >> installation on their machines, but I don't have access to a Mac,
> >> just Linux and Windows. Any thoughts/recommendations are welcome.
> >
> > I found this:
> > https://wiki.python.org/moin/MacPython/py2app
> >
>
> No, you must have Mac Os X to use it:
> https://bitbucket.org/ronaldoussoren/py2app
>
> "NOTE: py2app must be used on OSX to build applications, it cannot
> create Mac applications on other platforms."
>
>
>
>
> ___
> 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/OT-Help-needed-to-package-cross-platform-python-application-tp188364p188429.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/OT-Help-needed-to-package-cross-platform-python-application-tp188364p188434.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: Variable slur thickness

2016-03-11 Thread Sharon Rosner
> This problem arose before.
> One needs to set 'thickness before-line-breaking, but then you don't
> have access to the control-points, as far as I remember.
> I'm not sure there is any way, have to think about it.

Can you explain what’s going on? As far as I could tell from debugging the 
callback gets called for all slurs, but for some reason beginning on the second 
line the call to ly:grob-set-property! takes effect *only* for slurs that are 
broken.

Is this behaviour intentional or is it a bug?

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


Re: Variable slur thickness

2016-03-11 Thread Thomas Morley
2016-03-11 10:01 GMT+01:00 Sharon Rosner :
>> Thus again: how should it look, in cases where a broken slur has a
>> (very) long and a (very) short part?
>> Some average-thickness? Or something else?
>
> The problem is not with the broken slurs, but rather with the other slurs
> beginning on the second line. Look at the slurs on bars 15-16, 17-19, 20-23
> etc.
>
> Thanks
> Sharon


Ah, ok, got it.
This problem arose before.
One needs to set 'thickness before-line-breaking, but then you don't
have access to the control-points, as far as I remember.
I'm not sure there is any way, have to think about it.

Cheers,
  Harm

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


Re: Variable slur thickness

2016-03-11 Thread Sharon Rosner
> Thus again: how should it look, in cases where a broken slur has a
> (very) long and a (very) short part?
> Some average-thickness? Or something else?

The problem is not with the broken slurs, but rather with the other slurs
beginning on the second line. Look at the slurs on bars 15-16, 17-19, 20-23
etc.

Thanks
Sharon



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Variable-slur-thickness-tp188374p188431.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: Variable slur thickness

2016-03-11 Thread Thomas Morley
2016-03-11 1:18 GMT+01:00 Sharon Rosner :
>> How should it look in situations like below?
>>
>> \score {
>> { c'1( \break d') \repeat unfold 12 { d' \noBreak } c'( \break c' d' c' d') }
>> \layout {
>>   \override Slur.after-line-breaking = #(variable-slur-thickness 3 10 1.4 
>> 12.7)
>> }
>> }
>
>
> I created something similar to show the problem. Looks to me like this has to 
> do with broken spanners but it’s really bizarre. See the enclosed files.
>
> Thanks
> Sharon
>

It's not bizarre, just how the current coding for
variable-slur-thickness works. In case of broken slurs, each part is
affected separately.
Thus again: how should it look, in cases where a broken slur has a
(very) long and a (very) short part?
Some average-thickness? Or something else?

Cheers,
  Harm

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


Re: OT: Help needed to package cross-platform python application

2016-03-11 Thread Federico Bruni
Il giorno ven 11 mar 2016 alle 9:22, Federico Bruni 
 ha scritto:
Il giorno mer 9 mar 2016 alle 23:46, Abraham Lee 
 ha scritto:
I have developed a couple of python PDF utilities that make certain 
batch processing operations a little easier. I'd like to make some 
binary files of the utilities so that users can just download and 
use them without needing to worry about setting up a python 
installation on their machines, but I don't have access to a Mac, 
just Linux and Windows. Any thoughts/recommendations are welcome.


I found this:
https://wiki.python.org/moin/MacPython/py2app



No, you must have Mac Os X to use it:
https://bitbucket.org/ronaldoussoren/py2app

"NOTE: py2app must be used on OSX to build applications, it cannot 
create Mac applications on other platforms."





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


Re: OT: Help needed to package cross-platform python application

2016-03-11 Thread Federico Bruni
Il giorno mer 9 mar 2016 alle 23:46, Abraham Lee 
 ha scritto:
I have developed a couple of python PDF utilities that make certain 
batch processing operations a little easier. I'd like to make some 
binary files of the utilities so that users can just download and use 
them without needing to worry about setting up a python installation 
on their machines, but I don't have access to a Mac, just Linux and 
Windows. Any thoughts/recommendations are welcome.


I found this:
https://wiki.python.org/moin/MacPython/py2app




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


Re: OT: Help needed to package cross-platform python application

2016-03-11 Thread Blöchl Bernhard

My mistake. :( Sorry. Thanks! :-)

Am 11.03.2016 08:38, schrieb Marc Hohl:

Am 11.03.2016 um 08:12 schrieb Blöchl Bernhard:
OT? Indeed! Another blog highchecking attack. Why not stay in the 
python

blog?


s/highchecking/hijacking/ ;-)


___
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