DynamicLineSpanner.staff-padding in temporary polyphony

2018-04-03 Thread Flaming Hakama by Elaine
>
> I am not top posting



HI.

Please let me know if you can answer this question.

I am using temporary voices to set horizontal dynamic spacing.  Which works
fine.
But the side effect is that the dynamics in the second voice don't
obey DynamicLineSpanner.staff-padding

How can I get the dynamics on the second voice to obey the staff padding?

\version "2.19.15"

\new Staff {
\override DynamicLineSpanner.staff-padding = #3.0
\relative c' {
 f1\p
 <<
 \relative c' { f1 } \\

 %  How do I get this voice to obey the DynamicLineSpanner.staff-padding
?
 { s1\p }
 >>
}
}


(The actual version I'm running is 2.19.81)


Thanks,

David Elaine Alt
415 . 341 .4954   "*Confusion is
highly underrated*"
ela...@flaminghakama.com
skype: flaming_hakama
Producer ~ Composer ~ Instrumentalist
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Custom drum noteHead in define expression

2018-04-03 Thread Karim Haddad
Dear Thomas,

Thank you a lot. It is exactly what i was looking for and apparently no need 
for adjustment in your example. All fits well.
However will try to learn how to fix the notehead position in the case i will 
use other glyphs.

Thank you a lot

Best
K

On Wed, Apr 04, 2018 at 02:39:58AM +0200, Thomas Morley wrote:
> 2018-04-03 18:25 GMT+02:00 Karim Haddad :
> 
> > And thanx also for your snippet. I have already tried it and works 
> > marvelously.
> > But concerning customizing new note heads i think checking the code itself 
> > seems necessary.
> > Do you know if define-grobs.scm is a good place to start with ?
> 
> Well, some scheme-knowledge is needed.
> There is a scheme-tutorial in the docs. Several guile tutorials out
> there, as well as the guile manual.
> Best general training is reading this list, though, trying to
> understand the requests and trying to solve them.
> If you read someones code, try to understand what happens and why, can
> it be improved and ...
> 
> The Extending Manual is not bad as well.
> I remember as a starter I did several exercises, defining several
> custom-markup-command, markup-list-commands, substitution functions
> etc etc
> Homework, like a decade ago, but I'm still learning ;)
> 
> If you try to solve an own problem searching the archives is always a
> good starting point.
> 
> 
> 
> On topic.
> There's something annoying happening while using custom-styles. I just
> wrote a bug-report about it:
> http://lilypond.1069038.n5.nabble.com/custom-style-custom-stencil-combination-returns-warning-tt211374.html
> 
> So with the workaround, in the bug-report as well you could do:
> 
> \version "2.19.81"
> 
> #(define mydrums '(
>  (bassdrummyStyle   #f   -1)
>  (snare   myStyleII   #f   0)
>  (hihat   cross #f   1)
>  (halfopenhihat   cross "halfopen"   1)
>  (pedalhihat  xcircle   "stopped"2)
>  (lowtom  diamond   #f   3)))
> 
> #(define stencil-for-my-style
>   (lambda (grob)
> (cond
>   ((eq? 'myStyle (ly:grob-property grob 'style))
> (begin
>   (ly:grob-set-property! grob 'style '())
>   (grob-interpret-markup grob
> #{
>   \markup \vcenter \musicglyph #"pedal.*"
> #})))
>   ((eq? 'myStyleII (ly:grob-property grob 'style))
> (begin
>   (ly:grob-set-property! grob 'style '())
>   (grob-interpret-markup grob
> #{
> %% from http://lsr.di.unimi.it/LSR/Item?id=515
> %% slightly changed
>\markup \vcenter \scale #'(0.4 . 0.4) {
>\combine
>  \translate #(cons -1.25 0) \combine
>\draw-circle #0.65 #0 ##t
>\override #'(thickness . 2.5) \draw-line #'(3 . -3)
>  \translate #(cons 1.25 0) \combine
>\draw-circle #0.65 #0 ##t
>\override #'(thickness . 2.5) \draw-line #'(-3 . -3)
>  }
> #})))
>   (else (ly:note-head::print grob)
> 
> \new DrumStaff
>   \with {
> drumStyleTable = #(alist->hash-table mydrums)
> \override NoteHead.stencil = #stencil-for-my-style
>   }
>   \drummode {
> bd8
> sn
> hh
> hhho
> hhp
> toml
>   }
> 
> You may want to adjust stem-attachment.
> I leave it as an exercise ;)
> 
> 
> HTH,
>   Harm

-- 
Karim Haddad


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


[INSPIRATIONAL] Transposing switch on toplevel

2018-04-03 Thread Simon Albrecht

Hello everybody,

personally I increasingly feel like I kind of need these inspirational 
posts about the power of LilyPond, so here’s one of my own: I love how 
with the attached library file [ly-utility.ily], \include-d in 
[standard-include.ily], I can just add the following short lines at the 
top of my input file:



\include "standard-include.ily"

transposer = \transpose es as \etc
\addToplevelMusicFunctions transposer


and all the subsequent music will be transposed without the need to 
insert anything into any \score {}.


Best,
Simon

PS: Anticipating the question: I think \addToplevelMusicFunctions is in 
this form or another a candidate for openlilylib, if not even for the 
main code base.


\version "2.19.53"

musicFunctionDummy = #(define-music-function (mus) (ly:music?) mus)

addToplevelMusicFunctions =
#(define-scheme-function (names) (symbol-list-or-symbol?)
   (let* ((name-list (if (list? names) names (list names)))
  (lookup-function (lambda (name) (let ((fn (ly:parser-lookup name)))
(if (equal? fn '())
musicFunctionDummy
fn
  (fn-list (map lookup-function name-list)))
 (set! toplevel-music-functions (append fn-list toplevel-music-functions___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Custom drum noteHead in define expression

2018-04-03 Thread Thomas Morley
2018-04-03 18:25 GMT+02:00 Karim Haddad :

> And thanx also for your snippet. I have already tried it and works 
> marvelously.
> But concerning customizing new note heads i think checking the code itself 
> seems necessary.
> Do you know if define-grobs.scm is a good place to start with ?

Well, some scheme-knowledge is needed.
There is a scheme-tutorial in the docs. Several guile tutorials out
there, as well as the guile manual.
Best general training is reading this list, though, trying to
understand the requests and trying to solve them.
If you read someones code, try to understand what happens and why, can
it be improved and ...

The Extending Manual is not bad as well.
I remember as a starter I did several exercises, defining several
custom-markup-command, markup-list-commands, substitution functions
etc etc
Homework, like a decade ago, but I'm still learning ;)

If you try to solve an own problem searching the archives is always a
good starting point.



On topic.
There's something annoying happening while using custom-styles. I just
wrote a bug-report about it:
http://lilypond.1069038.n5.nabble.com/custom-style-custom-stencil-combination-returns-warning-tt211374.html

So with the workaround, in the bug-report as well you could do:

\version "2.19.81"

#(define mydrums '(
 (bassdrummyStyle   #f   -1)
 (snare   myStyleII   #f   0)
 (hihat   cross #f   1)
 (halfopenhihat   cross "halfopen"   1)
 (pedalhihat  xcircle   "stopped"2)
 (lowtom  diamond   #f   3)))

#(define stencil-for-my-style
  (lambda (grob)
(cond
  ((eq? 'myStyle (ly:grob-property grob 'style))
(begin
  (ly:grob-set-property! grob 'style '())
  (grob-interpret-markup grob
#{
  \markup \vcenter \musicglyph #"pedal.*"
#})))
  ((eq? 'myStyleII (ly:grob-property grob 'style))
(begin
  (ly:grob-set-property! grob 'style '())
  (grob-interpret-markup grob
#{
%% from http://lsr.di.unimi.it/LSR/Item?id=515
%% slightly changed
   \markup \vcenter \scale #'(0.4 . 0.4) {
   \combine
 \translate #(cons -1.25 0) \combine
   \draw-circle #0.65 #0 ##t
   \override #'(thickness . 2.5) \draw-line #'(3 . -3)
 \translate #(cons 1.25 0) \combine
   \draw-circle #0.65 #0 ##t
   \override #'(thickness . 2.5) \draw-line #'(-3 . -3)
 }
#})))
  (else (ly:note-head::print grob)

\new DrumStaff
  \with {
drumStyleTable = #(alist->hash-table mydrums)
\override NoteHead.stencil = #stencil-for-my-style
  }
  \drummode {
bd8
sn
hh
hhho
hhp
toml
  }

You may want to adjust stem-attachment.
I leave it as an exercise ;)


HTH,
  Harm

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


Re: Get default value for grob properties

2018-04-03 Thread Thomas Morley
2018-04-03 14:39 GMT+02:00 Noeck :
> Hi Kieren,
>
> thanks for pointing me to this long and interesting discussion.
> The code¹ worked pretty well for some grobs:
>   Staff.BarLine
> (hair-thickness is 1.9)
> but did not yield anything for
>   Staff.StaffSymbol or Staff.LedgerLineSpanner
>
> I am currently trying to export to SVG and measure the dimensions in
> Inkscape. Not very comfortable but it works.
>
> Cheers,
> Joram



Hi,

Staff.StaffSymbol.thickness is the thickness of the lines from which
the StaffSymbol is build.
Per default it's line-thickness from grob-layout multiplied with the
grob-thickness, defaulting  to 1, if unset.
Though, line-thickness from grob-layout is calculated as well, it's
not the same as line-thickness from \paper.

Easiest would be to use ly:staff-symbol-line-thickness.
(If nothing else helps have a look in the stencil-expression)

For further inside read and compile below.

For finding thickness of ledgers I'd go for StaffSymbol.ledger-line-thickness.
Both values you get, have impact, but I didn't followed them, take it
as an exercise ;)

At least it should be clear why it's not that easy like reading a
simple grob-property...

HTH a bit,
  Harm

#(define (get-actual-thickness grob)
  (let* ((grob-layout (ly:grob-layout grob))
 (line-thick (ly:output-def-lookup grob-layout 'line-thickness))
 (output-scale (ly:output-def-lookup grob-layout 'output-scale))
 (thick (ly:grob-property grob 'thickness 1))
 (paper-line-thickness
   (ly:output-def-lookup $defaultpaper 'line-thickness))
 (paper-output-scale
   (ly:output-def-lookup $defaultpaper 'output-scale)))
(format #t "\n~y"
  (list
;(cons 'paper-line-thickness: paper-line-thickness)
;(cons 'paper-output-scale: paper-output-scale)
;;; same as
;;(cons 'grob-layout-output-scale output-scale)
;(cons 'devide-them::result: (/ paper-line-thickness
paper-output-scale))
(cons 'grob-layout-line-thickness: line-thick)
;(cons 'grob-thickness thick)
;(cons '(* grob-thickness line-thickness) (* thick line-thick))
;(cons '(* (/ 0.3 output-scale) thick) (* (/ 0.3 output-scale) thick))
;; grob-line-thickness from stencil-expression
(cadr (last (cadr (ly:stencil-expr (ly:grob-property grob 'stencil)
;; grob-line-thickness from `ly:staff-symbol-line-thickness'
(ly:staff-symbol-line-thickness grob)



mus = {
  \override Staff.StaffSymbol.after-line-breaking =
  #get-actual-thickness
  R1
}


%% Per default `line-thickness' and `output-scale' from \paper are used to
%% get the default `line-thickness' of the grob-layout:
%%   (/ paper-line-thickness paper-output-scale))
%%   ->  0.1
%\score {
%  \mus
%}

%% If you provide your own `line-thickness' then this value is taken:
%%   (/ (provided value: 0.3) paper-output-scale)
%%   ->  0.170716535433071,
\score {
  \mus
  \layout {
line-thickness = 0.3
  }
}
%%
%% If you provide an own grob-thickness-value, then this value gets multiplied
%% with `line-thickness' of the grob-layout.
%%   (* grob-thickness line-thickness)
%%   -> 0.2
\score {
  \mus
  \layout {
\override Staff.StaffSymbol.thickness = 2
  }
}

%% If you provide both, grob-thickness and layout-line-thickness then it's:
%%   (* (/ 0.3 output-scale) grob-thickness)
%%  -> 0.341433070866142
\score {
  \mus
  \layout {
\override Staff.StaffSymbol.thickness = 2
line-thickness = 0.3
  }
}

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


Re: Page numbers with "Page"

2018-04-03 Thread Auke


On 3-4-2018 21:20, bobr...@centrum.is wrote:

\book {
   \paper {
 print-page-number = ##t
 print-first-page-number = ##t
 oddHeaderMarkup = \markup \null
 evenHeaderMarkup = \markup \null
 oddFooterMarkup = \markup {
   \fill-line {
 \on-the-fly \print-page-number-check-first
 \fromproperty #'page:page-number-string
   }
 }
 evenFooterMarkup = \oddFooterMarkup
   }
   \score {
 \new Staff { s1 \break s1 \break s1 }
   }
}


Try:
 \concat{"Page " \fromproperty #'page:page-number-string }

instead of

     \fromproperty #'page:page-number-string

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


Re: Problem with a font

2018-04-03 Thread Thomas Morley
2018-04-03 18:31 GMT+02:00 Walter Garcia-Fontes :

> I get an error in your code for "slanting" the font:
>
> Parsing...letras.ly:18:5:
> In expression (ly:stencil-outline (ly:stencil-scale # # ...) stencil):
> letras.ly:18:5: Unbound variable: ly:stencil-outline

Ah yes, it's not available in 2.18., which I suppose you're using.

Cheers,
  Harm

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


Re: Upline articulation

2018-04-03 Thread Thomas Morley
2018-04-02 3:17 GMT+02:00 Andrew Bernard :
> Hi Malte and Thomas,
>
> This is all really great and appreciated.
>
> But where are these functions located, or, dare I ask, documented?
>
> Andrew

Hi Andrew,

The Extending Manual 2.5 "Markup functions" is not that bad in
explaining what happens.

The `what-ever-name-markup' procedures themselves are not documented
or listed otherwise.
You may read most of them (but not all) compiling:

#(pretty-print
  (sort
(map
  car
  (filter
(lambda (x) (markup-command-signature (cdr x)))
(ly:module->alist (resolve-module '(lily)
symbolhttps://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Page numbers with "Page"

2018-04-03 Thread bobr...@centrum.is
Thank you for the solution.  It works fine.  No, I did not have "page" in my 
example.  I had tried a few things and didn't think it would help to have my 
failures muddying things up.

- Original Message -
> From: "Brian Barker" 
> To: "lilypond-user" 
> Cc: "bobroff" 
> Sent: Tuesday, April 3, 2018 8:41:48 PM
> Subject: Re: Page numbers with "Page"

> At 19:20 03/04/2018 +, David Bobroff wrote:
>>I want to put page numbers centered at the bottom of each page with
>>the word "Page" before the number. I found this code in the docs
>>which gets me halfway there but I don't know what to do to add
>>"Page" before each number. The closest I've managed to come to a
>>solution results in "Page" being in the lower left corner with the
>>page number in the lower right corner.
>>
>>-David
>>
>>\version "2.18.2"
>>
>>\book {
>>   \paper {
>> print-page-number = ##t
>> print-first-page-number = ##t
>> oddHeaderMarkup = \markup \null
>> evenHeaderMarkup = \markup \null
>> oddFooterMarkup = \markup {
>>   \fill-line {
>> \on-the-fly \print-page-number-check-first
>> \fromproperty #'page:page-number-string
>>   }
>> }
>> evenFooterMarkup = \oddFooterMarkup
>>   }
>>   \score {
>> \new Staff { s1 \break s1 \break s1 }
>>   }
>>}
> 
> But there is no "Page" at all there!
> 
> Perhaps:
> 
> oddFooterMarkup = \markup {
>   \fill-line {
> \line {
>   "Page "
>   \on-the-fly \print-page-number-check-first
>   \fromproperty #'page:page-number-string
> }
>   }
> }
> 
> Brian Barker

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


Re: Page numbers with "Page"

2018-04-03 Thread bobr...@centrum.is
That solution works, too.  Thank you!

- Original Message -
> From: "Auke" 
> To: "lilypond-user" , "bobroff" 
> Sent: Tuesday, April 3, 2018 9:13:30 PM
> Subject: Re: Page numbers with "Page"

> On 3-4-2018 21:20, bobr...@centrum.is wrote:
>> \book {
>>\paper {
>>  print-page-number = ##t
>>  print-first-page-number = ##t
>>  oddHeaderMarkup = \markup \null
>>  evenHeaderMarkup = \markup \null
>>  oddFooterMarkup = \markup {
>>\fill-line {
>>  \on-the-fly \print-page-number-check-first
>>  \fromproperty #'page:page-number-string
>>}
>>  }
>>  evenFooterMarkup = \oddFooterMarkup
>>}
>>\score {
>>  \new Staff { s1 \break s1 \break s1 }
>>}
>> }
> 
> Try:
>  \concat{"Page " \fromproperty #'page:page-number-string }
> 
> instead of
> 
>       \fromproperty #'page:page-number-string

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


Re: Page numbers with "Page"

2018-04-03 Thread Brian Barker

At 19:20 03/04/2018 +, David Bobroff wrote:
I want to put page numbers centered at the bottom of each page with 
the word "Page" before the number. I found this code in the docs 
which gets me halfway there but I don't know what to do to add 
"Page" before each number. The closest I've managed to come to a 
solution results in "Page" being in the lower left corner with the 
page number in the lower right corner.


-David

\version "2.18.2"

\book {
  \paper {
print-page-number = ##t
print-first-page-number = ##t
oddHeaderMarkup = \markup \null
evenHeaderMarkup = \markup \null
oddFooterMarkup = \markup {
  \fill-line {
\on-the-fly \print-page-number-check-first
\fromproperty #'page:page-number-string
  }
}
evenFooterMarkup = \oddFooterMarkup
  }
  \score {
\new Staff { s1 \break s1 \break s1 }
  }
}


But there is no "Page" at all there!

Perhaps:

oddFooterMarkup = \markup {
  \fill-line {
\line {
  "Page "
  \on-the-fly \print-page-number-check-first
  \fromproperty #'page:page-number-string
}
  }
}

Brian Barker 



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


Page numbers with "Page"

2018-04-03 Thread bobr...@centrum.is
I want to put page numbers centered at the bottom of each page with the word 
"Page" before the number.  I found this code in the docs which gets me halfway 
there but I don't know what to do to add "Page" before each number.  The 
closest I've managed to come to a solution results in "Page" being in the lower 
left corner with the page number in the lower right corner.

-David

\version "2.18.2"

\book {
  \paper {
print-page-number = ##t
print-first-page-number = ##t
oddHeaderMarkup = \markup \null
evenHeaderMarkup = \markup \null
oddFooterMarkup = \markup {
  \fill-line { 
\on-the-fly \print-page-number-check-first 
\fromproperty #'page:page-number-string 
  }
}
evenFooterMarkup = \oddFooterMarkup
  }
  \score {
\new Staff { s1 \break s1 \break s1 }
  }
}

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


Re: Problem with a font

2018-04-03 Thread Flaming Hakama by Elaine
> Subject: Re: Problem with a font
> 2018-04-03 17:30 GMT+02:00 Walter Garcia-Fontes :
>


> > Just a question, sorry if it is obvious, what do you mean by
> > "typographic apostrophes/quotation marks"?
> >
> > --
> > Walter Garcia-Fontes
> > L'Hospitalet de Llobregat
>
>
>
> Probably:  ‘ or ’
>
>
Which is to say, typographic quotes are paired, with different symbols for
the start and end quote.  (Or at least, different orientations of the same
symbol.)


David Elaine Alt
415 . 341 .4954   "*Confusion is
highly underrated*"
ela...@flaminghakama.com
skype: flaming_hakama
Producer ~ Composer ~ Instrumentalist
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Problem with a font

2018-04-03 Thread Walter Garcia-Fontes
* Thomas Morley, thomasmorle...@gmail.com [03/04/18 17:40]:
> > Just a question, sorry if it is obvious, what do you mean by
> > "typographic apostrophes/quotation marks"?
> >
> 
> 
> 
> Probably:  ‘ or ’
> 
> As for italic you may try Torsten's markup-command `slanted' from:
> http://lilypond.1069038.n5.nabble.com/How-to-prevent-ly-stencil-rotate-to-modify-dimensions-tt210800.html
> 
> Leading to:
> 
> #(define-markup-command
>   (slanted layout props arg)
>   (markup?)
>   #:category font
>   #:properties ((slant-angle 12))
>   "Fake a slanted font"
>   (let* ((alpha-rad (* 0.5 (acos (tan (* (/ PI -180) slant-angle)
>   (alpha-deg (* (/ 180 PI) alpha-rad))
>   (stencil
> (if (markup? arg)
> (interpret-markup layout props arg)
> empty-stencil)))
> 
> (ly:stencil-outline
>   (ly:stencil-scale
> (ly:stencil-rotate
>   (ly:stencil-scale
> (ly:stencil-rotate
>   (ly:stencil-outline stencil point-stencil)
>   45 0 0)
>1
>(* (tan alpha-rad)))
>  (* (- alpha-deg)) 0 0)
>(* (sqrt 2) (cos alpha-rad)) (/ 0.5 (sqrt 0.5) (sin alpha-rad)))
>  stencil)))
> 
> \markup
>   \override #'(font-name . "Escolar2")
>   \line {
>   problem‘s’s
> \override #'(slant-angle . 18)
> \slanted
> { problem‘s’s }
>   }
> 

Awesome! Thanks a lot. 

I get an error in your code for "slanting" the font:

Parsing...letras.ly:18:5:
In expression (ly:stencil-outline (ly:stencil-scale # # ...) stencil):
letras.ly:18:5: Unbound variable: ly:stencil-outline 

-- 
Walter Garcia-Fontes
L'Hospitalet de Llobregat


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


Re: Custom drum noteHead in define expression

2018-04-03 Thread Karim Haddad
Thanx Thomas,


And thanx also for your snippet. I have already tried it and works marvelously.
But concerning customizing new note heads i think checking the code itself 
seems necessary.
Do you know if define-grobs.scm is a good place to start with ?


Thx again
K

On Tue, Apr 03, 2018 at 03:26:55PM +0200, Thomas Morley wrote:
> 2018-04-03 2:25 GMT+02:00 Karim Haddad :
> > Hi,
> >
> >
> > Just trying to figure out if this is possible :
> >
> > When defining  a drum instrument with this expression:
> >
> >
> > #(define mydrums '(
> >  (bassdrumdefault   #f   -1)
> >  (snare   default   #f   0)
> >  (hihat   cross #f   1)
> >  (halfopenhihat   cross "halfopen"   1)
> >  (pedalhihat  xcircle   "stopped"2)
> >  (lowtom  diamond   #f   3)))
> >
> > Is there a way to define a very custom notehead in the 2nd argumrnt of the 
> > list such as any other glyph not being a notehead, like per example a pedal 
> > glyph (pedal.*)
> > or any other glyph or even eps ?
> >
> > I have searched (maybe not too thouroughly) trying to figure this out. Any 
> > help or idea will be just great. this will prevent me to use an override 
> > NoteHead.stencil tweak for every note.
> >
> > Best
> >
> > --
> > Karim Haddad
> 
> Hi,
> 
> in
> http://lsr.di.unimi.it/LSR/Item?id=1033
> I tried to explain thoroughly how to customize drums-appearance.
> Probably some general help...
> 
> It should be clear then that the list-argument in question is a 
> note-head-style.
> Ofcourse only estabished styles will work.
> 
> Not sure if it might possible to define a custom style and let the
> stencil-procedure rely on it.
> (And not the time yet to try.)
> 
> 
> Cheers,
>   Harm

-- 
Karim Haddad



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


Re: Problem with a font

2018-04-03 Thread Malte Meyn



Am 03.04.2018 um 17:30 schrieb Walter Garcia-Fontes:

* Abraham Lee, tisimst.lilyp...@gmail.com [03/04/18 17:23]:

Hi, Walter!
I took at a look at the internals of the font and you're not seeing
anything unintended (unfortunately). The single ASCII apostrophe is set
abnormally low compared to most any other font out there, which is why it
looks vertically offset by LilyPond. In LibreOffice and other
word-processors, when the user hits the button on the keyboard for the
ASCII apostrophe (same goes for quotation marks), the ASCII character gets
replaced by the true (curly) typographic apostrophe, which is set in the
more appropriate vertical position. Could be just an oversight or it could
be intentional. I'm not sure, but from what I am seeing, it's a "feature"
of the font and nothing that LilyPond is doing wrong. The obvious
alternative is to use typographic aposotrophes/quotation marks in your
source file and the problem should go away, appearing just like in
LibreOffice.


Thanks a lot!, that's very clear.

Just a question, sorry if it is obvious, what do you mean by
"typographic apostrophes/quotation marks"?



ASCII: He said "I'd call it 'clear'."
That’s the forms used on typewriters which were included in the ASCII 
standard and found on most keyboards.


typographic: He said “I’d call it ‘clear’.”
That’s the forms used in books which are not part of ASCII but of 
Unicode and cannot be input on many keyboards; therefore some programs 
like Microsoft Office and OpenOffice/LibreOffice replace the ASCII forms 
by these.


Different languages use different typographic forms:

German style: Er sagte „Ich würd’s ‚klar‘ nennen.“
German style in some books: Er sagte »Ich würd’s ›klar‹ nennen.«

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


Re: Problem with a font

2018-04-03 Thread Thomas Morley
2018-04-03 17:30 GMT+02:00 Walter Garcia-Fontes :
> * Abraham Lee, tisimst.lilyp...@gmail.com [03/04/18 17:23]:
>> Hi, Walter!
>> I took at a look at the internals of the font and you're not seeing
>> anything unintended (unfortunately). The single ASCII apostrophe is set
>> abnormally low compared to most any other font out there, which is why it
>> looks vertically offset by LilyPond. In LibreOffice and other
>> word-processors, when the user hits the button on the keyboard for the
>> ASCII apostrophe (same goes for quotation marks), the ASCII character gets
>> replaced by the true (curly) typographic apostrophe, which is set in the
>> more appropriate vertical position. Could be just an oversight or it could
>> be intentional. I'm not sure, but from what I am seeing, it's a "feature"
>> of the font and nothing that LilyPond is doing wrong. The obvious
>> alternative is to use typographic aposotrophes/quotation marks in your
>> source file and the problem should go away, appearing just like in
>> LibreOffice.
>
> Thanks a lot!, that's very clear.
>
> Just a question, sorry if it is obvious, what do you mean by
> "typographic apostrophes/quotation marks"?
>
> --
> Walter Garcia-Fontes
> L'Hospitalet de Llobregat



Probably:  ‘ or ’

As for italic you may try Torsten's markup-command `slanted' from:
http://lilypond.1069038.n5.nabble.com/How-to-prevent-ly-stencil-rotate-to-modify-dimensions-tt210800.html

Leading to:

#(define-markup-command
  (slanted layout props arg)
  (markup?)
  #:category font
  #:properties ((slant-angle 12))
  "Fake a slanted font"
  (let* ((alpha-rad (* 0.5 (acos (tan (* (/ PI -180) slant-angle)
  (alpha-deg (* (/ 180 PI) alpha-rad))
  (stencil
(if (markup? arg)
(interpret-markup layout props arg)
empty-stencil)))

(ly:stencil-outline
  (ly:stencil-scale
(ly:stencil-rotate
  (ly:stencil-scale
(ly:stencil-rotate
  (ly:stencil-outline stencil point-stencil)
  45 0 0)
   1
   (* (tan alpha-rad)))
 (* (- alpha-deg)) 0 0)
   (* (sqrt 2) (cos alpha-rad)) (/ 0.5 (sqrt 0.5) (sin alpha-rad)))
 stencil)))

\markup
  \override #'(font-name . "Escolar2")
  \line {
  problem‘s’s
\override #'(slant-angle . 18)
\slanted
{ problem‘s’s }
  }



Cheers,
  Harm

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


Re: Problem with a font

2018-04-03 Thread Walter Garcia-Fontes
* Abraham Lee, tisimst.lilyp...@gmail.com [03/04/18 17:23]:
> Hi, Walter!
> I took at a look at the internals of the font and you're not seeing
> anything unintended (unfortunately). The single ASCII apostrophe is set
> abnormally low compared to most any other font out there, which is why it
> looks vertically offset by LilyPond. In LibreOffice and other
> word-processors, when the user hits the button on the keyboard for the
> ASCII apostrophe (same goes for quotation marks), the ASCII character gets
> replaced by the true (curly) typographic apostrophe, which is set in the
> more appropriate vertical position. Could be just an oversight or it could
> be intentional. I'm not sure, but from what I am seeing, it's a "feature"
> of the font and nothing that LilyPond is doing wrong. The obvious
> alternative is to use typographic aposotrophes/quotation marks in your
> source file and the problem should go away, appearing just like in
> LibreOffice.

Thanks a lot!, that's very clear.

Just a question, sorry if it is obvious, what do you mean by
"typographic apostrophes/quotation marks"? 

-- 
Walter Garcia-Fontes
L'Hospitalet de Llobregat

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


Re: Problem with a font

2018-04-03 Thread Abraham Lee
Hi, Walter!

On Tue, Apr 3, 2018 at 8:55 AM, Walter Garcia-Fontes 
wrote:

> * Thomas Morley, thomasmorle...@gmail.com [03/04/18 16:50]:
> > Thanks, works now, although it was a little more difficult to install
> > than usual, for unknown reason.
> > I'm not an expert for fonts, so all I say here is by hearsay or simply
> guessing.
> >
> > That said, regarding the images you provided the printed '-sign is not
> > the same in LilyPond and in LibreOffice.
> > I seem to remember somebody explained that text-typesetting programs
> > sometimes use a similiar font if a sign is not available.
> >
> > Similar for bold, italic, bold-italic: if the font doesn't contain
> > them the program scales it.
> >
> > In LibreOffice doing bold and font-size 60 prints ugly as well with
> Escolar2.
> >
> > So I think the font itself is buggy.
>
> Yes, that is what I'm also suspecting, but in any case in LibreOffice
> the font gives less problems than in Lilypond. Most likely LO has more
> features to deal with this type of fonts, being a word-processing
> package.
>
> Too bad I can't convince my costumer to use something else, let's see
> what I can do.
>

I took at a look at the internals of the font and you're not seeing
anything unintended (unfortunately). The single ASCII apostrophe is set
abnormally low compared to most any other font out there, which is why it
looks vertically offset by LilyPond. In LibreOffice and other
word-processors, when the user hits the button on the keyboard for the
ASCII apostrophe (same goes for quotation marks), the ASCII character gets
replaced by the true (curly) typographic apostrophe, which is set in the
more appropriate vertical position. Could be just an oversight or it could
be intentional. I'm not sure, but from what I am seeing, it's a "feature"
of the font and nothing that LilyPond is doing wrong. The obvious
alternative is to use typographic aposotrophes/quotation marks in your
source file and the problem should go away, appearing just like in
LibreOffice.

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


Re: Problem with a font

2018-04-03 Thread Walter Garcia-Fontes
* Thomas Morley, thomasmorle...@gmail.com [03/04/18 16:50]:
> Thanks, works now, although it was a little more difficult to install
> than usual, for unknown reason.
> I'm not an expert for fonts, so all I say here is by hearsay or simply 
> guessing.
> 
> That said, regarding the images you provided the printed '-sign is not
> the same in LilyPond and in LibreOffice.
> I seem to remember somebody explained that text-typesetting programs
> sometimes use a similiar font if a sign is not available.
> 
> Similar for bold, italic, bold-italic: if the font doesn't contain
> them the program scales it.
> 
> In LibreOffice doing bold and font-size 60 prints ugly as well with Escolar2.
> 
> So I think the font itself is buggy.

Yes, that is what I'm also suspecting, but in any case in LibreOffice
the font gives less problems than in Lilypond. Most likely LO has more
features to deal with this type of fonts, being a word-processing
package. 

Too bad I can't convince my costumer to use something else, let's see
what I can do.

Thanks for the answer,

-- 
Walter Garcia-Fontes
L'Hospitalet de Llobregat


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


Re: Problem with a font

2018-04-03 Thread Thomas Morley
2018-04-03 15:51 GMT+02:00 Walter Garcia-Fontes :
> * Thomas Morley, thomasmorle...@gmail.com [03/04/18 15:44]:
>> Hi,
>>
>> 2018-04-02 20:10 GMT+02:00 Walter Garcia-Fontes :
>> > I have a problem using this font:
>> >
>> > http://puna.upf.edu/Escolar_N.ttf
>>
>> this link is dead...
>
> Sorry, it is:
>
> http://puna.upf.edu/Escolar_N.TTF
>
> --
> Walter Garcia-Fontes
> L'Hospitalet de Llobregat



Thanks, works now, although it was a little more difficult to install
than usual, for unknown reason.
I'm not an expert for fonts, so all I say here is by hearsay or simply guessing.

That said, regarding the images you provided the printed '-sign is not
the same in LilyPond and in LibreOffice.
I seem to remember somebody explained that text-typesetting programs
sometimes use a similiar font if a sign is not available.

Similar for bold, italic, bold-italic: if the font doesn't contain
them the program scales it.

In LibreOffice doing bold and font-size 60 prints ugly as well with Escolar2.

So I think the font itself is buggy.



Sorry to be of not more help,
  Harm

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


Re: Get default value for grob properties

2018-04-03 Thread Noeck
Hi Kieren,

thanks for pointing me to this long and interesting discussion.
The code¹ worked pretty well for some grobs:
  Staff.BarLine
(hair-thickness is 1.9)
but did not yield anything for
  Staff.StaffSymbol or Staff.LedgerLineSpanner

I am currently trying to export to SVG and measure the dimensions in
Inkscape. Not very comfortable but it works.

Cheers,
Joram


¹ http://lists.gnu.org/archive/html/lilypond-user/2016-01/msg00709.html

Am 03.04.2018 um 01:07 schrieb Kieren MacMillan:
> Hi Joram,
> 
>> How can I know what the default value of a grob property is?
>> I tried some (display …) things but if it's not set, it's not there.
>>
>> I am asking for the 'thickness property in particular. I read¹ that it
>> is a factor to the StaffSymbol.thickness but what factor for which grob?
> 
> Maybe there’s an answer buried in this thread?
> 
> 
> I seem to remember at least one function being presented that did something 
> to find unset properties.
> 
> Hope that helps,
> 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: edition-engraver and multiple scores

2018-04-03 Thread Jan-Peter Voigt
... and to add the editionID with ly:make-score there are parameters to achieve 
that. The editionID is also a context prop. You might look up the code of 
editionID. And maybe the lalily templates give some inspiration. (I moved it 
oll recently)


Am 3. April 2018 11:34:58 MESZ schrieb Urs Liska :
>I ran into an issue with the edition-engraver, targeting individual 
>scores when multiple scores are compiled within a bookpart.
>
>It's actually within the 'page-layout' or rather the 'breaks' 
>openLilyLib package, and I can imagine that my issue is related to 
>another one that was raised recently (that either of these packages 
>didn't work well with independent edition-engraver targets).
>
>The 'breaks' package 
>(https://github.com/openlilylib/breaks/blob/master/package.ily)
>installs 
>itself like this:
>
>% Install editionID
>\layout {
>   \context {
> \Score
> \editionID ##f breaks
>   }
>}
>
>which can later (e.g. in the page-layout.conditional-breaks package: 
>https://github.com/openlilylib/page-layout/blob/master/conditional-breaks/module.ily#L113)
>
>be addressed with (for example)
>
>% insert invisible barlines to enable breaks within measures
>\editionModList conditional-breaks breaks.Score.A
>\bar "" #in-measure-breaks
>
>This works perfectly - as long as there is only one score to be 
>compiled. However, if more than one score is compiled (at least in the 
>same bookpart) it seems that all the mods for all scores are merged 
>together, with the result that in each score all the line breaks for
>all 
>scores are applied.
>
>Am I understanding it right that I would have to use \editionID in a 
>layout block that only affects an individual score, giving them 
>individual names?
>
>And how could I do that if I don't have a literal \score {} block but 
>generate the scores like the following 
>(https://git.openlilylib.org/bfsc/kayser/blob/techdoc/includes/lib/engrave.ily#L163)
>
> (ly:book-process
>  workgroup-book ; a \book {} object
>  #{ \paper {} #}  ; non-functional, placeholder
>  $defaultlayout ;; merged from all layout definitions
>  (get-output-name
>
>where 'workgroup-book' is a \book to which multiple bookparts are added
>with
>
>(ly:book-add-bookpart! workgroup-book
>  (ly:make-book-part
>(let ((movements (get-movement-list work-path)))
>  (reverse
>  (append-map
>   list
>   (map (lambda (mvt)
>  (list (makeMovementTitle (append work-path (list mvt)
> movements)
>   (map (lambda (mvt)
> (make-score (append work-path (list mvt
> movements))
>
>where a list of alternating title markups and scores are added to the 
>bookpart, and the scores are created with (at its core)
>
> (ly:make-score
>  (make-music 'SimultaneousMusic 'elements
>(filter
> (lambda (l) (not (null? l)))
> (map (lambda (elt) (staff elt)) elements
>
>
>So IIUC it boils down to the question: how can I apply \editionID (or 
>some equivalent code) to a score that is created with ly:make-score. As
>
>far as I have seen ly:make-score will only accept the music expression 
>and not the \layout {} or \midi {} blocks I can nest within a \score {}
>
>written in LilyPond language.
>And: if I manage to "install" an edition ID within that expression, is 
>it true that I can later address this score specifically?
>
>Thanks for any hints or explanations
>Urs

-- 
Diese Nachricht wurde von meinem Android-Gerät mit K-9 Mail gesendet.___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: edition-engraver and multiple scores

2018-04-03 Thread Jan-Peter Voigt
Hi Urs,

I am not at my desk right now, but IISC you named the right thing: Every score 
needs its own ID so that the EE is able to target the right score. 
We might *additionally* store mods as a Score context prop. for certain use 
cases. But still I strongly vote for IDs per score.

Jan-Peter

Am 3. April 2018 11:34:58 MESZ schrieb Urs Liska :
>I ran into an issue with the edition-engraver, targeting individual 
>scores when multiple scores are compiled within a bookpart.
>
>It's actually within the 'page-layout' or rather the 'breaks' 
>openLilyLib package, and I can imagine that my issue is related to 
>another one that was raised recently (that either of these packages 
>didn't work well with independent edition-engraver targets).
>
>The 'breaks' package 
>(https://github.com/openlilylib/breaks/blob/master/package.ily)
>installs 
>itself like this:
>
>% Install editionID
>\layout {
>   \context {
> \Score
> \editionID ##f breaks
>   }
>}
>
>which can later (e.g. in the page-layout.conditional-breaks package: 
>https://github.com/openlilylib/page-layout/blob/master/conditional-breaks/module.ily#L113)
>
>be addressed with (for example)
>
>% insert invisible barlines to enable breaks within measures
>\editionModList conditional-breaks breaks.Score.A
>\bar "" #in-measure-breaks
>
>This works perfectly - as long as there is only one score to be 
>compiled. However, if more than one score is compiled (at least in the 
>same bookpart) it seems that all the mods for all scores are merged 
>together, with the result that in each score all the line breaks for
>all 
>scores are applied.
>
>Am I understanding it right that I would have to use \editionID in a 
>layout block that only affects an individual score, giving them 
>individual names?
>
>And how could I do that if I don't have a literal \score {} block but 
>generate the scores like the following 
>(https://git.openlilylib.org/bfsc/kayser/blob/techdoc/includes/lib/engrave.ily#L163)
>
> (ly:book-process
>  workgroup-book ; a \book {} object
>  #{ \paper {} #}  ; non-functional, placeholder
>  $defaultlayout ;; merged from all layout definitions
>  (get-output-name
>
>where 'workgroup-book' is a \book to which multiple bookparts are added
>with
>
>(ly:book-add-bookpart! workgroup-book
>  (ly:make-book-part
>(let ((movements (get-movement-list work-path)))
>  (reverse
>  (append-map
>   list
>   (map (lambda (mvt)
>  (list (makeMovementTitle (append work-path (list mvt)
> movements)
>   (map (lambda (mvt)
> (make-score (append work-path (list mvt
> movements))
>
>where a list of alternating title markups and scores are added to the 
>bookpart, and the scores are created with (at its core)
>
> (ly:make-score
>  (make-music 'SimultaneousMusic 'elements
>(filter
> (lambda (l) (not (null? l)))
> (map (lambda (elt) (staff elt)) elements
>
>
>So IIUC it boils down to the question: how can I apply \editionID (or 
>some equivalent code) to a score that is created with ly:make-score. As
>
>far as I have seen ly:make-score will only accept the music expression 
>and not the \layout {} or \midi {} blocks I can nest within a \score {}
>
>written in LilyPond language.
>And: if I manage to "install" an edition ID within that expression, is 
>it true that I can later address this score specifically?
>
>Thanks for any hints or explanations
>Urs

-- 
Diese Nachricht wurde von meinem Android-Gerät mit K-9 Mail gesendet.___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Problem with a font

2018-04-03 Thread Walter Garcia-Fontes
* Thomas Morley, thomasmorle...@gmail.com [03/04/18 15:44]:
> Hi,
> 
> 2018-04-02 20:10 GMT+02:00 Walter Garcia-Fontes :
> > I have a problem using this font:
> >
> > http://puna.upf.edu/Escolar_N.ttf
> 
> this link is dead...

Sorry, it is:

http://puna.upf.edu/Escolar_N.TTF

-- 
Walter Garcia-Fontes
L'Hospitalet de Llobregat


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


Re: Problem with a font

2018-04-03 Thread Thomas Morley
Hi,

2018-04-02 20:10 GMT+02:00 Walter Garcia-Fontes :
> I have a problem using this font:
>
> http://puna.upf.edu/Escolar_N.ttf

this link is dead...


Cheers,
  Harm

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


Re: Custom drum noteHead in define expression

2018-04-03 Thread Thomas Morley
2018-04-03 2:25 GMT+02:00 Karim Haddad :
> Hi,
>
>
> Just trying to figure out if this is possible :
>
> When defining  a drum instrument with this expression:
>
>
> #(define mydrums '(
>  (bassdrumdefault   #f   -1)
>  (snare   default   #f   0)
>  (hihat   cross #f   1)
>  (halfopenhihat   cross "halfopen"   1)
>  (pedalhihat  xcircle   "stopped"2)
>  (lowtom  diamond   #f   3)))
>
> Is there a way to define a very custom notehead in the 2nd argumrnt of the 
> list such as any other glyph not being a notehead, like per example a pedal 
> glyph (pedal.*)
> or any other glyph or even eps ?
>
> I have searched (maybe not too thouroughly) trying to figure this out. Any 
> help or idea will be just great. this will prevent me to use an override 
> NoteHead.stencil tweak for every note.
>
> Best
>
> --
> Karim Haddad

Hi,

in
http://lsr.di.unimi.it/LSR/Item?id=1033
I tried to explain thoroughly how to customize drums-appearance.
Probably some general help...

It should be clear then that the list-argument in question is a note-head-style.
Ofcourse only estabished styles will work.

Not sure if it might possible to define a custom style and let the
stencil-procedure rely on it.
(And not the time yet to try.)


Cheers,
  Harm

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


Re: Bug? Accidentals from tied notes having stencils that occupy space

2018-04-03 Thread Thomas Morley
2018-04-02 19:21 GMT+02:00 Stefano Troncaro :
> Hi everyone,
>
> I've experienced that in certain situations, when notes with accidentals are
> tied, the accidental grobs have stencils that seem to be hidden (not shown
> but occupy space) which creates very awkward spacing.
>
> I made this snippet to showcase this:
>>
>> \version "2.19.80"
>> \language "english"
>>
>> \paper {
>>   ragged-right = ##t
>> }
>>
>> %Tied accidentals have the same placement as the untied ones,
>> %even though that with ties there should be less grobs occupying space
>> \score {
>>   \relative c'' {
>> 1  \break
>> ~  \break
>> ~  \break
>> ~  \break
>>   }
>> }
>>
>> %Checking that there are accidental grobs for each notehead
>> \score {
>>   \relative c'' {
>>  ~
>> \override Accidental.before-line-breaking =
>> #(lambda (grob)
>>(pretty-print grob))
>> 
>> %Output:
>> %#
>> %#
>> %#
>> %#
>> %Showing there are 4 accidental grobs instead of only the required 2
>>   }
>> }
>>
>> %Deleting the tied accidentals "fixes" placement, shouldn't this be
>> default?
>> \score {
>>   \relative c'' {
>>  ~
>> \override NoteColumn.before-line-breaking =
>> #(lambda (nc)
>>(let* ((nhds (ly:grob-array->list (ly:grob-object nc 'note-heads)))
>>   (accs
>> (filter ly:grob?
>>   (map
>>(lambda (nhd)
>>  (ly:grob-object nhd 'accidental-grob))
>>nhds)))
>>   (stils
>>(list
>>  ly:accidental-interface::print
>>  #f
>>  ly:accidental-interface::print
>>  #f)))
>>  (for-each
>>   (lambda (acc stil)
>> (ly:grob-set-property! acc 'stencil stil))
>>   accs
>>   stils)))
>> 
>>   }
>> }
>>
>
> I'm fairly confident that the accidental grobs shouldn't be taking up space
> in those cases. But maybe this is intended by design and I'm failing to see
> it's use.
>
> So, is this a bug?



Hi,

in general I'd agree calling it a bug of type ugly.

Looking for an even worse example I found:

chrd = < cis~ dis~ eis~ fis gis~ ais~ bis >1
\relative c' { \chrd q }

Though, according to common type-setting rules accidentals of tied
notes have to be repeated at line-start.

chrd = < cis~ dis~ eis~ fis gis~ ais~ bis >1
\relative c' { \chrd \break q }

This _is_ correct!
So it should be clear that simply deleting accidental-stencils via
'before-line-breaking is not the way to go.

I observed the following interesting behaviour.
If you set
AccidentalPlacement.positioning-done = ##t
i.e. don't let Lilypond place the accidentals, only _two_ accidentals
are printed.
Uncommenting the break will print all accidentals, as wished.


chrd = < cis~ dis~ eis~ fis gis~ ais~ bis >1
\relative c' {
  \chrd
  %\break
  \override Staff.AccidentalPlacement.positioning-done = ##t
  q
}

Ofcourse now no placement happens and all clashes.
Also this means it doesn't matter, whether accidental-grobs or their
stencils are present or not.
Rather that the default-procedure, i.e.
ly:accidental-placement::calc-positioning-done should be improved,
imho.


Cheers,
  Harm

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


Re: Key Signature name in Markup

2018-04-03 Thread brob2684
Hi Harm,

Thanks very much - what you've done is amazing!

Looks like it will be perfect for what I need.

Thanks for the help,
brob2684



--
Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html

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


edition-engraver and multiple scores

2018-04-03 Thread Urs Liska
I ran into an issue with the edition-engraver, targeting individual 
scores when multiple scores are compiled within a bookpart.


It's actually within the 'page-layout' or rather the 'breaks' 
openLilyLib package, and I can imagine that my issue is related to 
another one that was raised recently (that either of these packages 
didn't work well with independent edition-engraver targets).


The 'breaks' package 
(https://github.com/openlilylib/breaks/blob/master/package.ily) installs 
itself like this:


% Install editionID
\layout {
  \context {
\Score
\editionID ##f breaks
  }
}

which can later (e.g. in the page-layout.conditional-breaks package: 
https://github.com/openlilylib/page-layout/blob/master/conditional-breaks/module.ily#L113) 
be addressed with (for example)


   % insert invisible barlines to enable breaks within measures
   \editionModList conditional-breaks breaks.Score.A
   \bar "" #in-measure-breaks

This works perfectly - as long as there is only one score to be 
compiled. However, if more than one score is compiled (at least in the 
same bookpart) it seems that all the mods for all scores are merged 
together, with the result that in each score all the line breaks for all 
scores are applied.


Am I understanding it right that I would have to use \editionID in a 
layout block that only affects an individual score, giving them 
individual names?


And how could I do that if I don't have a literal \score {} block but 
generate the scores like the following 
(https://git.openlilylib.org/bfsc/kayser/blob/techdoc/includes/lib/engrave.ily#L163)


(ly:book-process
 workgroup-book ; a \book {} object
 #{ \paper {} #}  ; non-functional, placeholder
 $defaultlayout ;; merged from all layout definitions
 (get-output-name

where 'workgroup-book' is a \book to which multiple bookparts are added with

   (ly:book-add-bookpart! workgroup-book
 (ly:make-book-part
   (let ((movements (get-movement-list work-path)))
 (reverse
 (append-map
  list
  (map (lambda (mvt)
 (list (makeMovementTitle (append work-path (list mvt)
movements)
  (map (lambda (mvt)
(make-score (append work-path (list mvt
movements))

where a list of alternating title markups and scores are added to the 
bookpart, and the scores are created with (at its core)


(ly:make-score
 (make-music 'SimultaneousMusic 'elements
   (filter
(lambda (l) (not (null? l)))
(map (lambda (elt) (staff elt)) elements


So IIUC it boils down to the question: how can I apply \editionID (or 
some equivalent code) to a score that is created with ly:make-score. As 
far as I have seen ly:make-score will only accept the music expression 
and not the \layout {} or \midi {} blocks I can nest within a \score {} 
written in LilyPond language.
And: if I manage to "install" an edition ID within that expression, is 
it true that I can later address this score specifically?


Thanks for any hints or explanations
Urs
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: First steps in Lilypond

2018-04-03 Thread David Kastrup
foxfanfare  writes:

> Hi everybody,
>
> Instead of spoiling the thread about  OpenLilyLib
> 
>   
> I started to ask some questions, I thought better to start a separate thread
> in order to ask some of my newbie questions!
>
> I started working on LilyPond last week and I find this software really
> interesting, though quite difficult to learn for a start! So, my project
> right now is to copy a difficult piano score I made earlier in Sibelius
> which would help me to learn this software. I will decide then if I
> definitely keep it or if I buy Dorico!

To quote lyrics from a famous song: "if you can make it there, you can
make it anywhere".  To wit: mapping primordial piano music with its
loose relation of notes and ad-hoc voices and connecting articulation to
LilyPond's concepts is pretty much the worst-case of complex music you
can deal with.  Orchestral/choral/symphonic music is comparatively
straightforward in contrast, and even the nominal superset of organ
music tends to be simpler in practice because it tends to be more
rigidly mapped to voiced music rather than serving as a tool for
texturing sound.

-- 
David Kastrup

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


Re: First steps in Lilypond

2018-04-03 Thread foxfanfare
New question:

Is it normal in those measures that the slurs in voiceOne of the left hand
are too long and doesn't fix themselves with the 8th notes stem? Does this
mean I have to "shape" all of them or am I missing something here?

 

*\version "2.19.80"
\language "english"

\relative c, {
  
   \time 3/8
   \clef bass
   \key c\minor
   \omit Score.TupletNumber
   << {
   \tuplet 3/2 8 { *16( f'' af \clef treble f'[ d f~] }  8)
   \clef bass \tuplet 3/2 8 { 16( ef' g \clef treble ef'[ c ef~] } 
8) |
   \clef bass \tuplet 3/2 8 { 16( c' f af[ c f] } fs8) |
   } \\ {
   s \tuplet 3/2 { s16 d8~ } d\noBeam |
   s \tuplet 3/2 { s16 c8~ } c\noBeam |
   s \tuplet 3/2 { s16 c8~ } c\noBeam |
   } >>
  }*



--
Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html

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