Re: Installing new font

2008-11-08 Thread Hugo Flordal
On Sun, 2 Nov 2008, Werner LEMBERG wrote:

  Hi, I have a metafont font with embellishment symbols (for Scottish
  tenordrum feathering and flourishing) that I'd like to use in
  LilyPond.
 
 Do you want to contribute? :-)  We could integrate them.

I would love to, but there is no standard for these 
symbols, so this is really just a suggestion.

  I've used mftrace to convert it to a .pfa type 1 font,
 
 We use mf2pt1 which gives much cleaner results.  However, you have
 probably to modify your source code.
 
  but I don't know how to install it and use it in LilyPond.  I guess
  this involves both Pango and LilyPond skills?
 
 No.  Make your font known by fontconfig (this normally means adding it
 to the right directory so that it gets cached), then you can access it
 as any other text font.

I couldn't get it to work properly. I think I got fontconfig 
to cache the font properly; fc-list contains the line

  TenorSigns:style=Regular

But when put this in my .ly-file:

 c_\markup { \override #'(font-encoding . TenorSigns)
 { \char #0 }
   }

I get as a result:

  programming error: Cannot get a text stencil from this font 
  continuing, cross fingers

Lilypond completes but the character is missing from the 
output. I used fontforge to inspect the font and supposedly 
char 0 holds something sensible.

  any clues?
Hugo


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


Re: Autobeaming with subdivision in 4/4

2008-03-04 Thread Hugo Flordal
On Tue, 4 Mar 2008, Hans Aberg wrote:

 On 3 Mar 2008, at 22:32, Hugo Flordal wrote:
 
  OK, thanks, that's one solution... but I guess that is 
  not the right way of doing it? Another way to do it is 
  to run these lines instead of the 4/4 specific ones I 
  gave in the example file.
 
  #(override-auto-beam-setting '(end * * * *) 1 4 'Voice)
  #(override-auto-beam-setting '(end * * * *) 2 4 'Voice)
  #(override-auto-beam-setting '(end * * * *) 3 4 'Voice)
 
  Then (surprisingly(?)) it works fine, and the output 
  looks great. However, I do not want */* rules since I 
  want to place these lines in a generic definition file 
  that I \include everywhere, which would mess up all non 
  */4 scores. (Right now I have a beautiful definition 
  file where everything but the auto-beaming is configured 
  nicely for my scottish snare drumming needs.)
So... can it be done the right way (presumably by 
  reverting and overriding the auto-beaming rules(?))? Or 
  perhaps these are bugs that I, as a user, can not 
  overcome without hacks like these?
 
thanks
  hguo
 

 The problem is that you want to beam differently than 
 implied by the time signature you want to write. So you 
 want to beam in what might be described as 8 = 
 (1+1)+(1+1)+(1+1)+(1+1), whereas the common interpretation 
 of 4 is (1+1)+(1+1) or perhaps 1+1+1+1. If taken 
 literally, your beaming implies that the 4/4 has one 
 primary accent, and on the 1/4s have secondary accents. 
 Then each 1/4 has a yet subordinate accent on the second 
 1/8 of it. And LilyPond does not a dedicated function 
 doing just that, though it might be possible to do write 
 one.
 
  Hans Åberg

Thank you for the reply, but I'm not sure I get it... Are 
you saying (indirectly) that when I set the beatLength to 
1/8, I implicitly change the timing to 8/8? Should I then 
use 8/8 beaming rules? Is that why my 4/4 auto-beam rules do 
not work but the */* rules do? I will eagerly try this as 
soon as I can... that would solve my problems and also 
explain some of the strange behaviour of the auto-beams.
  For the general discussion, my interpretation of beam 
subdivision is something that is orthogonal to the beaming 
given by the timing. E.g. for 6/8 I could very well want 
beams of length 3/8 with subdivision on either 1/8 or 3/16 
(or no subdivision at all), depending on musical beat, 
esthetics, readability, or for whatever reason. 
Subdividision on beats is just a special case!
  Unfortunately, in lilypond, subdivision is tied to the 
timing, since both use the beatLength property. A separate 
property for setting the subdivision length would have been 
more generic... is that hard to implement, you think? 

  thanks again
Hugo___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Autobeaming with subdivision in 4/4

2008-03-04 Thread Hugo Flordal
OK, thanks, that's one solution... but I guess that is not 
the right way of doing it? Another way to do it is to run 
these lines instead of the 4/4 specific ones I gave in the 
example file.

#(override-auto-beam-setting '(end * * * *) 1 4 'Voice)
#(override-auto-beam-setting '(end * * * *) 2 4 'Voice)
#(override-auto-beam-setting '(end * * * *) 3 4 'Voice)

Then (surprisingly(?)) it works fine, and the output looks 
great. However, I do not want */* rules since I want to 
place these lines in a generic definition file that I 
\include everywhere, which would mess up all non */4 scores. 
(Right now I have a beautiful definition file where 
everything but the auto-beaming is configured nicely for my 
scottish snare drumming needs.)
  So... can it be done the right way (presumably by 
reverting and overriding the auto-beaming rules(?))? Or 
perhaps these are bugs that I, as a user, can not overcome 
without hacks like these?

  thanks
hguo

On Sun, 2 Mar 2008, Hans Aberg wrote:

 
 On 2 Mar 2008, at 17:12, Hugo Flordal wrote:
 
   I have problems getting autobeaming to work together with beam subdivision
  in
  4/4 timing. I'm typesetting for the scottish snare drum and there are two
  requirements that need to be fulfilled,
  
   * beams should always start and end on even quarters (and nowhere else),
  and
   * beams should be subdivided on eighths.
 
 Perhaps something like:
 
  \time 8/8
  \set beatGrouping = #'(1 1 1 1 1 1 1 1)
  \set subdivideBeams = ##t
  #(override-auto-beam-setting '(end * * 8 8) 2 8)
  #(override-auto-beam-setting '(end * * 8 8) 4 8)
  #(override-auto-beam-setting '(end * * 8 8) 6 8)
 
 And then figure out how to draw a 4-time time signature.
 
  Hans Åberg
 
 
 \version 2.10.33
 
 % Header
 \header {
  title = Quarter beams with subdivision, minimal test
  tagline = ##f
 }
 
 myautobeams = {
  \set beatGrouping = #'(1 1 1 1 1 1 1 1)
  \set subdivideBeams = ##t
  #(override-auto-beam-setting '(end * * 8 8) 2 8)
  #(override-auto-beam-setting '(end * * 8 8) 4 8)
  #(override-auto-beam-setting '(end * * 8 8) 6 8)
 }
 
 % Music
 {
  %% Time
  \time 8/8
  {
%% Change auto beam behaviour
\myautobeams
 
   %% First measure
   \partial 8 {
   d8:32(
   }
   \repeat volta 2 {
 d-) \times 2/3 {c16 d c} d8- c16. d32- c16. d32- c d c d c8- c
   }
  }
 }
 
 


Hugo Flordal +46 704 74 69 52 (cell)
Kansligränd 5+46 8 594 318 19 (home)
141 63 Huddinge
Sweden  [EMAIL PROTECTED] (email)
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Autobeaming with subdivision in 4/4

2008-03-04 Thread Hugo Flordal
On Tue, 4 Mar 2008, Hans Aberg wrote:

 On 4 Mar 2008, at 13:20, Hugo Flordal wrote:
 
  The problem is that you want to beam differently than
  implied by the time signature you want to write. So you
  want to beam in what might be described as 8 =
  (1+1)+(1+1)+(1+1)+(1+1), whereas the common interpretation
  of 4 is (1+1)+(1+1) or perhaps 1+1+1+1. If taken
  literally, your beaming implies that the 4/4 has one
  primary accent, and on the 1/4s have secondary accents.
  Then each 1/4 has a yet subordinate accent on the second
  1/8 of it. And LilyPond does not a dedicated function
  doing just that, though it might be possible to do write
  one.
 
  Thank you for the reply, but I'm not sure I get it... Are
  you saying (indirectly) that when I set the beatLength to
  1/8, I implicitly change the timing to 8/8? Should I then
  use 8/8 beaming rules? Is that why my 4/4 auto-beam rules do
  not work but the */* rules do?
 
 No. LilyPond currently only has ready-made high-level functions for  
 some standard situations, where time signature and beaming agree. In  
 other cases one will have to use low level functions, as I showed you.
 
Hans Aberg

Well, believe it or not, it _does_ work as it should when 
I change the rules to

  #(override-auto-beam-setting '(end * * 8 8) 1 4 'Voice)
  #(override-auto-beam-setting '(end * * 8 8) 1 2 'Voice)
  #(override-auto-beam-setting '(end * * 8 8) 3 4 'Voice)

That is to say, 8/8 instead of 4/4. But the timing is still 
unchanged, i.e. 4/4, just like I wanted it. (I have only 
tried it for the example that I posted originally, perhaps 
this is a freak example, I'll experiment more later.)
  Clearly, this is not a bug---it is an accidental feature!

  jolly good! thanks for the help!
hguo



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


Autobeaming with subdivision in 4/4

2008-03-02 Thread Hugo Flordal
Hi,
  I have problems getting autobeaming to work together with beam subdivision in
4/4 timing. I'm typesetting for the scottish snare drum and there are two
requirements that need to be fulfilled,

  * beams should always start and end on even quarters (and nowhere else), and
  * beams should be subdivided on eighths. 

  These two seem impossible to achieve simultaneously. As soon as I set
beamLength to 1/8, the beams start to break on eighths as well. Strangely it
appears to work better in other timings. 
  Below is a small example... if you comment out \set beatLength on line 15, you
see that the auto beaming is working as it should, but with \set beatLength it
breaks. What am I doing wrong?

  thanks!
   /Hugo

=
\version 2.10.33

% Header
\header {
  title = Quarter beams with subdivision, minimal test
  tagline = ##f
}

myautobeams = {
  #(revert-auto-beam-setting '(end 1 32 4 4)  5 8)
  #(override-auto-beam-setting '(end * * 4 4) 1 4 'Voice)
  #(override-auto-beam-setting '(end * * 4 4) 1 2 'Voice)
  #(override-auto-beam-setting '(end * * 4 4) 3 4 'Voice)
  \set subdivideBeams = ##t
  \set beatLength = #(ly:make-moment 1 8) % Subdivide beams on eighths
}

% Music
{
  %% Time
  \time 4/4   
  { 
%% Change auto beam behaviour
\myautobeams

%% First measure
\partial 8 {
d8:32( 
}
\repeat volta 2 {
  d-) \times 2/3 {c16 d c} d8- c16. d32- c16. d32- c d c d c8- c 
}
  }
}



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


Single note analysis brackets?

2007-11-18 Thread Hugo Flordal
I'd like to use the Horizontal_bracket_engraver to indicate single notes, but it
seems analysis brackets can only be used over multiple notes. I'm attempting to
write 
  c8\startGroup\stopGroup
but this isn't working. Is it possible to get around this somehow? Perhaps by
adding a dummy note with zero width somewhere? All my experiments and solution
searches have failed...
  I also tried using the Ligature_bracket_engraver, but it does not appear to be
very stable and I can't find a way of tweaking it into producing horizontal
brackets at a fixed height.

It would be nice if analysis brackets could be generalised so that they could
replace the Ligature_bracket_engraver completely... (And perhaps use the \[ \]
notation as well...)



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


Redefine r? Horizontal beams? Grace without beam break?

2007-11-16 Thread Hugo Flordal
Hi, I'm using Lilypond 2.10.25 and I have a few questions...

  Is it possible to redefine the rest note name 'r' and instead use e.g. 'p'
for rests. I'd really like to use 'r' for something else (right hand strokes in
drumming).

  Can you have _really_ horizontal beams (possibly always at the same hight)?
The following line does not work, the beams are still leaning ever so 
slightly...
\override Beam #'damping = #1000

  Another thing, how would I tweak the automatic beaming to have grace notes
that do not break beams? For instance, I'd like the first code snippet to
produce the same output as the second.

  \stemDown
  a8 \grace {c16[c]} a8

  \stemDown
  a8[ \grace {c16[c]} a8]


 thanks!
   hguo



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