Re: Two questions about note heads

2007-05-16 Thread Mats Bengtsson



Michael O'Donnell wrote:
Thanks to Mats for this tip, which also helps me with a similar 
project (I'm trying to set some old mensural notation just as given by 
the 15th century copyist, who has somewhat different conventions from 
those in LilyPond).


So, I managed to set some triangular heads, which I cooked up by 
rotating one of the shape-note heads.

I hope you have searched the mailing list archives. I seem to remember some
recent discussions related to triangular note heads and the stem attachment
of these.


Remaining problems:

Get the stems to attach properly (they seem to default to the top center).

Get reasonable spacing between notes (they set with no space in 
between, but adding \hspace or even \null leads to a lot of space).


Set the thing up globally to replace noteheads throughout a score (and 
take care of the other stuff) according to the note duration. I expect 
that I need to expand Mats' over-ride for stencil to a piece of 
conditional Scheme code.


I'll figure this all out eventually, but if anybody already knows, a 
tip will be great.


For the future, it would be great to have a user-settable list of 
noteheads for each duration as a parameter.

Even better, you can already now specify a Scheme function that determines
what note head to print. The function is specified using the property 
glyph-name

of the NoteHead object and the implementation of the default function
note-head::calc-glyph-name can be found in the file .../scm/output-lib.scm.

  /Mats



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


Re: placement of figured bass

2007-05-16 Thread Mats Bengtsson
The answer is exactly the same as for your previous question, as you may 
have

figured out yourself by now.

  /Mats

Alan Jones wrote:

I've been trying to use a combination of figured bass and lyrics to
provide romain numeral annotation to music.  In the following example,
the figured bass is placed far below and to the right of the 
corresponding

lyric:

\version 2.10.17
\relative c' {
  c d e f
}
\addlyrics {
  I V IV ii
}
\new FiguredBass \figuremode {
  6 6 4 6 6 4
}

Adding the following lines after \figuremode { shows that the 
horizontal

spacing is actually increasing:
  \override BassFigure #'font-size = #-2
  \override BassFigure #'extra-offset = #'(-10 . 10)

I have also tried entering separate \new FiguredBass {...} as elements
in the list of lyrics.  This resulted in increasing vertical offsets.  The
increasing offsets eventually cause problems with the page layout.
Any suggestions?
Alan



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


--
=
Mats Bengtsson
Signal Processing
Signals, Sensors and Systems
Royal Institute of Technology
SE-100 44  STOCKHOLM
Sweden
Phone: (+46) 8 790 8463 
   Fax:   (+46) 8 790 7260
Email: [EMAIL PROTECTED]
WWW: http://www.s3.kth.se/~mabe
=



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


Re: Typesetting vibrato

2007-05-16 Thread Mats Bengtsson

You mean something like
\version 2.10.0
\score{
\relative c'{
 c1 |
 \once \override TextSpanner #'style = #'trill
%  \once \override TextSpanner #'style = #'trill
 c ~
 \startTextSpan |
 c
 \stopTextSpan |
 d |
}
}


  /Mats

Jan Kohnert wrote:

Hallo all,

one question is still open for me:

is there a way to typeset vibrato (it should look like arpeggio, but 
horizontal, not vertical)?


I'm sure I've seen that on mutopia some years ago, but soehow I cannot find it 
anymore.


  



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


--
=
Mats Bengtsson
Signal Processing
Signals, Sensors and Systems
Royal Institute of Technology
SE-100 44  STOCKHOLM
Sweden
Phone: (+46) 8 790 8463 
   Fax:   (+46) 8 790 7260
Email: [EMAIL PROTECTED]
WWW: http://www.s3.kth.se/~mabe
=



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


Re: Autobeaming in 3/8 time

2007-05-16 Thread Mats Bengtsson

You can use
\set Timing.beatLength = #(ly:make-moment 3 8)
but then you will get a funny looking result if you have the rhythm c8 
c16 c16 c8
for example. I'm actually not convinced that LilyPond does what it 
should in

these situations. There is a property subDivideBeams which seems to work
in some situations like
{
 \time 2/4
 b16 b b b b16 b b b
 \set subdivideBeams = ##t
 \set Score.beatLength = #(ly:make-moment 1 8)
 b16 b b b b16 b b b
}

but in 3/8 time, we get subdivided beams even if this property is set to 
false

(which it is by default).

  /Mats

Laura Conrad wrote:

Lily (version 2.10.20 on Ubuntu Linux) seems to have an odd default
for the autobeaming in 3/8 time.  When there's a dotted 8th note
followed by three 16th notes, it seems to me that the default behavior
should be to beam the three 16ths together with a double beam.  In
other words, what I want is for all the notes to be beamed together,
with a single beam between the dotted eighth and the first sixteenth,
and a double beam connecting the three sixteenth notes.

What Lily's doing  is beaming the dotted eighth to the first sixteenth
note with a beam that has two bars on the right and one on the left,
a single beam between the first and second sixteenth notes, and a
double beam between the second and third sixteenth notes.  


I have worked around this problem with the following code:

es8. [ 
\set stemLeftBeamCount = #1

\set stemRightBeamCount = #2
c16 
\set stemLeftBeamCount = #2

es g ]

Is there a more automated way to fix the problem in general?  I've
always found the documentation about the automatic beaming behavior
somewhat cryptic.  And if someone can figure out the way to automate
this case, can it become the default without breaking the rest of the
automatic beaming for 3/8 time, which is fine?

  


--
=
Mats Bengtsson
Signal Processing
Signals, Sensors and Systems
Royal Institute of Technology
SE-100 44  STOCKHOLM
Sweden
Phone: (+46) 8 790 8463 
   Fax:   (+46) 8 790 7260
Email: [EMAIL PROTECTED]
WWW: http://www.s3.kth.se/~mabe
=



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


Re: Autobeaming in 3/8 time

2007-05-16 Thread Damian leGassick
fwiw i think the default is right -  what's being asked for is (to be  
pedantic) 6/16 beaming


anyway... if there aren't too may of them you could use a function  
like this


\version 2.11.23
alt =
#(define-music-function (parser location music1 music2 music3  
music4)  (ly:music? ly:music? ly:music? ly:music?)

#{  
$music1
\set stemLeftBeamCount = #1
\set stemRightBeamCount = #2
$music2
\set stemLeftBeamCount = #2
$music3
$music4

#})
{
\time 3/8
\alt  c'8[ c'16 c' c']

}

cheers

Damian

On 16 May 2007, at 10:35, Mats Bengtsson wrote:


You can use
\set Timing.beatLength = #(ly:make-moment 3 8)
but then you will get a funny looking result if you have the rhythm  
c8 c16 c16 c8
for example. I'm actually not convinced that LilyPond does what it  
should in
these situations. There is a property subDivideBeams which seems to  
work

in some situations like
{
 \time 2/4
 b16 b b b b16 b b b
 \set subdivideBeams = ##t
 \set Score.beatLength = #(ly:make-moment 1 8)
 b16 b b b b16 b b b
}

but in 3/8 time, we get subdivided beams even if this property is  
set to false

(which it is by default).

  /Mats

Laura Conrad wrote:

Lily (version 2.10.20 on Ubuntu Linux) seems to have an odd default
for the autobeaming in 3/8 time.  When there's a dotted 8th note
followed by three 16th notes, it seems to me that the default  
behavior

should be to beam the three 16ths together with a double beam.  In
other words, what I want is for all the notes to be beamed together,
with a single beam between the dotted eighth and the first sixteenth,
and a double beam connecting the three sixteenth notes.

What Lily's doing  is beaming the dotted eighth to the first  
sixteenth

note with a beam that has two bars on the right and one on the left,
a single beam between the first and second sixteenth notes, and a
double beam between the second and third sixteenth notes.
I have worked around this problem with the following code:

es8. [ \set stemLeftBeamCount = #1
\set stemRightBeamCount = #2
c16 \set stemLeftBeamCount = #2
es g ]

Is there a more automated way to fix the problem in general?  I've
always found the documentation about the automatic beaming behavior
somewhat cryptic.  And if someone can figure out the way to automate
this case, can it become the default without breaking the rest of the
automatic beaming for 3/8 time, which is fine?




--
=
Mats Bengtsson
Signal Processing
Signals, Sensors and Systems
Royal Institute of Technology
SE-100 44  STOCKHOLM
Sweden
Phone: (+46) 8 790 8463 
   Fax:   (+46) 8 790 7260
Email: [EMAIL PROTECTED]
WWW: http://www.s3.kth.se/~mabe
=



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




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


Positioning of noteheads in a chord?

2007-05-16 Thread Matthias Böhringer
Hello all,

I searched the documentation, the archives and the snippet repository,
however, I could not find a solution to my problem:

In the following code, the last few notes have an alternative, which
is indicated by a smaller size of the notes.

In the chord fis g8 I would like the main note (fis) to appear on
the right side of the stem, but lilypond automagically sets the fis to
the left side and the g to the right.

===begin snippet=
\version 2.10.17
\include deutsch.ly
myStaffSize = #20
#(set-global-staff-size myStaffSize)

\paper{ #(define fonts
 (make-pango-font-tree Lido STF
   Lido STF
   LucidaTypewriter
   (/ myStaffSize 20)))

annotate-spacing = ##f
ragged-bottom = ##t
ragged-last-bottom=##t
left-margin = 2\cm
line-width = 18\cm
page-top-space = 0\cm
}

\header {
title = Lob Gott getrost mit Singen
composer = Friedrich Zipp
subtitle = EG 243
}

\score {

\new Staff 
{ \clef F \key g \major \time 4/4  g4-- g8-. [ g8-. ]
fis \tweak #'font-size #-2 g8-. [ fis \tweak #'font-size #-2 g8-. ]
e \tweak #'font-size #-2 a8-. [ e \tweak #'font-size #-2 a8-. ] |
g \tweak #'font-size #-2 h2.-- \bar |. }


\layout { indent = #0 }
}
==end snippet==

Is there a \tweak or \override, that I overlooked in my search?

Is there a way to reverse the position of these two noteheads?

Liebe Grüße, Matthias
-- 
Matthias Böhringer
Brunnenstraße 6
72296 Schopfloch-Unteriflingen



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


Re: Two questions about note heads

2007-05-16 Thread Michael O'Donnell
Thanks for the further hints.
 Michael O'Donnell wrote:
 Thanks to Mats for this tip, which also helps me with a similar
 project (I'm trying to set some old mensural notation just as given
 by the 15th century copyist, who has somewhat different conventions
 from those in LilyPond).

 So, I managed to set some triangular heads, which I cooked up by
 rotating one of the shape-note heads.
 I hope you have searched the mailing list archives. I seem to remember
 some
 recent discussions related to triangular note heads and the stem
 attachment
 of these.
I searched triangle, triangle notehead, and triangular notehead,
but the only relevant stuff I found was this thread. There is stuff
about triangular percussion notes, the up-pointing triangular shape
note, and someone's desire for a downward-pointing triangular notehead.
The shape I need is a counterclockwise 90 degree rotation of the
shape-note. I can get it within a markup, but not as a glyph.
 Remaining problems:

 Get the stems to attach properly (they seem to default to the top
 center).
Here's what I thought would do it:

\once \override NoteHead #'stem-attachment = #'(1 . 1 )

I find that the second component controls the vertical point of
attachment, as verified by experiments with different values. But, for a
wide range of values for the first component, the attachment remains at
the horizontal center (as it is for the diamond-shaped mensural note
that I am modifying).
 For the future, it would be great to have a user-settable list of
 noteheads for each duration as a parameter.
 Even better, you can already now specify a Scheme function that
 determines
 what note head to print. The function is specified using the property
 glyph-name
 of the NoteHead object and the implementation of the default function
 note-head::calc-glyph-name can be found in the file
 .../scm/output-lib.scm.
I researched this, but alas it only seems to allow selection of an
existing glyph. I am using a markup with a rotated glyph. I haven't
found a way to let a markup masquerade as a glyph.

I have a similar problem trying to redesign the clef sign. I tried what
I thought was the analagous tweak used for time signature and notehead
to substitute a markup, but only succeeded with a glyph straight from
the Feta font.

Cheers,

Mike O'Donnell



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


how to write notes without staff?

2007-05-16 Thread Dario Marrini

hi,
I need to write some little tests, in which I have to put simple notes,
without staff, clef and time; I can make trasparent barlines by using
\cadenzaOn, and  I can have a single line using \new RithmStaff, but how
can I make trasparent the line of RythmStaff? and how can I alternate
notes and text character (like =, or +) using lilypond code only? I use
Openoffice and OOoLilypond.

thanks, bye

--
Dario Marrini

[EMAIL PROTECTED]


Linux Registered User#240359
Linux Registered Machine #133789


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


Re: Typesetting vibrato

2007-05-16 Thread Jan Kohnert
Am Mittwoch, 16. Mai 2007 10:28 schrieben Sie:
 You mean something like
 \version 2.10.0
 \score{
 \relative c'{
   c1 |
   \once \override TextSpanner #'style = #'trill
   c ~
   \startTextSpan |
   c
   \stopTextSpan |
   d |
 }
 }

Exactly, thanks.

-- 
MfG Jan

OpenPGP Fingerprint:
0E9B 4052 C661 5018 93C3 4E46 651A 7A28 4028 FF7A


pgpZALzlnVR3A.pgp
Description: PGP signature
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user