Re: musicxml2ly
Hi Craig, Do I append for f in *.xml to the end of my command; No, you put all your command within the for loop: for f in *.xml; do /Applications/LilyPond.app/Contents/Resources/bin/musicxml2ly --nd --nrp --npl --no-beaming -m --language=english $f; done (all this is one line – or written in several lines:) for f in *.xml do /Applications/LilyPond.app/Contents/Resources/bin/musicxml2ly \ --nd --nrp --npl --no-beaming -m --language=english $f done I hope this syntax is the same on a Mac. HTH, Joram ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: musicxml2ly
for i in *.xml; do path/musicxml2ly --nd --nrp --npl --no-beaming -m --language=english $i; done path shouldn't be needed if musicxml2lyis in your path so this should be fine for i in *.xml; do musicxml2ly --nd --nrp --npl --no-beaming -m --language=english $i; done Stephen On Thu, Mar 19, 2015 at 6:56 PM, Craig Dabelstein craig.dabelst...@gmail.com wrote: Thanks for your responses everyone. I'm on a Mac. Do I append for f in *.xml to the end of my command; e.g. /Applications/LilyPond.app/Contents/Resources/bin/musicxml2ly --nd --nrp --npl --no-beaming -m --language=english for f in *.xml Craig On Fri, 20 Mar 2015 at 06:58 Stephen MacNeil classicalja...@gmail.com wrote: if you use linux you can do for i in ... ; do ; done ___ 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: musicxml2ly
Thanks for your responses everyone. I'm on a Mac. Do I append for f in *.xml to the end of my command; e.g. /Applications/LilyPond.app/Contents/Resources/bin/musicxml2ly --nd --nrp --npl --no-beaming -m --language=english for f in *.xml Craig On Fri, 20 Mar 2015 at 06:58 Stephen MacNeil classicalja...@gmail.com wrote: if you use linux you can do for i in ... ; do ; done ___ 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
Handling symlinks with Python on Windows
Hi all, as far as I've read it is hard or even impossible to create/delete symbolic links with Python on Windows. Could someone verify this and/or give me some help on the subject? I have written a script that makes obtaining, updating and installing Abraham Lee's alternative notation fonts from http://fonts.openlilylib.org a completely automatic process for any number of LilyPond installations, and it works well on Linux and Mac. But before publishing it I would like to have it work on Windows too, but I need someone helping me with the code. The script stores the actual font files in a local repository and creates symlinks in the LilyPond installation to make them accessible. If that works on Windows only under certain conditions (I read something about elevated user accounts) the script would need to check if these conditions are met. If the conditions are not met or if it doesn't work at all on Windows the script should instead make physical copies of the files. In either case I'd need someone helping me with the code how to do it on Windows and how to execute code based on OS. Please contact me, and I'll give you more details where to look at the existing code. Best Urs ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Hiding MultiMeasureRest Number
Hi Dave, Is this what you're looking for : \version 2.18.2 \new Staff { a'1 \compressFullBarRests \hide MultiMeasureRestNumber R1*42 } HTH, Pierre 2015-03-18 15:55 GMT+01:00 Dave Higgins dave.higg...@dkds.us: At the end of a piece, one section has a long number of rests, i.e. R1*42. Is there a way to hide the number or create a long rest without actually being multi-measure? -- Dave Higgins -- Two wrongs don't make a right, but three lefts do. ___ 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: Hiding MultiMeasureRest Number
It is a good sign for the design of LilyPond code if the subject of the question matches the code of the answer so closely: subject: Hiding MultiMeasureRest Number solution: \hide MultiMeasureRestNumber :) Joram ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: special symbols
Hi Francesco, All you need is here: http://lilypond.org/doc/v2.18/Documentation/notation/graphic.fr.html For instance, you can do: \version 2.18.2 zzTail = { -\tweak extra-offset #'(-0.5 . 3) -\markup { \with-dimensions #'(0 . 4.5) #'(0 . 0) \path #0.2 #'( (moveto -0.5 -1.5) (lineto 0.5 0.5) (lineto 1.5 -1.5) (lineto 2.5 0.5) (lineto 3.5 -1.5) (lineto 4.5 0.5)) } } hArrow = \markup \raise #0.6 \concat { \override #'(thickness . 1.4) \draw-line #'(2.5 . 0) \hspace #-.6 \arrow-head #X #RIGHT ##f } \relative g' { \key g\minor \omit Stem \tempo \hArrow 4 = 60 g g g g \zzTail s } HTH, Pierre 2015-03-19 1:27 GMT+01:00 Francesco Petrogalli francesco.petroga...@gmail.com: Hi, here http://tinypic.com/r/2cihc0w/8 you can see a file with some graphics that I would like to render in my lilypond document. The symbols are circled in red in the image: 1) the top one is a sort of bar sign with a zigzag tail, I want to use it with the meaning keep going with this pattern; 2) the left one is a special sign I need to add to the \tempo indication, an arrow pointing to the right, meaning 60 and more. Now, I can imagine that symbol 1) can be rendered with some postscript tweaks, I just want to make sure I am not missing anything that might be easier than starting embedding postscript in the score (I am not looking for the % like sign used to repeat the previous bar). As for 2), I have no idea how I can make it. Well, maybe I could use again a custom symbol added with a markup to the first note of the measure, but then I'll have to take care of the note = beat and make sure it is uniform with the other standard tempo notations in the score... a complication that I'd prefer to avoid. Thanks in advance for any help! Francesco ___ 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: ANN: Frescobaldi 2.18
Dear Stan, Il 18/03/15 16.40, Stan Sanderson ha scritto: One question- at this point, is there any essential difference between frescobaldi 2.18 and sub port frescobaldi-devel? I have been using the development version for some time and am wondering if there is any reason to continue doing so. at the moment frescobaldi and frescobaldi-devel are identical, the only difference being the version number of the application bundle. You can expect them to be so most of the time. Now and then I may decide to point frescobaldi-devel to a newer version than the latest release, e.g. when some new important feature becomes available that users might want to test. However, in that case I would announce the availability of the -devel version to the lists. What you choose now is really a matter of personal preference: switching between the ports is very simple and quick, so you can easily change your mind anytime. Best wishes. Davide ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: special symbols
For the tempo marking with an arrow, a possibility is: \version 2.19.17 \relative c'' { c^\markup { \note #4 #UP = 60 \override #'(thickness . 3) \override #'(line-join-style . bevel) \raise #1 \path #0.3 #'((moveto 0 0) (lineto 4 0) (closepath)) \hspace #-1 \raise #1 \arrow-head #X #RIGHT ##t } b a g } This avoids postscript and uses the native lilypond markup graphics commands. Hopefully self-explanatory. Andrew ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: special symbols
Oups, you're right Andrew, I think I missplaced the arrow, silly me !! So here again : \version 2.18.2 zzTail = { -\tweak extra-offset #'(-0.5 . 3) -\markup { \with-dimensions #'(0 . 4.5) #'(0 . 0) \path #0.2 #'( (moveto -0.5 -1.5) (lineto 0.5 0.5) (lineto 1.5 -1.5) (lineto 2.5 0.5) (lineto 3.5 -1.5) (lineto 4.5 0.5)) } } hArrowTempo = #(define-music-function (parser location noteVal tempoVal) (string? string?) #{ \tempo \markup { \raise #0.5 \note $noteVal #UP \normal-text { = $tempoVal } \raise #0.7 \concat { \override #'(thickness . 1.4) \draw-line #'(2.5 . 0) \hspace #-.6 \arrow-head #X #RIGHT ##f } } #}) \relative g' { \key g\minor \omit Stem \hArrowTempo 4 60 \set Score.tempoWholesPerMinute = #(ly:make-moment 60/4) g g g g \zzTail s } Cheers, Pierre 2015-03-19 11:02 GMT+01:00 Andrew Bernard andrew.bern...@gmail.com: For the tempo marking with an arrow, a possibility is: \version 2.19.17 \relative c'' { c^\markup { \note #4 #UP = 60 \override #'(thickness . 3) \override #'(line-join-style . bevel) \raise #1 \path #0.3 #'((moveto 0 0) (lineto 4 0) (closepath)) \hspace #-1 \raise #1 \arrow-head #X #RIGHT ##t } b a g } This avoids postscript and uses the native lilypond markup graphics commands. Hopefully self-explanatory. Andrew ___ 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: musicxml2ly
On Fri, 20 Mar 2015, Noeck wrote: Hi Craig, Do I append for f in *.xml to the end of my command; No, you put all your command within the for loop: for f in *.xml; do /Applications/LilyPond.app/Contents/Resources/bin/musicxml2ly --nd --nrp --npl --no-beaming -m --language=english $f; done (all this is one line – or written in several lines:) for f in *.xml do /Applications/LilyPond.app/Contents/Resources/bin/musicxml2ly \ --nd --nrp --npl --no-beaming -m --language=english $f done I hope this syntax is the same on a Mac. I am not a Mac user. But first thing I thought was: doesn't a Mac have a PATH variable like Linux and Windows have, where the long path to ./bin can be added before having to type such long commands? -- MT___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: musicxml2ly
Thanks everyone -- all working great now! On Fri, 20 Mar 2015 at 09:21 Martin Tarenskeen m.tarensk...@zonnet.nl wrote: On Fri, 20 Mar 2015, Noeck wrote: Hi Craig, Do I append for f in *.xml to the end of my command; No, you put all your command within the for loop: for f in *.xml; do /Applications/LilyPond.app/Contents/Resources/bin/musicxml2ly --nd --nrp --npl --no-beaming -m --language=english $f; done (all this is one line – or written in several lines:) for f in *.xml do /Applications/LilyPond.app/Contents/Resources/bin/musicxml2ly \ --nd --nrp --npl --no-beaming -m --language=english $f done I hope this syntax is the same on a Mac. I am not a Mac user. But first thing I thought was: doesn't a Mac have a PATH variable like Linux and Windows have, where the long path to ./bin can be added before having to type such long commands? -- MT___ 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
musicxml2ly
Hi all, Is there a command for converting a whole folder of xml files to lilypond, rather than doing them one by one? Many thanks, Craig *Craig Dabelstein* e:craig.dabelst...@gmail.com http://www.facebook.com/craig.dabelstein http://au.linkedin.com/pub/craig-dabelstein/b2/5b8/389/en ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Directional NoteHead Stencil Support
Just a very uneducated guess: couldn't you make rotated copies in the font itself? Am 19. März 2015 19:56:16 MEZ, schrieb Abraham Lee tisimst.lilyp...@gmail.com: I've been collaborating with an Italian design student that created numerous music fonts for a school project, but they aren't actually used in any notation program (yet), but he has agreed to work with me and take the steps necessary to make them usable with LilyPond. Each of his fonts are quite stylized and are designed to represent a different genre of music. The one I'm doing first is meant to imitate the feeling of the famous Didot (or Bodoni) text font, with lots of thick and thin elements. Anyone seen this before? It is his designer that they be made available for free, licensed under the OFL. He's pretty excited to see his work get out there. Before I can do this, however, there's one issue I haven't been able to solve. The noteheads (quarter and half) are designed such that it really only has ONE stem attachment point (marked in orange in the attached image). For stems going up (right-side of image), it is the top-right point. For stems going down (left-side of image), the glyph must be rotated 180 degrees so the same attachment point is now at the bottom-left where the stem is located. The rotation part I've been able to figure out, but it isn't automatic yet. My question is this: how do I determine when a particular notehead's _true_ stem attachment at that moment is going to be at the bottom-left so I can rotate the notehead glyph? I don't care what the value is, though it may be needed to determine the event, I just want to know _when_ it happens. I hope that makes sense. Here's my simple code so far: #(define alt-notehead (lambda (grob) (let* ((stil (ly:note-head::print grob)) (newstil (ly:stencil-rotate stil 180 0 0))) newstil))) Then, when I want to use it, I do: (\once) \override NoteHead.stencil = #alt-notehead When I get the 'stem-attachment property of the notehead, it always gives me the top-right value, regardless of where the stem is actually attached. I'm hoping this will work for chords, too, though I haven't experimented enough to know for sure. Any help is always appreciated! Regards, 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
Re: Directional NoteHead Stencil Support
I definitely could, but, like I said, the rotation part isn't what I can't do. I need to be able to know _when_ they are needed and when they aren't. I can't figure out how to do that. Good thought, though. - Abraham On Thu, Mar 19, 2015 at 1:58 PM, Urs Liska [via Lilypond] ml-node+s1069038n173364...@n5.nabble.com wrote: Just a very uneducated guess: couldn't you make rotated copies in the font itself? Am 19. März 2015 19:56:16 MEZ, schrieb Abraham Lee [hidden email] http:///user/SendEmail.jtp?type=nodenode=173364i=0: I've been collaborating with an Italian design student that created numerous music fonts for a school project, but they aren't actually used in any notation program (yet), but he has agreed to work with me and take the steps necessary to make them usable with LilyPond. Each of his fonts are quite stylized and are designed to represent a different genre of music. The one I'm doing first is meant to imitate the feeling of the famous Didot (or Bodoni) text font, with lots of thick and thin elements. Anyone seen this before? It is his designer that they be made available for free, licensed under the OFL. He's pretty excited to see his work get out there. Before I can do this, however, there's one issue I haven't been able to solve. The noteheads (quarter and half) are designed such that it really only has ONE stem attachment point (marked in orange in the attached image). For stems going up (right-side of image), it is the top-right point. For stems going down (left-side of image), the glyph must be rotated 180 degrees so the same attachment point is now at the bottom-left where the stem is located. The rotation part I've been able to figure out, but it isn't automatic yet. My question is this: how do I determine when a particular notehead's _true_ stem attachment at that moment is going to be at the bottom-left so I can rotate the notehead glyph? I don't care what the value is, though it may be needed to determine the event, I just want to know _when_ it happens. I hope that makes sense. Here's my simple code so far: #(define alt-notehead (lambda (grob) (let* ((stil (ly:note-head::print grob)) (newstil (ly:stencil-rotate stil 180 0 0))) newstil))) Then, when I want to use it, I do: (\once) \override NoteHead.stencil = #alt-notehead When I get the 'stem-attachment property of the notehead, it always gives me the top-right value, regardless of where the stem is actually attached. I'm hoping this will work for chords, too, though I haven't experimented enough to know for sure. Any help is always appreciated! Regards, Abraham -- lilypond-user mailing list [hidden email] http:///user/SendEmail.jtp?type=nodenode=173364i=1 https://lists.gnu.org/mailman/listinfo/lilypond-user ___ lilypond-user mailing list [hidden email] http:///user/SendEmail.jtp?type=nodenode=173364i=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/Directional-NoteHead-Stencil-Support-tp173361p173364.html To start a new topic under User, email ml-node+s1069038n...@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/Directional-NoteHead-Stencil-Support-tp173361p173366.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
Shorten hairpin
Hi, I would like to shorten a hairpin like in this example: \relative c'' { b c8\ q q q\! } The left end should start with the beam, the right end should stay the same. How can I do this? Cheers, Joram ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Shorten hairpin
Hi Joram, On Thu, Mar 19, 2015 at 8:12 AM, Noeck noeck.marb...@gmx.de wrote: Hi, I would like to shorten a hairpin like in this example: \relative c'' { b c8\ q q q\! } The left end should start with the beam, the right end should stay the same. How can I do this? I suppose a decent solution to this would involve writing the stencil callback for Hairpin to allow displacement of the endpoints. (Some addition to the C++ code?) Then it would straightforward to read the coordinates of this or that related object, and adjust the hairpin's length accordingly. The following works, at least for your example. It resets the parent of the left bound of the Hairpin spanner to a Stem object. You asked for the beam, specifically, but I don't know that there would be any appreciable difference. I haven't tested this beyond your example, so I can't say what will happen in a real-world example. Anyway... %%% \version 2.19.17 #(define (shorten-hairpin grob) (let ((rb (ly:spanner-bound grob LEFT))) (if (grob::has-interface rb 'note-column-interface) (let ((stem (ly:grob-object rb 'stem))) (if (ly:grob? stem) (ly:spanner-set-bound! grob LEFT stem ; return default for after-line-breaking ly:spanner::kill-zero-spanned-time)) \relative c'' { \override Hairpin.after-line-breaking = #shorten-hairpin b c8\ q q q\! } %%% --David ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
RE:Shorten hairpin
or \override Hairpin.minimum-length = #5 lol so \relative c'' { \once \override Hairpin.X-offset = #1.35 b c8\ q q q\! \once \override TextScript.layer = #2 \once\override TextScript.staff-padding = #3.4 b c8 _\markup \with-dimensions #'(2 . 7) #'(0 . 0)\with-color #white \filled-box #'(-1.8 . .2) #'(0 . 2) #0 q q q } Stephen ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
RE: Shorten hairpin
Does this work for you? \version 2.18.2 \relative c'' { b c8\ q q q\!b c8 q q q } \relative c'' { \once \override Hairpin.X-offset = #1.35 \override Hairpin.minimum-length = #5 b c8\ q q q\! \once \override TextScript.layer = #2 \once\override TextScript.staff-padding = #3.4 \once\override TextScript.vertical-skylines = #'() b c8 _\markup \with-dimensions #'(2 . 7) #'(0 . 0)\with-color #red \filled-box #'(-1.8 . .2) #'(0 . 2) #0 q q q } \relative c'' { \once \override Hairpin.X-offset = #1.35 \override Hairpin.minimum-length = #5 b c8\ q q q\! \once \override TextScript.layer = #2 \once\override TextScript.staff-padding = #3.4 \once\override TextScript.vertical-skylines = #'() b c8 _\markup \with-dimensions #'(2 . 7) #'(0 . 0)\with-color #white \filled-box #'(-1.8 . .2) #'(0 . 2) #0 q q q } Stephen ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
RE: Shorten hairpin
actually you don't need \once\override TextScript.vertical-skylines = #'() so \relative c'' { \once \override Hairpin.X-offset = #1.35 \override Hairpin.minimum-length = #5 b c8\ q q q\! \once \override TextScript.layer = #2 \once\override TextScript.staff-padding = #3.4 b c8 _\markup \with-dimensions #'(2 . 7) #'(0 . 0)\with-color #white \filled-box #'(-1.8 . .2) #'(0 . 2) #0 q q q } Stephen ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Shorten hairpin
Hi all, On Mar 19, 2015, at 10:01 AM, David Nalesnik david.nales...@gmail.com wrote: I suppose a decent solution to this would involve writing the stencil callback for Hairpin to allow displacement of the endpoints. If this ever *did* happen, I would renew my (sponsor-willing) plea to have the ability to give dimensions in “current moments” — e.g., “shorten this hairpin by the width of a [current] quarter note”. Thanks, Kieren. ___ Kieren MacMillan, composer www: http://www.kierenmacmillan.info email: i...@kierenmacmillan.info ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Shorten hairpin
Hi Kieren, On Thu, Mar 19, 2015 at 9:21 AM, Kieren MacMillan kieren_macmil...@sympatico.ca wrote: Hi all, On Mar 19, 2015, at 10:01 AM, David Nalesnik david.nales...@gmail.com wrote: I suppose a decent solution to this would involve writing the stencil callback for Hairpin to allow displacement of the endpoints. If this ever *did* happen, I would renew my (sponsor-willing) plea to have the ability to give dimensions in “current moments” — e.g., “shorten this hairpin by the width of a [current] quarter note”. The width of the NoteHead grob would be easily accessible. As far as spacing width, I wouldn't know how to approach the problem. You could use something like the \at function, defined here: http://www.mail-archive.com/lilypond-devel%40gnu.org/msg49727.html Don't know if this (or a variant) ever reached -user. Best, David ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Shorten hairpin
Dear Kieren, David and Stephen, thanks for your answers! Stephen’s hack with a white box is not suitable for my packed layout here. The shorten-hairpin function does exactly what I want in this simple example. In my real score, I have a separate Dynamics context and this makes your function having no effect – probably because the notes are not accessible by the function. \relative c'' { b c8 q q q } \new Dynamics { \override Hairpin.after-line-breaking = #shorten-hairpin s4.\ s\! } I am surprised that not even the length can be specified manually (as there is min-length already). A combination of length and offset would do. @David: Of course it would be nice to have an adapted version of your function that handles the different contexts. But considering the complexity of the function you already provided, I have to say: Please do not spend too much time on it. It is not super urgent for me. Cheers, Joram ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Shorten hairpin
Yes it was a hack, however this might look better and in a dynamics part it should work stephen \relative c'' { b c8 q q q } \new Dynamics { \once \override Hairpin.X-offset = #1.35 % \override Hairpin.after-line-breaking = #shorten-hairpin s4.*89/90\ s\! } On Thu, Mar 19, 2015 at 2:51 PM, Noeck noeck.marb...@gmx.de wrote: Dear Kieren, David and Stephen, thanks for your answers! Stephen’s hack with a white box is not suitable for my packed layout here. The shorten-hairpin function does exactly what I want in this simple example. In my real score, I have a separate Dynamics context and this makes your function having no effect – probably because the notes are not accessible by the function. \relative c'' { b c8 q q q } \new Dynamics { \override Hairpin.after-line-breaking = #shorten-hairpin s4.\ s\! } I am surprised that not even the length can be specified manually (as there is min-length already). A combination of length and offset would do. @David: Of course it would be nice to have an adapted version of your function that handles the different contexts. But considering the complexity of the function you already provided, I have to say: Please do not spend too much time on it. It is not super urgent for me. Cheers, Joram ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Directional NoteHead Stencil Support
I've been collaborating with an Italian design student that created numerous music fonts for a school project, but they aren't actually used in any notation program (yet), but he has agreed to work with me and take the steps necessary to make them usable with LilyPond. Each of his fonts are quite stylized and are designed to represent a different genre of music. The one I'm doing first is meant to imitate the feeling of the famous Didot (or Bodoni) text font, with lots of thick and thin elements. Anyone seen this before? It is his designer that they be made available for free, licensed under the OFL. He's pretty excited to see his work get out there. Before I can do this, however, there's one issue I haven't been able to solve. The noteheads (quarter and half) are designed such that it really only has ONE stem attachment point (marked in orange in the attached image). For stems going up (right-side of image), it is the top-right point. For stems going down (left-side of image), the glyph must be rotated 180 degrees so the same attachment point is now at the bottom-left where the stem is located. The rotation part I've been able to figure out, but it isn't automatic yet. My question is this: how do I determine when a particular notehead's _true_ stem attachment at that moment is going to be at the bottom-left so I can rotate the notehead glyph? I don't care what the value is, though it may be needed to determine the event, I just want to know _when_ it happens. I hope that makes sense. Here's my simple code so far: #(define alt-notehead (lambda (grob) (let* ((stil (ly:note-head::print grob)) (newstil (ly:stencil-rotate stil 180 0 0))) newstil))) Then, when I want to use it, I do: (\once) \override NoteHead.stencil = #alt-notehead When I get the 'stem-attachment property of the notehead, it always gives me the top-right value, regardless of where the stem is actually attached. I'm hoping this will work for chords, too, though I haven't experimented enough to know for sure. Any help is always appreciated! Regards, Abraham ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Shorten hairpin
Hi Stephen, Am 19.03.2015 um 20:05 schrieb Stephen MacNeil: Yes it was a hack, however this might look better and in a dynamics part it should work The problem is that there is a barline across staves directly after and other dynamics marks. But I probably can raise the barline above the markup. Thanks. Cheers, Joram ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
RE:musicxml2ly
if you use linux you can do for i in ... ; do ; done ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: musicxml2ly
Am 19.03.2015 um 21:14 schrieb Noeck: Hi Craig, on which OS? On Linux (bash) you can do this: for f in folder/*.xml; do musicxml2ly $f; done where folder is your folder containing the xml files. or simply for f in *.xml when you are already in the same folder. (I think this should equally work on a Mac). Urs HTH, Joram Is there a command for converting a whole folder of xml files to lilypond, rather than doing them one by one? ___ 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: musicxml2ly
Hi Craig, on which OS? On Linux (bash) you can do this: for f in folder/*.xml; do musicxml2ly $f; done where folder is your folder containing the xml files. HTH, Joram Is there a command for converting a whole folder of xml files to lilypond, rather than doing them one by one? ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Directional NoteHead Stencil Support
Am 19.03.2015 um 21:07 schrieb tisimst: I definitely could, but, like I said, the rotation part isn't what I can't do. I need to be able to know _when_ they are needed and when they aren't. I can't figure out how to do that. Good thought, though. As said I'm not really into this. But my reasoning was that when creating independent noteheads for stem up/down in the font you could make the decision manually and don't have to find a way to let LilyPond find it out for you. Urs - Abraham On Thu, Mar 19, 2015 at 1:58 PM, Urs Liska [via Lilypond] [hidden email] /user/SendEmail.jtp?type=nodenode=173366i=0 wrote: Just a very uneducated guess: couldn't you make rotated copies in the font itself? Am 19. März 2015 19:56:16 MEZ, schrieb Abraham Lee [hidden email] http:///user/SendEmail.jtp?type=nodenode=173364i=0: I've been collaborating with an Italian design student that created numerous music fonts for a school project, but they aren't actually used in any notation program (yet), but he has agreed to work with me and take the steps necessary to make them usable with LilyPond. Each of his fonts are quite stylized and are designed to represent a different genre of music. The one I'm doing first is meant to imitate the feeling of the famous Didot (or Bodoni) text font, with lots of thick and thin elements. Anyone seen this before? It is his designer that they be made available for free, licensed under the OFL. He's pretty excited to see his work get out there. Before I can do this, however, there's one issue I haven't been able to solve. The noteheads (quarter and half) are designed such that it really only has ONE stem attachment point (marked in orange in the attached image). For stems going up (right-side of image), it is the top-right point. For stems going down (left-side of image), the glyph must be rotated 180 degrees so the same attachment point is now at the bottom-left where the stem is located. The rotation part I've been able to figure out, but it isn't automatic yet. My question is this: how do I determine when a particular notehead's _true_ stem attachment at that moment is going to be at the bottom-left so I can rotate the notehead glyph? I don't care what the value is, though it may be needed to determine the event, I just want to know _when_ it happens. I hope that makes sense. Here's my simple code so far: #(define alt-notehead (lambda (grob) (let* ((stil (ly:note-head::print grob)) (newstil (ly:stencil-rotate stil 180 0 0))) newstil))) Then, when I want to use it, I do: (\once) \override NoteHead.stencil = #alt-notehead When I get the 'stem-attachment property of the notehead, it always gives me the top-right value, regardless of where the stem is actually attached. I'm hoping this will work for chords, too, though I haven't experimented enough to know for sure. Any help is always appreciated! Regards, Abraham lilypond-user mailing list [hidden email] http:///user/SendEmail.jtp?type=nodenode=173364i=1 https://lists.gnu.org/mailman/listinfo/lilypond-user ___ lilypond-user mailing list [hidden email] http:///user/SendEmail.jtp?type=nodenode=173364i=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/Directional-NoteHead-Stencil-Support-tp173361p173364.html To start a new topic under User, email [hidden email] /user/SendEmail.jtp?type=nodenode=173366i=1 To unsubscribe from Lilypond, click here. 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: Re: Directional NoteHead Stencil Support http://lilypond.1069038.n5.nabble.com/Directional-NoteHead-Stencil-Support-tp173361p173366.html Sent from the User mailing list archive http://lilypond.1069038.n5.nabble.com/User-f3.html at Nabble.com. ___ lilypond-user mailing list
musicxml2ly
Message: 4 Date: Thu, 19 Mar 2015 20:06:23 + From: Craig Dabelstein craig.dabelst...@gmail.com Subject: musicxml2ly Is there a command for converting a whole folder of xml files to lilypond, rather than doing them one by one? In any OS with a bash-like shell: for f in *.xml do musicxml2ly [option...] $f done ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Shorten hairpin
On Thu, Mar 19, 2015 at 1:51 PM, Noeck noeck.marb...@gmx.de wrote: @David: Of course it would be nice to have an adapted version of your function that handles the different contexts. But considering the complexity of the function you already provided, I have to say: Please do not spend too much time on it. It is not super urgent for me. I don't see any easy way to do this. You could determine the X-coordinate of the object you want the hairpin to align to and scale the hairpin stencil in the X-axis; however, this could result in distortion. Better would be to allow modification of the starting and ending points in the stencil function itself--the equivalent of shorten-pair. I can't give you a function to plug in--it would involve converting the 220 line C++ hairpin stencil function into Scheme to make some additions. Well, to be fair, some of those lines are comments... Sorry I can't be of more help. --David ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user