Re: thanks again for the editionEngraver
Hi Kieren, I thought of a change - or addition - like your proposal. At least the counter should be exchangable by the context-id. That way partcombined voices can be addressed by up, down and so on. I can't say, if it is managable to omit the context-name (Voice or Staff or else). But we will see. So, yes, I consider it ;) Best, Jan-Peter On 28.07.2014 03:38, Kieren MacMillan wrote: Hi Jan-Peter, I think the most complicated part is addressing multiple voices in one Staff. […] propably there are more things to modify to make it more intuitive. I think the stated problem would be solved *AND* the whole machinery made more intuitive by allowing a context to be “direct addressed”, i.e., the context \new Staff = “MyStaff” \someMusic would be mod-ed using something like \editionMod ThisEdition 1 0/4 APiece.MyStaff \override … as opposed to \editionMod ThisEdition 1 0/4 APiece.Staff.B \override … It seems like a very small change — and might mess up your “templating” system(s) — but three obvious and immediate benefits are: the ability to move contexts within the score block without having to recode the edition; the ability to change the type of context without recoding the edition; and the ability to quickly cross-reference a mod with its context (i.e., no need to “count” contexts). Consider it? Thanks, Kieren. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Hairpin inside slur?
Am 27.07.2014 23:17, schrieb pls: On 27.07.2014, at 22:18, Phil Holmes m...@philholmes.net mailto:m...@philholmes.net wrote: I don't know. My guess: there is no reasonable slur that will miss the hairpin if the hairpin is inside the slur, so Lily does the best compromise. Thanks, Phil! It's actually an excerpt of a real-life example I'm trying to re-engrave. There is probably no automated solution for this case so I might use the \shape function. And there's always the question if it's really a good idea to follow the example even in such details as the shape of one slur. Often it makes more sense to take some liberty and find one's own solutions. Best, Simon ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Hairpin inside slur?
On 28.07.2014, at 12:52, Simon Albrecht simon.albre...@mail.de wrote: Am 27.07.2014 23:17, schrieb pls: On 27.07.2014, at 22:18, Phil Holmes m...@philholmes.net wrote: I don't know. My guess: there is no reasonable slur that will miss the hairpin if the hairpin is inside the slur, so Lily does the best compromise. Thanks, Phil! It’s actually an excerpt of a real-life example I’m trying to re-engrave. There is probably no automated solution for this case so I might use the \shape function. And there’s always the question if it’s really a good idea to follow the example even in such details as the shape of one slur. Often it makes more sense to take some liberty and find one’s own solutions. Well, I did not intend to mimick all the details. First of all I wanted to find a way to place the hairpins inside the slurs (see exOne). Mike showed me a pretty good way to achieve that. Now I might work on some details such as improving the shape of the slur or thinning out the girth of the hairpin... ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
self-alignment-X has negligible effects on dynamics
In the following example, the ordinary overrides of self-alignment-X appear to have no effect on the position pf the dynamics (or an effect I can't see). Large numbers are needed for an obvious shift. Is this a bug, or something I'm doing wrong? \version 2.19.10 { \override DynamicText.self-alignment-X = #LEFT c'4\f \override DynamicText.self-alignment-X = #RIGHT c'4\f \override DynamicText.self-alignment-X = #CENTER c'4\f \override DynamicText.self-alignment-X = #20 c'4\f } Thanks, David ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
LilyPond not working in jail mounted noexec
Hello LilyPond users, I’ve created a chroot jail for LilyPond 2.18.2 on Ubuntu 12.04.4 LTS which I installed by executing the binary lilypond-2.18.2-1.linux-64.sh. I have followed the instructions the instructions on http://www.lilypond.org/doc/v2.19/Documentation/usage/command_002dline-usage#lilypond-in-chroot-jail and it works only if the loopfile is mounted WITHOUT “noexec”. The lilypond binary will be executed on .ly files of unknown origin and I cannot use the “-dsafe” option since it breaks some functionality. Still I try to make rendering as safe as possible by using the “noexec” mount option as suggested in the manual here: http://www.lilypond.org/doc/v2.19/Documentation/usage/command_002dline-usage#basic-command-line-options-for-lilypond I’ve used a minimal example for testing: root@box:~# cat /mnt/lilyloop/lilyhome/test.ly \version 2.14.1 { % middle tie looks funny here: c' d'' b''8. ~ c' d'' b''8 } The user „pigpen“ has sudo rights to execute /usr/local/bin/lilypond Case 1: Jail mounted WITHOUT “noexec” - /home/lily/loopfile on /mnt/lilyloop type ext3 (rw,nosuid,nodev) pigpen@box:~$ sudo /usr/local/bin/lilypond -jlily,lily,/mnt/lilyloop,/lilyhome --png --header=texidoc test.ly GNU LilyPond 2.18.2 Processing `test.ly' Parsing... Interpreting music... Preprocessing graphical objects... Finding the ideal number of pages... (process:3701): GLib-WARNING **: getpwuid_r(): failed due to unknown user id (1002) Fitting music on 1 page... Drawing systems... Layout output to `test.ps'... Converting to PNG... Success: compilation successfully completed Case 2: Jail mounted WITH “noexec” - /home/lily/loopfile on /mnt/lilyloop type ext3 (rw,noexec,nosuid,nodev) pigpen@box:~$ sudo /usr/local/bin/lilypond -jlily,lily,/mnt/lilyloop,/lilyhome --png --header=texidoc test.ly GNU LilyPond 2.18.2 Processing `test.ly' Parsing... Interpreting music... Preprocessing graphical objects... Finding the ideal number of pages... (process:3783): GLib-WARNING **: getpwuid_r(): failed due to unknown user id (1002) (process:3783): Pango-WARNING **: /usr/local/lilypond/usr/bin/..//lib/pango/1.6.0/modules/pango-basic-fc.so: failed to map segment from shared object: Operation not permitted (process:3783): Pango-WARNING **: Failed to load Pango module '/usr/local/lilypond/usr/bin/..//lib/pango/1.6.0/modules/pango-basic-fc' for id 'BasicScriptEngineFc' (process:3783): Pango-WARNING **: failed to choose a font, expect ugly output. engine-type='PangoRenderFc', script='common' (process:3783): Pango-CRITICAL **: pango_fc_font_lock_face: assertion `PANGO_IS_FC_FONT (font)' failed What am I doing wrong? Is the setup still safe without the “noexec” option? Thank you all in advance, Marc ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Better sound file then MIDI
Hi, Is there a possibility/approach to produce with Lilypond a music file that comes much closer to the natural sound of the music instruments used in the score - then through MIDI output as documented in the manuals. Or do I need to process the Lilypond MIDI file through another program - if so what programm do you recommend? thanks upfront Dirk Van Damme ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Better sound file then MIDI
dirk van damme dirk.van.da...@hotmail.be writes: Is there a possibility/approach to produce with Lilypond a music file that comes much closer to the natural sound of the music instruments used in the score - then through MIDI output as documented in the manuals. Or do I need to process the Lilypond MIDI file through another program - if so what programm do you recommend? Just use a good external Midi expander. What was an expensive expander in the 80s (and thus will be reasonably affordable these days) will probably still sound better than the stock Midi fonts coming for free with some operating system or cheap application. -- David Kastrup ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Better sound file then MIDI
On Mon, Jul 28, 2014 at 10:39 AM, dirk van damme dirk.van.da...@hotmail.be wrote: Hi, Is there a possibility/approach to produce with Lilypond a music file that comes much closer to the natural sound of the music instruments used in the score - then through MIDI output as documented in the manuals. Or do I need to process the Lilypond MIDI file through another program - if so what programm do you recommend? thanks upfront Dirk Van Damme ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user Dirk, The short answer is yes, but it's going to take some effort from you. There are some other very nice midi sound fonts out there, but even then that only helps so much. It sounds like you are interested in the action of the instruments. LilyPond does pretty well with the volume and timing, but that's about it. The articulate.ly file adds some more realism by expanding trills, arpeggios, etc. This is explained here: http://lilypond.org/doc/v2.18/Documentation/notation/the-articulate-script Beyond that, you'll need to play around with the output midi file yourself. After all, LilyPond was designed for engraving, not score playback. I have found the Linux Multimedia Studio or (LMMS) to be handy for this. I believe you can find versions for Windows as well. Not sure about Mac OS. If you would like any recommendations for some good free sound fonts, I can point you to a few. Good luck! -Abraham ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: See the new music fonts in action
On Mon, Jul 28, 2014 at 10:30 AM, Mark Polesky markpole...@gmail.com wrote: Or Scordato, which means out of tune but also forgotten. The word scordatura is a derivative of this. Also scordare means detune and also forget ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: See the new music fonts in action
Or Scordato, which means out of tune but also forgotten. The word scordatura is a derivative of this. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: See the new music fonts in action
On Mon, Jul 28, 2014 at 11:32 AM, Mark Polesky markpole...@gmail.com wrote: On Mon, Jul 28, 2014 at 10:30 AM, Mark Polesky markpole...@gmail.com wrote: Or Scordato, which means out of tune but also forgotten. The word scordatura is a derivative of this. Also scordare means detune and also forget All, I knew this was an awesome group, but I didn't realize how awesome until now. Thanks for your suggestions. It looks like we've got these options for a rename of the Amadeus (SCORE look-a-like) font: - Schmied - Partitura - Gottlieb - Scorlatti - Nannerl - Scordato - Scordatura - Scordare Each has its own meaning that the contributors kindly indicated in their posts. I think we'll freeze the choices for now and let people vote :) -Abraham ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: See the new music fonts in action
On 26 Jul 2014, at 01:14, tisimst tisimst.lilyp...@gmail.com wrote: I couldn't wait any longer, so here's a formal announcement about the new music fonts that I've been working on, by way of example. They are all 100% LilyPond compatible for both PDF and SVG output. They all (except Gonville) support the full LilyPond glyph set (up to LilyPond version 2.18.2). So far, there are now 9 music fonts in addition to LilyPond's default *Emmentaler* (also called /Feta/ in the official docs). BTW, is there some effort adding more microtonal symbols? LilyPond can now properly handle microtonal key signatures, it seems. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: See the new music fonts in action
On Mon, Jul 28, 2014 at 12:35 PM, Hans Aberg haber...@telia.com wrote: On 26 Jul 2014, at 01:14, tisimst tisimst.lilyp...@gmail.com wrote: I couldn't wait any longer, so here's a formal announcement about the new music fonts that I've been working on, by way of example. They are all 100% LilyPond compatible for both PDF and SVG output. They all (except Gonville) support the full LilyPond glyph set (up to LilyPond version 2.18.2). So far, there are now 9 music fonts in addition to LilyPond's default *Emmentaler* (also called /Feta/ in the official docs). BTW, is there some effort adding more microtonal symbols? LilyPond can now properly handle microtonal key signatures, it seems. Hans, Good question. If you are glyphs you are referring to are found the default font set, http://lilypond.org/doc/v2.18/Documentation/notation/the-feta-font#accidental-glyphs then this is already supported in the new fonts :) I made sure that the entire glyph set is supported, even if they have to fall back to the Emmentaler ones in some places because I couldn't (or didn't feel like I needed to) come up with one that matched the other glyphs (like the shape-noteheads). I, personally, don't use the microtonal glyphs, but I'm happy to continue to support them as long as someone uses them! I don't plan on creating other fonts specific to microtonal notation (e.g., Sagittal, etc.). Regards, Abraham ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: See the new music fonts in action
On 28 Jul 2014, at 20:47, Abraham Lee tisimst.lilyp...@gmail.com wrote: BTW, is there some effort adding more microtonal symbols? LilyPond can now properly handle microtonal key signatures, it seems. Good question. If you are glyphs you are referring to are found the default font set, http://lilypond.org/doc/v2.18/Documentation/notation/the-feta-font#accidental-glyphs then this is already supported in the new fonts :) I made sure that the entire glyph set is supported, even if they have to fall back to the Emmentaler ones in some places because I couldn't (or didn't feel like I needed to) come up with one that matched the other glyphs (like the shape-noteheads). I, personally, don't use the microtonal glyphs, but I'm happy to continue to support them as long as someone uses them! I don't plan on creating other fonts specific to microtonal notation (e.g., Sagittal, etc.). The current set is too limited, and I think it has to be some new font that comes with the distribution for it to work properly. For example, the Persian microtonal accidentals koron and sori are not supported, even though there is a file for typesetting Persian music. So one reason to not use microtonal symbols is that there is no support for it, but actually some do anyhow without being able to get the right rendering. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: See the new music fonts in action
On 28. Juli 2014 20:24:02 MESZ, Abraham Lee tisimst.lilyp...@gmail.com wrote: On Mon, Jul 28, 2014 at 11:32 AM, Mark Polesky markpole...@gmail.com wrote: On Mon, Jul 28, 2014 at 10:30 AM, Mark Polesky markpole...@gmail.com wrote: Or Scordato, which means out of tune but also forgotten. The word scordatura is a derivative of this. Also scordare means detune and also forget All, I knew this was an awesome group, but I didn't realize how awesome until now. Thanks for your suggestions. It looks like we've got these options for a rename of the Amadeus (SCORE look-a-like) font: - Schmied - Partitura - Gottlieb - Scorlatti - Nannerl - Scordato - Scordatura - Scordare Each has its own meaning that the contributors kindly indicated in their posts. I think we'll freeze the choices for now and let people vote :) Good idea. Would you just collect votes in this thread or should we do something more formal? Urs -Abraham ___ 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
Multiple stanzas to selection of melody
Dear all, Trying to typeset a song I am faced with the following problem for which I can;t find a solution in the manual or snippet repository. I kindly request your help. I'm typesetting a song with one staff, where the refrain comes first and spans multiple lines of notes; after that come 3 stanzas. I'd like the song text to be placed under the stanza melody, but I don't want to add empty lines to the refrain. I'm looking for a solution with one \score block. Can this be done? In a scetch: =several notes, line 1 = Text to refrain, line 1 =several notes, line 2 = Text to refrain, line 2 =several notes, line 3 = Text to stanza 1, line 3 Text to stanza 2, line 3 Text to stanza 3, line 3 =several notes, line 4 = Text to stanza 1, line 4 Text to stanza 2, line 4 Text to stanza 3, line 4 To me it would seem logical to change the name of the Voice in line 3, and the associate the lyrics of the stanzas with the voice name in line 3. But I don't knwo how to do this. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: self-alignment-X has negligible effects on dynamics
Hi, 2014-07-28 16:13 GMT+02:00 David Nalesnik david.nales...@gmail.com: In the following example, the ordinary overrides of self-alignment-X appear to have no effect on the position pf the dynamics (or an effect I can't see). Large numbers are needed for an obvious shift. Is this a bug, or something I'm doing wrong? You're misusing self-alignment-X. This feature is *not* for shifting stuff - it is meant for aligning particular point of an object on a particular point of its parent. For example, self-alignment-X = #LEFT means place this object so that its left edge (i.e. left end of X-extent) is horizontally aligned with its parent's left edge. It doesn't mean move stuff around. Look: { % draw boxes around grobs, representing their extents \override DynamicText.stencil = #(make-stencil-boxer 0.03 0 ly:text-interface::print) \override NoteHead.stencil = #(make-stencil-boxer 0.03 0 ly:note-head::print) \override DynamicText.self-alignment-X = #RIGHT % forte's right edge is aligned with notehead's right edge c'4\f \override DynamicText.self-alignment-X = #LEFT % forte's left edge is aligned with notehead's left edge c'4\f % forte's center is aligned with notehead's center \override DynamicText.self-alignment-X = #CENTER c'4\f } % see what happens when we use wider dynamics: { % draw boxes around grobs, representing their extents \override DynamicText.stencil = #(make-stencil-boxer 0.03 0 ly:text-interface::print) \override NoteHead.stencil = #(make-stencil-boxer 0.03 0 ly:note-head::print) \override DynamicText.self-alignment-X = #RIGHT % forte's right edge is aligned with notehead's right edge c'2\fff \override DynamicText.self-alignment-X = #LEFT % forte's left edge is aligned with notehead's left edge c'\fff } % Using numbers outside [-1, 1] interval for alignment doesn't make % much sense. What does it mean if self-alignment-X = #5 ? What is % aligned to what? It's hard to say what this means in English at all. % Of course, we could use some more alignment options. % That's exactly what I'm doing in issue 4022. % With https://code.google.com/p/lilypond/issues/detail?id=4022 , % this code will produce output as in the attachment: { % draw boxes around grobs, representing their extents \override DynamicText.stencil = #(make-stencil-boxer 0.03 0 ly:text-interface::print) \override NoteHead.stencil = #(make-stencil-boxer 0.03 0 ly:note-head::print) \override DynamicText.self-alignment-X = #`(,RIGHT . ,LEFT) % forte's right edge is aligned with notehead's left edge c'2\f \override DynamicText.self-alignment-X = #`(,LEFT . ,RIGHT) % forte's left edge is aligned with notehead's right edge c'\f } % Now, if you want to move stuff around, use X-offset, not % self-alignment-X: { \override DynamicText.stencil = #(make-stencil-boxer 0.03 0 ly:text-interface::print) \override NoteHead.stencil = #(make-stencil-boxer 0.03 0 ly:note-head::print) \override DynamicText.X-offset = -2.5 c'2\f \override DynamicText.X-offset = 1 c'\f } % Maybe some day we'll have a more unified interface for both % moving stuff around and aligning it - i'm working on this - but % for now these are separate tasks. % Is this clearer now? % Janek ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: self-alignment-X has negligible effects on dynamics
On Mon, Jul 28, 2014 at 3:17 PM, Janek Warchoł janek.lilyp...@gmail.com wrote: Hi, 2014-07-28 16:13 GMT+02:00 David Nalesnik david.nales...@gmail.com: In the following example, the ordinary overrides of self-alignment-X appear to have no effect on the position pf the dynamics (or an effect I can't see). Large numbers are needed for an obvious shift. Is this a bug, or something I'm doing wrong? You're misusing self-alignment-X. This feature is *not* for shifting stuff - it is meant for aligning particular point of an object on a particular point of its parent. For example, self-alignment-X = #LEFT means place this object so that its left edge (i.e. left end of X-extent) is horizontally aligned with its parent's left edge. It doesn't mean move stuff around. Look: { % draw boxes around grobs, representing their extents \override DynamicText.stencil = #(make-stencil-boxer 0.03 0 ly:text-interface::print) \override NoteHead.stencil = #(make-stencil-boxer 0.03 0 ly:note-head::print) \override DynamicText.self-alignment-X = #RIGHT % forte's right edge is aligned with notehead's right edge c'4\f \override DynamicText.self-alignment-X = #LEFT % forte's left edge is aligned with notehead's left edge c'4\f % forte's center is aligned with notehead's center \override DynamicText.self-alignment-X = #CENTER c'4\f } % see what happens when we use wider dynamics: { % draw boxes around grobs, representing their extents \override DynamicText.stencil = #(make-stencil-boxer 0.03 0 ly:text-interface::print) \override NoteHead.stencil = #(make-stencil-boxer 0.03 0 ly:note-head::print) \override DynamicText.self-alignment-X = #RIGHT % forte's right edge is aligned with notehead's right edge c'2\fff \override DynamicText.self-alignment-X = #LEFT % forte's left edge is aligned with notehead's left edge c'\fff } % Using numbers outside [-1, 1] interval for alignment doesn't make % much sense. What does it mean if self-alignment-X = #5 ? What is % aligned to what? It's hard to say what this means in English at all. % Of course, we could use some more alignment options. % That's exactly what I'm doing in issue 4022. % With https://code.google.com/p/lilypond/issues/detail?id=4022 , % this code will produce output as in the attachment: { % draw boxes around grobs, representing their extents \override DynamicText.stencil = #(make-stencil-boxer 0.03 0 ly:text-interface::print) \override NoteHead.stencil = #(make-stencil-boxer 0.03 0 ly:note-head::print) \override DynamicText.self-alignment-X = #`(,RIGHT . ,LEFT) % forte's right edge is aligned with notehead's left edge c'2\f \override DynamicText.self-alignment-X = #`(,LEFT . ,RIGHT) % forte's left edge is aligned with notehead's right edge c'\f } % Now, if you want to move stuff around, use X-offset, not % self-alignment-X: { \override DynamicText.stencil = #(make-stencil-boxer 0.03 0 ly:text-interface::print) \override NoteHead.stencil = #(make-stencil-boxer 0.03 0 ly:note-head::print) \override DynamicText.X-offset = -2.5 c'2\f \override DynamicText.X-offset = 1 c'\f } % Maybe some day we'll have a more unified interface for both % moving stuff around and aligning it - i'm working on this - but % for now these are separate tasks. % Is this clearer now? This is clearer. Thanks! What is potentially confusing (and you see how badly I've been confused) is that the default setting of X-offset has changed. I'm used to the old behavior \override DynamicText.X-offset = #ly:self-alignment-interface::x-aligned-on-self gets it back. I think that this should be made clear in the documentation, if you haven't already done this! Sorry for any trouble, David ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: self-alignment-X has negligible effects on dynamics
Hi, 2014-07-28 22:51 GMT+02:00 David Nalesnik david.nales...@gmail.com: What is potentially confusing (and you see how badly I've been confused) is that the default setting of X-offset has changed. I'm not sure if i understand. You mean that default X-offset values for DynamicTexts changed, or that DynamicText.X-offset uses a different callback now? I'm used to the old behavior \override DynamicText.X-offset = #ly:self-alignment-interface::x-aligned-on-self gets it back. It doesn't, actually. I mean, { \override DynamicText.X-offset = #ly:self-alignment-interface::x-aligned-on-self \override DynamicText.self-alignment-X = #RIGHT c'4\f \override DynamicText.self-alignment-X = #LEFT c'4\f \override DynamicText.self-alignment-X = #CENTER c'4\f } will produce different output before and after my patch. That's because before my patch DynamicTexts' position was calculated from x-aligned-on-self AND centered-on-x-parent, in a way that was opaque and not configurable by the user. Of course, it's possible to mimic old behaviour. I think that this should be made clear in the documentation, if you haven't already done this! Yes, i should do this (or maybe some doc editor would like to help me? I would prefer to focus on making further changes in the code). best, Janek PS i may not be able to reply again until tomorrow evening (~18 UTC). I found that it's harder for me to focus on my day job when i read LilyPond email in the morning, especially in case of emotionally involving topics like this one. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: thanks again for the editionEngraver
Hi, 2014-07-28 3:38 GMT+02:00 Kieren MacMillan kieren_macmil...@sympatico.ca: Hi Jan-Peter, I think the most complicated part is addressing multiple voices in one Staff. […] propably there are more things to modify to make it more intuitive. I think the stated problem would be solved *AND* the whole machinery made more intuitive by allowing a context to be “direct addressed”, i.e., the context \new Staff = “MyStaff” \someMusic would be mod-ed using something like \editionMod ThisEdition 1 0/4 APiece.MyStaff \override … as opposed to \editionMod ThisEdition 1 0/4 APiece.Staff.B \override … Maybe it would be possible to take advantage of my work on predefined contexts for instruments? (https://github.com/openlilylib/openlilylib/tree/master/templates/predefined-instruments) With predefined instruments, instead of writing \new Staff = violin { % music... } \new Staff = viola { % music... } you basically write \new ViolinStaff { % music... } \new ViolaStaff { % music... } (except that i haven't defined Violins and Violas yet, right now i only have vocal stuff). This makes it possible to do \new ViolinStaff { % music... } \new ViolaStaff { % music... } \layout { \override ViolinStaff.NoteHead #'color = #red } to get just the Violin's notes colored red, achieving true separation of content from layout. ...apart from the fact that you'll also get a bunch of specific settings for each instrument, like midiInstrument and InstrumentName :) If i understood how Jan-Peter's engraver works, i think that using my predefined instruments should make it possible to write \new ViolinStaff \someMusic and mod it using \editionMod ThisEdition 1 0/4 APiece.ViolinStaff \override … since there usually should be one XxxStaff in the score. Actually, it's dead easy to define new instruments, even just for the sake of having unique contexts: % syntax: \newInstrument name parentName groupName staffSettings voiceSettings \newInstrument ViolinI Violin StaffGroup \with { instrumentName = ViolinI } \with { } What do you think? Janek ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: self-alignment-X has negligible effects on dynamics
Janek Warchoł wrote Monday, July 28, 2014 10:12 PM 2014-07-28 22:51 GMT+02:00 David Nalesnik david.nales...@gmail.com: I think that this should be made clear in the documentation, if you haven't already done this! Yes, i should do this (or maybe some doc editor would like to help me? I would prefer to focus on making further changes in the code). If your code changes necessitate a change to the documentation and you haven't done this yourself, please add an issue to the tracker explaining what changes and/or additions need to be made to the documentation at the time the code change is pushed. Remember at the time you push your changes it is likely that you are the only one who understands what the implications are re the documentation. It is unlikely any doc editor will pick this up otherwise. Trevor ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Multiple stanzas to selection of melody
On Mon, Jul 28, 2014 at 1:47 PM, Marten msvis...@planet.nl wrote: Dear all, Trying to typeset a song I am faced with the following problem for which I can;t find a solution in the manual or snippet repository. I kindly request your help. I'm typesetting a song with one staff, where the refrain comes first and spans multiple lines of notes; after that come 3 stanzas. I'd like the song text to be placed under the stanza melody, but I don't want to add empty lines to the refrain. I'm looking for a solution with one \score block. Can this be done? In a scetch: =several notes, line 1 = Text to refrain, line 1 =several notes, line 2 = Text to refrain, line 2 =several notes, line 3 = Text to stanza 1, line 3 Text to stanza 2, line 3 Text to stanza 3, line 3 =several notes, line 4 = Text to stanza 1, line 4 Text to stanza 2, line 4 Text to stanza 3, line 4 To me it would seem logical to change the name of the Voice in line 3, and the associate the lyrics of the stanzas with the voice name in line 3. But I don't knwo how to do this. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user Maybe not the best solution, but one that works. Use two voices on separate staves, explicit line breaks, hide empty staves: =voice1 notes, line1 (empty measures voice2)= BREAK Text to refrain, line 1 (associated with voice1) =voice1 notes, line2 (empty measures voice2)= BREAK Text to refrain, line 2 (associated with voice1) =voice2 notes, line3 (empty measures voice1)= BREAK Text to stanza 1, line 1 (associated with voice2) Text to stanza 2, line 1 (associated with voice2) Text to stanza 3, line 1 (associated with voice2) =voice2 notes, line4 (empty measures voice1)= BREAK Text to stanza 1, line 2 (associated with voice2) Text to stanza 2, line 2 (associated with voice2) Text to stanza 3, line 2 (associated with voice2) If you use spacer notes (rests should work too) for the empty measures, then the refrain lyrics will show up only in lines 1 and 2 and the stanzas will show up with the notes in lines 3 and 4. Then the empty measures can be hidden with: \layout { \context { \Staff \RemoveEmptyStaves \override VerticalAxisGroup #'remove-first = ##t } } thus, showing only the refrain in the first two lines and the stanzas in the last two lines. Good luck! -Abraham ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: self-alignment-X has negligible effects on dynamics
Hi Janek, On Mon, Jul 28, 2014 at 4:12 PM, Janek Warchoł janek.lilyp...@gmail.com wrote: Hi, 2014-07-28 22:51 GMT+02:00 David Nalesnik david.nales...@gmail.com: What is potentially confusing (and you see how badly I've been confused) is that the default setting of X-offset has changed. I'm not sure if i understand. You mean that default X-offset values for DynamicTexts changed, or that DynamicText.X-offset uses a different callback now? The default callback has changed. I'm used to the old behavior \override DynamicText.X-offset = #ly:self-alignment-interface::x-aligned-on-self gets it back. It doesn't, actually. I mean, { \override DynamicText.X-offset = #ly:self-alignment-interface::x-aligned-on-self \override DynamicText.self-alignment-X = #RIGHT c'4\f \override DynamicText.self-alignment-X = #LEFT c'4\f \override DynamicText.self-alignment-X = #CENTER c'4\f } will produce different output before and after my patch. That's because before my patch DynamicTexts' position was calculated from x-aligned-on-self AND centered-on-x-parent, in a way that was opaque and not configurable by the user. Of course, it's possible to mimic old behaviour. Are you referring to that ly:make-simple-closure stuff which was commonly found in X-offset callbacks? If so, I don't think this was ever the setting for DynamicText.X-offset. At least, in 2.18.2, we have (X-offset . ,ly:self-alignment-interface::x-aligned-on-self) And of course in 2.19.10, we have (X-offset . ,ly:self-alignment-interface::aligned-on-x-parent) I think that this should be made clear in the documentation, if you haven't already done this! Yes, i should do this (or maybe some doc editor would like to help me? I would prefer to focus on making further changes in the code). best, Janek PS i may not be able to reply again until tomorrow evening (~18 UTC). I found that it's harder for me to focus on my day job when i read LilyPond email in the morning, especially in case of emotionally involving topics like this one. I can imagine. Sorry :( Best, David ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Multiple stanzas to selection of melody
Am 28.07.2014 21:47, schrieb Marten: Dear all, Trying to typeset a song I am faced with the following problem for which I can;t find a solution in the manual or snippet repository. I kindly request your help. I'm typesetting a song with one staff, where the refrain comes first and spans multiple lines of notes; after that come 3 stanzas. I'd like the song text to be placed under the stanza melody, but I don't want to add empty lines to the refrain. I'm looking for a solution with one \score block. Can this be done? In a sketch: =several notes, line 1 = Text to refrain, line 1 =several notes, line 2 = Text to refrain, line 2 =several notes, line 3 = Text to stanza 1, line 3 Text to stanza 2, line 3 Text to stanza 3, line 3 =several notes, line 4 = Text to stanza 1, line 4 Text to stanza 2, line 4 Text to stanza 3, line 4 To me it would seem logical to change the name of the Voice in line 3, and the associate the lyrics of the stanzas with the voice name in line 3. But I don't knwo how to do this. Hello Marten, I agree that LilyPond does not have a satisfying interface for such situations (i.e. any situation with repeats, which get different text on different times, or with changing number of stanzas, as in your example). I’ve made three examples which should do what you want, the first two are similar, the third isn’t. Explanations are in the code, and more to be found in the learning manual http://lilypond.org/doc/v2.18/Documentation/learning/songs and notation reference http://lilypond.org/doc/v2.18/Documentation/notation/vocal-music. Hope that helps, Simon \version 2.19.8 #(set-default-paper-size a6 'landscape) % here, lyric syllables are automatically assigned to notes % by \lyricsto % the refrain text is written next to the second stanza % in order to be vertically centered if there is no % line break at the beginning of the stanza % in the other stanzas, the refrain must be skipped % by one underscore per missing syllable melody = \relative { \time 3/4 c'4 d e f2. d4 e f g2. \break bes4 a g f( g8 f) e[( d]) g4( e) d c2. } stanzaOne = \lyricmode { _ _ _ _ _ _ _ _ \set stanza = 1. This is the text of stan -- za one } stanzaTwo = \lyricmode { This is the text of the re -- frain. \set stanza = 2. This is the text of stan -- za two. } stanzaThree = \lyricmode { _ _ _ _ _ _ _ _ \set stanza = 3. This is the text of stan -- za three. } \score { \new Voice = melody \melody \new Lyrics \lyricsto melody \stanzaOne \new Lyrics \lyricsto melody \stanzaTwo \new Lyrics \lyricsto melody \stanzaThree }\version 2.19.8 #(set-default-paper-size a6 'landscape) % here, the lyric syllable durations are manually entered and % \lyricsto avoided. This allows skipping the refrain more easily. melody = \relative { \time 3/4 c'4 d e f2. d4 e f g2. \break bes4 a g f( g8 f) e[( d]) g4( e) d c2. } stanzaOne = \lyricmode { \skip 2.*4 \set stanza = 1. This4 is the text2 of4 stan2 -- za4 one. } stanzaTwo = \lyricmode { This4 is the text2. of4 the re -- frain.2. \set stanza = 2. This4 is the text2 of4 stan2 -- za4 two. } stanzaThree = \lyricmode { \skip 2.*4 \set stanza = 3. This4 is the text2 of4 stan2 -- za4 three. } \score { \new Voice \melody \new Lyrics \stanzaOne \new Lyrics \stanzaTwo \new Lyrics \stanzaThree }\version 2.19.8 #(set-default-paper-size a6 'landscape) % This is an entirely different layout and slightly more elegant, I think. % Here, new contexts are created in parallel to the music at the point % where the stanzas begin. refrain = \lyricmode { \set stanza = 1.â3. This4 is the text2. of4 the re -- frain.2. } stanzaOne = \lyricmode { \set stanza = 1. This4 is the text2 __ of4 stan2 -- za4 one. } stanzaTwo = \lyricmode { \set stanza = 2. This4 is the text2 __ of4 stan2 -- za4 two. } stanzaThree = \lyricmode { \set stanza = 3. This4 is the text2 __ of4 stan2 -- za4 three. } melody = \relative { \time 3/4 c'4 d e f2. d4 e f g2. \break \new Lyrics \stanzaOne \new Lyrics \stanzaTwo \new Lyrics \stanzaThree { bes4 a g f( g8 f) e[( d]) g4( e) d c2. } } \score { \new Voice \melody \new Lyrics \refrain }___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: See the new music fonts in action
On Mon, Jul 28, 2014 at 1:19 PM, Urs Liska [via Lilypond] ml-node+s1069038n165017...@n5.nabble.com wrote: Good idea. Would you just collect votes in this thread or should we do something more formal? Urs Alright everyone, Here's something more formal. It's my first time using this service, so hope it works ok. It said there will be advertisements, but I think its just theirs (tip: on the next thank you page after you submit your votes, just close the window when you get there--there's no confirmation that your vote was received, but it will have been recorded). It's completely anonymous, so no hard feelings if the name that wins isn't the one you (or I) chose :) Just click the link and answer the question (only once, please, to be fair). You will be allowed up to 2 votes between the names. I'll let it run for a week and then I'll close it, so tell all your friends to come and help out. Happy voting! http://kwiksurveys.com/s.asp?sid=l49o0rvfccqd8ow396917 Regards, Abraham -- View this message in context: http://lilypond.1069038.n5.nabble.com/See-the-new-music-fonts-in-action-tp164898p165032.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: self-alignment-X has negligible effects on dynamics
Janek Warchoł janek.lilyp...@gmail.com writes: Hi, 2014-07-28 16:13 GMT+02:00 David Nalesnik david.nales...@gmail.com: In the following example, the ordinary overrides of self-alignment-X appear to have no effect on the position pf the dynamics (or an effect I can't see). Large numbers are needed for an obvious shift. Is this a bug, or something I'm doing wrong? You're misusing self-alignment-X. This feature is *not* for shifting stuff - it is meant for aligning particular point of an object on a particular point of its parent. For example, self-alignment-X = #LEFT means place this object so that its left edge (i.e. left end of X-extent) is horizontally aligned with its parent's left edge. The documentation states: 3.2.98 self-alignment-interface --- Position this object on itself and/or on its parent. To this end, the following functions are provided: ‘Self_alignment_interface::[xy]_aligned_on_self’ Align self on reference point, using ‘self-alignment-X’ and ‘self-alignment-Y’. ‘Self_alignment_interface::aligned_on_[xy]_parent’ ‘Self_alignment_interface::centered_on_[xy]_parent’ Shift the object so its own reference point is centered on the extent of the parent User settable properties: . ‘self-alignment-X’ (number) Specify alignment of an object. The value ‘-1’ means left aligned, ‘0’ centered, and ‘1’ right-aligned in X direction. Other numerical values may also be specified. ‘self-alignment-Y’ (number) Like ‘self-alignment-X’ but for the Y axis. Now a number of grobs have their definition of X-offset changed in a manner where they will behave quite differently to previously, and particularly differently with regard to self-alignment-X which previously was used in several cases to only affect the self-alignment with regard to a parent reference point. Compare URL:http://lilypond.org/doc/v2.18/Documentation/notation/aligning-objects#-Self_002daligning-objects-in-both-directions with URL:http://lilypond.org/doc/v2.19/Documentation/notation/aligning-objects#-Self_002daligning-objects-in-both-directions It's not just that the example looks different, the code comments no longer fit either. This is a mechanism that has been _advertised_ for tweaking the positioning. It _still_ is advertised in that manner. -- David Kastrup ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Where to Download the New Music Fonts?
Dear all, Can you post a link where the new music fonts can be found for downloading? I am unable to get to them on openlillylib.org. Thanks, Steve ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Where to Download the New Music Fonts?
Dear all, Can you post a link where the new music fonts can be found for downloading? I am unable to get to them on openlillylib.org. Thanks, Steve ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: self-alignment-X has negligible effects on dynamics
Well, the output while using 'self-alignment-X with DynamicText _has_ changed. This needs thoroughly documentation. And it will likely break some of my custom-functions. This will not be a big problem for me, I assume, though maybe others rely on the old behaviour as well. I uploaded two images for better comparing, with ref-points and testing TextScript, too: 2.18.0 http://imgur.com/2vcBG3n.png 2.19.11 http://imgur.com/vE8HaSg.png (The source-code uses my most recent code for ref-points, which may not be the same as in openlilylib, is attached.) All in all I'd vote for the new behaviour, because it seems to be more logical and consistent to how TextScript is aligned. Cheers, Harm \version 2.18.0 % \version 2.19.11 #(define (add-dot text?) ;; Sets a grob' stencil-property by adding a red dot and an optional text ;; to the actual grob-stencil. (lambda (grob) (let* ((layout (ly:grob-layout grob)) (props (layout-extract-page-properties layout)) (font (ly:paper-get-font layout (cons '((font-encoding . fetaMusic)) props))) ;; Get the stencil-procedure from ly:grob-basic-properties. ;; If any, use it to create the stencil. (function (assoc-get 'stencil (ly:grob-basic-properties grob))) (stencil (if function (function grob) point-stencil)) ;; Get the grob-name and create a text-stencil. ;; Read out the y-length for later translate. (grob-name-proc (lambda (x) (assq-ref (ly:grob-property x 'meta) 'name))) (grob-name (grob-name-proc grob)) (grob-string (if (symbol? grob-name) (symbol-string grob-name) no name)) (ref-text-stil (grob-interpret-markup grob (markup #:with-color red #:normal-text #:abs-fontsize 6 (string-append grob-string (ref-text-stil-length (interval-length (ly:stencil-extent ref-text-stil Y))) (grob-string-stil (if text? (grob-interpret-markup grob (markup #:with-dimensions '(0 . 0) '(0 . 0) #:stencil ref-text-stil)) point-stencil )) ;; Create a red-dot-stencil (dot (ly:font-get-glyph font dots.dot)) (red-dot (ly:stencil-in-color dot 1 0 0)) (red-dot-length (interval-length (ly:stencil-extent red-dot X))) (red-dot-stil (ly:stencil-translate-axis red-dot (/ red-dot-length -2) X))) ;; If there's a grob with stencil-procedure and a valid stencil is ;; created, add the red-dot-stil and an optional text-stencil. (if (and function (ly:stencil? stencil) ) ;; and: (grob::is-live? grob) ??? (ly:grob-set-property! grob 'stencil (ly:stencil-add stencil red-dot-stil (ly:stencil-translate-axis (ly:stencil-rotate grob-string-stil 90 0 0) (/ ref-text-stil-length 2) X))) % needs to be here for 2.16.2 #(define-public (symbol-list-or-symbol? x) (if (list? x) (every symbol? x) (symbol? x))) #(define (add-red-dot-to-grobs override? text? l) ;; Applies @code{(add-dot text?)} via after-line-breaking to the specified ;; grob(s) in @code{l} ;; ;; possible values for l: ;; 'all-grobs (adds red-dots to all grobs, where possible) ;; this will naturally cause collisions, ;; a single grob-name, must be a symbol, ;; a list of grob-names, ;; anything else (returns the unchanged original stencil) ;; TODO: How to apply it once? (let ((grobs-to-consider (cond ((eq? l 'all-grobs) all-grob-descriptions) ((symbol? l) (list (assoc l all-grob-descriptions))) ((list? l) (map (lambda (grob) (assoc grob all-grob-descriptions)) l)) (else '() (lambda (context) (let loop ((x grobs-to-consider)) (if (not (null? x)) (let ((grob-name (caar x))) (ly:context-pushpop-property context grob-name 'after-line-breaking (if override? (add-dot text?) '()) ) (loop (cdr x printRefpointOn = #(define-music-function (parser location text? s-or-l) (boolean? symbol-list-or-symbol?) Adds a red dot (and an optional text) to the stencil's
Re: Where to Download the New Music Fonts?
On Mon, Jul 28, 2014 at 4:48 PM, Steve Noland st...@thenolands.us wrote: Dear all, Can you post a link where the new music fonts can be found for downloading? I am unable to get to them on openlillylib.org. Thanks, Steve ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user Steve, I'm glad to see your enthusiasm! Two things need to be done before we can distribute these fonts to you: 1. Finish the website that will allow you to download the fonts. This is in the works, so please be patient. I'll notify the forum when this is available. The website will be fonts.openlilylib.org and I think there's not a reference on openlilylib.org yet to this, so just remember it for now. 2. LilyPond needs to be patched in order actually use the fonts. Although we are going to see if this can be made part of the core code so users won't have to do anything but download and use the fonts, you can do this part yourself. So, if you're feeling brave, I'll post instructions to set this up before the next stable release! Which font(s) are you excited to use? Sorry to make you wait. Thank you for your patience. -Abraham ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Where to Download the New Music Fonts?
2014-07-29 0:58 GMT+02:00 Abraham Lee tisimst.lilyp...@gmail.com: 2. LilyPond needs to be patched in order actually use the fonts. I'd be interested in that file, too. Can't find it on the list ... Although we are going to see if this can be made part of the core code so users won't have to do anything but download and use the fonts, you can do this part yourself. I'd like to give it a try with some whatever font as well ;) So, if you're feeling brave, I'll post instructions to set this up before the next stable release! Currently I've no idea what I'm expected to do. Some instructions would be great. Which font(s) are you excited to use? Sorry to make you wait. Thank you for your patience. -Abraham Cheers, Harm ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Multiple stanzas to selection of melody
Hello Abraham, Simon, Thanks for your solutions and quick replies :) I decided to try to implement Simon's third solution, as it explicitly keeps the melody of the stanzas together with their texts. Ingenious - hadn't thought about a solution like that. I have two question about it though: 1. If I use \addlyrics instead of \new Lyrics for the stanzas, an ambitus will be rendered for the stanza and the refrain *separately* (a layout block activating the ambitus, must of course be added). If I use \new Lyrics, as in your solution, only one ambitus for the entire song is rendered (expected behaviour). Why is this so? 2. If the stanza melody begins with a rest, the text gets aligned under the rest. Why? Many thanks, Marten ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Multiple stanzas to selection of melody
On Mon, Jul 28, 2014 at 5:28 PM, Marten msvis...@planet.nl wrote: Hello Abraham, Simon, Thanks for your solutions and quick replies :) I decided to try to implement Simon's third solution, as it explicitly keeps the melody of the stanzas together with their texts. Ingenious - hadn't thought about a solution like that. I have two question about it though: 1. If I use \addlyrics instead of \new Lyrics for the stanzas, an ambitus will be rendered for the stanza and the refrain *separately* (a layout block activating the ambitus, must of course be added). If I use \new Lyrics, as in your solution, only one ambitus for the entire song is rendered (expected behaviour). Why is this so? 2. If the stanza melody begins with a rest, the text gets aligned under the rest. Why? Many thanks, Marten ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user Marten, The reason why it lines up under the rest is because of how Simon notates the lyrics using the numbers to indicate the duration of the lyrics. This removes the automatic synchronizing with the notes. Here's Simon's example in the way that I described it before. It removes the need to specify the lyric durations, but may not be what you fix the ambitus issue... Regards, Abraham \version 2.18.2 #(set-default-paper-size a6 'landscape) refrainNotes = \relative c' { \time 3/4 c4 d e | f2. | d4 e f | g2. | \break s2.*4 } stanzaNotes = \relative c'' { \time 3/4 s2.*4 bes4 a g | f( g8 f) e[( d]) | g4( e) d | c2. } refrain = \lyricmode { This is the text of the re -- frain. } stanzaOne = \lyricmode { \set stanza = 1. This is the text of stan -- za one. } stanzaTwo = \lyricmode { \set stanza = 2. This is the text of stan -- za two. } stanzaThree = \lyricmode { \set stanza = 3. This is the text of stan -- za three. } \score { \new Voice = refrain \refrainNotes \new Lyrics \lyricsto refrain \refrain \new Voice = stanza \stanzaNotes \new Lyrics \lyricsto stanza \stanzaOne \new Lyrics \lyricsto stanza \stanzaTwo \new Lyrics \lyricsto stanza \stanzaThree \layout { \context { \Staff \RemoveEmptyStaves \override VerticalAxisGroup #'remove-first = ##t } } }___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Where to Download the New Music Fonts?
Dear Abraham, I am very interested in the lilyjazz font. Can't wait... Regards, Steve ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Where to Download the New Music Fonts?
On Mon, Jul 28, 2014 at 5:19 PM, Thomas Morley thomasmorle...@gmail.com wrote: 2014-07-29 0:58 GMT+02:00 Abraham Lee tisimst.lilyp...@gmail.com: 2. LilyPond needs to be patched in order actually use the fonts. I'd be interested in that file, too. Can't find it on the list ... Although we are going to see if this can be made part of the core code so users won't have to do anything but download and use the fonts, you can do this part yourself. I'd like to give it a try with some whatever font as well ;) So, if you're feeling brave, I'll post instructions to set this up before the next stable release! Currently I've no idea what I'm expected to do. Some instructions would be great. Which font(s) are you excited to use? Sorry to make you wait. Thank you for your patience. -Abraham Cheers, Harm Man, Am I a pushover or what? For those of you who'd really, REALLY like to try this out, check out this page, which has downloads for the patched file and two fonts Gonville and Cadence (sorry, the rest will have to wait for now): https://sites.google.com/site/tisimst/Home/custom-font-how-to Enjoy everyone! -Abraham ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Where to Download the New Music Fonts?
Thanks very much!! Steve On Jul 28, 2014, at 4:56 PM, Abraham Lee tisimst.lilyp...@gmail.commailto:tisimst.lilyp...@gmail.com wrote: On Mon, Jul 28, 2014 at 5:19 PM, Thomas Morley thomasmorle...@gmail.commailto:thomasmorle...@gmail.com wrote: 2014-07-29 0:58 GMT+02:00 Abraham Lee tisimst.lilyp...@gmail.commailto:tisimst.lilyp...@gmail.com: 2. LilyPond needs to be patched in order actually use the fonts. I'd be interested in that file, too. Can't find it on the list ... Although we are going to see if this can be made part of the core code so users won't have to do anything but download and use the fonts, you can do this part yourself. I'd like to give it a try with some whatever font as well ;) So, if you're feeling brave, I'll post instructions to set this up before the next stable release! Currently I've no idea what I'm expected to do. Some instructions would be great. Which font(s) are you excited to use? Sorry to make you wait. Thank you for your patience. -Abraham Cheers, Harm Man, Am I a pushover or what? For those of you who'd really, REALLY like to try this out, check out this page, which has downloads for the patched file and two fonts Gonville and Cadence (sorry, the rest will have to wait for now): https://sites.google.com/site/tisimst/Home/custom-font-how-to Enjoy everyone! -Abraham ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Where to Download the New Music Fonts?
Not that you asked, but I'm most excited to use Haydn and especially Gutenberg1939. The latter is like the font of on of the original printings of my favorite hymn, Elgar's Drakes Broughton. As a music director at a parish, I might want to use it in supplements, though I'll probably get complaints. I wanted to share that with you because I know nobody else who would possibly appreciate it. Best, Conor Cook On Jul 28, 2014, at 6:58 PM, Abraham Lee tisimst.lilyp...@gmail.com wrote: On Mon, Jul 28, 2014 at 4:48 PM, Steve Noland st...@thenolands.us wrote: Dear all, Can you post a link where the new music fonts can be found for downloading? I am unable to get to them on openlillylib.org. Thanks, Steve ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user Steve, I'm glad to see your enthusiasm! Two things need to be done before we can distribute these fonts to you: 1. Finish the website that will allow you to download the fonts. This is in the works, so please be patient. I'll notify the forum when this is available. The website will be fonts.openlilylib.org and I think there's not a reference on openlilylib.org yet to this, so just remember it for now. 2. LilyPond needs to be patched in order actually use the fonts. Although we are going to see if this can be made part of the core code so users won't have to do anything but download and use the fonts, you can do this part yourself. So, if you're feeling brave, I'll post instructions to set this up before the next stable release! Which font(s) are you excited to use? Sorry to make you wait. Thank you for your patience. -Abraham ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Multiple stanzas to selection of melody
On Mon, Jul 28, 2014 at 07:47:17PM +, Marten wrote: Dear all, Trying to typeset a song I am faced with the following problem for which I can;t find a solution in the manual or snippet repository. I kindly request your help. I'm typesetting a song with one staff, where the refrain comes first and spans multiple lines of notes; after that come 3 stanzas. I'd like the song text to be placed under the stanza melody, but I don't want to add empty lines to the refrain. I'm looking for a solution with one \score block. Can this be done? Marten: Is the attached exaple germane to what you are trying to do? regards, Jim \version 2.19.0 refrain = \lyricmode { Here's the re -- frain. Here's the re -- frain. } verseOne = \lyricmode { This is verse one. This is verse one. } verseTwo = \lyricmode { This is verse two. This is verse two. } verseThree = \lyricmode { This is verse three. This is verse three. } verseFour = \lyricmode { This is verse four. This is verse four. } \score { { \new Voice = refrain { c'4 c'4 c'4 c'4 \break c'4 c'4 c'4 c'4 \break } \new Voice = verse { c'4 c'4 c'4 c'4 \break c'4 c'4 c'4 c'4 \break } } \new Lyrics \lyricsto refrain \refrain \new Lyrics \lyricsto verse \verseOne \new Lyrics \lyricsto verse \verseTwo \new Lyrics \lyricsto verse \verseThree \new Lyrics \lyricsto verse \verseFour } test-lyric.pdf Description: Adobe PDF document ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
LilyPond not working in jail mounted noexec
Hello LilyPond users, I've created a chroot jail for LilyPond 2.18.2 on Ubuntu 12.04.4 LTS which I installed by executing the binary lilypond-2.18.2-1.linux-64.sh. I have followed the instructions the instructions on http://www.lilypond.org/doc/v2.19/Documentation/usage/command_002dline-usage#lilypond-in-chroot-jail and it works only if the loopfile is mounted WITHOUT noexec. The lilypond binary will be executed on .ly files of unknown origin and I cannot use the -dsafe option since it breaks some functionality. Still I try to make rendering as safe as possible by using the noexec mount option as suggested in the manual here: http://www.lilypond.org/doc/v2.19/Documentation/usage/command_002dline-usage#basic-command-line-options-for-lilypond I've used a minimal example for testing: root@box:~# cat /mnt/lilyloop/lilyhome/test.ly \version 2.14.1 { % middle tie looks funny here: c' d'' b''8. ~ c' d'' b''8 } The user pigpen has sudo rights to execute /usr/local/bin/lilypond Case 1: Jail mounted WITHOUT noexec - /home/lily/loopfile on /mnt/lilyloop type ext3 (rw,nosuid,nodev) pigpen@box:~$ sudo /usr/local/bin/lilypond -jlily,lily,/mnt/lilyloop,/lilyhome --png --header=texidoc test.ly GNU LilyPond 2.18.2 Processing `test.ly' Parsing... Interpreting music... Preprocessing graphical objects... Finding the ideal number of pages... (process:3701): GLib-WARNING **: getpwuid_r(): failed due to unknown user id (1002) Fitting music on 1 page... Drawing systems... Layout output to `test.ps'... Converting to PNG... Success: compilation successfully completed Case 2: Jail mounted WITH noexec - /home/lily/loopfile on /mnt/lilyloop type ext3 (rw,noexec,nosuid,nodev) pigpen@box:~$ sudo /usr/local/bin/lilypond -jlily,lily,/mnt/lilyloop,/lilyhome --png --header=texidoc test.ly GNU LilyPond 2.18.2 Processing `test.ly' Parsing... Interpreting music... Preprocessing graphical objects... Finding the ideal number of pages... (process:3783): GLib-WARNING **: getpwuid_r(): failed due to unknown user id (1002) (process:3783): Pango-WARNING **: /usr/local/lilypond/usr/bin/..//lib/pango/1.6.0/modules/pango-basic-fc.so: failed to map segment from shared object: Operation not permitted (process:3783): Pango-WARNING **: Failed to load Pango module '/usr/local/lilypond/usr/bin/..//lib/pango/1.6.0/modules/pango-basic-fc' for id 'BasicScriptEngineFc' (process:3783): Pango-WARNING **: failed to choose a font, expect ugly output. engine-type='PangoRenderFc', script='common' (process:3783): Pango-CRITICAL **: pango_fc_font_lock_face: assertion `PANGO_IS_FC_FONT (font)' failed What am I doing wrong? Is the setup still safe without the noexec option? Thank you all in advance, Marc Marc Reymann Systemadministration [Industriepreis]http://www.blue-spice.org/de/loesungen/packages/bluespice-docu/ Hallo Welt! - Medienwerkstatt GmbH Residenzstraße 2 93047 Regensburg Tel. +49 (0) 941 - 66 0 80-195 Fax +49 (0) 941 - 66 0 80-189 www.hallowelt.bizhttp://www.hallowelt.biz/ reym...@hallowelt.bizmailto:reym...@hallowelt.biz Sitz: Regensburg Amtsgericht: Regensburg Handelsregister: HRB 10467 E.USt.Nr.: DE 253050833 Geschäftsführer: Anja Ebersbach, Markus Glaser, Dr. Richard Heigl, Radovan Kubani ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
predefined mandolin tuning wrong?
\version 2.18.0 #mandolin-tuning #o;o;o;o; The code will show a wrongnotes, say a-c-e-g instead of g-d-a-e (low to high). Is the code erroneous or the predefined tuning? Regards BB ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: predefined mandolin tuning wrong?
Sorry, I reduced the code too much! I started with the following code trying to redefine a fretboard: \version 2.18.0 #default-fret-table \chordmode {a:m7} %#guitar-tuning %#5;x;5;5;5;x; #mandolin-tuning #o;o;o;o; theChords = \chordmode { a:m7 } \score { \theChords } It does not work as intentionally planned! it shows me the notes of the Am7 twice. But #o;o;o;o; should redefine Am7 and show g-d-a-e (low to high)? Regards BB On 28.07.2014 11:24, BB wrote: \version 2.18.0 #mandolin-tuning #o;o;o;o; The code will show a wrongnotes, say a-c-e-g instead of g-d-a-e (low to high). Is the code erroneous or the predefined tuning? Regards BB ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
cadenzaToMusic function, odd behavior causing barcheck failures
Hi, Some time ago, a user here gave me a cadenzaToMusic function, which could stretch rests in non-cadenza parts to match the duration of a cadenza. (That's because I was having problems with compressing the cadenza music to fit in a normal-length bar.) I've used it in a couple of pieces and it's worked beautifully so far, but failed in the case below. I expect to get: (whole rest, fermata) | 2/4 R2 | 6/8 (next section) Instead, I get (whole rest, fermata) | 2/4 R2 ... ... and here, the 6/8 appears in the middle of the bar. It looks like the barlines are calculated as if the 2/4 bar contained three quarters. The issue doesn't reproduce in two cases: - If I replace the \cadenzaToMusic in the \score block with rests adding up to the right duration, or - If I put the part with the cadenza notes (with *no* \cadenzaToMusic) in the lowest staff. (I can't do that b/c it's a clarinet cadenza and the piece also uses bassoon.) I'm really quite perplexed why this is happening. Can someone take a look? Thanks, hjh \language english \version 2.18.2 cadenzaToMusic = #(define-music-function (parser location cadenzaMusic music) (ly:music? ly:music?) Adjust the length of `music and the measureLength, to fit the length of `cadenzaMusic (let* ((clen (ly:music-length cadenzaMusic)) (mlen (ly:music-length music)) (factor (ly:moment-div clen mlen)) (compressed (ly:music-compress music factor))) ;; (format #t factor : ~a\n factor) #{ \set Timing.measureLength = $clen $compressed \unset Timing.measureLength #})) clarCadenzaC = { \cadenzaOn \repeat unfold 31 r8 \cadenzaOff } globalB = { \time 4/4 \cadenzaOn \cadenzaToMusic \clarCadenzaC s1 \cadenzaOff \bar | \time 2/4 s2 \time 6/8 s2. } \score { \new Staff \globalB \relative c' { \cadenzaOn % use the following line: barcheck failed, and 6/8 meter is in the wrong place \cadenzaToMusic \clarCadenzaC r1\fermata % use the following line instead (comment the previous one), no problem %r8 \repeat unfold 15 { r4 } % = 31 eighth notes \cadenzaOff R2 cs8 d e cs4. } } ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: predefined mandolin tuning wrong?
BB bb-543...@versanet.de writes: Sorry, I reduced the code too much! I started with the following code trying to redefine a fretboard: \version 2.18.0 #default-fret-table \chordmode {a:m7} %#guitar-tuning %#5;x;5;5;5;x; #mandolin-tuning #o;o;o;o; That's just gibberish. What documentation are you working from? -- David Kastrup ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: predefined mandolin tuning wrong?
On 14-07-28 03:42 AM, BB wrote: Sorry, I reduced the code too much! I started with the following code trying to redefine a fretboard: \version 2.18.0 #default-fret-table \chordmode {a:m7} %#guitar-tuning %#5;x;5;5;5;x; #mandolin-tuning #o;o;o;o; theChords = \chordmode { a:m7 } \score { \theChords } It does not work as intentionally planned! it shows me the notes of the Am7 twice. But #o;o;o;o; should redefine Am7 and show g-d-a-e (low to high)? Regards BB The answer is the same as it was yesterday on the -bug list: please read the Notation Reference Section 2.4.1 on Common notation for fretted strings, and particularly the subsection on Predefined fret diagrams. In it, you will find a section describing the use of the mandolin fretboard. Once you have worked that out, and if you still have problems, come back and let us know. You may have thought the problem was more complex that it really is, and gotten too deep into the guts of fretboard markups. Your first step should always be to start at the beginning of the Notation Reference, and look at the first possible section you find. Generally, the common and easy stuff is earlier in the manual than you might expect, and quite a lot of things are easier than you might expect with LilyPond. Cheers, Colin -- I've learned that you shouldn't go through life with a catcher's mitt on both hands. You need to be able to throw something back. -Maya Angelou, poet (1928- ) ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Haipins ending with text: scheme help
Hi everyone, I'm working on a score where I need hairpins to end on a specific text. I do this because I don't really like the hairpins with a circle tip. I prefer to use n. for niente and pd. for perdendosi (the first one for strings, the second one for winds). Now, on some occasions the hairpin must end with the text placed just before the bar line, like this: http://lilypond.1069038.n5.nabble.com/file/n165055/Screen_Shot_2014-07-28_at_11.png As I find the typical solution of creating a second voice with spacers rather clumsy, I managed to come up with a better one by tweaking the snippet for placing text under a hairpin. However, I'm know nothing of scheme so my solution is far from perfect. The code is here: hairpinWithRightText = #(define-music-function (parser location text) (markup?) #{ \once \override Voice.Hairpin.after-line-breaking = #(lambda (grob) (let* ((stencil (ly:hairpin::print grob)) (new-stencil (ly:stencil-aligned-to (ly:stencil-combine-at-edge (ly:stencil-aligned-to stencil X RIGHT) Y CENTER (ly:stencil-aligned-to (grob-interpret-markup grob text) X CENTER)) X LEFT)) (staff-space (ly:output-def-lookup (ly:grob-layout grob) 'staff-space)) (staff-line-thickness (ly:output-def-lookup (ly:grob-layout grob) 'line-thickness)) (grob-name (lambda (x) (assq-ref (ly:grob-property x 'meta) 'name))) (par-x (ly:grob-parent grob X)) (dyn-text (eq? (grob-name par-x) 'DynamicText )) (dyn-text-stencil-x-length (if dyn-text (interval-length (ly:stencil-extent (ly:grob-property par-x 'stencil) X)) 0)) (x-shift (if dyn-text (- (+ staff-space dyn-text-stencil-x-length) (* 0.5 staff-line-thickness)) 0))) (ly:grob-set-property! grob 'Y-offset 0) (ly:grob-set-property! grob 'stencil (ly:stencil-translate-axis new-stencil x-shift X #}) hairpinN = { \override Hairpin #'bound-padding = #2.3 \once \hairpinWithRightText \markup { \italic n. } } hairpinPD = { \override Hairpin #'bound-padding = #3.2 \once \hairpinWithRightText \markup { \italic pd. } } If you check the original code for this snippet, you will see that I just changed the word dir for CENTER, on the 10th line of hairpinWithRightText. I have then defined the two hairpins and placed a lot of spaces before each text. Then, I have increased the padding of the hairpins so that they leave enough space for the text. The result is here: http://lilypond.1069038.n5.nabble.com/file/n165055/Screen_Shot_2014-07-28_at_11.png Not a bad result, but the pd. is not properly aligned (verticaly). See how the pd. is placed when attached to a rest: http://lilypond.1069038.n5.nabble.com/file/n165055/Screen_Shot_2014-07-28_at_11.png You can see the vertical alignment is not the same. It's a tiny difference but I would like it to be perfect. Also, my solution is not really very elegant, is it? Can anyone who knows scheme find a better way to do this? Something simple, effective and accurate? I would appreciate very much any help on this. Antonio P.S.: this could also be used to end hairpins with normal dynamic text, thus avoiding the tiresome solution of writing a second voice with spacers. -- View this message in context: http://lilypond.1069038.n5.nabble.com/Haipins-ending-with-text-scheme-help-tp165055.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 line spacing changed with 2.18
Need troubleshooting help with a two-line markup block. The block is used for the copyright statement in scores published by Mutopia and has to remain dimensionally stable over a wide range of possible staff-sizes. To accomplish this, \abs-fontsize characters and \override #'(baseline-skip . 0 ) was used in an attempt to minimize any horizontal and vertical scaling with the various staff-size submitted for publication. With v2.18.2, I noticed (baseline-skip . 0 ) no longer renders with zero space between lines of text, as it did with 2.14.2 and 2.16.1. A separator bar made up of two stacked vertical text bars now renders with a hairline in-between. Is there a way to remove this added padding? The limitation I face is, the gap can't be removed by using staff-sized text-positioning commands (i.e. \raise), or by replacing the stacked bars with a box (also staff-size-sensitive). See attached images and minimal code that will render differently 2.16 vs 2.18. To see the full copyright markup block and example rendered scores, look at 2.16.1 http://www.mutopiaproject.org/cgibin/piece-info.cgi?id=288 vs. 2.18.2 http://www.mutopiaproject.org/cgibin/piece-info.cgi?id=1416 : %% \version 2.18.2 %renders with undesired hairline spacing between lines %\version 2.16.1%renders as desired in this version #(set-global-staff-size 30) % markup block should be dimensionally stable for staff-size 15-30 \markup { \override #'(baseline-skip . 0 ) \center-column { \abs-fontsize #12 \bold { \char ##x01C0 \char ##x01C0 } %need ZERO space between these stacked bars } \override #'(baseline-skip . 0 ) \column { \abs-fontsize #9 line 1 \concat { \abs-fontsize #9 line 2 \abs-fontsize #12 \with-color #white \char ##x01C0 } %vertical spacer } } ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user