stem doesn't fit in beam

2007-08-11 Thread Peter Terpstra

~ .ly snippet:

\relative c' 
% Treble
<<  { \LeftHandLeft
4. e8 4 |
e4 \acciaccatura { cis[ d ] }  cis  
}
% Bass
\\  { \LeftHandLeft
2 4 |
a2.
}
>>
~~ End .ly snippet

Its about the acciaccatura, there should be something wrong with the bracket
but i don' know what.

Kind Regards,

   Peter

-- 
mailto:[EMAIL PROTECTED]



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


Re: stem doesn't fit in beam

2007-08-11 Thread Kieren MacMillan

Hi Peter,


e4 \acciaccatura { cis[ d ] }  cis 


Its about the acciaccatura, there should be something wrong with  
the bracket

but i don' know what.


Since the last specified duration before the \acc is a quarter note  
(e4), the \acc consists of quarter notes as well.

As a result, you're attempting to "beam" two quarter notes!  =)

Instead, try

e4 \acciaccatura { cis8[ d ] }  cis 

where the cis8 is cis16 or cis32 (etc.) as needed.

Hope this helps!
Kieren.


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


Question to Mats (was: Re: a few lead sheet questions)

2007-08-11 Thread Daniel Leidisch
I searched the archives in order to find a way to insert bar lines at
the left side of staves and found two interesting threads. In the
newer thread you mentioned that it was not possible (because of
something hardcoded) and there was no reply to your article at the
lilypond-devel archive.

However, I found a thread from last year in which you posted an “ugly
solution” which I tried (2.10.25).

The code works, but unfortunately I can neither use my sectionLetter
nor “\bar "||"” insertions.

Is there now a way to have those bar lines in a “non ugly” way, or to
make your code work with my sectionLetter and “\bar "||"”?

TIA

dhl


,[ sectionLetter ]
| sectionLetter =
| #(define-music-function (parser location letter) (string?)
|   #{
| \once \override Score.RehearsalMark #'extra-offset = #'(-9 . 1)
| \mark \markup{\box{\bold{ $letter }}}
|   #})
`

,[ your code ]
| #(define-public (index-cell cell dir)
|   (if (equal? dir 1)
|   (cdr cell)
|   (car cell)))
| 
| 
| #(define-public (bar-line::my-calc-glyph-name grob)
|   (let* (
|  (glyph (ly:grob-property grob 'glyph))
|  (dir (ly:item-break-dir grob))
|  (result (assoc glyph
|'((":|:" . (":|" . "|:"))
|  ("||:" . ("||" . "|:"))
|  ("|" . ("|" . "|"))
|  ("||:" . ("||" . "|:"))
|  ("|s" . (() . "|"))
|  ("|:" . ("|" . "|:"))
|  ("|." . ("|." . ()))
| 
|  ;; hmm... should we end with a bar line here?
|  (".|" . ("|" . ".|"))
|  (":|" . (":|" . ()))
|  ("||" . ("||" . ()))
|  (".|." . (".|." . ()))
|  ("" . ("" . ""))
|  (":" . (":" . ""))
|  ("." . ("." . ()))
|  ("empty" . (() . ()))
|  ("brace" . (() . "brace"))
|  ("bracket" . (() . "bracket"))  )))
|  (glyph-name (if (= dir CENTER)
|  glyph
|  (if (and result (string? (index-cell (cdr
| result) dir)))
|  (index-cell (cdr result) dir)
|  #f)))
|  )
| 
| (if (not glyph-name)
| (ly:grob-suicide! grob))
| 
| glyph-name))
| 
| \layout{
|   \context{
| \Score
| \override BarLine #'glyph-name = #bar-line::my-calc-glyph-name
|   }
| } 
`


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


Re: Fonts in SVG output

2007-08-11 Thread Erik Sandberg
On Sunday 08 July 2007, Benjamin Esham wrote:
> Benjamin Esham wrote:
> > I'm having some issues with Lilypond 2.10.x's SVG export.
>
> I seem to have fixed most (all?) of my font problems.  I now have another
> problem, however.
>
> In order to submit one of LilyPond's SVGs to e.g. the Wikimedia Commons, it
> is necessary to convert all of its text into paths; that way, users need
> not have LilyPond's fonts in order to view the image correctly.  Before
> converting text into paths in Inkscape, you must make sure that none of the
> text is contained within a group.  Therefore, I started to process my file
> by selecting everything and issuing an Ungroup command.
>
> When I did so, the staff lines disappeared!  Apparently every object in the
> file is in a one-element group.  For some reason, ungrouping the staff
> lines made them disappear—they were still present, just not visible.  I
> think there may be an Inkscape bug at play here too, since "Select All"
> couldn't find the lines, but on the LilyPond end... how can I get Lily to
> create a sane, usable SVG file?
>
> Any help is greatly appreciated here.

There's another approach to the SVG output problem: You can take PDF or EPS 
output from lilypond, and try to turn it into SVG files. The postscript 
backend of lilypond is obviously more mature, and there exist converters from 
pdf/ps to svg. Free converters are a bit shaky, but for some lily versions I 
managed to convert .ly files into valid SVG via a chain of converters.

Usually, you need to first expand fonts to curves using some ps2ps-like 
script, and then use pstoedit to convert to something that can be converted 
to svg. Unfortunately, most conversion tools are rather immature, so you will 
need some experimenting to make it work. IIRC, I managed to generate valid 
svg with this method for my master's thesis, using a lilypond version around 
2.6. I don't remember the exact combination of commands that worked though.

(I have vague memories that it may be good to start with pdf output and 
convert it back to eps)

Here's a script that works for some subsets of ps (not lily's though), you can 
look at it for ideas:
http://en.wikipedia.org/wiki/Wikipedia:WikiProject_Electronics/Ps2svg.sh

If you manage to find a fairly reliable path to convert the output of a recent 
lily version into wikipedia-usable SVGs, I'd be happy to know.

Erik


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


Re: stem doesn't fit in beam

2007-08-11 Thread Peter Terpstra
Kieren MacMillan in <[EMAIL PROTECTED]> :

> Since the last specified duration before the \acc is a quarter note
> (e4), the \acc consists of quarter notes as well.
> As a result, you're attempting to "beam" two quarter notes!  =)

How could i have missed that! Stupid of me :-)

Thanks for your answer!

Peter

-- 
mailto:[EMAIL PROTECTED]



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