Deal with repetitive rythm
Hello, In a lot a pieces, there are often a rhythmic motif which is repeated. For example, something like: c,8. c16 f8. e16 d8. d16 e8. f16 is quite annoying to write. Is it a way to specify the rhythm, and then gives the notes ? For example, my snippet could rewrite: \repeatRythm{8. 16}{c, c f e d d e f} Thank you, Sebastien ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: copyright text in more of one single line
Try: \markup { \override '(baseline-skip . 1.1) ... } and adjust to taste. - Abraham On Tuesday, May 26, 2015, Marco Bagolin [via Lilypond] ml-node+s1069038n177109...@n5.nabble.com wrote: Only another question... How is possible to modify the copyright lines text interspacing? I don't know what is the command. Thank you in advance to all for the help. Regards Marco B. 2015-05-24 21:11 GMT+02:00 Klaus Blum [hidden email] http:///user/SendEmail.jtp?type=nodenode=177109i=0: Hi Marco, yes, just try: % \header { tagline = ##f copyright = \markup \center-column { (C) 2015 - Marco Bagolin All Rights Reserved - This is my personal copy - } } \score {g'} % Cheers, Klaus -- View this message in context: http://lilypond.1069038.n5.nabble.com/copyright-text-in-more-of-one-single-line-tp176990p176992.html Sent from the User mailing list archive at Nabble.com. ___ lilypond-user mailing list [hidden email] http:///user/SendEmail.jtp?type=nodenode=177109i=1 https://lists.gnu.org/mailman/listinfo/lilypond-user ___ lilypond-user mailing list [hidden email] http:///user/SendEmail.jtp?type=nodenode=177109i=2 https://lists.gnu.org/mailman/listinfo/lilypond-user -- If you reply to this email, your message will be added to the discussion below: http://lilypond.1069038.n5.nabble.com/copyright-text-in-more-of-one-single-line-tp176990p177109.html To start a new topic under User, email ml-node+s1069038n...@n5.nabble.com javascript:_e(%7B%7D,'cvml','ml-node%2bs1069038n...@n5.nabble.com'); To unsubscribe from Lilypond, click here http://lilypond.1069038.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=2code=dGlzaW1zdC5saWx5cG9uZEBnbWFpbC5jb218Mnw4MzU3Njg3MDU= . NAML http://lilypond.1069038.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml -- View this message in context: http://lilypond.1069038.n5.nabble.com/copyright-text-in-more-of-one-single-line-tp176990p177110.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: copyright text in more of one single line
Only another question... How is possible to modify the copyright lines text interspacing? I don't know what is the command. Thank you in advance to all for the help. Regards Marco B. 2015-05-24 21:11 GMT+02:00 Klaus Blum benbigno...@gmx.de: Hi Marco, yes, just try: % \header { tagline = ##f copyright = \markup \center-column { (C) 2015 - Marco Bagolin All Rights Reserved - This is my personal copy - } } \score {g'} % Cheers, Klaus -- View this message in context: http://lilypond.1069038.n5.nabble.com/copyright-text-in-more-of-one-single-line-tp176990p176992.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 ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Hairpin at an angle, parallel to glissando line
Hello all, Does anyone have any tips for achieving the effect in the attached image? [image: Inline images 2] Effectively I want to make it automatically parallel to the glissando - there are two or three in the piece I'm engraving. Firstly I was hoping to be able to create a second voice of glissandos and override its style to be a hairpin, but that doesn't appear to be an option. Secondly I tried to change the glissando style to a normal single line for a glissando, and then set the notes such that it looked like a hairpin (i.e. in this instance - treble clef - C and A both glissandoing to something like a low B) which is slightly fiddly but should at least remain roughly correct regardless of layout changes/end of line etc., but doing that also changed the trill-style glissando to a single line so I didn't pursue that further. So thirdly I'm looking at the rotate hairpin option, which I guess makes it possible to achieve manually in each case, as there are not all that many instances, but will presumably need tweaking if there are any future layout changes. Have I missed something? I feel like the second way ought to be achievable but I can't work out how to set the glissando style independently in different voices, if that is possible. If there is a more graceful way of doing it that would also be much appreciated. Thanks for any help! ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Incomplete final bar with \parallelMusic
David Sumbler wrote Monday, May 25, 2015 5:32 PM I am using the \parallelMusic entry for a string quartet. At the beginning of the 1st movement (which is mostly in 4/4 time) there is a half bar before the first bar-line, which causes no problem because I have \partial 2 in each part. But the corresponding half bar at the end of the movement produces barcheck failed warning messages, although the music compiles correctly. The final bar and a half are these: % bar 148 d2 r2 | d2 r2 | d2 r8 cs cs cs | d2 r8 cs cs cs | % bar 149 d4 r4 \bar |. d4 r4 \bar |. d4 r4 \bar |. d4 r4 \bar |. So far I haven't found a way to suppress these messages, although I have tried several different approaches. I suspect that there is probably a fairly simple solution, but so far I haven't managed to think of it! Any ideas? On Mon, 2015-05-25 at 15:15 -0400, Stephen MacNeil wrote: what about \set Score.measureLength = #(ly:make-moment 2/4) as far as i know \partial is only for the beginning and from then on you use ly:make-moment This works a treat - thanks. On Mon, 2015-05-25 at 22:49 +0100, Trevor Daniels wrote: The bars must be all the same length as the bar check marks are required. This can be fiddled by increasing the duration of the rests without changing the printed appearance: % bar 148 d''2 r2 | d2 r2 | d2 r8 cs cs cs | d2 r8 cs cs cs | % bar 149 d4 r4*3 \bar |. | d4 r4*3 \bar |. | d4 r4*3 \bar |. | d4 r4*3 \bar |. | I find that this has some of the disadvantages of adding an 's2' after the 'r4'. Although only one crotchet rest appears in the last bar of each part, there is a noticeable gap after it before the final bar. I am using Lilypond 2.18.0 - I don't know whether later versions would behave differently. David ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Possible bug, attempting to use non-latin characters in verse
Hi LilyPonders, I have a possible bug I’m trying to work around/figure out. I have a number of Georgian songs where I’ve set a latin transliteration as “verse 1” and the Georgian alphabet for “verse 2”. With Lilypond 2.18.2 (or 2.19.20) on OS X 10.10.3, compiling now fails with the error “warning: `(fondu -force /System/Library/Fonts/Helvetica.dfont)' failed (5)). This used to work in Lilypond 2.16 just fine. Overriding the entire document to use Helvetica Neue also fails. Overriding everything to use Arial Unicode MS works, but 1) yuck, and 2) I shouldn’t need to do any of that. If I do nasty hacks like moving Helvetica out of place, it will compile using some other random font that contains Georgian characters, but I want to have control over what’s being chosen (or not chosen, in this case). Anyone have experience setting non-latin texts, explicitly choosing the non-latin font to use, and whether you’re hitting this issue? Here’s my condensed (failing) example: \version 2.18.2 firstVoice = \lyricmode { I -- av -- na -- na, } pirveliEkhma = \lyricmode { ი -- ავ -- ნა -- ნა, } melody = \relative c'' { \time 5/4 c4 d e e8( d4.)} \score { \new ChoirStaff \new Voice = pirveli { \melody } \new Lyrics \lyricsto melody { \firstVoice } \new Lyrics \lyricsto melody { \pirveliEkhma } }___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Hairpin at an angle, parallel to glissando line
Hello David, Maybe this snippet can help you : http://lsr.di.unimi.it/LSR/Item?id=562 http://lsr.di.unimi.it/LSR/Item?id=562 JM Le 26 mai 2015 à 08:53, David G castle.cub...@gmail.com a écrit : Hello all, Does anyone have any tips for achieving the effect in the attached image? image.png Effectively I want to make it automatically parallel to the glissando - there are two or three in the piece I'm engraving. Firstly I was hoping to be able to create a second voice of glissandos and override its style to be a hairpin, but that doesn't appear to be an option. Secondly I tried to change the glissando style to a normal single line for a glissando, and then set the notes such that it looked like a hairpin (i.e. in this instance - treble clef - C and A both glissandoing to something like a low B) which is slightly fiddly but should at least remain roughly correct regardless of layout changes/end of line etc., but doing that also changed the trill-style glissando to a single line so I didn't pursue that further. So thirdly I'm looking at the rotate hairpin option, which I guess makes it possible to achieve manually in each case, as there are not all that many instances, but will presumably need tweaking if there are any future layout changes. Have I missed something? I feel like the second way ought to be achievable but I can't work out how to set the glissando style independently in different voices, if that is possible. If there is a more graceful way of doing it that would also be much appreciated. Thanks for any help! ___ 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: Possible bug, attempting to use non-latin characters in verse
Hi Colin, after replacing \lyricsto melody with \lyricsto pirveli this worked for me under 2.19.20 running on ArchLinux. Not sure what the problem is but I have a few small examples that work nicely under Linux and create problems on both Windows 8.1 and OS X 10.10.3 Best wishes, Michael -- Michael Gerdau email: m...@qata.de GPG-keys available on request or at public keyserver signature.asc Description: This is a digitally signed message part. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Possible bug, attempting to use non-latin characters in verse
2015-05-26 12:36 GMT+02:00 Michael Gerdau m...@qata.de: Hi Colin, after replacing \lyricsto melody with \lyricsto pirveli this worked Argh, sure, I forgot to mention this in my previous mail for me under 2.19.20 running on ArchLinux. Not sure what the problem is but I have a few small examples that work nicely under Linux and create problems on both Windows 8.1 and OS X 10.10.3 Best wishes, Michael -- Michael Gerdau email: m...@qata.de GPG-keys available on request or at public keyserver ___ 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: Possible bug, attempting to use non-latin characters in verse
2015-05-26 9:31 GMT+02:00 Colin Jesse Kinlund colinkinl...@gmail.com: Hi LilyPonders, I have a possible bug I’m trying to work around/figure out. I have a number of Georgian songs where I’ve set a latin transliteration as “verse 1” and the Georgian alphabet for “verse 2”. With Lilypond 2.18.2 (or 2.19.20) on OS X 10.10.3, compiling now fails with the error “warning: `(fondu -force /System/Library/Fonts/Helvetica.dfont)' failed (5)). This used to work in Lilypond 2.16 just fine. Overriding the entire document to use Helvetica Neue also fails. Overriding everything to use Arial Unicode MS works, but 1) yuck, and 2) I shouldn’t need to do any of that. If I do nasty hacks like moving Helvetica out of place, it will compile using some other random font that contains Georgian characters, but I want to have control over what’s being chosen (or not chosen, in this case). Anyone have experience setting non-latin texts, explicitly choosing the non-latin font to use, and whether you’re hitting this issue? Here’s my condensed (failing) example: \version 2.18.2 firstVoice = \lyricmode { I -- av -- na -- na, } pirveliEkhma = \lyricmode { ი -- ავ -- ნა -- ნა, } melody = \relative c'' { \time 5/4 c4 d e e8( d4.)} \score { \new ChoirStaff \new Voice = pirveli { \melody } \new Lyrics \lyricsto melody { \firstVoice } \new Lyrics \lyricsto melody { \pirveliEkhma } } Compiling your example as given on Linux with 2.18.2 and 2.19.20 works without problems and returns the expected output. You don't give the code how you select fonts, though. Cheers, Harm ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: staff manipulation question
2015-05-25 15:58 GMT+02:00 Alex Jones akjonesjeff...@gmail.com: I’m working with a score that has multiple staves that appear and disappear at various points. I ran into a curious behavior: I have two staves fro a while, the second has two notes that complete mid-measure so I encoded like this: \score { \new StaffGroup \relative c' { \new Staff \key f \major \time 6/8 { R2.*2 e2.~ \pp } \new Staff \relative c'' { \once \set Staff.explicitKeySignatureVisibility = #end-of-line-invisible \set midiInstrument = #violin \once \omit Staff.TimeSignature \key d \minor g bes,2. {g~ g8} \\ {f2. ( _\markup{\italic dim.} e8) \pp} r8 r r4 r8 } \break a8-. \p ^\markup{solo arco} [r16 g-. a8-.] c-. r r } } However, when the second staff concluded, it didn’t disappear. I worked out it was because the region wasn’t aligned with a measure break. So, I replaced with this: {g~ g8 b\rest b\rest b4\rest b8\rest} \\ {f2. ( _\markup{\italic dim.} e8) \pp s s s4 s8} however, this was quite clunky. I had to create rest space in both note groups, and then I had to reposition the rests in the top note grouping to apply to both voices. Aside from the staff not disappearing, the top solution works well. Is there a more streamlined way to do this? Using lilypond 2.18.2 -akj Not sure what's causing this. 2.14.2 behaves as you would expect (after adjusting your code to that ancient version) Anyway, try to add: \layout{ \context { \Staff \RemoveEmptyStaves \override VerticalAxisGroup.remove-first = ##t } } Cheers, Harm ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Height of start bar brace
Dear Pierre, thanks for looking into this. However, I don't understand what you tell me here. If I run your code, I see that it does *not* automatically scale the brace but it is rather odd: too small or too big. Cheers, Joram ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: ANN: Frescobaldi 2.18.1
Hi, I got as far as updating my Python. Qt, PyQt and sip had me beaten until I read Wilbert's message again. How simple. It all works beautifully. Thanks again! Bill On 15-05-26 04:18 AM, Federico Bruni wrote: No, you don't have to upgrade. Follow Wilbert's advice and install python-poppler-qt4, which I guess it's not installed on your system. And please always reply to list Il 26 maggio 2015 01:03:57 CEST, William Marchant wmarch...@eastlink.ca ha scritto: On 15-05-25 05:09 PM, Federico Bruni wrote: Il giorno lun 25 mag 2015 alle 19:20, William Marchant wmarch...@eastlink.ca ha scritto: I now have Frescobaldi 1.18.1 installed along with python-ly 0.9.2. Now I get the message 'Could not load the popplerqt4 module'. Without the interactive music view, Frescobaldi is a real bummer. I have downloaded poppler-0.33.0 and poppler-data-0.4.7, but I don't know what to do now. Help please. I am using ubuntu 14.04 . This is the main FAQ for Frescobaldi installation :-) Do you have python-poppler-qt4 installed? Which version? It should be all about the versions you are using, so paste here the output of these two commands: $ frescobaldi -V Gtk-Message: Failed to load module canberra-gtk-module Frescobaldi: 2.18.1 Python: 2.7.10rc1 python-ly: 0.9.2 Qt: 4.8.7 PyQt: 4.11.3 sip: 4.16.7 poppler: unknown python-poppler-qt: unknown OS: Linux-4.0.0-1-amd64-x86_64-with-debian-stretch-sid $ aptitude show python-poppler-qt4 | grep Version Version: 0.16.3-2+b5 I'm on debian sid but you should have the same version of this package: http://packages.ubuntu.com/trusty/python-poppler-qt4 Here is what I got: $ frescobaldi -V Frescobaldi: 2.18.1 Python: 2.7.6 python-ly: 0.9.2 Qt: 4.8.6 PyQt: 4.10.4 sip: 4.15.5 poppler: unknown python-poppler-qt: unknown OS: Linux-3.13.0-53-generic-x86_64-with-Ubuntu-14.04-trusty $ aptitude show python-poppler-qt4 | grep Version Version: 0.16.3-2build4 Compared to the versions in your message, I have some updating to do. Thanks Bill ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
variable containing header
I'm trying to define a variable containing the header but lilypond does not accept it. Am'I doing some error or is this forbidden? % my source \version 2.18.2 head = \header { title = The Third Position } \score { {a b c d} \head \layout {} } Thank you, g -- View this message in context: http://lilypond.1069038.n5.nabble.com/variable-containing-header-tp177079.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: ANN: Frescobaldi 2.18.1
Hi all, Did that! It works. Thanks for the help. Great program! Bill. On 15-05-25 05:19 PM, Wilbert Berendsen wrote: Also install python-poppler-qt4. -- Wilbert Berendsen (www.wilbertberendsen.nl) Sent from my smartphone Oorspronkelijk bericht Van: William Marchant Datum:25-05-2015 19:20 (GMT+01:00) Aan: lilypond-user@gnu.org Onderwerp: Re: ANN: Frescobaldi 2.18.1 I now have Frescobaldi 1.18.1 installed along with python-ly 0.9.2. Now I get the message 'Could not load the popplerqt4 module'. Without the interactive music view, Frescobaldi is a real bummer. I have downloaded poppler-0.33.0 and poppler-data-0.4.7, but I don't know what to do now. Help please. I am using ubuntu 14.04 . Bill On 15-05-24 04:49 PM, Wilbert Berendsen wrote: Dear friends, I just released Frescobaldi 2.18.1 in the wild, a maintenance release containing bug fixes, small improvements and translation updates. Homepage: www.frescobaldi.org Download: www.frescobaldi.org/download It is recommended to upgrade python-ly to version 0.9.2, which contains additional bug fixes. See https://pypi.python.org/pypi/python-ly . Thanks go to all the users, bug reporters and co developers. Enjoy and happy Pentecost! ___ 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: how to add barre indications to automatic fret diagrams?
On 26.05.2015, at 04:34, Carl Sorensen c_soren...@byu.edu wrote: On 5/25/15 5:25 AM, pls p.l.schm...@gmx.de wrote: Works great! Thanks a million! Thanks for your feedback. Should/Could LilyPond issue a warning message in the case of open strings whenever wrong fingers (not 0) are ignored? Or is it better to silently set the fingers to 0? Example: d-1 a d' f¹ (Perhaps the user simply forgot to set the minimum fret to 5) Here's a new patch that has the warning implemented. Give it a try. You'll need to rename it, I think. It doesn’t seem to have any effect. I used these test cases: \new FretBoards { f,-1 c-3 f-4 a-2 c'-1 f'-11 % this works d-1 a d' f’ % finger is set to zero, no warning! } I’m sorry to ask but I checked the translation-function files several times: Did you inadvertently send me an unchanged file? diff did not show any difference between this file and the last file. Thanks for your help! patrick ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: change font name of just lyrics?
Hi Josh, you could try it like this: % -- \version 2.18.2 \relative c' { c4 d e f } \addlyrics { This is my text } \layout { \context { \Lyrics \override LyricText.font-name = #Arial Narrow } } % -- Cheers, Klaus -- View this message in context: http://lilypond.1069038.n5.nabble.com/change-font-name-of-just-lyrics-tp177096p177098.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: A question about scores and parts from a blind user
Daniel, On Mon, May 25, 2015 at 6:56 PM, Daniel Contreras [via Lilypond] ml-node+s1069038n177052...@n5.nabble.com wrote: Can anyone tell me why my compilation is so large? Is it including the entire score all over again? Like Nick said, the \include command takes the contents of the included file and inserts it at the point you are including it. And yes, if you have a \score block in the file you are including, it will create that score in addition to the trumpet part file. Here's how I would recommend your work-flow if you want to do it this way: 1. Create two files. One file will contain the musical *content* assigned to variables, like this: % file name: parts.ily % this file contains the music for each instrument trumpetOneNotes = { c'1 } trumpetTwoNotes = { e'1 } and so on. The other file will contain the score *structure*, where the variables are used, like this: % file name: brasstrio.ly % this file contains the code for each score to be created, one for % the ensemble and one for each of the individual parts \book { \bookOutputSuffix FullScore \score { \new Staff \trumpetOneNotes \new Staff \trumpetTwoNotes } } \book { \bookOutputSuffix Trumpet1-Part \score { \new Staff \trumpetOneNotes } } \book { \bookOutputSuffix Trumpet2-Part \score { \new Staff \trumpetTwoNotes } } Doing it this way will output a separate PDF for each \book block and will allow you to customize the header, layout, etc. for each. This forms the basis for any template you might use. 2. Decide which way you want to do the \include. If you want to \include the *content* file (parts.ily), then put \include parts.ily BEFORE the first \book block in brasstrio.ly. If you want to \include the *structure* file (brasstrio.ly), then put \include brasstrio.ly AFTER all the content variables in parts.ily. In either case, the implicit result is a file that has the variables at the top and the \book blocks at the bottom (which you can also do). You decide which way works best for you! - Abraham -- View this message in context: http://lilypond.1069038.n5.nabble.com/A-question-about-scores-and-parts-from-a-blind-user-tp177052p177100.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: Dynamic mark at the end of a bar
Hi David, On Tue, May 26, 2015 at 10:32 AM, David Sumbler da...@aeolia.co.uk wrote: I often use 's1*0\!' to end a hairpin just before a barline. But how can a get a dynamic mark (e.g. 'ff') to appear at the end of a bar? In the following example, the first hairpin behaves as I want. The second one ends with a dynamic, but the new dynamic appears at the start of the following bar, even though it is attached to an item which occurs on the barline. It occurs at the first moment of the new measure, not *on* the barline. Somehow you need to get the dynamic within the measure you want it. You could do this by scaling durations: \version 2.18.0 { c''4\ c''2. s1*0\! | R1 | c''4\ c''2.*2/3 s2.*1/3\ff | R1 | } or (cleaner, I think) by attaching the dynamics to a separate voice: { c''4\ c''2. s1*0\! | R1 | { c''4 c''2.| } { s2.\ s4\ff | } R1 | } Hope this helps! DN ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: change font name of just lyrics?
On Tue, May 26, 2015 at 10:34 AM, Joshua Nichols josh.d.nich...@gmail.com wrote: I've looked for a hack, but I haven't found one yet. I was wondering if y'all could expedite my question: I'd like to be able to change the default lyric font to a different font within the same font family. I have an expert font that has many different weights and a condensed form, and I'm not quite sure how to tweak just the lyrics. Here's the hack: #(define ((force-font font-name) grob) (grob-interpret-markup grob (markup #:override (cons 'font-name font-name) (ly:grob-property grob 'text \new Staff { c'4 d'4 e'2 } \addlyrics { \override LyricText.stencil = #(force-font Ubuntu) Li -- ly -- Pond } Regards, Nathan ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Notehead color on programmed pitch change
Thanks very much for your solution - I'm not yet sure why it works...how does 'tweaks know about notehead color? All very baffling 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 \version 2.19.15 #(define (naturalize-instrument-range p instrument ) (let ((o (ly:pitch-octave p)) (a (* 4 (ly:pitch-alteration p))) ;; alteration, a, in quarter tone steps, ;; for historical reasons (n (ly:pitch-notename p))) (cond ((equal? instrument clarinet ) (if (= o -1) (begin (set! o -1 ))) (if (= o 3) (begin (set! o 2 ))) (cond ( (and (= o -1) (= a 2) (= n 1)) (set! o 0)) ( (and (= o 2) (n 3))(set! o 1)) ( (and (= o 2) (= n 3))(set! o 2)) ) (if ( o 2) (begin (set! o 2 ((equal? instrument flute) (if ( o 0) (begin (set! o 0 ))) (cond ( (and (= o 0) ( a 0) (= n 0)) (set! o 1)) ( (and (= o 2) ( n 3)) (set! o 1)) ( (and (= o 2) (= n 3)) (set! o 2)) ) (if ( o 2) (begin (set! o 2 ) (ly:make-pitch o n (/ a 4)) )) my-color = #(x11-color 'red) #(define (instrumentrange music instrument ) ( ly:music? string? ) (let ((es (ly:music-property music 'elements)) (e (ly:music-property music 'element)) (p (ly:music-property music 'pitch))) (if (pair? es) (ly:music-set-property! music 'elements (map (lambda (x) (instrumentrange x instrument)) es))) (if (ly:music? e) (ly:music-set-property! music 'element (instrumentrange e instrument ))) (if (ly:pitch? p) (let ((new-pitch (naturalize-instrument-range p instrument))) (ly:music-set-property! music 'pitch new-pitch) (if (and (not (equal? p new-pitch)) (color? my-color)) (ly:music-set-property! music 'tweaks (acons 'color my-color (ly:music-property music 'tweaks)) music)) naturalizeInstrumentRange = #(define-music-function (parser location instrument m ) ( string? ly:music? ) (instrumentrange m instrument )) \score { \new Staff \naturalizeInstrumentRange clarinet \relative c'' { d4 r16 d,,16 [ e'16 f16 ] e8 [ a,8 ] a''16 [ g'16 a16 e16 ] | % 4 f8 [ d8 ] r4 r2 | % 5 } } \score { \new Staff \relative c'' { d4 r16 d,,16 [ e'16 f16 ] e8 [ a,8 ] a''16 [ g'16 a16 e16 ] | % 4 f8 [ d8 ] r4 r2 | % 5 }} regards Peter Gentry ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Subject: Re: Notehead color on programmed pitch change
2015-05-26 18:09 GMT+02:00 Peter Gentry peter.gen...@sunscales.co.uk: Thanks very much for your solution - I'm not yet sure why it works...how does 'tweaks know about notehead color? All very baffling Well, most (every?) music-event may be tweaked. Look at the terminal-output from: \displayMusic { \tweak color #red c''1 } My code adds this tweak to the NoteEvent under certain conditions. Outlook strikes again - try this Well, perhaps you'll have success persuading outlook to keep your formating. If not I'd look out for another mail-program ;) Cheers, Harm ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Dynamic mark at the end of a bar
I often use 's1*0\!' to end a hairpin just before a barline. But how can a get a dynamic mark (e.g. 'ff') to appear at the end of a bar? In the following example, the first hairpin behaves as I want. The second one ends with a dynamic, but the new dynamic appears at the start of the following bar, even though it is attached to an item which occurs on the barline. \version 2.18.0 { c''4\ c''2. s1*0\! | R1 | c''4\ c''2. s1*0\ff | R1 | } David ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Subject: Re: Notehead color on programmed pitch change
Thanks very much for your solution - I'm not yet sure why it works...how does 'tweaks know about notehead color? All very baffling Outlook strikes again - try this \version 2.19.15 #(define (naturalize-instrument-range p instrument ) (let ((o (ly:pitch-octave p)) (a (* 4 (ly:pitch-alteration p))) ;; alteration, a, in quarter tone steps, ;; for historical reasons (n (ly:pitch-notename p))) (cond ((equal? instrument clarinet ) (if (= o -1) (begin (set! o -1 ))) (if (= o 3) (begin (set! o 2 ))) (cond ( (and (= o -1) (= a 2) (= n 1)) (set! o 0)) ( (and (= o 2) (n 3))(set! o 1)) ( (and (= o 2) (= n 3))(set! o 2)) ) (if ( o 2) (begin (set! o 2 ((equal? instrument flute) (if ( o 0) (begin (set! o 0 ))) (cond ( (and (= o 0) ( a 0) (= n 0)) (set! o 1)) ( (and (= o 2) ( n 3)) (set! o 1)) ( (and (= o 2) (= n 3)) (set! o 2)) ) (if ( o 2) (begin (set! o 2 ) (ly:make-pitch o n (/ a 4)) )) my-color = #(x11-color 'red) #(define (instrumentrange music instrument ) ( ly:music? string? ) (let ((es (ly:music-property music 'elements)) (e (ly:music-property music 'element)) (p (ly:music-property music 'pitch))) (if (pair? es) (ly:music-set-property! music 'elements (map (lambda (x) (instrumentrange x instrument)) es))) (if (ly:music? e) (ly:music-set-property! music 'element (instrumentrange e instrument ))) (if (ly:pitch? p) (let ((new-pitch (naturalize-instrument-range p instrument))) (ly:music-set-property! music 'pitch new-pitch) (if (and (not (equal? p new-pitch)) (color? my-color)) (ly:music-set-property! music 'tweaks (acons 'color my-color (ly:music-property music 'tweaks)) music)) naturalizeInstrumentRange = #(define-music-function (parser location instrument m ) ( string? ly:music? ) (instrumentrange m instrument )) \score { \new Staff \naturalizeInstrumentRange clarinet \relative c'' { d4 r16 d,,16 [ e'16 f16 ] e8 [ a,8 ] a''16 [ g'16 a16 e16 ] | % 4 f8 [ d8 ] r4 r2 | % 5 } } \score { \new Staff \relative c'' { d4 r16 d,,16 [ e'16 f16 ] e8 [ a,8 ] a''16 [ g'16 a16 e16 ] | % 4 f8 [ d8 ] r4 r2 | % 5 }} regards Peter Gentry ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Sometimes order is significant
On 26/05/15 15:02, Knute Snortum wrote: Thanks for the reply and the cheat sheet. The way I look at it, is to look at the *meaning*, not the *representation*. First, you need the note, eg C above middle C, which is c''. Next comes whether to display any accidentals, which is a property of the note, as is the length. So logically those could be swapped, but I think lily says they have to be in that order. Finally come all the ornamentations - accents, markups, dynamics, etc which have no tight binding to the note, only the note location, so can come in any order. I have my own consistent pattern, but that's just to make it easy for me, lily doesn't care. Cheers, Wol Knute Snortum (via Gmail) On Mon, May 25, 2015 at 2:56 PM, Nathan Ho when.possi...@gmail.com mailto:when.possi...@gmail.com wrote: On Mon, May 25, 2015 at 2:38 PM, Nathan Ho when.possi...@gmail.com mailto:when.possi...@gmail.com wrote: This cheat sheet shows many note syntax elements in the correct order: http://joramberger.de/files/lilypond_sheet_2.18_en.pdf It seems that all the components starting with string number can be placed in any order. Here's a more formal answer which can be found by delving into the LilyPond grammar. http://www.lilypond.org/doc/v2.18/Documentation/contributor/lilypond-grammar To oversimplify, a monophonic note is divided into a simple_event and any number of post_events. A simple_event breaks down like so: - pitch (note name + octave) - forced accidental markers - octave check - note duration and multiplier - \rest Beams, slurs, articulations, fingerings, etc. all fall under post_events, which can occur in any order. Regards, Nathan ___ 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: Notehead color on programmed pitch change
Hi Peter, 2015-05-25 13:20 GMT+02:00 Peter Gentry peter.gen...@sunscales.co.uk: I have a short script to confine music to an instruments range. I wish to colour the noteheads on any pitches which have been changed to fit the instrument range. Try as I may all attempts to modify existing snippets have failed - I was particulary baffled by the snippet No idea about this code is supposed to do: #(define (pitch-to-color pitch) (let ((color (assoc pitch colo-mapping pitch-equals?))) (if color (cdr color))) which in the abscence of a need for color-mapping I couldn't replace with (color (x11-color 'red)) The above is not in the script as all attempts just failed - can anyone help please. All formating, indentation you may have done is gone in your mail. Please make sure it is kept. It's very hard to read ... \version 2.19.15 #(define (naturalize-instrument-range p instrument) (let ((o (ly:pitch-octave p)) (a (* 4 (ly:pitch-alteration p))) ;; alteration, a, in quarter tone steps, ;; for historical reasons (n (ly:pitch-notename p))) (define oct1 o) (cond ((equal? instrument clarinet ) (if (= o -1) (begin (set! o -1 ))) (if (= o 3) (begin (set! o 2 ))) (cond ( (and (= o -1) (= a 2) (= n 1)) (set! o 0)) ( (and (= o 2) ( n 3)) (set! o 1)) ( (and (= o 2) (= n 3)) (set! o 2)) ) This is done already, delete it: (if ( o 2) (begin (set! o 2 ((equal? instrument flute) (if ( o 0) (begin (set! o 0 ))) (cond ( (and (= o 0) ( a 0) (= n 0)) (set! o 1)) ( (and (= o 2) ( n 3)) (set! o 1)) ( (and (= o 2) (= n 3)) (set! o 2)) ) (if ( o 2) (begin (set! o 2 ) ;; just in for checking (if (or ( oct1 o) ( oct1 o)) (display (string-append oct= (number-string oct1) o= (number-string o) \n))) (ly:make-pitch o n (/ a 4)) )) #(define (instrumentrange music instrument ) no type checking needed nor done here, delete it ( ly:music? number? ) (let ((es (ly:music-property music 'elements)) (e (ly:music-property music 'element)) (p (ly:music-property music 'pitch))) (if (pair? es) (ly:music-set-property! music 'elements (map (lambda (x) (instrumentrange x instrument)) es))) (if (ly:music? e) (ly:music-set-property! music 'element (instrumentrange e instrument ))) (if (ly:pitch? p) (begin (set! p (naturalize-instrument-range p instrument)) (ly:music-set-property! music 'pitch p))) music)) naturalizeInstrumentRange = #(define-music-function (parser location instrument m ) ( string? ly:music? ) (instrumentrange m instrument )) \score { \naturalizeInstrumentRange clarinet \new Staff \relative c'' { d4 r16 d,,16 [ e'16 f16 ] e8 [ a,8 ] a'16 [ g'16 a16 e16 ] | % 4 f8 [ d8 ] r4 r2 | % 5 }} regards Peter Gentry How about: \version 2.19.15 #(define (naturalize-instrument-range p instrument) (let ((o (ly:pitch-octave p)) (a (* 4 (ly:pitch-alteration p))) ;; alteration, a, in quarter tone steps, ;; for historical reasons (n (ly:pitch-notename p))) (define oct1 o) (cond ((equal? instrument clarinet) (if (= o -1) (set! o -1)) (if (= o 3) (set! o 2)) (cond ((and (= o -1) (= a 2) (= n 1)) (set! o 0)) ((and (= o 2) ( n 3)) (set! o 1)) ((and (= o 2) (= n 3)) (set! o 2 ((equal? instrument flute) (if ( o 0) (set! o 0 )) (cond ((and (= o 0) ( a 0) (= n 0)) (set! o 1)) ((and (= o 2) ( n 3)) (set! o 1)) ((and (= o 2) (= n 3)) (set! o 2))) (if ( o 2) (set! o 2 ;;; just in for checking ;(if (or ( oct1 o) ( oct1 o)) ;(display ; (string-append ; oct= ;(number-string oct1) ; o= ;(number-string o) ;\n))) (ly:make-pitch o n (/ a 4 my-color = #(x11-color 'red) #(define (instrumentrange music instrument) (let ((es (ly:music-property music 'elements)) (e (ly:music-property music 'element)) (p (ly:music-property music 'pitch))) (if (pair? es) (ly:music-set-property! music 'elements (map (lambda (x) (instrumentrange x instrument)) es))) (if (ly:music? e) (ly:music-set-property! music 'element (instrumentrange e instrument ))) (if (ly:pitch? p) (let ((new-pitch (naturalize-instrument-range p instrument))) (ly:music-set-property! music 'pitch new-pitch) (if (and (not (equal? p new-pitch)) (color? my-color)) (ly:music-set-property! music 'tweaks (acons 'color my-color (ly:music-property music 'tweaks)) music)) naturalizeInstrumentRange = #(define-music-function (parser location instrument m)(string? ly:music?) (instrumentrange m instrument)) mus = \relative c'' {
Re: variable containing header
On Tue, May 26, 2015 at 5:23 AM, Gianmaria Lari gianmarial...@gmail.com wrote: I'm trying to define a variable containing the header but lilypond does not accept it. Am'I doing some error or is this forbidden? % my source \version 2.18.2 head = \header { title = The Third Position } \score { {a b c d} \head \layout {} } Thank you, g Unfortunately it's not possible :( The grammar simply doesn't allow assignment of \header objects to variables. As proposed here https://lists.gnu.org/archive/html/lilypond-user/2013-04/msg00184.html one workaround is to place the header in a separate file and use \include. Regards, Nathan ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Sometimes order is significant
Thanks for the reply and the cheat sheet. Knute Snortum (via Gmail) On Mon, May 25, 2015 at 2:56 PM, Nathan Ho when.possi...@gmail.com wrote: On Mon, May 25, 2015 at 2:38 PM, Nathan Ho when.possi...@gmail.com wrote: This cheat sheet shows many note syntax elements in the correct order: http://joramberger.de/files/lilypond_sheet_2.18_en.pdf It seems that all the components starting with string number can be placed in any order. Here's a more formal answer which can be found by delving into the LilyPond grammar. http://www.lilypond.org/doc/v2.18/Documentation/contributor/lilypond-grammar To oversimplify, a monophonic note is divided into a simple_event and any number of post_events. A simple_event breaks down like so: - pitch (note name + octave) - forced accidental markers - octave check - note duration and multiplier - \rest Beams, slurs, articulations, fingerings, etc. all fall under post_events, which can occur in any order. Regards, Nathan ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: how to add barre indications to automatic fret diagrams?
On 5/26/15 2:44 AM, pls p.l.schm...@gmx.de wrote: I¹m sorry to ask but I checked the translation-function files several times: Did you inadvertently send me an unchanged file? diff did not show any difference between this file and the last file. If diff didn't how the difference, then there must not have been one. Let's try again. I have checked this version; it has the warning code. Thanks, Carl translation-functions[2].scm Description: translation-functions[2].scm ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: VoltaBracket flipped vertically
2012-12-19 16:15 GMT+01:00 Daniel Rosen drose...@gmail.com: I'm trying to get VoltaBrackets to appear both above and below the Score. I've come up with the solution below, which works quite well, but I'd like to get the volta text to appear inside the bracket, as it does when VoltaBracket #'direction is not altered. Is there a way to do this? I can't seem to find a separate layout object for the volta text. %%% example starts \version 2.16.1 \new Voice { \repeat unfold 12 { c' } } \new Dynamics \with { \consists Volta_engraver \override VoltaBracket #'direction = #-1 } { \repeat volta 2 { s1 } \alternative { { s1 } { s1 } } } %%% example ends DR Hi all, I revive this (very) old thread, because of a request in the german Forum. Is there really no other possibility than poking in the stencul-expr, which will likely break soon? \version 2.19.20 \layout { indent = #0 \context { \Score \remove Volta_engraver } } \new Staff \with { \consists Volta_engraver \override VoltaBracket.direction = #DOWN \override VoltaBracketSpanner.direction = #DOWN \override VoltaBracket.after-line-breaking = #(lambda (grob) (let* ((default-stil (ly:volta-bracket-interface::print grob)) (x-ext (ly:stencil-extent default-stil X)) (y-ext (ly:stencil-extent default-stil Y)) (stencil-expr (ly:stencil-expr default-stil))) (ly:grob-set-property! grob 'stencil (ly:make-stencil (cons 'combine-stencil (cons (append (list 'translate-stencil '(0 . 2.3)) (list (cadr (third stencil-expr (cddr (third stencil-expr x-ext y-ext } %% EXAMPLE \relative c' { \repeat volta 2 { c1 } \alternative { { c } { c } } c } Cheers, Harm ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
change font name of just lyrics?
I've looked for a hack, but I haven't found one yet. I was wondering if y'all could expedite my question: I'd like to be able to change the default lyric font to a different font within the same font family. I have an expert font that has many different weights and a condensed form, and I'm not quite sure how to tweak just the lyrics. anyone? Sincerely, Josh ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user