Re: absolute font size issues

2014-11-12 Thread Werner LEMBERG

> Well, I was about to answer, but somehow ...

:-)

> I defined some \abs-... markup commands myself

Ha!  Where are they?  I guess this would have saved me many hours of
wading through obscure LilyPond Scheme code...

> and wondered if it would be feasible to implement a "switch" –
> something like
>
>   \absoluteSizeOn
>
> or similar, to avoid the need of defining everything twice – with
> relative sizes and absolute sizes, respectively.

Having an `\abs-' prefix is easy to remember.  I would favor this more
than `\absoluteSizeOn', but I fully agree that defining everything
twice is error-prone.  What about adding a `meta macro' (or special
form, or whatever) that generates absolute and non-absolute versions?
I imagine something like

  (make-relative-absolute
(define-markup-command (foo ...)
   ...))

to create \foo and \abs-foo.  No idea whether this is possible at all,
however.  In case it *is* possible, we should probably continue the
discussion on lilypond-devel.


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


Re: Trill Span

2014-11-12 Thread Pierre Perol-Schneider
Add to the LSR: http://lsr.di.unimi.it/LSR/Item?id=959

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


Bad warning when misusing a melisma?

2014-11-12 Thread Knute Snortum
In the following example, the melisma is used improperly:

%% -- Start
\version "2.19.15"
\language "english"

theNotes = \relative c' {
  c4 c c c | c b8 a b4 r4 |
}

theLyrics = \lyricmode {
  On -- ward Chris -- tian sol _ -- diers
}

\score {
  <<
\new Staff \theNotes
\addlyrics \theLyrics
  >>
  \layout {
  }
}
%% -- End

A warning is emitted, as it should, but here is the text:

Parsing...

Interpreting music...

programming error: hyphen not finished yet

continuing, cross fingers

In this example it's easy to see where the problem is, but in a large
piece, it would be nice to have a line number.  Also, I'm not sure
"programming error" is the best way to describe the problem.  I wouldn't
call this a bug, but maybe a suggestion for improvement.

Your thoughts?

Knute Snortum
(via Gmail)
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Lyric Spacing With Slurs - Help Requested

2014-11-12 Thread tisimst
Br. Jorgensen,

I used your snippet (with slight corrections) and I don't get any 
spacing errors (see attached). Here's my code:

%<- SNIP --

\score {
  <<
 \new Staff \relative c' {
   \time 3/4
   \key g \major
   e4( f) g | f( d) fis |
 }
\addlyrics {
  San -- ctus | San -- ctus |
}
  >>
}


%<- SNIP --

Now, if there are other synchronized staves in the same system that 
have more movement than this vocal selection, this may be the cause, 
but without more information (if there is more), I can't see any error 
in your code (i.e., there's no reason the middle notes should get 
pushed out since no text is attached to them via the melisma).

Regards,
Abraham


On Tue, Nov 11, 2014 at 5:09 PM, Br. Cody Jorgensen [via Lilypond] 
 wrote:
> Dear Lilypond Community,
> 
> I’m highly unsatisfied with the readability of my melismatic notes 
> in modern notation. The spacing seems to be off, with the slur 
> placing the right-most note almost as if it were a part of the next 
> lyric’s note. I’ve searched in vain (quite some time!) for a way 
> to adjust the horizontal spacing of the slur.
> 
> Example (using lilypond 2.18.2)
> 
> \score {
>  \new Staff \relative c' {
>\time 3/4
>\key g \major
>e4( f) g  | f( d) fis |
>  }
> }
> \addlyrics {
>   San -- ctus  |  San -- ctus |
> }
> 
> Produces the following output:
> 
> 
> I would like to adjust the horizontal spacing so that the last note 
> of the slur is more near the first. It almost appears, without the 
> slur as if the “ctus" is the melismatic syllable.
> 
> I greatly appreciate any pointers, and apologize for any posting 
> standards I have not followed. Your mercy is appreciated!!
> -Cody
> 
> 
> 
> 
> ___ 
> 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/Lyric-Spacing-With-Slurs-Help-Requested-tp168657.html
> To start a new topic under User, email 
> ml-node+s1069038n...@n5.nabble.com 
> To unsubscribe from Lilypond, click here.
> NAML


lyric-spacing-with-slurs.png (9K) 





--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Lyric-Spacing-With-Slurs-Help-Requested-tp168657p168675.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: absolute font size issues

2014-11-12 Thread Marc Hohl

Am 12.11.2014 um 13:35 schrieb Werner LEMBERG:



Well, I was about to answer, but somehow ...


:-)


I defined some \abs-... markup commands myself


Ha!  Where are they?  I guess this would have saved me many hours of
wading through obscure LilyPond Scheme code...


D'oh. A closer look into the sources of my old project dates 2011, and I 
did not use \abs-... but \...-mm instead and gave all dimensions in 
millimetres.


Anyway, here are the definitions, in case they might be useful for somebody:

#(define-markup-command (hspace-mm layout props amount) (number?)
 (let ((o-s (ly:output-def-lookup layout 'output-scale)))
   (ly:make-stencil "" (cons 0 (abs (/ amount o-s))) '(0 . 0) )))

#(define-markup-command (vspace-mm layout props amount) (number?)
 (let ((o-s (ly:output-def-lookup layout 'output-scale)))
   (ly:make-stencil "" '(0 . 0) (cons 0 (abs (/ amount o-s))

#(define-markup-command (epsfile-mm layout props axis size file-name)
  (number? number? string?)
  (let* ((o-s (ly:output-def-lookup layout 'output-scale))
 (scaled-size (abs (/ size o-s
  (if (ly:get-option 'safe)
  (interpret-markup layout props "not allowed in safe")
  (eps-file->stencil axis scaled-size file-name)
  )))




and wondered if it would be feasible to implement a "switch" –
something like

   \absoluteSizeOn

or similar, to avoid the need of defining everything twice – with
relative sizes and absolute sizes, respectively.


Having an `\abs-' prefix is easy to remember.  I would favor this more
than `\absoluteSizeOn', but I fully agree that defining everything
twice is error-prone.  What about adding a `meta macro' (or special
form, or whatever) that generates absolute and non-absolute versions?
I imagine something like

   (make-relative-absolute
 (define-markup-command (foo ...)
...))

to create \foo and \abs-foo.  No idea whether this is possible at all,
however.  In case it *is* possible, we should probably continue the
discussion on lilypond-devel.


I like the idea of this 'meta macro' but I don't have a clue whether 
this is possible or not (I assume yes, but I won't be able to program it 
myself).


Marc



 Werner




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


Re: absolute font size issues

2014-11-12 Thread Marc Hohl

Am 12.11.2014 um 20:09 schrieb Marc Hohl:

Am 12.11.2014 um 13:35 schrieb Werner LEMBERG:



Well, I was about to answer, but somehow ...


:-)


I defined some \abs-... markup commands myself


Ha!  Where are they?  I guess this would have saved me many hours of
wading through obscure LilyPond Scheme code...


D'oh. A closer look into the sources of my old project dates 2011, and I
did not use \abs-... but \...-mm instead and gave all dimensions in
millimetres.

Anyway, here are the definitions, in case they might be useful for
somebody:

[..]

I forgot

#(define-markup-command (with-dimensions-mm layout props x y arg)
  (number-pair? number-pair? markup?)
  (let* ((m (interpret-markup layout props arg))
 (o-s (ly:output-def-lookup layout 'output-scale))
 (x1 (/ (car x) o-s))
 (x2 (/ (cdr x) o-s))
 (y1 (/ (car y) o-s))
 (y2 (/ (cdr y) o-s))
 (scaled-x (cons x1 x2))
 (scaled-y (cons y1 y2)))
(ly:make-stencil (ly:stencil-expr m) scaled-x scaled-y)))

Marc




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