Re: Graphics
solution from Jean Abou Samra in another thread: Consider baking the offset into the markup itself, e.g., |\override Staff.Clef.stencil = #ly:text-interface::print \override Staff.Clef.text = \markup \lower #0.5 \epsfile #X #1.5 "XXX" - just to have this in this thread for future searches... Joei | I'm now able to include the eps - but still struggle to place the clef (it should be centered on the G-Line) as I like to do: \version "2.24.0" \new Staff { \clef G c'1 \override Staff.Clef.stencil = #ly:text-interface::print \override Staff.Clef.text = \markup \epsfile #X #1.5 "HasslerG3.eps" \set Staff.clefPosition = #0 \set Staff.clefTransposition = #0 \set Staff.middleCPosition = #-4 \set Staff.middleCClefPosition = #-4 \clef F c \clef G c' } \layout { } I tried to include whitespace above the clef in the eps, but this didn't change anything, looks like the bottom of the eps is placed on the g-line. best regards Joei Le samedi 08 avril 2023 à 10:58 +0200, Johannes Roeßler a écrit : now I managed to make my EPS accessable in Lilypond, and I am able to use it as markup. Now I want to use it to replace a clef. In the snippets there is a way, that creates an alternative stencil and then uses: \override Clef.stencil = #(lambda (grob) (let* ((sz (ly:grob-property grob 'font-size 0)) (mlt (magstep sz)) (glyph (ly:grob-property grob 'glyph-name))) (cond ((equal? glyph "clefs.F") (ly:stencil-scale my-clef (* 1 mlt) (* 1 mlt))) ((equal? glyph "clefs.F_change") (ly:stencil-scale my-clef (* .8 mlt) (* .8 mlt))) (else (ly:clef::print grob) - but in this case I would need to define the stencil. Is there a way to replace a clef glyph with an EPS? There is a general technique you can use to replace any grob's stencil using a markup: set the stencil property to |ly:text-interface::print|, which tells LilyPond to compute the stencil using the markup in the |text| property, and set that property to what you want. |\layout { \override Staff.Clef.stencil = #ly:text-interface::print \override Staff.Clef.text = \markup \epsfile #X #10 "/home/jean/repos/lilypond/input/regression/lilypond.eps" } | HTH, Jean
Re: Graphics
I'm now able to include the eps - but still struggle to place the clef (it should be centered on the G-Line) as I like to do: \version "2.24.0" \new Staff { \clef G c'1 \override Staff.Clef.stencil = #ly:text-interface::print \override Staff.Clef.text = \markup \epsfile #X #1.5 "HasslerG3.eps" \set Staff.clefPosition = #0 \set Staff.clefTransposition = #0 \set Staff.middleCPosition = #-4 \set Staff.middleCClefPosition = #-4 \clef F c \clef G c' } \layout { } I tried to include whitespace above the clef in the eps, but this didn't change anything, looks like the bottom of the eps is placed on the g-line. best regards Joei Le samedi 08 avril 2023 à 10:58 +0200, Johannes Roeßler a écrit : now I managed to make my EPS accessable in Lilypond, and I am able to use it as markup. Now I want to use it to replace a clef. In the snippets there is a way, that creates an alternative stencil and then uses: \override Clef.stencil = #(lambda (grob) (let* ((sz (ly:grob-property grob 'font-size 0)) (mlt (magstep sz)) (glyph (ly:grob-property grob 'glyph-name))) (cond ((equal? glyph "clefs.F") (ly:stencil-scale my-clef (* 1 mlt) (* 1 mlt))) ((equal? glyph "clefs.F_change") (ly:stencil-scale my-clef (* .8 mlt) (* .8 mlt))) (else (ly:clef::print grob) - but in this case I would need to define the stencil. Is there a way to replace a clef glyph with an EPS? There is a general technique you can use to replace any grob's stencil using a markup: set the stencil property to |ly:text-interface::print|, which tells LilyPond to compute the stencil using the markup in the |text| property, and set that property to what you want. |\layout { \override Staff.Clef.stencil = #ly:text-interface::print \override Staff.Clef.text = \markup \epsfile #X #10 "/home/jean/repos/lilypond/input/regression/lilypond.eps" } | HTH, Jean
Re: Graphics
Le samedi 08 avril 2023 à 10:58 +0200, Johannes Roeßler a écrit : > now I managed to make my EPS accessable in Lilypond, and I am able to > use it as markup. > Now I want to use it to replace a clef. In the snippets there is a > way, that creates an alternative stencil and then uses: > > > \override Clef.stencil = > #(lambda (grob) > (let* ((sz (ly:grob-property grob 'font-size 0)) > (mlt (magstep sz)) > (glyph (ly:grob-property grob 'glyph-name))) > (cond > ((equal? glyph "clefs.F") > (ly:stencil-scale my-clef (* 1 mlt) (* 1 > mlt))) > ((equal? glyph "clefs.F_change") > (ly:stencil-scale my-clef (* .8 mlt) (* .8 > mlt))) > (else (ly:clef::print grob) > > > \- but in this case I would need to define the stencil. Is there a way > to replace a clef glyph with an EPS? There is a general technique you can use to replace any grob's stencil using a markup: set the stencil property to `ly:text-interface::print`, which tells LilyPond to compute the stencil using the markup in the `text` property, and set that property to what you want. ``` \layout { \override Staff.Clef.stencil = #ly:text-interface::print \override Staff.Clef.text = \markup \epsfile #X #10 "/home/jean/repos/lilypond/input/regression/lilypond.eps" } ``` HTH, Jean signature.asc Description: This is a digitally signed message part
Re: Graphics
now I managed to make my EPS accessable in Lilypond, and I am able to use it as markup. Now I want to use it to replace a clef. In the snippets there is a way, that creates an alternative stencil and then uses: \override Clef.stencil = #(lambda (grob) (let* ((sz (ly:grob-property grob 'font-size 0)) (mlt (magstep sz)) (glyph (ly:grob-property grob 'glyph-name))) (cond ((equal? glyph "clefs.F") (ly:stencil-scale my-clef (* 1 mlt) (* 1 mlt))) ((equal? glyph "clefs.F_change") (ly:stencil-scale my-clef (* .8 mlt) (* .8 mlt))) (else (ly:clef::print grob) - but in this case I would need to define the stencil. Is there a way to replace a clef glyph with an EPS? thx, Joei Le samedi 08 avril 2023 à 00:02 +0200, Johannes A. Roeßler a écrit : Excellent! Did I miss it somewhere in the documentation or is this well hidden? The \epsfile command? It's on the page you gave the link of...
Re: Graphics
Embarrassing.. thx Am 8. April 2023 00:06:19 schrieb Jean Abou Samra : Le samedi 08 avril 2023 à 00:02 +0200, Johannes A. Roeßler a écrit : Excellent! Did I miss it somewhere in the documentation or is this well hidden? The \epsfile command? It's on the page you gave the link of...
Re: Graphics
Le samedi 08 avril 2023 à 00:02 +0200, Johannes A. Roeßler a écrit : > Excellent! Did I miss it somewhere in the documentation or is this well > hidden? The \epsfile command? It's on the page you gave the link of... signature.asc Description: This is a digitally signed message part
Re: Graphics
Excellent! Did I miss it somewhere in the documentation or is this well hidden? J Am 7. April 2023 19:33:49 schrieb Jean Abou Samra : Le 7 avr. 2023 à 19:15, Johannes A. Roeßler a écrit : Thx for the fast answer. In the EPS I will find the needed moveto and curveto commands to copy to lilypond? Don’t copy the contents of the file. Just put the EPS file next to your LilyPond file and write \markup \epsfile #Y #10 "name-of-file.eps" in your LilyPond code.
Re: Graphics
> Le 7 avr. 2023 à 19:15, Johannes A. Roeßler a écrit : > > > Thx for the fast answer. In the EPS I will find the needed moveto and curveto > commands to copy to lilypond? Don’t copy the contents of the file. Just put the EPS file next to your LilyPond file and write \markup \epsfile #Y #10 "name-of-file.eps" in your LilyPond code.
Re: Graphics
Thx for the fast answer. In the EPS I will find the needed moveto and curveto commands to copy to lilypond? Best regards Joei Am 7. April 2023 19:09:36 schrieb Jean Abou Samra : Le 7 avr. 2023 à 19:02, Johannes Roeßler a écrit : Hi Group, is there a way to generate vector files with a program producing e.g. a SVG files and convert it to the PS commands needed for lilypond? https://lilypond.org/doc/v2.22/Documentation/notation/graphic If I understand your request correctly, you can convert the SVG file to EPS, for example using librsvg with rsvg-convert --format=eps file.svg > file.eps then include it with \epsfile. Of course, you will need to install librsvg. There are also countless websites out there where you can do the SVG -> EPS conversion step online. Best Jean
Re: Graphics
> Le 7 avr. 2023 à 19:02, Johannes Roeßler a écrit : > > > Hi Group, > > is there a way to generate vector files with a program producing e.g. a SVG > files and convert it to the PS commands needed for lilypond? > https://lilypond.org/doc/v2.22/Documentation/notation/graphic > If I understand your request correctly, you can convert the SVG file to EPS, for example using librsvg with rsvg-convert --format=eps file.svg > file.eps then include it with \epsfile. Of course, you will need to install librsvg. There are also countless websites out there where you can do the SVG -> EPS conversion step online. Best Jean
Graphics
Hi Group, is there a way to generate vector files with a program producing e.g. a SVG files and convert it to the PS commands needed for lilypond? https://lilypond.org/doc/v2.22/Documentation/notation/graphic Best regards Joei
Re: Changing note graphics
Is this something like what you’re looking for? %% \version "2.22.1" \new Score \new PianoStaff << \new Staff << {c''2 b'4 a' g'1} \\ {e'2. f'4 e'2 d'} >> \new Staff << {\clef bass g2. a8 b c'2 b} \\ {c4 e2 d4 g1} >> >> \layout { \context { \Voice \override NoteHead.before-line-breaking = #(lambda (grob) (if (= 1 (ly:grob-property grob 'duration-log)) (ly:grob-set-property! grob 'duration-log 2) #t) ) \override Stem.stencil = #(lambda (stem) (if (= 1 (ly:grob-property stem 'duration-log)) #f (ly:stem::print stem) )) } } %% > 2 juni 2021 kl. 22:29 skrev Kees van den Doel : > > I want to change all half-notes in an existing score to look like quarter > note with no stem. > Everything else should remain unchanged. > Is there a way to do this without editing every occurrence? > > Thanks.
Changing note graphics
I want to change all half-notes in an existing score to look like quarter note with no stem. Everything else should remain unchanged. Is there a way to do this without editing every occurrence? Thanks.
Re: can \markup locate an embedded graphics file using include path?
On Tue, 2015-01-27 at 11:57 +, Graham King wrote: Many of my scores embed a small EPS file using (somewhat simplified): \markup { \epsfile #X #10 #path/to/file.eps } This is proving a bit of an obstacle to portability as path/to (relative or absolute) is installation-specific. Is it possible to put file.eps (or the equivalent graphic in any other format) in the \include path? Something like: \markup { \epsfile #X #10 \include file.eps } I've tried various formats and wrappers without success so far. Well, I've managed to get somewhere by wrapping the contents of a PS file thus: myLogo=# the-whole-of-the-ps-file but the logo then appears in the lilypond output without the rest of the score! OK, time to try a different approach. Does anyone know how to derive the absolute path of a file that has been \include'd ? In other words: \include foo ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
can \markup locate an embedded graphics file using include path?
Many of my scores embed a small EPS file using (somewhat simplified): \markup { \epsfile #X #10 #path/to/file.eps } This is proving a bit of an obstacle to portability as path/to (relative or absolute) is installation-specific. Is it possible to put file.eps (or the equivalent graphic in any other format) in the \include path? Something like: \markup { \epsfile #X #10 \include file.eps } I've tried various formats and wrappers without success so far. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Problem with wrong font/glyphs/graphics
On Tue, Aug 26, 2014 at 03:55:51PM +0200, Janek Warchoł wrote: 2014-08-25 0:40 GMT+02:00 Frank Steinmetzger war...@gmx.de: On Sun, Aug 24, 2014 at 10:51:53PM +0200, Malte Meyn wrote: That is a known problem. If I remember correctly this only occurs with some old versions of LilyPond when using a certain version of ghostscript, but I don’t remember the exact details ... What versions of LilyPond (lilypond --version) and ghostscript (ghostscript --version) do you use? Thanks for the reply. Lilypond 2.16.2 and ghostscript 9.10. But it has been so since I installed this system in March, there were no upgrades ever since. Some other package must be the culprit. The problem was actually caused by metafont or metapost, not ghostscript. I rebuild the direct dependencies for lilypond and also for ghostscript (including texlive-metapost), but that didn’t help. However, I encountered a problem actually building lilypond 2.16.2 -- it fails with freetype-error.cc:34:31: warning: freetype/fterrors.h: No such file or directory The file it was looking for is actually at /usr/include/freetype2/fterrors.h. I checked a few other freetype-dependent packages and also another distro (Arch), in case it was a problem of my own (Gentoo). All use include/freetype2. It’s EOL now, but could this be a bug in the lilypond code? I think that upgrading to the latest stable LilyPond release may help you (and anyway 2.16 is quite old). I am aware of that, but apparently the package maintainer is not (the 2.18 package has been available for a while now, but not marked yet as “stable” and I don’t want to customise my package manager setup too much). See http://lists.gnu.org/archive/html/lilypond-devel/2013-10/msg00204.html for more details. Interesting. What puzzled me at first was that both my machines had the same versions of stuff installed, but still had different output. So I dug a bit deeper and found out that the last time I actually built lilypond on the working one it still had texlive 2012. There is a separate metapost package available which provides version 1.803. I installed that, set the system to use it and rebuilt lilypond. Now the output is fine again. I’ll remember that for later. Cheers. -- Gruß | Greetings | Qapla’ Please do not share anything from, with or about me with any Facebook service. The flesh was willing, but the grass was wet. signature.asc Description: Digital signature ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Problem with wrong font/glyphs/graphics
2014-08-25 0:40 GMT+02:00 Frank Steinmetzger war...@gmx.de: On Sun, Aug 24, 2014 at 10:51:53PM +0200, Malte Meyn wrote: That is a known problem. If I remember correctly this only occurs with some old versions of LilyPond when using a certain version of ghostscript, but I don’t remember the exact details ... What versions of LilyPond (lilypond --version) and ghostscript (ghostscript --version) do you use? Thanks for the reply. Lilypond 2.16.2 and ghostscript 9.10. But it has been so since I installed this system in March, there were no upgrades ever since. Some other package must be the culprit. The problem was actually caused by metafont or metapost, not ghostscript. I think that upgrading to the latest stable LilyPond release may help you (and anyway 2.16 is quite old). See http://lists.gnu.org/archive/html/lilypond-devel/2013-10/msg00204.html for more details. hth, Janek ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Problem with wrong font/glyphs/graphics
Hello I think I've had this problem before, but back then it affected only the G clef. There is more broken this time. I have two machines here, both run 64 bit Gentoo linux with an identical software setup (as far as possible, since the hardware is very different). The problem: one machine renders certain components of a score differently to the other. The most prominent thing is again the different G clef. But also the 8th notes look different. What makes it not seem like a freak bug to me is the choirstaff bracket. It looks different, but like it was intentionally designed that way with its arty curls at the end. Is that a different music font? Can you enlighten me what's wrong here? The attached screenshot shows the result of both machines which used an identical input file which is based on a template I've been using for years. The top staff is the way I would expect it, the bottom one shows the result that is different. -- Gruß | Greetings | Qapla’ Please do not share anything from, with or about me with any Facebook service. The advantage of RSS jokes is that you always know the newest one. signature.asc Description: Digital signature ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Problem with wrong font/glyphs/graphics
That is a known problem. If I remember correctly this only occurs with some old versions of LilyPond when using a certain version of ghostscript, but I don’t remember the exact details ... What versions of LilyPond (lilypond --version) and ghostscript (ghostscript --version) do you use? On 24.08.2014 15:13, Frank Steinmetzger wrote: Hello I think I've had this problem before, but back then it affected only the G clef. There is more broken this time. I have two machines here, both run 64 bit Gentoo linux with an identical software setup (as far as possible, since the hardware is very different). The problem: one machine renders certain components of a score differently to the other. The most prominent thing is again the different G clef. But also the 8th notes look different. What makes it not seem like a freak bug to me is the choirstaff bracket. It looks different, but like it was intentionally designed that way with its arty curls at the end. Is that a different music font? Can you enlighten me what's wrong here? The attached screenshot shows the result of both machines which used an identical input file which is based on a template I've been using for years. The top staff is the way I would expect it, the bottom one shows the result that is different. ___ 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: Problem with wrong font/glyphs/graphics
On Sun, Aug 24, 2014 at 10:51:53PM +0200, Malte Meyn wrote: That is a known problem. If I remember correctly this only occurs with some old versions of LilyPond when using a certain version of ghostscript, but I don’t remember the exact details ... What versions of LilyPond (lilypond --version) and ghostscript (ghostscript --version) do you use? Thanks for the reply. Lilypond 2.16.2 and ghostscript 9.10. But it has been so since I installed this system in March, there were no upgrades ever since. Some other package must be the culprit. -- Gruß | Greetings | Qapla’ Please do not share anything from, with or about me on any social network. Computers are the most intelligent idiots in existence. signature.asc Description: Digital signature ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Graphics
Shane Brandes wrote Hi all, This is really just a few observations on the including of graphics. I noticed it is possible to import eps files. This is neat. It turns out that you can move things about using the following: \markup {{ \vspace #21 \hspace #45 \rotate #45 % This must come after the vertical and horizontal %adjustments if it is to be used that's clear - \hspace and \vspace are objects too. \epsfile #Y #20 #/home/doodles/doodling.eps % this should be noted in the documentation that you must specify a file location in addition to the file name. Otherwise lilypond looks in its font folder instead of where the image actually is. }} rather the folder of the .ly file you are running (or the search paths which you can see using the verbose option) My question is is there an easier way of deducing position or assigning position? It takes a bit of guess work to figure out were the eps will land on the page. if you don't agree with the default position you can change it - what's difficult about this? Also I noticed that there is some sort of layer property -\tweak #'layer #-1 It would be interesting to place the image below the score. But for some reason I can not get that to work. So more fun things Lilypond sort of does. I don't understand what you mean here - can you post a sketch or the code of what you're after!? Eluze -- View this message in context: http://lilypond.1069038.n5.nabble.com/Graphics-tp150232p150255.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: Graphics
Eluze elu...@gmail.com writes: Shane Brandes wrote Hi all, This is really just a few observations on the including of graphics. I noticed it is possible to import eps files. This is neat. It turns out that you can move things about using the following: \markup {{ \vspace #21 \hspace #45 \rotate #45 % This must come after the vertical and horizontal %adjustments if it is to be used that's clear - \hspace and \vspace are objects too. I'd rather use \translate here. -- David Kastrup ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Graphics
\translate is much better, but that command is not on the documentation page about adding graphics. Eluze to clarify. Should you wish to move the graphic it takes a bit of guesswork to place the graphic somewhere else. To further clarify why this might be useful. Say we are asked to put some funny picture some distance x,y from a corner you can spend a bit of time working out how to get it there. The last bit that was puzzling to you is was something I was not sufficiently clear about. In lilypond report #20 Valentin Villenave suggested, three years ago, it might be possibly to add watermarks. i.e. images that could be placed in a layer below the score. They might say something like not for distribution or draft or be a picture of an imprese. Anyway the whole point of this exercise is to figure that out and be able to point to another fine and useful thing lilypond can do without resorting to running the output through a secondary image editor. Shane On Thu, Sep 5, 2013 at 9:56 AM, David Kastrup d...@gnu.org wrote: Eluze elu...@gmail.com writes: Shane Brandes wrote Hi all, This is really just a few observations on the including of graphics. I noticed it is possible to import eps files. This is neat. It turns out that you can move things about using the following: \markup {{ \vspace #21 \hspace #45 \rotate #45 % This must come after the vertical and horizontal %adjustments if it is to be used that's clear - \hspace and \vspace are objects too. I'd rather use \translate here. -- David Kastrup ___ 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
Graphics
Hi all, This is really just a few observations on the including of graphics. I noticed it is possible to import eps files. This is neat. It turns out that you can move things about using the following: \markup {{ \vspace #21 \hspace #45 \rotate #45 % This must come after the vertical and horizontal %adjustments if it is to be used \epsfile #Y #20 #/home/doodles/doodling.eps % this should be noted in the documentation that you must specify a file location in addition to the file name. Otherwise lilypond looks in its font folder instead of where the image actually is. }} My question is is there an easier way of deducing position or assigning position? It takes a bit of guess work to figure out were the eps will land on the page. Also I noticed that there is some sort of layer property -\tweak #'layer #-1 It would be interesting to place the image below the score. But for some reason I can not get that to work. So more fun things Lilypond sort of does. Shane ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Combining graphics and text in one stencil?
David Kastrup wrote: It's called interpret-markup and you obviously need layout and props for it. One variant that gets them itself from a grob is grob-interpret-markup. Thank you. It was right under my nose but I didn't understand it; and now I do. - Mark ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Combining graphics and text in one stencil?
I'm able to write my own graphical stencils using ly:make-stencil, and I also can override stencils with text or markup using the ly:text-interface::print callback, but now I want to make one stencil with graphics *and* text, and I can't figure out how to do that. Is there some way to achieve something akin to this: (ly:make-stencil (list 'string foo)) That would be my preference. I experimented with (ly:make-stencil (list 'char ...)) but I couldn't get it to do anything. output-ps.scm is very difficult to follow with no docstrings. Ugh. Any advice is appreciated. Thanks. - Mark ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Combining graphics and text in one stencil?
Mark Polesky markpole...@yahoo.com writes: I'm able to write my own graphical stencils using ly:make-stencil, and I also can override stencils with text or markup using the ly:text-interface::print callback, but now I want to make one stencil with graphics *and* text, and I can't figure out how to do that. Is there some way to achieve something akin to this: (ly:make-stencil (list 'string foo)) That would be my preference. I experimented with (ly:make-stencil (list 'char ...)) but I couldn't get it to do anything. output-ps.scm is very difficult to follow with no docstrings. Ugh. Any advice is appreciated. It's called interpret-markup and you obviously need layout and props for it. One variant that gets them itself from a grob is grob-interpret-markup. -- David Kastrup ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Column of music and a column of graphics... or creating invisible measures...
On Mar 19, 2013, at 9:45 PM, lilypond-user-requ...@gnu.org wrote: Message: 5 Date: Tue, 19 Mar 2013 15:17:42 -0700 (PDT) From: rem-d andrewree...@gmail.com To: lilypond-user@gnu.org Subject: Column of music and a column of graphics... or creating invisible measures... Message-ID: 1363731462888-143065.p...@n5.nabble.com Content-Type: text/plain; charset=us-ascii http://lilypond.1069038.n5.nabble.com/file/n143065/cadences.png Hi, first post on this forum. I wish to have something similar to the image attached. At the moment my code is rather simple: /upper = { \override Score.KeyCancellation #'stencil = ##f \set Score.explicitKeySignatureVisibility = #'#(#f #f #t) \override Score.BarNumber #'stencil = ##f \override Score.TimeSignature #'stencil = ##f \time 2/4 \relative c''{ \key a \major e b a, cis, \break \key bes \major f c a' ees g bes \break / . etc for the upper part. Similar for the lower / } \score{ \new PianoStaff \new Staff = upper \upper \new Staff = lower \lower / I've experimented with using columns in markup but this just didn't seem to do the trick. A slightly unsatisfying way to solve this would be to make the measures completely invisible so only the notes (or graphics: i.e the lines) would be visible. Hope this makes sense. Apologies if this is something people have answered thousands of times! It's difficult to tell from your code what you are after. You do know that / is not the beginning of a comment in LilyPond, don't you. In any case, the following seems to be close to the spirit of your attached image: \version 2.16.2 \paper { ragged-bottom = ##t ragged-last-bottom = ##t ragged-right = ##t } upper = \relative c''{ \override Score.KeyCancellation #'stencil = ##f \set Score.explicitKeySignatureVisibility = #'#(#f #f #t) \override Score.BarNumber #'stencil = ##f \override Score.TimeSignature #'stencil = ##f e b a, cis, \break \key bes \major f c a' ees g bes \break % . etc for the upper part. Similar for the lower / } global = { \time 2/4 \key a \major } \score { \new PianoStaff \new Staff { \global \upper } \new Staff { \global \upper } \layout { indent = 0 } } HTH Andy -- View this message in context: http://lilypond.1069038.n5.nabble.com/Column-of-music-and-a-column-of-graphics-or-creating-invisible-measures-tp143065.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
Column of music and a column of graphics... or creating invisible measures...
http://lilypond.1069038.n5.nabble.com/file/n143065/cadences.png Hi, first post on this forum. I wish to have something similar to the image attached. At the moment my code is rather simple: /upper = { \override Score.KeyCancellation #'stencil = ##f \set Score.explicitKeySignatureVisibility = #'#(#f #f #t) \override Score.BarNumber #'stencil = ##f \override Score.TimeSignature #'stencil = ##f \time 2/4 \relative c''{ \key a \major e b a, cis, \break \key bes \major f c a' ees g bes \break / . etc for the upper part. Similar for the lower / } \score{ \new PianoStaff \new Staff = upper \upper \new Staff = lower \lower / I've experimented with using columns in markup but this just didn't seem to do the trick. A slightly unsatisfying way to solve this would be to make the measures completely invisible so only the notes (or graphics: i.e the lines) would be visible. Hope this makes sense. Apologies if this is something people have answered thousands of times! Andy -- View this message in context: http://lilypond.1069038.n5.nabble.com/Column-of-music-and-a-column-of-graphics-or-creating-invisible-measures-tp143065.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: Column of music and a column of graphics... or creating invisible measures...
rem-d wrote Hi, first post on this forum. I wish to have something similar to the image attached. At the moment my code is rather simple: welcome to the list, Andy please try to reduce your code to be tiny and compiling! I think looking at http://lsr.dsi.unimi.it/LSR/Item?id=250 could be helpful (note that the alignment of the score(s) and text has been improved with version 2.17.14 (see https://code.google.com/p/lilypond/issues/detail?id=3187#c6 ) Eluze -- View this message in context: http://lilypond.1069038.n5.nabble.com/Column-of-music-and-a-column-of-graphics-or-creating-invisible-measures-tp143065p143073.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: Graphics in markup
Hello, On Sat, Sep 10, 2011 at 2:02 AM, harm6 thomasmorle...@googlemail.com wrote: George_ wrote: Ah, I see, thank you. Another question, then. You should have a detailed look at Actually you should be using http://lilypond.org/notation.html That's where the 'official' documentation is. ;) -- -- James ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Graphics in markup
I know through the docs that using \markup { \dynamic f } will print a forte symbol. How do I get the markup to print a mordent symbol, or a trill symbol? -- View this message in context: http://old.nabble.com/Graphics-in-markup-tp32435344p32435344.html Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Graphics in markup
George_ wrote: I know through the docs that using \markup { \dynamic f } will print a forte symbol. How do I get the markup to print a mordent symbol, or a trill symbol? Hi George, check: http://kainhofer.com/~lilypond/Documentation/notation-big-page.html#the-feta-font Notation Reference A.7 The Feta font \markup { \musicglyph #scripts.trill } \markup { \musicglyph #scripts.mordent } Best, Harm -- View this message in context: http://old.nabble.com/Graphics-in-markup-tp32435344p32435470.html Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Graphics in markup
Ah, I see, thank you. Another question, then. \markup { \wordwrap { \justify { The mordent (\musicglyph #scripts.mordent), the trill (\musicglyph #scripts.trill), and the turn (\musicglyph #scripts.turn). } } } produces this: http://old.nabble.com/file/p32435618/1.png In the music that accompanies the text I used \override TextScript #'extra-offset = #'(x . y) to move stuff around, but using it in the markup block just gives errors: syntax error, unexpected STRING, expecting SCM_IDENTIFIER or SCM_TOKEN and a whole bunch of unexpected MARKUP_FUNCTION and unexpected STRING errors elsewhere in the music. harm6 wrote: George_ wrote: I know through the docs that using \markup { \dynamic f } will print a forte symbol. How do I get the markup to print a mordent symbol, or a trill symbol? Hi George, check: http://kainhofer.com/~lilypond/Documentation/notation-big-page.html#the-feta-font Notation Reference A.7 The Feta font \markup { \musicglyph #scripts.trill } \markup { \musicglyph #scripts.mordent } Best, Harm -- View this message in context: http://old.nabble.com/Graphics-in-markup-tp32435344p32435618.html Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Graphics in markup
On 10/09/11 10:13, George_ wrote: Ah, I see, thank you. Another question, then. \markup { \wordwrap { \justify { The mordent (\musicglyph #scripts.mordent), the trill (\musicglyph #scripts.trill), and the turn (\musicglyph #scripts.turn). } } } produces this: http://old.nabble.com/file/p32435618/1.png In the music that accompanies the text I used \override TextScript #'extra-offset = #'(x . y) to move stuff around, but using it in the markup block just gives errors: Have a look in the doc for \raise and \lower, which can be used inside a markup. Nick ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Graphics in markup
George_ wrote: Ah, I see, thank you. Another question, then. You should have a detailed look at http://kainhofer.com/~lilypond/Documentation/notation-big-page.html#text-markup-commands A.9 Text markup commands \markup { xy \translate #'(3 . 5) XY } \markup { \vcenter { The mordent ( \hspace #0.8 \musicglyph #scripts.mordent ), the trill ( \hspace #1.1 \fontsize #-1.5 \musicglyph #scripts.trill \hspace #0.2 ), and the turn ( \hspace #1.1 \musicglyph #scripts.turn ). } } -- View this message in context: http://old.nabble.com/Graphics-in-markup-tp32435344p32435791.html Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: vector graphics spanner / OSX /packaged LP (2.15.5-1)
On Jul 26, 2011, at 4:08 PM, padovani wrote: Hello mike, I want to try you vgs on Lilypond 2.15.5-1 (packaged .app) / OSX 10.6.7. I've installed guile 1.8.7 and glpk 4.45 through macports. Do I need to change vgs Makefile or the configure file in some way? If yes, how exactly? I as because when I run it, it gives me the following error about libglpk.. checking for glp_simplex in -lglpk... no configure: error: libglpk is needed to compile (BTW, I have those libglpk files on my system.. opt/local/lib/libglpk.0.dylib opt/local/lib/libglpk.la opt/local/lib/libglpk.a) below is the entire log... thank you for any tips, josé henrique zzz:vector-graphic-spanner ze$ ./configure checking for a BSD-compatible install... /opt/local/bin/ginstall -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /opt/local/bin/gmkdir -p checking for gawk... no checking for mawk... no checking for nawk... no checking for awk... awk checking whether make sets $(MAKE)... yes checking for g++... g++ checking for C++ compiler default output file name... a.out checking whether the C++ compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking for style of include used by make... GNU checking dependency style of g++... gcc3 checking build system type... i386-apple-darwin10.6.0 checking host system type... i386-apple-darwin10.6.0 checking for gcc... gcc checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking dependency style of gcc... gcc3 checking for a sed that does not truncate output... /opt/local/bin/gsed checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for fgrep... /usr/bin/grep -F checking for ld used by gcc... /usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld checking if the linker (/usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld) is GNU ld... no checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm checking the name lister (/usr/bin/nm) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 196608 checking whether the shell understands some XSI constructs... yes checking whether the shell understands +=... yes checking for /usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld option to reload object files... -r checking for objdump... no checking how to recognize dependent libraries... pass_all checking for ar... ar checking for strip... strip checking for ranlib... ranlib checking command to parse /usr/bin/nm output from gcc object... ok checking for dsymutil... dsymutil checking for nmedit... nmedit checking for lipo... lipo checking for otool... otool checking for otool64... no checking for -single_module linker flag... yes checking for -exported_symbols_list linker flag... yes checking how to run the C preprocessor... gcc -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for dlfcn.h... yes checking whether we are using the GNU C++ compiler... (cached) yes checking whether g++ accepts -g... (cached) yes checking dependency style of g++... (cached) gcc3 checking how to run the C++ preprocessor... g++ -E checking for objdir... .libs rm: conftest.dSYM: is a directory checking if gcc supports -fno-rtti -fno-exceptions... no checking for gcc option to produce PIC... -fno-common -DPIC checking if gcc PIC flag -fno-common -DPIC works... yes checking if gcc static flag -static works... no checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.o... (cached) yes checking whether the gcc linker (/usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld) supports shared libraries... yes checking dynamic linker characteristics... darwin10.6.0 dyld checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... yes checking for ld used by g++... /usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld checking if the linker (/usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld) is GNU ld... no checking whether the g++ linker (/usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld) supports shared libraries... yes checking for g++ option to produce PIC... -fno-common -DPIC checking if g++ PIC flag
RE: embedding external graphics to lilypond
Thanks a lot Francisco! Esa -Original Message- From: ext Francisco Vila [mailto:paconet@gmail.com] Sent: 24 March, 2011 12:28 To: Erola Esa (Nokia-MP/Espoo) Cc: lilypond-user@gnu.org Subject: Re: embedding external graphics to lilypond 2011/3/24 Esa Erola esa.er...@nokia.com: Hi, I am wandering if there is any way to embed graphics like scanned pictures, jpg, png etc. to be shown on Lilypond pdf output? Make an EPS and insert it inside of a markup with epsfile. See http://lilypond.org/doc/v2.12/Documentation/user/lilypond/Graphic#index-inlining-an-Encapsulated-PostScript-image Also, the code for this snippet shows an example of using lilypond-book to make documents with images and music. http://lsr.dsi.unimi.it/LSR/Item?id=231 -- Francisco Vila. Badajoz (Spain) www.paconet.org , www.csmbadajoz.com ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
embedding external graphics to lilypond
Hi, I am wandering if there is any way to embed graphics like scanned pictures, jpg, png etc. to be shown on Lilypond pdf output? Thanks! BR esa ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: embedding external graphics to lilypond
2011/3/24 Esa Erola esa.er...@nokia.com: Hi, I am wandering if there is any way to embed graphics like scanned pictures, jpg, png etc. to be shown on Lilypond pdf output? Make an EPS and insert it inside of a markup with epsfile. See http://lilypond.org/doc/v2.12/Documentation/user/lilypond/Graphic#index-inlining-an-Encapsulated-PostScript-image Also, the code for this snippet shows an example of using lilypond-book to make documents with images and music. http://lsr.dsi.unimi.it/LSR/Item?id=231 -- Francisco Vila. Badajoz (Spain) www.paconet.org , www.csmbadajoz.com ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: embedding external graphics to lilypond
On 24 March 2011 11:10, Esa Erola esa.er...@nokia.com wrote: Hi, I am wandering if there is any way to embed graphics like scanned pictures, jpg, png etc. to be shown on Lilypond pdf output? \epsfile is the only one I'm thinking about. Check out NR A.8.3 Graphic http://lilypond.org/doc/v2.13/Documentation/notation/graphic You'll need to convert your image into EPS. Cheers, Xavier -- Xavier Scheuer x.sche...@gmail.com ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: embedding external graphics to lilypond
On 24/03/11 21:10, Esa Erola wrote: Hi, I am wandering if there is any way to embed graphics like scanned pictures, jpg, png etc. to be shown on Lilypond pdf output? You can convert the graphics files to eps format and use the \epsfile command. Nick ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Embedded PS graphics into scores
Hi, On 2009-11-17, Jesús Guillermo Andrade wrote: Any clues as to what can I do to get rid of this erroneous behaviour? I appreciate your patience. Try removing the showpage operator. That might be what is causing extra page(s) to appear. By the way, it's *extremely* helpful to send examples that we can copy/paste and compile without having to comment things out or add \version lines. For example, I had to comment out \strokeDown, since it is undefined based on the information sent to the list. Thanks, Patrick ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Embedded PS graphics into scores
Thanks Patrick for your advice: Im sending a working minimal example for your (and everybody's!) consideration. I cannot figure out this behaviour. Here it follows: \version 2.13.8 %\include comunes.ily %\include predefined-cuatro-fretboards.ily %\include predefined-strokes.ily % Finger stroke symbols strokeUp = \markup { \postscript # /arrowdict 14 dict def arrowdict begin /mtrx matrix def end /arrow {arrowdict begin /headlength exch def /halfheadthick exch 2 div def /halfthick exch 2 div def /tipy exch def /tipx exch def /taily exch def /tailx exch def /dx tipx tailx sub def /dy tipy taily sub def /arrowlength dx dx mul dy dy mul add sqrt def /angle dy dx atan def /base arrowlength headlength sub def /savematrix mtrx currentmatrix def tailx taily translate angle rotate 0 halfthick neg moveto base halfthick neg lineto base halfheadthick neg lineto arrowlength 0 lineto base halfheadthick lineto base halfthick lineto 0 halfthick lineto closepath savematrix setmatrix end } def newpath 4 3 4 .9 .9 2 2 .2 sqrt mul 2 div arrow .65 setgray fill showpage } strokeDown = \markup { \postscript # 0.3 setlinewidth 0.5 0 moveto 0.5 2 lineto 0.2 1.4 lineto 0.5 2 moveto 0.8 1.4 lineto stroke } %%% NOW COMES THE FILE \paper{ %annotate-spacing = ##t %after-title-space=20\mm indent=0\mm line-width=190\mm #(set-paper-size letter) } \header { tagline = ##f title = Viajera del Río subtitle = Vals Venezolano composer = \markup { \column \roman \right-align {Manuel YÁNEZ \lower #2 \tiny Transcrito por Jesús G. Andrade. \lower #1 \tiny Conservatorio Vicente E. Sojo. \vspace #1 } } meter = \markup {\strokeUp \strokeUp \strokeDown \strokeDown \strokeUp} } %%% HEADER END. %%% MUSIC PART melody = \relative c' { % \override Score.RehearsalMark #'break-visibility = #begin-of-line- invisible \override Score.RehearsalMark #'font-size = #-2 % \override MultiMeasureRestText #'self-alignment-X = #DOWN \time 3/4 \clef treble \key a \major r4 e8 fis\( \times 2/3 {fis\)gis a} %1 \bar || gis4 r8 e8 fis gis16 a %2 } \score { \new Voice = melodia { \melody } %\midi { } } Thanks for your input. Guillermo ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Embedded PS graphics into scores
Hi, On 2009-11-19, Jesús Guillermo Andrade wrote: Thanks Patrick for your advice: Im sending a working minimal example for your (and everybody's!) consideration. I cannot figure out this behaviour. Here it follows: I removed the showpage operator from your Postscript code, and that solved the problem of extra pages. I changed the strategy for variable assignments so that everything works correctly. The alignment of the arrows does not look accurate, but hopefully this new snippet will help you achieve what you're trying to do: %%% Begin snippet %%% \version 2.13.8 %\include comunes.ily %\include predefined-cuatro-fretboards.ily %\include predefined-strokes.ily % Finger stroke symbols strokeUp = /arrowdict 14 dict def arrowdict begin /mtrx matrix def end /arrow {arrowdict begin /headlength exch def /halfheadthick exch 2 div def /halfthick exch 2 div def /tipy exch def /tipx exch def /taily exch def /tailx exch def /dx tipx tailx sub def /dy tipy taily sub def /arrowlength dx dx mul dy dy mul add sqrt def /angle dy dx atan def /base arrowlength headlength sub def /savematrix mtrx currentmatrix def tailx taily translate angle rotate 0 halfthick neg moveto base halfthick neg lineto base halfheadthick neg lineto arrowlength 0 lineto base halfheadthick lineto base halfthick lineto 0 halfthick lineto closepath savematrix setmatrix end } def newpath 4 3 4 .9 .9 2 2 .2 sqrt mul 2 div arrow .65 setgray fill strokeDown = 0.3 setlinewidth 0.5 0 moveto 0.5 2 lineto 0.2 1.4 lineto 0.5 2 moveto 0.8 1.4 lineto stroke %%% NOW COMES THE FILE \paper{ %annotate-spacing = ##t %after-title-space=20\mm indent=0\mm line-width=190\mm #(set-paper-size letter) } \header { tagline = ##f title = Viajera del Río subtitle = Vals Venezolano composer = \markup { \column \roman \right-align {Manuel YÁNEZ \lower #2 \tiny Transcrito por Jesús G. Andrade. \lower #1 \tiny Conservatorio Vicente E. Sojo. \vspace #1 } } meter = \markup { \postscript #strokeUp \postscript #strokeUp \postscript #strokeDown \postscript #strokeDown \postscript #strokeUp } } %%% HEADER END. %%% MUSIC PART melody = \relative c' { % \override Score.RehearsalMark #'break-visibility = #begin-of-line-invisible \override Score.RehearsalMark #'font-size = #-2 % \override MultiMeasureRestText #'self-alignment-X = #DOWN \time 3/4 \clef treble \key a \major r4 e8 fis\( \times 2/3 {fis\)gis a} %1 \bar || gis4 r8 e8 fis gis16 a %2 } \score { \new Voice = melodia { \melody } %\midi { } } %%% End snippet %%% -Patrick ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Embedded PS graphics into scores
Thank you very much Patrick. Although the snippet is not functional yet. I tried compiling it using just one variable but to no avail. Perhaps something else is missing? BTW. Since I need to create some glyphs that are fundamental for the cuatro, and I dont know how to use fontforge, and more to the point, have no idea how to create font glyphs to add them to emmentaler, the only feasible option would be to create ps graphics to insert into the scores Guillermo El 19/11/2009, a las 02:40 p.m., Patrick McCarty escribió: Hi, On 2009-11-19, Jesús Guillermo Andrade wrote: Thanks Patrick for your advice: Im sending a working minimal example for your (and everybody's!) consideration. I cannot figure out this behaviour. Here it follows: I removed the showpage operator from your Postscript code, and that solved the problem of extra pages. I changed the strategy for variable assignments so that everything works correctly. The alignment of the arrows does not look accurate, but hopefully this new snippet will help you achieve what you're trying to do: %%% Begin snippet %%% \version 2.13.8 %\include comunes.ily %\include predefined-cuatro-fretboards.ily %\include predefined-strokes.ily % Finger stroke symbols strokeUp = /arrowdict 14 dict def arrowdict begin /mtrx matrix def end /arrow {arrowdict begin /headlength exch def /halfheadthick exch 2 div def /halfthick exch 2 div def /tipy exch def /tipx exch def /taily exch def /tailx exch def /dx tipx tailx sub def /dy tipy taily sub def /arrowlength dx dx mul dy dy mul add sqrt def /angle dy dx atan def /base arrowlength headlength sub def /savematrix mtrx currentmatrix def tailx taily translate angle rotate 0 halfthick neg moveto base halfthick neg lineto base halfheadthick neg lineto arrowlength 0 lineto base halfheadthick lineto base halfthick lineto 0 halfthick lineto closepath savematrix setmatrix end } def newpath 4 3 4 .9 .9 2 2 .2 sqrt mul 2 div arrow .65 setgray fill strokeDown = 0.3 setlinewidth 0.5 0 moveto 0.5 2 lineto 0.2 1.4 lineto 0.5 2 moveto 0.8 1.4 lineto stroke %%% NOW COMES THE FILE \paper{ %annotate-spacing = ##t %after-title-space=20\mm indent=0\mm line-width=190\mm #(set-paper-size letter) } \header { tagline = ##f title = Viajera del Río subtitle = Vals Venezolano composer = \markup { \column \roman \right-align {Manuel YÁNEZ \lower #2 \tiny Transcrito por Jesús G. Andrade. \lower #1 \tiny Conservatorio Vicente E. Sojo. \vspace #1 } } meter = \markup { \postscript #strokeUp \postscript #strokeUp \postscript #strokeDown \postscript #strokeDown \postscript #strokeUp } } %%% HEADER END. %%% MUSIC PART melody = \relative c' { % \override Score.RehearsalMark #'break-visibility = #begin-of-line- invisible \override Score.RehearsalMark #'font-size = #-2 % \override MultiMeasureRestText #'self-alignment-X = #DOWN \time 3/4 \clef treble \key a \major r4 e8 fis\( \times 2/3 {fis\)gis a} %1 \bar || gis4 r8 e8 fis gis16 a %2 } \score { \new Voice = melodia { \melody } %\midi { } } %%% End snippet %%% -Patrick ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Embedded PS graphics into scores
On 2009-11-19, Jesús Guillermo Andrade wrote: Thank you very much Patrick. Although the snippet is not functional yet. I tried compiling it using just one variable but to no avail. Perhaps something else is missing? I forgot that I had to change the \version to 2.13.7, since I was testing with 2.13.7. Besides that, it compiles fine for me as is. Can you post the error message? BTW. Since I need to create some glyphs that are fundamental for the cuatro, and I dont know how to use fontforge, and more to the point, have no idea how to create font glyphs to add them to emmentaler, the only feasible option would be to create ps graphics to insert into the scores If you want to add glyphs to Emmentaler, you'll have to write them in Metafont. You can find the sources in the mf/ directory in the source code. -Patrick ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Embedded PS graphics into scores
Dear fellows: Inspired by the script created for flamenco music I began to design some symbols which are specific for a cuatro in Venezuela and other parts of the world. At any rate, the main difficulty Im experiencing right now is the fact that no matter how good, or scaled or proportioned I put a graphic, it just gets repeated twice in the output. Let me explain. 1. Originally, the guy that created the flamenco example, used very simple PS commands to draw, again, a very simple shape of an arrow. To insert them, you just need this kind of construct: golpe = \markup { \postscript # 0.2 setlinewidth 0 0 moveto 1 0 lineto 1 1 lineto stroke 2. This, however nice, is not sufficient for my purposes. Since I need better arrows I decided to install a complete function for creating several kinds of arrows by using PS command exclusively. Now, the place to use this arrows is probably in the title section, so I put them in my file like this: \header { tagline = ##f title = Viajera del Río subtitle = Vals Venezolano composer = \markup { \column \roman \right-align {Manuel YÁNEZ \lower #2 \tiny Transcrito por Jesús G. Andrade. \lower #1 \tiny Conservatorio Vicente E. Sojo. \vspace #1 } } meter = \markup {\strokeUp \strokeUp \strokeDown \strokeDown \strokeUp} } 3. As you can see, I redefined the strokeUp and Down just for testing purposes and used it within the \meter environment for the nice placement in regard of the page and the score. The said PS function gets interpreted well with GS, however, they get repeated and lilypond inserts a full empty page with it. I tried to simplify it to the extreme, but is seems lilypond gets confused with the context of the ps function. This is the full example of the function to draw an arrow as I want: % Finger stroke symbols strokeUp = \markup { \postscript # /arrowdict 14 dict def arrowdict begin /mtrx matrix def end /arrow {arrowdict begin /headlength exch def /halfheadthick exch 2 div def /halfthick exch 2 div def /tipy exch def /tipx exch def /taily exch def /tailx exch def /dx tipx tailx sub def /dy tipy taily sub def /arrowlength dx dx mul dy dy mul add sqrt def /angle dy dx atan def /base arrowlength headlength sub def /savematrix mtrx currentmatrix def tailx taily translate angle rotate 0 halfthick neg moveto base halfthick neg lineto base halfheadthick neg lineto arrowlength 0 lineto base halfheadthick lineto base halfthick lineto 0 halfthick lineto closepath savematrix setmatrix end } def newpath 4 3 4 .9 .9 2 2 .2 sqrt mul 2 div arrow .65 setgray fill showpage Any clues as to what can I do to get rid of this erroneous behaviour? I appreciate your patience. Guillermo ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Embedded PS graphics into scores
Jesús Guillermo Andrade schrieb: Dear fellows: Inspired by the script created for flamenco music I began to design some symbols which are specific for a cuatro in Venezuela and other parts of the world. At any rate, the main difficulty Im experiencing right now is the fact that no matter how good, or scaled or proportioned I put a graphic, it just gets repeated twice in the output. Let me explain. 1. Originally, the guy that created the flamenco example, used very simple PS commands to draw, again, a very simple shape of an arrow. To insert them, you just need this kind of construct: golpe = \markup { \postscript # 0.2 setlinewidth 0 0 moveto 1 0 lineto 1 1 lineto stroke 2. This, however nice, is not sufficient for my purposes. Since I need better arrows I decided to install a complete function for creating several kinds of arrows by using PS command exclusively. Now, the place to use this arrows is probably in the title section, so I put them in my file like this: [...] Any clues as to what can I do to get rid of this erroneous behaviour? I appreciate your patience. This isn't a solution to your postscript problem, but have you seen http://lsr.dsi.unimi.it/LSR/Item?id=409 ? Marc Guillermo ___ 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
Re: Embedded PS graphics into scores
Marc: Yes... in fact, if you read section number 1 of my first email you'll surely notice that I expressely mention the flamenco example, regarding the snippet found in the repository. But those arrows are no good... at least to me. El 17/11/2009, a las 03:53 p.m., Marc Hohl escribió: Jesús Guillermo Andrade schrieb: Dear fellows: Inspired by the script created for flamenco music I began to design some symbols which are specific for a cuatro in Venezuela and other parts of the world. At any rate, the main difficulty Im experiencing right now is the fact that no matter how good, or scaled or proportioned I put a graphic, it just gets repeated twice in the output. Let me explain. 1. Originally, the guy that created the flamenco example, used very simple PS commands to draw, again, a very simple shape of an arrow. To insert them, you just need this kind of construct: golpe = \markup { \postscript # 0.2 setlinewidth 0 0 moveto 1 0 lineto 1 1 lineto stroke 2. This, however nice, is not sufficient for my purposes. Since I need better arrows I decided to install a complete function for creating several kinds of arrows by using PS command exclusively. Now, the place to use this arrows is probably in the title section, so I put them in my file like this: [...] Any clues as to what can I do to get rid of this erroneous behaviour? I appreciate your patience. This isn't a solution to your postscript problem, but have you seen http://lsr.dsi.unimi.it/LSR/Item?id=409 ? Marc Guillermo ___ 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
Re: Embedded PS graphics into scores
Jesús Guillermo Andrade schrieb: Marc: Yes... in fact, if you read section number 1 of my first email you'll surely notice that I expressely mention the flamenco example, regarding the snippet found in the repository. But those arrows are no good... at least to me. Ah, yes, sorry then, I misunderstood your inspiration and thought you found this script elsewhere on the list or somewhere similar. Sorry for the noise. Marc El 17/11/2009, a las 03:53 p.m., Marc Hohl escribió: Jesús Guillermo Andrade schrieb: Dear fellows: Inspired by the script created for flamenco music I began to design some symbols which are specific for a cuatro in Venezuela and other parts of the world. At any rate, the main difficulty Im experiencing right now is the fact that no matter how good, or scaled or proportioned I put a graphic, it just gets repeated twice in the output. Let me explain. 1. Originally, the guy that created the flamenco example, used very simple PS commands to draw, again, a very simple shape of an arrow. To insert them, you just need this kind of construct: golpe = \markup { \postscript # 0.2 setlinewidth 0 0 moveto 1 0 lineto 1 1 lineto stroke 2. This, however nice, is not sufficient for my purposes. Since I need better arrows I decided to install a complete function for creating several kinds of arrows by using PS command exclusively. Now, the place to use this arrows is probably in the title section, so I put them in my file like this: [...] Any clues as to what can I do to get rid of this erroneous behaviour? I appreciate your patience. This isn't a solution to your postscript problem, but have you seen http://lsr.dsi.unimi.it/LSR/Item?id=409 ? Marc Guillermo ___ 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
Re: adding graphics with external program
2008/7/30 luis jure [EMAIL PROTECTED]: anyone lucky using inkscape with files generated by LP? [untested] Has anyone tried to produce svg files within LilyPond, using the hack desribed on http://lsr.dsi.unimi.it/LSR/Item?id=334 ? Alternatively you may want to try the other way around : produce your graphic elements using Inkscape and then include them into your .ly file, either as \epsfile or by pasting the native ps code, as in http://lsr.dsi.unimi.it/LSR/Item?id=486 Cheers, Valentin ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: adding graphics with external program
Valentin Villenave escreveu: file, either as \epsfile or by pasting the native ps code, as in http://lsr.dsi.unimi.it/LSR/Item?id=486 How to find out the ps code, after drawing in Inkscape? I think is better than using \epsfile... Hugo ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: adding graphics with external program
2008/7/30 Hugo Ribeiro [EMAIL PROTECTED]: How to find out the ps code, after drawing in Inkscape? You can save your drawing as PostScript file (under Inkscape), then open it with a text editor and copy the code. You will probably have to add a scale command (or modify its value if it's already there) though, since Inkscape makes much too large drawings for LilyPond standard output. Cheers, Valentin ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: adding graphics with external program
Hi, I use scribus to write an essay containing a lot of little music examples (made with lily of course), the solution I found is, when you've got your .pdf output from lilypond, to print in a file to generate a .ps usable in scribus. Hope this help Matth -- View this message in context: http://www.nabble.com/adding-graphics-with-external-program-tp18683698p18718579.html Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com. ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: adding graphics with external program
Hi Matth, Isn´t scribus capable of including pdf files directly? In my opinion this would be the better way - if it´s possible. Dominic 2008/7/29 Matthieu Jacquot [EMAIL PROTECTED]: Hi, I use scribus to write an essay containing a lot of little music examples (made with lily of course), the solution I found is, when you've got your .pdf output from lilypond, to print in a file to generate a .ps usable in scribus. Hope this help Matth -- View this message in context: http://www.nabble.com/adding-graphics-with-external-program-tp18683698p18718579.html Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com. ___ 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
Re: adding graphics with external program
Isn´t scribus capable of including pdf files directly? In my opinion this would be the better way - if it´s possible. It is but my experience is that scribus seems to have more difficulties to use .pdf than .ps (I don't know why or even if it's not just with my version). pdf are imported as a standard image format , with a resolution etc... I'm not a scribus expert so I'm maybe wrong, take it just as a personal feedback. Matth (PS : hope my english is comprehensible) ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: adding graphics with external program
on 2008-07-28 at 09:16 Stefan Thomas wrote: on linux, there is the program pdf-edit available. You can add there simple graphice. thanks for your suggestion, stefan. i did try pdfedit, but i couldn't make anything useful with it. the buttons to add graphics were grayed out and i didn't spend too much time reading manuals... it also crashed a couple of times, so i deduced the software is (still) in an early stage. perhaps it's just that i didn't know how to use it... i'll try to insist with inkscape... ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: adding graphics with external program
on 2008-07-29 at 04:38 Frederick Dennis wrote: Have you tried turning your pdf into bmp's using GhostScript? not bmp's but png's, and it works, of course. but i'd like to edit the files in a vector graphics format, if possible. i'm trying to avoid going to bitmap graphics. ps have you noticed something peculiar about LilyPond's pdfs when you print multiple copies? no, what are you referring to? i do have occasional problems when printing with acroread (on linux), but not particularly with lilypond files but just any pdf. ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: adding graphics with external program
on 2008-07-29 at 11:31 Matthieu Jacquot wrote: when you've got your .pdf output from lilypond, to print in a file to generate a .ps usable in scribus. it's funny, i tried what you suggest and the file opens, but some elements are displaced: some noteheads, accidentals and the like are randomly moved. if i open a ps file generated by ghostscript directly from the LP output, this doesn't happen, but the right edge is truncated... BTW, i haven't been able to open pdf's with scribus, i get some not acceptable format message. i'm using scribus 1.3.3.11 on linux. i'll keep on trying with inkscape, i'm obviously having some fonts-related problem. i should try the inkscape forum or mailing list. anyone lucky using inkscape with files generated by LP? best, lj ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
re: adding graphics with external program
Dear Luis, on linux, there is the program pdf-edit available. You can add there simple graphice. And as far as I know, You can export lilypond files to other graphic formats, like png. You can read it in the manual. But You can also add graphics with the markup command, at least eps-files. ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
adding graphics with external program
dear list, i'm mostly finished with the lilypond part of my first LP project, but i need to add a few graphics with an external program (i gave up trying to use LP for this). i'm on linux and i tried both inkscape and scribus, but after fighting the whole weekend i really can't find a way. inkscape can't open the ps files. i can open the pdf's, but after editing and exporting, the fonts are all wrong. with scribus the problems are rather the opposite: it's the pdf's that i can't open, and i don't know why the ps files open but with some parts chopped. neither inkscape nor scribus can open the svg files. what are the rest of you using when you need to edit the graphics of a score generated by LP? i'm on linux, but i could eventually use a windows machine. any help would be greatly appreciated. best, lj ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: graphics in scheme?
Tao Cumplido [EMAIL PROTECTED] writes: also [...] is it actually possible to use postscript (with variables) inside scheme? Sure! You can write a scheme function that returns a string that is valid postscript, and use that postscript in a markup block. I've tried, and it works for me.[1] Of course, you then need to master Lilypond, Scheme *and* Postscript. ;-) -- Arvid [1] This was not for some articulation, though; rather, I experimented with adding ISMN bar codes to the copyright block or to the final page footer. I'll add this code to LSR some day, after some cleanup, but don't hold your breath waiting. ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: graphics in scheme?
hi, thanks for all the replies. the internal drawing commands I found don't seem to be good enough for my purposes. the use of eps and svg files seems so far only the second best solution to me. but if I fail at scheme this could well work. I will be away for a week now so I can't try any of your suggestions but be sure to hear from me when I am back. ;) regards, Tao Original-Nachricht Datum: 21 Nov 2007 09:56:54 +0100 Von: [EMAIL PROTECTED] An: lilypond-user@gnu.org Betreff: Re: graphics in scheme? Tao Cumplido [EMAIL PROTECTED] writes: also [...] is it actually possible to use postscript (with variables) inside scheme? Sure! You can write a scheme function that returns a string that is valid postscript, and use that postscript in a markup block. I've tried, and it works for me.[1] Of course, you then need to master Lilypond, Scheme *and* Postscript. ;-) -- Arvid [1] This was not for some articulation, though; rather, I experimented with adding ISMN bar codes to the copyright block or to the final page footer. I'll add this code to LSR some day, after some cleanup, but don't hold your breath waiting. ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user -- Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
graphics in scheme?
hi, in this snippet http://lsr.dsi.unimi.it/LSR/Snippet?id=335 stencils are created with commands like make-circle-stencil. are these part of scheme or of lilypond and is there a list of all possible commands available? also is this similar to the postscript command inside a markup-block and if not is it actually possible to use postscript (with variables) inside scheme? I am a complete scheme newbie and I'd like to create some custom articulations. I tried it with postscript but then I have to do it every time it appears and now I saw the snippet with the snap-pizzicato and thought this could be another solution. regards, Tao -- Pt! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: graphics in scheme?
There are a couple of ways to get non-native graphics into Lilypond output. I don't use scheme drawing commands, although this might be a possibility. The \epsfile command (in a markup) is handy - you can create an .eps file in Inkscape and then use a macro to do normal alignment. If you need to add more extensive graphics you can create SVG output from Lilypond and then add the graphics in Inkscape (see various discussions on this list about getting bug- free SVG output from Lilypond.) Vivian. On Nov 20, 2007, at 4:11 PM, Tao Cumplido wrote: hi, in this snippet http://lsr.dsi.unimi.it/LSR/Snippet?id=335 stencils are created with commands like make-circle-stencil. are these part of scheme or of lilypond and is there a list of all possible commands available? also is this similar to the postscript command inside a markup- block and if not is it actually possible to use postscript (with variables) inside scheme? I am a complete scheme newbie and I'd like to create some custom articulations. I tried it with postscript but then I have to do it every time it appears and now I saw the snippet with the snap-pizzicato and thought this could be another solution. regards, Tao -- Pt! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger ___ 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
output vector graphics
I don't know if it is a viable idea, or if it already exists.. It would be nice if Lily can output some vectorial image format (what format is widely recognized?) where many (some or all) notational elements were available to a vector image drawing program (i.e. Corel Draw) where one can turn the beautiful Lily output into some ugly and meaningless pseudo-musical score by dragging, resizing the elements and adding elements musical or not.. all done visually. Ugly and meaningless pseudo-musical-scores are (or more exactly were) fashionable for some composers, how far Lily can cope with that.. Maybe what I refer to is simply called *.ps (postscript) but I was unable to open the Lily ps files in Corel, similarly I wasn't able to open Lily made pdf's neither.. (in CorelDraw v11) Best Regards, Mehmet Okonsar, pianist-composer www.okonsar.com ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: output vector graphics
Hi I would think it's the idea of having svg vectorial, xml-based, format as a lily output. I don't know how it actually works. -a- On 25 Sep 2005, at 16:51, Mehmet Okonsar wrote: I don't know if it is a viable idea, or if it already exists.. It would be nice if Lily can output some vectorial image format (what format is widely recognized?) where many (some or all) notational elements were available to a vector image drawing program (i.e. Corel Draw) where one can turn the beautiful Lily output into some ugly and meaningless pseudo-musical score by dragging, resizing the elements and adding elements musical or not.. all done visually. Ugly and meaningless pseudo-musical-scores are (or more exactly were) fashionable for some composers, how far Lily can cope with that.. Maybe what I refer to is simply called *.ps (postscript) but I was unable to open the Lily ps files in Corel, similarly I wasn't able to open Lily made pdf's neither.. (in CorelDraw v11) Best Regards, Mehmet Okonsar, pianist-composer www.okonsar.com ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user Andrea Valle Laboratorio multimediale G. Quazza Facoltà di Scienze della Formazione Università degli Studi di Torino [EMAIL PROTECTED] ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
graphics gripe
Hi all, I am trying to add lilypond output into scribus, my first choice would have been scribus, but scribus doesn't like lilypond svgs? My next choice is png but scribus complains they are to low resolution. so: 1. could someone else try an svg from lilypond and see if it works for them in scribus? If not this might be a bug. 2. is there a way to pass resolution parameters to the backend that is making the png files? thanks Aaron __ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: graphics gripe
On Monday 19 September 2005 16.21, Aaron Mehl wrote: Hi all, I am trying to add lilypond output into scribus, my first choice would have been scribus, but scribus doesn't like lilypond svgs? I don't fully understand what you want, but if it's just that you need to import lilypond's output into scribus, then you can always import pdf or ps. And for png resolution: AFAIK, pngs are created from ps output, using gs. If you use lilypond --verbose, you'll see the actual gs command. You can change resolution by playing around with the parameters. -- Erik ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: graphics gripe
You can use lilypond --png -dresolution=110 to get a 110DPI png image (Lilypond manual, section 5.2). Just adjust the resolution value accordingly. -- Kris Shaffer graduate student in music theory, Yale University co-editor-in-chief for music theory, AmSteg.org www.shaffermusic.com On Mon, 19 Sep 2005 11:49:06 -0400, Erik Sandberg [EMAIL PROTECTED] wrote: On Monday 19 September 2005 16.21, Aaron Mehl wrote: Hi all, I am trying to add lilypond output into scribus, my first choice would have been scribus, but scribus doesn't like lilypond svgs? I don't fully understand what you want, but if it's just that you need to import lilypond's output into scribus, then you can always import pdf or ps. And for png resolution: AFAIK, pngs are created from ps output, using gs. If you use lilypond --verbose, you'll see the actual gs command. You can change resolution by playing around with the parameters. ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: graphics gripe
Aaron Mehl wrote: 1. could someone else try an svg from lilypond and see if it works for them in scribus? If not this might be a bug. 2. is there a way to pass resolution parameters to the backend that is making the png files? Two things I recently found out about SVG: 1. Since every implementation of an SVG renderer is different, since the SVG standard is a bit fluid, and since Lilypond SVG output is necessarily complex, the developers have settled upon Inkscape as the SVG renderer/editor that they will target. Single-page (see item 2 below) Lilypond SVG output is openable in Inkscape. Possibly Inkscape could save it in a format that other SVG renderers are happier with... I haven't tried. 2. There is no SVG standard for multi-page documents, so multi-page Lilypond SVG output will not render correctly in any SVG renderer. In Inkscape, it will just overlap all the pages on a single page. Han-Wen has let it be known that the ability to burst pages for SVG output is a feature that would cost 80 EUR. I am planning on at least partially sponsoring this in a few weeks when I get some money, but if someone else wants to beat me to it, please be my guest... I have other features on my wish-list that I can devote my money to. --Daniel ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: graphics gripe
That's it thanks Aaron --- Kris Shaffer [EMAIL PROTECTED] wrote: You can use lilypond --png -dresolution=110 to get a 110DPI png image (Lilypond manual, section 5.2). Just adjust the resolution value accordingly. -- Kris Shaffer graduate student in music theory, Yale University co-editor-in-chief for music theory, AmSteg.org www.shaffermusic.com On Mon, 19 Sep 2005 11:49:06 -0400, Erik Sandberg [EMAIL PROTECTED] wrote: On Monday 19 September 2005 16.21, Aaron Mehl wrote: Hi all, I am trying to add lilypond output into scribus, my first choice would have been scribus, but scribus doesn't like lilypond svgs? I don't fully understand what you want, but if it's just that you need to import lilypond's output into scribus, then you can always import pdf or ps. And for png resolution: AFAIK, pngs are created from ps output, using gs. If you use lilypond --verbose, you'll see the actual gs command. You can change resolution by playing around with the parameters. ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user __ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: graphics gripe
Well I was hoping to get an svg that would import, then I could use it also in xml and xhtml etc. but inkscape does open the svg output. The scribus developers said that they tested my svg file and it was the problem. however I didn't check one without lyrics maybe that is the issue. Aaron --- Erik Sandberg [EMAIL PROTECTED] wrote: On Monday 19 September 2005 16.21, Aaron Mehl wrote: Hi all, I am trying to add lilypond output into scribus, my first choice would have been scribus, but scribus doesn't like lilypond svgs? I don't fully understand what you want, but if it's just that you need to import lilypond's output into scribus, then you can always import pdf or ps. And for png resolution: AFAIK, pngs are created from ps output, using gs. If you use lilypond --verbose, you'll see the actual gs command. You can change resolution by playing around with the parameters. -- Erik __ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: graphics gripe
Aaron Mehl wrote: The scribus developers said that they tested my svg file and it was the problem. can you be more specific? -- Han-Wen Nienhuys - [EMAIL PROTECTED] - http://www.xs4all.nl/~hanwen ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: graphics gripe
Daniel Johnson wrote: 2. There is no SVG standard for multi-page documents, so multi-page Actually, there is, but it's in the working draft of SVG 1.2. Inkscape doesn't support 1.1 fully last time we looked, so they haven't started on doing SVG 1.2 yet. -- Han-Wen Nienhuys - [EMAIL PROTECTED] - http://www.xs4all.nl/~hanwen ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: graphics gripe
Yes I can now that I read erik's email, The lilypond file in scribus looked like a few files mashed together, which I understand now is because the svg doesn't support mutiple pages. they ran it through a parser and got errors, which I assume had to do with the multiple page issue. I tried however a smaller file and it still didn't look good in scribus. I wonder if there is a way to save it with better settings in inkscape so scribus will read it? In either case I have switched from png to pdf for scribus and for the time being it is a better choice. If I had any money I would gladly join in to sponser better svg support but there is little hope of that... Aaron --- Han-Wen Nienhuys [EMAIL PROTECTED] wrote: Aaron Mehl wrote: The scribus developers said that they tested my svg file and it was the problem. can you be more specific? -- Han-Wen Nienhuys - [EMAIL PROTECTED] - http://www.xs4all.nl/~hanwen __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user