[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Calculate spacing in lilypond
From: |
David Kastrup |
Subject: |
Re: Calculate spacing in lilypond |
Date: |
Tue, 20 Jul 2010 12:22:55 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
cab <address@hidden> writes:
> I have been using lilypond for 2 years now in a project called
> "psautiers" (psalm in french) to create database of music : you can
> see examples at my website www.psautiers.org. Yet I used the scripts
> musicxml2ly and lilypond to create a jpeg from a musicxml file. Now
> that everything works fine, I would like to implement a way of
> changing colors in a few notes (for example to color the first notes
> of my score, or to color the predominant note in a melody), but to do
> this I have two solutions :
>
> -reexecuting lilypond and musicxml2ly to color a few notes which is very costy
> in time and in CPU because I use a system command.
> -or finding how you implemented the spacing in lilypond and directly coloring
> the corresponding notes in the jpeg file.
You can't work with JPEG files in that manner without impacting file
size and/or quality.
> I tried to look at the source using apt-get source lilypond and I then
> went to the lily directory. However I did not find what I searched
> for.
>
> Is the algorithm difficult to grasp? You may provide me a better way
> to underline of color a few notes.
You can't expect to mimic the spacing without doing the actual
typesetting.
Perhaps try running with
-dbackend=scm
and see whether you can find the necessary info in the dump.
--
David Kastrup
Re: Calculate spacing in lilypond, Colin Campbell, 2010/07/20