Re: Custom TimeSignature doesn't scale correctly

2015-07-16 Thread Karol Majewski
Paul, I,ve came up with this, but it doesn't help. Is setting baseline-skip to 
0 only way?

 BEGIN 

#(define
  (customTimeSignature grob)
  (let*
((sz
(ly:grob-property grob 'font-size 0.0))
(mult (magstep sz))
(fraction
(ly:grob-property grob 'fraction))
  (num
(car fraction))
  (denom
(cdr fraction)))
(grob-interpret-markup grob #{
  \markup {
 \translate #'(0 . 0.03) \override #'(font-name . Times) \fontsize 
#2.5 \override #'(baseline-skip . 2) \center-column {
  \line {
#(number-string num)
  }
  \line {
#(number-string denom)
  }
}
  }
#})))


 END 



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


Re: Custom TimeSignature doesn't scale correctly

2015-07-16 Thread Paul Morris
 On Jul 16, 2015, at 3:16 PM, Karol Majewski karo...@wp.pl wrote:
 
 Paul, I,ve came up with this, but it doesn't help. Is setting baseline-skip 
 to 0 only way?

There might be another way, but if so I’m out of ideas.  The following takes 
the ly:stencil-scale approach, and it doesn’t help here.

-Paul


#(define
  (customTimeSignature grob)
  (let*
   ((fraction (ly:grob-property grob 'fraction))
(num (car fraction))
(denom (cdr fraction))
(sz (ly:grob-property grob 'font-size 0.0))
(mult (magstep sz)))
   (ly:stencil-scale
(grob-interpret-markup grob #{
  \markup {
\translate #'(0 . 0.03)
% \override #'(font-name . Times)
\fontsize #2.5 
\override #'(baseline-skip . 2)
\center-column {
  \line {
#(number-string num)
  }
  \line {
#(number-string denom)
  }
}
  }
  #})
   mult mult)
   ))




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


Re: Custom TimeSignature doesn't scale correctly

2015-07-16 Thread tisimst
On Thu, Jul 16, 2015 at 2:40 PM, karol [via Lilypond] 
ml-node+s1069038n178721...@n5.nabble.com wrote:

 Yes, Abraham, I've tried this. But the drawback of this solution is thet
 it doesn't scale to bigger staff size.



 Try: #(set-global-staff-size 26) and you'll get what I mean.

I see what you mean, now. Thanks for helping me understand. I know this
doesn't answer your question exactly, but what about this:

\layout {
  \context {
\Score
\override TimeSignature.font-name = #Times
\override TimeSignature.font-size = #2.5
\numericTimeSignature
  }
}

That seems to size things better than my previous suggestions for any
global staff-size, at least it did for me from 10pt to 40pt staff-sizes.

- Abraham




--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Custom-TimeSignature-doesn-t-scale-correctly-tp178710p178722.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


tempo as REAL number

2015-07-16 Thread jan
Hi,

i did not expect the tempo definition in Lilypond to be required to be an
integer.

For instance

\tempo 4 = 82.3

produces the error.

syntax error, unexpected REAL

Since in midi tempo definitions are of type float I wonder if there is a
reason for Lilypond to restrict the tempo to integers. If there is no
reason, I would like to suggest to make the tempo command more general and
accept reals.

thank you
many greetings,
Jan


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


Re: tempo as REAL number

2015-07-16 Thread David Kastrup
jan jan.hakenb...@gmail.com writes:

 Hi,

 i did not expect the tempo definition in Lilypond to be required to be an
 integer.

 For instance

 \tempo 4 = 82.3

 produces the error.

 syntax error, unexpected REAL

 Since in midi tempo definitions are of type float

They aren't.  They are exact fractions.

 I wonder if there is a reason for Lilypond to restrict the tempo to
 integers. If there is no reason, I would like to suggest to make the
 tempo command more general and accept reals.

Inexact numbers would make LilyPond's Midi output unpredictable
(unsuitable for binary comparison).  I am not sure this would be a
problem: we have the same situation with the extensive floating point
calculations involved in the printed output.

-- 
David Kastrup

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


Re: music function with access to context properties like currentBarNumber?

2015-07-16 Thread Jan-Peter Voigt

Hi Malte, Abraham,

if I knew how to achieve it, it would already be part of the 
edition-engraver.
The problem is, that one has to unfold the music expression during 
iteration, so he may need to build a parallel music iterator, that 
creates the needed grobs. That sounds misleading.
Another feature I'd like to add, but leads to the same problem, would be 
to add cue-notes with in a manner the edition-engraver adds overrides.


You can reach the context-properties thru apply-context, but then still 
the duration set to late, as you can see in the (not working) example 
below.


Well, this is just a quick shot, that might lead someone else to an 
answer ;)


Cheers, Jan-Peter


% non-functional example

\version 2.18.2

fun = #(define-music-function (parser location bars)(integer?)
 (let ((cbn 0)
   (ml (ly:make-moment 4 4))
   (rest #{ R1 #}))
   #{
 \applyContext #(lambda (context)
  (set! cbn (ly:context-property context 
'currentBarNumber))

  (ly:message bar-number: ~A cbn)
  (set! ml (ly:context-property context 
'measureLength))

  (ly:message measure-length: ~A ml)
  (ly:music-set-property! rest 'duration ml))
 $rest
   #}
   ))

{ \time 3/4 bes'4 a' c''8 b' | \fun 3 | bes'4 a' c''8 b' }



Am 15.07.2015 um 20:20 schrieb Malte Meyn:

Hello list,

I would like to have somthing like

\version 2.19.22
{
  \time 3/4
  % bar 1
  c'2.
  \skipUntil #5 % s2.*4
  % bar 5
  c'2.
  \restUntil #8 % R2.*2
  % bar 8
  c'2.
}

so I don’t have to count bars every time an instrument has a long rest 
(could also be helpful when composing, or, in a more advanced version, 
when skipping several bars with many time signature changes).


My first thought was “I need a music function that accesses 
currentBarNumber” but that (and, for the more advanced version, 
measureLength) is a context property. Now I don’t know how to get the 
context to this music function and making it return a (make-music 
'MultiMeasureRestMusic …). Attached is my first attempt but that 
returns only (make-music 'ApplyContext …).


Is this the correct approach? Or do I have to write an engraver? If 
so, where can I learn how to do that?


Thanks in advance,
Malte


___
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: Basic question re dynamics spacing

2015-07-16 Thread Phil Holmes
\new Dynamics \with { \override 
VerticalAxisGroup.nonstaff-relatedstaff-spacing.basic-distance = #25 }



--
Phil Holmes


  - Original Message - 
  From: Andrew Bernard 
  To: lilypond-user Mailinglist 
  Sent: Thursday, July 16, 2015 10:21 AM
  Subject: Basic question re dynamics spacing


  I have a piano staff, and two dynamics lines underneath. How does one 
increase or change the distance between the lower stave of the piano staff and 
the first dynamics line?


  The following example was kindly provided by a list member some time ago to 
show how to increase the distance between the two dynamics lines, but no matter 
how much I read in the NR about nonstaff/relatedstaff/unrelatedstaff, all that 
happens is that my head spins, and the dynamics line stays put. What is the 
obvious setting that I am missing?


  \version “2.19.23”


  \score {

  \new PianoStaff 
\new Staff { a' a' a' a' }
\new Staff { \clef bass a a a a }
  
  \new Dynamics
  \with {
\override VerticalAxisGroup.nonstaff-nonstaff-spacing.basic-distance = 
#6
  }
  { s\p s s\f s }
  \new Dynamics
  { s\sustainOn s s s\sustainOff }

  }




  Andrew








--


  ___
  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


Basic question re dynamics spacing

2015-07-16 Thread Andrew Bernard
I have a piano staff, and two dynamics lines underneath. How does one increase 
or change the distance between the lower stave of the piano staff and the first 
dynamics line?

The following example was kindly provided by a list member some time ago to 
show how to increase the distance between the two dynamics lines, but no matter 
how much I read in the NR about nonstaff/relatedstaff/unrelatedstaff, all that 
happens is that my head spins, and the dynamics line stays put. What is the 
obvious setting that I am missing?

\version “2.19.23”

\score {
  
    \new PianoStaff 
      \new Staff { a' a' a' a' }
      \new Staff { \clef bass a a a a }
    
    \new Dynamics
    \with {
      \override VerticalAxisGroup.nonstaff-nonstaff-spacing.basic-distance = #6
    }
    { s\p s s\f s }
    \new Dynamics
    { s\sustainOn s s s\sustainOff }
  
}


Andrew



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


Re: phrasing slur in piano staff

2015-07-16 Thread Jacques Menu
Hello Noeck,

Usefully, 2.19.22 produces warnings regarding the tempororay voices, suggesting 
to supply voice or shift information :

 sv4kig/tmp2ZJ3qe/document.ly:23:17: Avertissement : ce contexte de voix 
rrequiert un réglage \voiceXx ou \shiftXx
\new Voice {
c'4. d'4} % additional voice 3
/var/folders/jc/xrpy67_x6_vcjfzpzds_9_6mgn/T/frescobaldi-sv4kig/tmp2ZJ3qe/document.ly:18:20:
 Avertissement : ce contexte de voix rrequiert un réglage \voiceXx ou \shiftXx
\new Voice {s8 
   c'4.}  % additional voice 2
/var/folders/jc/xrpy67_x6_vcjfzpzds_9_6mgn/T/frescobaldi-sv4kig/tmp2ZJ3qe/document.ly:23:22:
 Avertissement : ce contexte de voix rrequiert un réglage \voiceXx ou \shiftXx
\new Voice {c'4. 
 d'4} % additional voice 3

JM

 Le 15 juil. 2015 à 20:40, Noeck noeck.marb...@gmx.de a écrit :
 
 Dear Ming,
 
 I would also do what Simon suggested. If you need additional voices
 temporarily, you can still do so and continue the first voice with your
 phrasing slur and add a new voice next to it:
 
 \version 2.18.2
 \language english
 global = {
  \key f \major
  \numericTimeSignature
  \time 6/8
  \partial 8
  \tempo 4=100
 }
 mux = { \global
  c'8^\( | f'a'4. {f'8 g'8 a'8 |bf'4. }\\{f'4.~ f'4.} f'a'4\) %m
  
{d'g'8^\( | f'8. e'16 f'8 } % starting slur here, say voice 1
\new Voice {s8 c'4.}  % additional voice 2
 
  e'g'4 e'g'c''8 |%m  % still the same voice 1
  
{f'c''4.~q4\)}  % still the same voice 1
\new Voice {c'4. d'4} % additional voice 3
 e'bf'8 |%m
 }
 \score { \mux }
 
 Cheers,
 Joram
 
 ___
 lilypond-user mailing list
 lilypond-user@gnu.org
 https://lists.gnu.org/mailman/listinfo/lilypond-user


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


Re: Lilypond-book Cutting off Slurs

2015-07-16 Thread Urs Liska
The same can happen with tuplet brackets.
And it also happens when using -dpreview.
IMO this is a bug.

Urs

Am 16. Juli 2015 07:59:08 MESZ, schrieb Kevin Barry barr...@gmail.com:
When I encounter this problem I usually add some kind of invisible grob
underneath the staff (a markup with the colour set to white for
example).
It's a hack, but as far as I know there isn't a way to tell LilyPond
there
is something there.

Kevin




___
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: Lilypond-book Cutting off Slurs

2015-07-16 Thread David Kastrup
Urs Liska u...@openlilylib.org writes:

 The same can happen with tuplet brackets.
 And it also happens when using -dpreview.
 IMO this is a bug.

Cross-staff material is not considered for the skylines used for
calculating system distances.  It would make sense to collect them in
separate skylines that are merged to the overall outline once relative
system positioning is done.

Perhaps with skyline positioning it might be an option to add them to
the bounding box but not to the skyline.

-- 
David Kastrup

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


Re: proportional notation from MIDI file

2015-07-16 Thread karl
Peter:
 Thanks for your reaction.
 I could not open the miditoly.pl file.

You don't open it, save it somewhere and then run it from the command 
line (to run it you need a perl interpreter).

 but that is no problem. At first I
 will try the conversion with LilyPond. If that doesn't work (good enough)
 I'll try your program and ask you again.

You are welcome.

Regards,
/Karl Hammar

---
Aspö Data
Lilla Aspö 148
S-742 94 Östhammar
Sweden
+46 173 140 57



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


Re: tempo as REAL number

2015-07-16 Thread karl
dak:
 jan jan.hakenb...@gmail.com writes:
...
  \tempo 4 = 82.3
  produces the error.
  syntax error, unexpected REAL
  Since in midi tempo definitions are of type float
 
 They aren't.  They are exact fractions.
 
  I wonder if there is a reason for Lilypond to restrict the tempo to
  integers. If there is no reason, I would like to suggest to make the
  tempo command more general and accept reals.
 
 Inexact numbers would make LilyPond's Midi output unpredictable
 (unsuitable for binary comparison).  I am not sure this would be a
 problem: we have the same situation with the extensive floating point
 calculations involved in the printed output.

midi's view of tempo is microseconds per midi quarter note, or 
(though I find midi's time and time sig. handling confusing)

 midi_tempo = 60*1000*1000 / \tempo 4 value

and

 6000 / 82.3 about= 729040.09720534629404617253

I doubt that truncating/rounding that to a int vould cause any problem.

Regards,
/Karl Hammar

---
Aspö Data
Lilla Aspö 148
S-742 94 Östhammar
Sweden
+46 173 140 57



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


Re: Custom TimeSignature doesn't scale correctly

2015-07-16 Thread tisimst
On Thu, Jul 16, 2015 at 12:46 PM, Paul Morris [via Lilypond] 
ml-node+s1069038n178711...@n5.nabble.com wrote:

  On Jul 16, 2015, at 2:18 PM, Karol Majewski [hidden email]
 http:///user/SendEmail.jtp?type=nodenode=178711i=0 wrote:
 
  I use the following code for changing TimeSignature font. But when it
 comes to changeing staff size via 'magstep', the TimeSignature doesn't
 scale correctly. It seems that baseline-skip remains the same. How can I
 fix this?

 Hi, when overriding a grob’s stencil, you have to scale the new stencil by
 the current font-size.  Something like this:

 #(lambda (grob)
 (let* ((sz (ly:grob-property grob 'font-size 0.0))
(mult (magstep sz)))
 (set! (ly:grob-property grob 'stencil)
   (ly:stencil-scale
 myCustomStencil
 mult mult

 …taken from this snippet:
 http://lsr.di.unimi.it/LSR/Item?id=623


Just setting #'(baseline-skip . 0) works just fine for me at any font size.

- Abraham




--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Custom-TimeSignature-doesn-t-scale-correctly-tp178710p178712.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: Custom TimeSignature doesn't scale correctly

2015-07-16 Thread Karol Majewski

Yes, this is what I'm trying right now :) Probably I'll stick to that, as it's the most natural way of changing the font.

Thanks.




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


Re: Custom TimeSignature doesn't scale correctly

2015-07-16 Thread Paul Morris
 On Jul 16, 2015, at 2:18 PM, Karol Majewski karo...@wp.pl wrote:
 
 I use the following code for changing TimeSignature font. But when it comes 
 to changeing staff size via 'magstep', the TimeSignature doesn't scale 
 correctly. It seems that baseline-skip remains the same. How can I fix this?

Hi, when overriding a grob’s stencil, you have to scale the new stencil by the 
current font-size.  Something like this:

#(lambda (grob)
(let* ((sz (ly:grob-property grob 'font-size 0.0))
   (mult (magstep sz)))
(set! (ly:grob-property grob 'stencil) 
  (ly:stencil-scale
myCustomStencil
mult mult

…taken from this snippet:
http://lsr.di.unimi.it/LSR/Item?id=623

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


Re: Custom TimeSignature doesn't scale correctly

2015-07-16 Thread tisimst
On Thu, Jul 16, 2015 at 2:09 PM, karol [via Lilypond] 
ml-node+s1069038n178719...@n5.nabble.com wrote:

 Abraham, I'll try to explain why setting baseline-skip to 0 is a bad idea
 here. Take a look at the attachment. This is what is happening if you set
 baseline-skip to 0.



 In case of some other fonts difference between 'a' and 'b' is more
 noticeable.

 So we need to have baseline skip set to 2 to have perfectly even spacing.


Thanks for the explanation. It still seems like a _very_ small difference
to me, but if you can see it, then that's fine. How about this:

#(define
  (customTimeSignature grob)
  (let*
((fraction
(ly:grob-property grob 'fraction))
  (num
(car fraction))
  (denom
(cdr fraction))
  (stil (grob-interpret-markup grob #{
\markup {
  \translate #'(0 . 0.03)
  \override #'(font-name . Times)
  \abs-fontsize #15
  \override #'(baseline-skip . 2)
  \center-column {
\line {
  #(number-string num)
}
\line {
  #(number-string denom)
}
  }
}
  #}))
  (sz (magstep (ly:grob-property grob 'font-size 0.0
(ly:stencil-scale stil sz sz)))

which gives me (at fontSize = -3, -2, -1, 0, 1, 2, 3):

[image: Inline image 1]

Just setting baseline-skip to 0 and this look virtually identical to me,
but maybe this works better for you.

- Abraham


image.png (45K) 
http://lilypond.1069038.n5.nabble.com/attachment/178720/0/image.png




--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Custom-TimeSignature-doesn-t-scale-correctly-tp178710p178720.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: Custom TimeSignature doesn't scale correctly

2015-07-16 Thread tisimst
On Thu, Jul 16, 2015 at 1:34 PM, Paul Morris [via Lilypond] 
ml-node+s1069038n17871...@n5.nabble.com wrote:

  On Jul 16, 2015, at 3:16 PM, Karol Majewski [hidden email]
 http:///user/SendEmail.jtp?type=nodenode=178716i=0 wrote:
 
  Paul, I,ve came up with this, but it doesn't help. Is setting
 baseline-skip to 0 only way?

 There might be another way, but if so I’m out of ideas.  The following
 takes the ly:stencil-scale approach, and it doesn’t help here.

 -Paul


 #(define
   (customTimeSignature grob)
   (let*
((fraction (ly:grob-property grob 'fraction))
 (num (car fraction))
 (denom (cdr fraction))
 (sz (ly:grob-property grob 'font-size 0.0))
 (mult (magstep sz)))
(ly:stencil-scale
 (grob-interpret-markup grob #{
   \markup {
 \translate #'(0 . 0.03)
 % \override #'(font-name . Times)
 \fontsize #2.5
 \override #'(baseline-skip . 2)
 \center-column {
   \line {
 #(number-string num)
   }
   \line {
 #(number-string denom)
   }
 }
   }
   #})
mult mult)
))


Karol,

Here's what I get with your original code and doing nothing more than
setting baseline-skip to 0 (shown with staves at fontSize = -3, -2, -1, and
default, respectively):

[image: Inline image 1]

That looks like it's vertically aligned nicely to me, but if this isn't
what you're after, please help us understand what you see as the ideal
scenario. Thanks!

- Abraham


image.png (50K) 
http://lilypond.1069038.n5.nabble.com/attachment/178717/0/image.png




--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Custom-TimeSignature-doesn-t-scale-correctly-tp178710p178717.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


Odp: Custom TimeSignature doesn't scale correctly

2015-07-16 Thread Karol Majewski
OK, so with abs-fontsize it scales properly, but if I set global staff size 
_higher_ than default (20) then it doesn't scale.



% BEGIN %%

#(define
  (customTimeSignature grob)
  (let*
((sz
(ly:grob-property grob 'font-size 0.0))
(mult (magstep sz))
(fraction
(ly:grob-property grob 'fraction))
  (num
(car fraction))
  (denom
(cdr fraction)))
(grob-interpret-markup grob #{
  \markup {
 \scale #(cons mult mult) \override #'(font-name . Times) 
\abs-fontsize #15 \override #'(baseline-skip . 2) \center-column {
  \line {
#(number-string num)
  }
  \line {
#(number-string denom)
  }
}
  }
#})))

\layout {
  \context {
\Score
\override TimeSignature.stencil = #customTimeSignature
  }
}

one = {
  \time 3/4 c'2.
}

two = {
  c'2.
}


  \new Staff \with {
fontSize = #-3
\override StaffSymbol.staff-space = #(magstep -3)
  } \one
  \new Staff \two



% END %%



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


Re: Custom TimeSignature doesn't scale correctly

2015-07-16 Thread Paul Morris
 On Jul 16, 2015, at 2:45 PM, Paul Morris p...@paulwmorris.com wrote:
 
 Hi, when overriding a grob’s stencil, you have to scale the new stencil by 
 the current font-size.  

Hmmm, on second thought, it looks like grob-interpret-markup already takes care 
of scaling the new stencil to the current font size.  

And it looks like Abraham has the solution.

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


Re: Custom TimeSignature doesn't scale correctly

2015-07-16 Thread Karol Majewski

Yes, Abraham, I've tried this. But the drawback of this solution is thet it doesn't scale to bigger staff size.

Try: #(set-global-staff-size 26) and you'll get what I mean.


-- Karol



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


Odp: Custom TimeSignature doesn't scale correctly

2015-07-16 Thread Karol Majewski
I'd like to avoid setting baseline-skip to 0, as it results in specing issues 
between num and denom (denom is bit misaligned vertically).



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


Re: Custom TimeSignature doesn't scale correctly

2015-07-16 Thread Karol Majewski

Abraham, I'll try to explain why setting baseline-skip to 0 is a bad idea here. Take a look at the attachment. This is what is happening if you set baseline-skip to 0.

In case of some other fonts difference between 'a' and 'b' is more noticeable.
So we need to have baseline skip set to 2 to have perfectly even spacing.

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


Re: un-bold font inside \tempo

2015-07-16 Thread Bruno Ruviaro
Great! Thank you very much!

B

On Thu, Jul 16, 2015 at 5:08 PM, tisimst tisimst.lilyp...@gmail.com wrote:

 Welcome, Bruno! You've come to the right place! I hope you find your use
 of LilyPond satisfying and beneficial!

 To answer your question:

 Use \normal-text { ... } to make its contents the default roman weight.

 - Abraham


 On Thursday, July 16, 2015, Bruno Ruviaro [via Lilypond] [hidden email]
 http:///user/SendEmail.jtp?type=nodenode=178725i=0 wrote:

 Hi all,

 This is my first post on this list, and my first week using Lilypond for
 a real project. Learning a lot in a compressed amount of time... ;-)

 I am trying to get metronome markings with ca. before the number, but
 without bold face characters. How can I cancel the bold face font inside a
 \tempo command?

 The snippet below shows what I've got so far. Bar 2 is what I'm getting
 by using \markup inside \tempo. Bar 3 shows what I would like to get. I'm
 happy to use Bar 3 solution if that's the only way, but I suppose there is
 a solution from inside \tempo?

 Thanks for any tips!

 Bruno

 % ===

 \version 2.18.2

 melody = \relative c'' {
   % regular
   \tempo 4=120
   % using markup inside tempo
   % characters are printed in bold face
   c4 d e f
\tempo \markup {
 \concat {
   \smaller \general-align #Y #DOWN \note #4 #1
= 
   \italic ca.
   \hspace #0.25
   120
 }
   }
   c d e f

   % not using tempo to avoid bold face
   c^\markup {
 \concat {
   \smaller \general-align #Y #DOWN \note #4 #1
= 
   \italic ca.
   \hspace #0.25
   120
 }
   }
   d e f
   c d e f
 }

 \score {
 \new Staff { \melody }
   \layout { }
 }



 ___
 lilypond-user mailing list
 [hidden email] http:///user/SendEmail.jtp?type=nodenode=178724i=0
 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/un-bold-font-inside-tempo-tp178724.html
  To start a new topic under User, email a
 href=javascript:_e(%7B%7D,#39;cvml#39;,#
 39;ml-node%2bs1069038n...@n5.nabble.com#39;);
 target=_blankml-node+s1069038n3h2@...
 To unsubscribe from Lilypond, click here.
 NAML
 http://lilypond.1069038.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml


 --
 View this message in context: Re: un-bold font inside \tempo
 http://lilypond.1069038.n5.nabble.com/un-bold-font-inside-tempo-tp178724p178725.html
 Sent from the User mailing list archive
 http://lilypond.1069038.n5.nabble.com/User-f3.html at Nabble.com.

 ___
 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: Lilypond-book Cutting off Slurs

2015-07-16 Thread Nick Baskin
On Thu, Jul 16, 2015 at 12:05 AM, David Kastrup d...@gnu.org wrote:

 Urs Liska u...@openlilylib.org writes:

  The same can happen with tuplet brackets.
  And it also happens when using -dpreview.
  IMO this is a bug.

 Cross-staff material is not considered for the skylines used for
 calculating system distances.  It would make sense to collect them in
 separate skylines that are merged to the overall outline once relative
 system positioning is done.

 Perhaps with skyline positioning it might be an option to add them to
 the bounding box but not to the skyline.

 --
 David Kastrup


Thanks all — adding a text markup didn't solve the problem for me (with
2.18.0), but adding a dynamic did!

Nick

-- 
And she forgot the stars, the moon, and sun,
And she forgot the blue above the trees,
And she forgot the dells where waters run,
And she forgot the chilly autumn breeze...

— Keats, Isabella, or the Pot of Basil
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: un-bold font inside \tempo

2015-07-16 Thread tisimst
Welcome, Bruno! You've come to the right place! I hope you find your use of
LilyPond satisfying and beneficial!

To answer your question:

Use \normal-text { ... } to make its contents the default roman weight.

- Abraham

On Thursday, July 16, 2015, Bruno Ruviaro [via Lilypond] 
ml-node+s1069038n178724...@n5.nabble.com wrote:

 Hi all,

 This is my first post on this list, and my first week using Lilypond for a
 real project. Learning a lot in a compressed amount of time... ;-)

 I am trying to get metronome markings with ca. before the number, but
 without bold face characters. How can I cancel the bold face font inside a
 \tempo command?

 The snippet below shows what I've got so far. Bar 2 is what I'm getting by
 using \markup inside \tempo. Bar 3 shows what I would like to get. I'm
 happy to use Bar 3 solution if that's the only way, but I suppose there is
 a solution from inside \tempo?

 Thanks for any tips!

 Bruno

 % ===

 \version 2.18.2

 melody = \relative c'' {
   % regular
   \tempo 4=120
   % using markup inside tempo
   % characters are printed in bold face
   c4 d e f
\tempo \markup {
 \concat {
   \smaller \general-align #Y #DOWN \note #4 #1
= 
   \italic ca.
   \hspace #0.25
   120
 }
   }
   c d e f

   % not using tempo to avoid bold face
   c^\markup {
 \concat {
   \smaller \general-align #Y #DOWN \note #4 #1
= 
   \italic ca.
   \hspace #0.25
   120
 }
   }
   d e f
   c d e f
 }

 \score {
 \new Staff { \melody }
   \layout { }
 }



 ___
 lilypond-user mailing list
 [hidden email] http:///user/SendEmail.jtp?type=nodenode=178724i=0
 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/un-bold-font-inside-tempo-tp178724.html
  To start a new topic under User, email ml-node+s1069038n...@n5.nabble.com
 javascript:_e(%7B%7D,'cvml','ml-node%2bs1069038n...@n5.nabble.com');
 To unsubscribe from Lilypond, click here
 http://lilypond.1069038.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=2code=dGlzaW1zdC5saWx5cG9uZEBnbWFpbC5jb218Mnw4MzU3Njg3MDU=
 .
 NAML
 http://lilypond.1069038.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml





--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/un-bold-font-inside-tempo-tp178724p178725.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


un-bold font inside \tempo

2015-07-16 Thread Bruno Ruviaro
Hi all,

This is my first post on this list, and my first week using Lilypond for a
real project. Learning a lot in a compressed amount of time... ;-)

I am trying to get metronome markings with ca. before the number, but
without bold face characters. How can I cancel the bold face font inside a
\tempo command?

The snippet below shows what I've got so far. Bar 2 is what I'm getting by
using \markup inside \tempo. Bar 3 shows what I would like to get. I'm
happy to use Bar 3 solution if that's the only way, but I suppose there is
a solution from inside \tempo?

Thanks for any tips!

Bruno

% ===

\version 2.18.2

melody = \relative c'' {
  % regular
  \tempo 4=120
  % using markup inside tempo
  % characters are printed in bold face
  c4 d e f
   \tempo \markup {
\concat {
  \smaller \general-align #Y #DOWN \note #4 #1
   = 
  \italic ca.
  \hspace #0.25
  120
}
  }
  c d e f

  % not using tempo to avoid bold face
  c^\markup {
\concat {
  \smaller \general-align #Y #DOWN \note #4 #1
   = 
  \italic ca.
  \hspace #0.25
  120
}
  }
  d e f
  c d e f
}

\score {
\new Staff { \melody }
  \layout { }
}
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Basic question re dynamics spacing

2015-07-16 Thread Andrew Bernard
Thanks Phil!


On 16 July 2015 at 20:44:53, Phil Holmes (m...@philholmes.net) wrote:

\new Dynamics \with { \override 
VerticalAxisGroup.nonstaff-relatedstaff-spacing.basic-distance = #25 }


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