Re: architecture problem with midi2ly on a mac
On Feb 4, 2015, at 11:38 AM, Cynthia Karl pck...@mac.com wrote: On Feb 4, 2015, at 11:05 AM, Hans Aberg haber...@telia.com mailto:haber...@telia.com wrote: On 4 Feb 2015, at 16:26, Cynthia Karl pck...@mac.com mailto:pck...@mac.com wrote: This is on a MacBook Pro running OS X 10.10.2. Is there any way I can get midi2ly running on this computer? It works with a script, named say “midi2ly” and put in the PATH, with the single line: exec /usr/bin/python /Applications/LilyPond.app/Contents/Resources/bin/midi2ly $@“ Thanks, but unfortunately I still have the problem with that: Patricks-MacBook-Pro:Larkin pat$ which midi2ly /Users/pat/bin/midi2ly Patricks-MacBook-Pro:Larkin pat$ cat /Users/pat/bin/midi2ly #!/bin/bash exec /usr/bin/python /Applications/LilyPond.app/Contents/Resources/bin/midi2ly $@ Patricks-MacBook-Pro:Larkin pat$ /Users/pat/bin/midi2ly --help Traceback (most recent call last): File /Applications/LilyPond.app/Contents/Resources/bin/midi2ly, line 54, in module import midi ImportError: dlopen(/Applications/LilyPond.app/Contents/Resources/lib/lilypond/current/python/midi.so, 2): no suitable image found. Did find: /Applications/LilyPond.app/Contents/Resources/lib/lilypond/current/python/midi.so: mach-o, but wrong architecture It seems like a python problem. Patricks-MacBook-Pro:Larkin pat$ which python /usr/bin/python Patricks-MacBook-Pro:Larkin pat$ /usr/bin/python --version Python 2.7.6 Patricks-MacBook-Pro:Larkin pat$ /usr/bin/env python --version Python 2.7.6 To be more precise, it seems to be a problem with the file /Applications/LilyPond.app/Contents/Resources/lib/lilypond/current/python/midi.so, which, as python reports, is mach-o but wrong architecture. Patricks-MacBook-Pro:~ pat$ file /Applications/LilyPond.app/Contents/Resources/lib/lilypond/current/python/midi.so /Applications/LilyPond.app/Contents/Resources/lib/lilypond/current/python/midi.so: Mach-O bundle i386 Patricks-MacBook-Pro:~ pat$ machine i486 So perhaps i need a midi.so which is for i486 architecture, not i386 architecture? (I’ve left my safety zone now.) ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: lengthening broken ties
Why not make it possible to give different values of minimum-length right when you do the basic override? Perhaps minimum-length could be a pair, one number giving the non-broken value, another giving the broken. Or--less intrusive--there could be a property alongside it which acted on a broken object, I think that would be pretty easy to implement. In case it is easy to implement a `minimum-length-broken' property, please proceed! It would magically improve *a lot* of scores, I guess. From a philosophical point, however, such a fix basically goes into the wrong direction. IMHO, `minimum-length' should do what its name advertises, namely controlling the length of the tie, and not the distance between its associated note heads. The current implementation is completely unpredictable in tight typesetting situations if there are accidentals and/or chords. Werner ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: architecture problem with midi2ly on a mac
On 4 Feb 2015, at 16:26, Cynthia Karl pck...@mac.com wrote: This is on a MacBook Pro running OS X 10.10.2. Is there any way I can get midi2ly running on this computer? It works with a script, named say “midi2ly” and put in the PATH, with the single line: exec /usr/bin/python /Applications/LilyPond.app/Contents/Resources/bin/midi2ly $@ ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: architecture problem with midi2ly on a mac
On Feb 4, 2015, at 11:05 AM, Hans Aberg haber...@telia.com wrote: On 4 Feb 2015, at 16:26, Cynthia Karl pck...@mac.com wrote: This is on a MacBook Pro running OS X 10.10.2. Is there any way I can get midi2ly running on this computer? It works with a script, named say “midi2ly” and put in the PATH, with the single line: exec /usr/bin/python /Applications/LilyPond.app/Contents/Resources/bin/midi2ly $@“ Thanks, but unfortunately I still have the problem with that: Patricks-MacBook-Pro:Larkin pat$ which midi2ly /Users/pat/bin/midi2ly Patricks-MacBook-Pro:Larkin pat$ cat /Users/pat/bin/midi2ly #!/bin/bash exec /usr/bin/python /Applications/LilyPond.app/Contents/Resources/bin/midi2ly $@ Patricks-MacBook-Pro:Larkin pat$ /Users/pat/bin/midi2ly --help Traceback (most recent call last): File /Applications/LilyPond.app/Contents/Resources/bin/midi2ly, line 54, in module import midi ImportError: dlopen(/Applications/LilyPond.app/Contents/Resources/lib/lilypond/current/python/midi.so, 2): no suitable image found. Did find: /Applications/LilyPond.app/Contents/Resources/lib/lilypond/current/python/midi.so: mach-o, but wrong architecture It seems like a python problem. Patricks-MacBook-Pro:Larkin pat$ which python /usr/bin/python Patricks-MacBook-Pro:Larkin pat$ /usr/bin/python --version Python 2.7.6 Patricks-MacBook-Pro:Larkin pat$ /usr/bin/env python --version Python 2.7.6 ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: lengthening broken ties
Hi all, On Feb 4, 2015, at 9:44 AM, Werner LEMBERG w...@gnu.org wrote: From a philosophical point, however, such a fix basically goes into the wrong direction. IMHO, `minimum-length' should do what its name advertises, namely controlling the length of the tie, and not the distance between its associated note heads. The current implementation is completely unpredictable in tight typesetting situations if there are accidentals and/or chords. +1 Here’s hoping this works out for the best! 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: Problem
Am 04.02.2015 um 10:18 schrieb Noeck: Hi, each lilypond file should contain a version statement, because parts of the syntax changes from version to version. If you have this line: \version 2.18.2 (i.e. you state the version for which the file was written) and you will use version 2.20 in future, you can automatically update the syntax with convert-ly (also in the Tools menu of Frescobaldi). Your file is technically ok, but because of the importance of the version statement it warns you this way that it is missing. IIUC, there is no pdf file created, so there is something missing aside of the \version statement. Marc HTH Joram ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Problem
Hi, each lilypond file should contain a version statement, because parts of the syntax changes from version to version. If you have this line: \version 2.18.2 (i.e. you state the version for which the file was written) and you will use version 2.20 in future, you can automatically update the syntax with convert-ly (also in the Tools menu of Frescobaldi). Your file is technically ok, but because of the importance of the version statement it warns you this way that it is missing. HTH Joram ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Problem
IIUC, there is no pdf file created, so there is something missing aside of the \version statement. Sorry, I didn’t read that. Then the file content would be indeed interesting. Perhaps there is just no score in it, only definitions? ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: centering full-measure objects (notes and/or rests)
2015-02-04 8:33 GMT+01:00 Thomas Morley thomasmorle...@gmail.com: 2015-02-04 6:31 GMT+01:00 Jay Anderson horndud...@gmail.com: On Tue, Feb 3, 2015 at 9:30 PM, Kieren MacMillan kieren_macmil...@sympatico.ca wrote: 2. Why is this not Lilypond’s default behaviour? As I understand it, traditional engraving practice is to centre full-measure objects (notes and/or rests) in *any* measure of a piece, as long as all staves in the current system consist of only full-measure objects (notes and/or rests). Gould says that a bar containing a single note is placed left of center. Full measure rests are centered. So lilypond is behaving correctly from what I can tell, but I agree at times it'd be nice to be able to adjust the off-centered-ness of the note. It's never bothered me enough to try and fix it though. I'd definitely be interested in being able to tweak it if it were available. -Jay Once I did: http://lists.gnu.org/archive/html/lilypond-user/2013-05/msg00880.html Iirc, there is a problem now, because of internal changes. Arpeggio will be a problem: http://lilypond.1069038.n5.nabble.com/How-to-detect-if-NoteColumn-has-an-arpeggio-with-2-18-0-td160465.html Unanswered til today. But try it out. Cheers, Harm ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Bug in articulate.ly + TrillSpan + full-measure rests
Noeck == Noeck noeck.marb...@gmx.de writes: Noeck Hi Davide, I would expect \articulate to correctly handle trill spanners regardless to what \stopTrillSpan is attached to. Noeck Yep, me too. That’s why I said: I don’t know how to fix it. Looks like the code that was added to do agogic accents (aka swing) expands MultiMeasureRestMusic and throws away any articulation events (like the end of the trill spanner) on the way. The fix is probably to add the ariculations in at the end of ac:unFoldMusic when expanding MultiMeasureRestMusic. -- Dr Peter Chubb peter.chubb AT nicta.com.au http://www.ssrg.nicta.com.au Software Systems Research Group/NICTA ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Problem
Am 04.02.2015 um 09:15 schrieb Nat28: I have a problem. When I put test.ly in my Lilypond shortcut, it creates a test.log and not a test.pdf. In the test.log, there is this error message : # -*-compilation-*- Traitement de « C:/Users/Nat28/Desktop/test.ly » Analyse... C:/Users/Nat/Desktop/test.ly:1: Avertissement : déclaration de \version absente ; ajoutez \version 2.18.2 pour une compatibilité future Compilation menée à son terme, avec succès. Can you send us your test.ly file? ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Problem
Forwarding to -user, since my french is not good enough to subscribe to a french list ;-) Weitergeleitete Nachricht Betreff:Re: DKIM Re: Problem Datum: Wed, 04 Feb 2015 10:30:32 +0100 Von:marc.lanoiselee marc.lanoise...@laposte.net An: Marc Hohl m...@hohlart.de Il y a une liste en français. lilypond-user...@gnu.org Je te recommande l'utilisation de Frescobaldi qui rend beaucoup plus simple utilisation de LilyPond http://www.frescobaldi.org/ Bon courage Marc Lanoiselée Le 04/02/2015 09:55, Marc Hohl a écrit : Am 04.02.2015 um 09:15 schrieb Nat28: I have a problem. When I put test.ly in my Lilypond shortcut, it creates a test.log and not a test.pdf. In the test.log, there is this error message : # -*-compilation-*- Traitement de « C:/Users/Nat28/Desktop/test.ly » Analyse... C:/Users/Nat/Desktop/test.ly:1: Avertissement : déclaration de \version absente ; ajoutez \version 2.18.2 pour une compatibilité future Compilation menée à son terme, avec succès. Can you send us your test.ly file? ___ 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
Problem
I have a problem. When I put test.ly in my Lilypond shortcut, it creates a test.log and not a test.pdf. In the test.log, there is this error message : # -*-compilation-*- Traitement de « C:/Users/Nat28/Desktop/test.ly » Analyse... C:/Users/Nat/Desktop/test.ly:1: Avertissement : déclaration de \version absente ; ajoutez \version 2.18.2 pour une compatibilité future Compilation menée à son terme, avec succès. Sorry if it is in french. Have you an anwer to my problem ? Thanks. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: architecture problem with midi2ly on a mac
Il 04/02/15 16.26, Cynthia Karl ha scritto: When I do: midi2ly —help I get: Patricks-MacBook-Pro:mi2ly.0.12 pat$ midi2ly --help Traceback (most recent call last): File /Applications/LilyPond.app/Contents/Resources/bin/midi2ly, line 54, in module import midi ImportError: dlopen(/Applications/LilyPond.app/Contents/Resources/lib/lilypond/current/python/midi.so, 2): no suitable image found. Did find: /Applications/LilyPond.app/Contents/Resources/lib/lilypond/current/python/midi.so: mach-o, but wrong architecture This is on a MacBook Pro running OS X 10.10.2. This is a known bug, see https://code.google.com/p/lilypond/issues/detail?id=2208 in particular comment 5, which has a workaround. Best wishes. Davide ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: architecture problem with midi2ly on a mac
On 4 Feb 2015, at 18:50, Cynthia Karl pck...@mac.com wrote: It works with a script, named say “midi2ly” and put in the PATH, with the single line: exec /usr/bin/python /Applications/LilyPond.app/Contents/Resources/bin/midi2ly $@“ Thanks, but unfortunately I still have the problem with that: I use LilyPond 2.19.15 - perhaps you use an older version: It seems like a python problem. ... To be more precise, it seems to be a problem with the file /Applications/LilyPond.app/Contents/Resources/lib/lilypond/current/python/midi.so, which, as python reports, is mach-o but wrong architecture. ... So perhaps i need a midi.so which is for i486 architecture, not i386 architecture? (I’ve left my safety zone now.) Right. There are several problems: midi2ly compiled 32-bit for an old Python API. I reported how to fix that, so perhaps it has beed done in latest LilyPond. When I exclude /usr/bin/python, thus using LilyPonds’s own Python, I get Fatal Python error: PyThreadState_Get: no current thread which is a new problem. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
what's the State-of-the-Art two column top-level markup function?
Hello all, I would like to use Lilypond (not -book or LaTeX- etc.) to add a top-level two-column markup to my score. Is there a really great function out there (e.g., with margin and gutter control, auto-wrapping, individual baseline- and paragraph-skip parameters, etc.), or should I [re-]invent the wheel? (n.b. I believe I know all the “public” functions — e.g., http://lsr.di.unimi.it/LSR/Item?id=533 — and none of them are quite sufficient as they currently stand…) 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: architecture problem with midi2ly on a mac
On 4 Feb 2015, at 18:50, Cynthia Karl pck...@mac.com wrote: It works with a script, named say “midi2ly” and put in the PATH, with the single line: exec /usr/bin/python /Applications/LilyPond.app/Contents/Resources/bin/midi2ly $@“ Thanks, but unfortunately I still have the problem with that: The workarounds and recompile fixes are here: http://lists.gnu.org/archive/html/lilypond-user/2014-10/msg00799.html ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
hiding tablature - adding a blank tablature to music
Hello, I am trying to add a completely blank tablature to some music. The idea is to create a worksheet where my students have to fill in the tablature for notes. I think I need to utilize the \hide feature within a \new TabStaff { but I just can't figure it out, nor can I find it in the manual. Thank you for your help! I should add this is for a 4 string ukulele. Ryan ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: lengthening broken ties
In case it is easy to implement a `minimum-length-broken' property, please proceed! It would magically improve *a lot* of scores, I guess. If it's convenient, have a look at the attached patch/sketch. It adds a property, minimum-length-left-broken, which lets you adjust broken bits that start a line. Excellent! What an improvement with just a few lines of code! Thanks a lot. Hopefully, though, this will prove useful. It is. Please add it to Rietveld so that it gets added eventually to master. Perhaps even when 14 is fixed it will be useful to have different settings for broken pieces, so I'm not so sure that this patch is interfering. Maybe, yes. Werner ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: lengthening broken ties
On Wed, Feb 4, 2015 at 2:29 PM, David Nalesnik david.nales...@gmail.com wrote: The example file shows how minimum-length and the new property interact with each other. Attached is an image of the output of the example. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Make Table of Content show up in PDF Viewer outline
Isn't that a bug/limitation in how Lilypond generates the PDF? Aren't we forgetting to pass some options that would make the table of content visible in the outline view of PDF Viewvers? -- View this message in context: http://lilypond.1069038.n5.nabble.com/Make-Table-of-Content-show-up-in-PDF-Viewer-outline-tp171402p171440.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: lengthening broken ties
Hi, On Wed, Feb 4, 2015 at 8:44 AM, Werner LEMBERG w...@gnu.org wrote: Why not make it possible to give different values of minimum-length right when you do the basic override? Perhaps minimum-length could be a pair, one number giving the non-broken value, another giving the broken. Or--less intrusive--there could be a property alongside it which acted on a broken object, I think that would be pretty easy to implement. In case it is easy to implement a `minimum-length-broken' property, please proceed! It would magically improve *a lot* of scores, I guess. If it's convenient, have a look at the attached patch/sketch. It adds a property, minimum-length-left-broken, which lets you adjust broken bits that start a line. (Unfortunately I have to send this as a patch, as it modifies C++ code...) The example file shows how minimum-length and the new property interact with each other. From a philosophical point, however, such a fix basically goes into the wrong direction. IMHO, `minimum-length' should do what its name advertises, namely controlling the length of the tie, and not the distance between its associated note heads. The current implementation is completely unpredictable in tight typesetting situations if there are accidentals and/or chords. Yes, I see what you mean. Absolutely it should be the actual length of the tie that is measured. From the discussion on Issue 14, I see that looking at distances between notes was the convenient route to go, and that handling the actual lengths of ties is tricky given the topography of chords. I don't have a solution to this oldest-of-all open issues. Hopefully, though, this will prove useful. Perhaps even when 14 is fixed it will be useful to have different settings for broken pieces, so I'm not so sure that this patch is interfering. --David From 66e797dc7421f9b142b8186cacfd499490d97b1f Mon Sep 17 00:00:00 2001 From: David Nalesnik david.nales...@gmail.com Date: Wed, 4 Feb 2015 14:07:01 -0600 Subject: [PATCH] Allow independent adjustment of minimum length for spanner siblings The property minimum-length affects both unbroken and broken spanners, making independent adjustment impossible. This patch adds a property, minimum-length-left-broken, which, if set, behaves similarly to minimum-length, but only affects siblings starting a line. If unset, minimum-length still controls all lengths. --- lily/spanner.cc|7 ++- scm/define-grob-properties.scm |2 ++ 2 files changed, 8 insertions(+), 1 deletions(-) diff --git a/lily/spanner.cc b/lily/spanner.cc index 66b35dc..bfb09aa 100644 --- a/lily/spanner.cc +++ b/lily/spanner.cc @@ -366,7 +366,9 @@ Spanner::set_spacing_rods (SCM smob) { Grob *me = Grob::unsmob (smob); SCM num_length = me-get_property (minimum-length); - if (scm_is_number (num_length)) + SCM left_broken_length = me-get_property (minimum-length-left-broken); + if (scm_is_number (num_length) + || scm_is_number (left_broken_length)) { Rod r; Spanner *sp = dynamic_castSpanner * (me); @@ -389,6 +391,8 @@ Spanner::set_spacing_rods (SCM smob) r.item_drul_[LEFT] = cols.back ()-find_prebroken_piece (RIGHT); r.item_drul_[RIGHT] = sp-get_bound (RIGHT); + if (scm_is_number (left_broken_length)) +r.distance_ = robust_scm2double (left_broken_length, 0); r.add_to_cols (); } @@ -546,6 +550,7 @@ ADD_INTERFACE (Spanner, /* properties */ normalized-endpoints minimum-length + minimum-length-left-broken spanner-broken spanner-id to-barline diff --git a/scm/define-grob-properties.scm b/scm/define-grob-properties.scm index 0d5eaa1..8ea7203 100644 --- a/scm/define-grob-properties.scm +++ b/scm/define-grob-properties.scm @@ -637,6 +637,8 @@ this long, normally in the horizontal direction. This requires an appropriate callback for the @code{springs-and-rods} property. If added to a @code{Tie}, this sets the minimum distance between noteheads.) + (minimum-length-left-broken ,ly:dimension? If set, try to make a +a left-broken spanner this long.) (minimum-length-fraction ,number? Minimum length of ledger line as fraction of note head size.) (minimum-space ,ly:dimension? Minimum distance that the victim -- 1.7.0.4 \version 2.19.16 \paper { indent = 0 ragged-right = ##t } % default { cis''1 ~ \break cis''1 } % all influenced by minimum-length { \override Tie.minimum-length = 10 cis''1 ~ \break cis''1 } % only left-broken piece affected { \override Tie.minimum-length-left-broken = 10 cis''1 ~ \break cis''1 } % different settings for left-broken and all else { \override Tie.minimum-length = 10 \override Tie.minimum-length-left-broken = 0 cis''1 ~ \break cis''1 } ___ lilypond-user mailing list
Re: what's the State-of-the-Art two column top-level markup function?
Have you seen this one: http://lsr.di.unimi.it/LSR/Snippet?id=464 ? It is a bit better although I don't like that each column starts on a new row. -- View this message in context: http://lilypond.1069038.n5.nabble.com/what-s-the-State-of-the-Art-two-column-top-level-markup-function-tp171432p171438.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: lengthening broken ties
On Wed, Feb 4, 2015 at 2:29 PM, David Nalesnik david.nales...@gmail.com wrote: The example file shows how minimum-length and the new property interact with each other. Will also work with objects other than ties. See attached for slurs, hairpins, and glissandi. --David \version 2.19.16 \paper { indent = 0 ragged-right = ##t } % default { cis'1( \break cis''1) } % all influenced by minimum-length { \override Slur.minimum-length = 20 cis'1( \break cis''1) } % only left-broken piece affected { \override Slur.minimum-length-left-broken = 20 cis'1( \break cis''1) } % different settings for left-broken and all else { \override Slur.minimum-length = 20 \override Slur.minimum-length-left-broken = 0 cis'1( \break cis''1) } % default { cis''1\ \break cis''2~ cis''\! } % all influenced by minimum-length { \override Hairpin.minimum-length = 20 cis''1\ \break cis''2 ~ cis''\! } % only left-broken piece affected { \override Hairpin.minimum-length-left-broken = 20 cis''1\ \break cis''2 ~ cis''\! } % different settings for left-broken and all else { \override Hairpin.minimum-length = 20 \override Hairpin.minimum-length-left-broken = 0 cis''1\ \break cis''2 ~ cis''\! } % default { \override Glissando.breakable = ##t \override Glissando.after-line-breaking = ##t c'1\glissando \break cis''1 } % all influenced by minimum-length { \override Glissando.minimum-length = 20 \override Glissando.breakable = ##t \override Glissando.after-line-breaking = ##t \override Glissando.springs-and-rods = #ly:spanner::set-spacing-rods c'1\glissando \break cis''1 } % only left-broken piece affected { \override Glissando.minimum-length-left-broken = 20 \override Glissando.breakable = ##t \override Glissando.after-line-breaking = ##t \override Glissando.springs-and-rods = #ly:spanner::set-spacing-rods c'1\glissando \break cis''1 } % different settings for left-broken and all else { \override Glissando.minimum-length = 20 \override Glissando.minimum-length-left-broken = 40 \override Glissando.breakable = ##t \override Glissando.after-line-breaking = ##t \override Glissando.springs-and-rods = #ly:spanner::set-spacing-rods c'1\glissando \break cis''1 } ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: what's the State-of-the-Art two column top-level markup function?
I usually use this format though: % Arrange the two columns horizontally in one line: \markup\fill-line { % First column: \override #'(line-width . 50) \column { \justify-string # Lorem ipsum dolor sit amet, consectetur adipisici elit, sed eiusmod tempor incidunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquid ex ea commodi consequat. Quis aute iure reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint obcaecat cupiditat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Lorem ipsum dolor sit amet, consectetur adipisici elit, sed eiusmod tempor incidunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquid ex ea commodi consequat. Quis aute iure reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint obcaecat cupiditat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Lorem ipsum dolor sit amet, consectetur adipisici elit, sed eiusmod tempor incidunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquid ex ea commodi consequat. Quis aute iure reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint obcaecat cupiditat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. \hspace #0 \justify { Lorem ipsum dolor sit amet, consectetur adipisici elit, sed eiusmod tempor incidunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquid ex ea commodi consequat. Quis aute iure reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint obcaecat cupiditat non proident, sunt in culpa qui % Note: In lilypond 2.14 and later, you can even add footnotes: officia deserunt mollit anim id est \footnote laborum. \line{This is just a test footnote!} } \hspace #0 \justify { Lorem ipsum dolor sit amet, consectetur adipisici elit, sed eiusmod tempor incidunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquid ex ea commodi consequat. Quis aute iure reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint obcaecat cupiditat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. } \hspace #0 } % Second column \override #'(line-width . 50) \column { \justify { Lorem ipsum dolor sit amet, consectetur adipisici elit, sed eiusmod tempor incidunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquid ex ea commodi consequat. Quis aute iure reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint obcaecat cupiditat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. } } } -- View this message in context: http://lilypond.1069038.n5.nabble.com/what-s-the-State-of-the-Art-two-column-top-level-markup-function-tp171432p171439.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: Lyric syllables
- Original Message - From: Charles Johnson cehjbtinter...@gmail.com To: lilypond-user@gnu.org Sent: Wednesday, February 04, 2015 11:10 PM Subject: Lyric syllables Can i take it that sometimes lyric syllables notated thus: foo -- bar are sometimes ignored if there is insufficient space to render them? Yes. Please see http://www.lilypond.org/doc/v2.18/Documentation/snippets/vocal-music#vocal-music-forcing-hyphens-to-be-shown -- Phil Holmes ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: hiding tablature - adding a blank tablature to music
Probably not quite the solution you need but I was able to hide a single occurrence in the Tabstaff with... \override Head #'transparent = ##t fs It was not quite perfect in that part of the Tabstaff grid will be covered with white (erased so to speak). Namaste, Kevin On Wed, 2015-02-04 at 19:29 -0600, Ryan Clarin wrote: Thank you! Unfortunately, the \new Staff \repeat unfold 8 strings seems to completely mess it up unfortunately :( Below is a sample of what I have: mynotes = \relative c'' { a1^\markup { \fret-diagram #w:4;h:3;s:1.5; } e^\markup { \fret-diagram #w:4;h:3;s:1.5; } c^\markup { \fret-diagram #w:4;h:3;s:1.5; } g^\markup { \fret-diagram #w:4;h:3;s:1.5; } c^\markup { \fret-diagram #w:4;h:3;s:1.5; } e^\markup { \fret-diagram #w:4;h:3;s:1.5; } \break c^\markup { \fret-diagram #w:4;h:3;s:1.5; } g^\markup { \fret-diagram #w:4;h:3;s:1.5; } a'^\markup { \fret-diagram #w:4;h:3;s:1.5; } e^\markup { \fret-diagram #w:4;h:3;s:1.5; } c^\markup { \fret-diagram #w:4;h:3;s:1.5; } a'^\markup { \fret-diagram #w:4;h:3;s:1.5; } \break g,^\markup { \fret-diagram #w:4;h:3;s:1.5; } e'^\markup { \fret-diagram #w:4;h:3;s:1.5; } a^\markup { \fret-diagram #w:4;h:3;s:1.5; } c,^\markup { \fret-diagram #w:4;h:3;s:1.5; } a'^\markup { \fret-diagram #w:4;h:3;s:1.5; } g,^\markup { \fret-diagram #w:4;h:3;s:1.5; } \break a'^\markup { \fret-diagram #w:4;h:3;s:1.5; } c,^\markup { \fret-diagram #w:4;h:3;s:1.5; } g^\markup { \fret-diagram #w:4;h:3;s:1.5; } e'^\markup { \fret-diagram #w:4;h:3;s:1.5; } g,^\markup { \fret-diagram #w:4;h:3;s:1.5; } c^\markup { \fret-diagram #w:4;h:3;s:1.5; } } \score { \new Staff { \mynotes } \new TabStaff { \hide \set TabStaff.stringTunings = \stringTuningg c' e' a' { \mynotes } } } The reason you see all those fret diagrams is because they are blank, my students have to fill in the appropriate location of each of those particular notes. You will see I just put a \hide within the \new TabStaff { , and I am sure there is something to put after \hide that will hide the Tab notes, but I just can't find it in the manual. Help! On Wed, Feb 4, 2015 at 5:12 PM, Thomas Morley thomasmorle...@gmail.com wrote: 2015-02-04 22:32 GMT+01:00 Ryan Clarin ryancla...@gmail.com: Hello, I am trying to add a completely blank tablature to some music. The idea is to create a worksheet where my students have to fill in the tablature for notes. I think I need to utilize the \hide feature within a \new TabStaff { but I just can't figure it out, nor can I find it in the manual. Thank you for your help! I should add this is for a 4 string ukulele. Ryan How about: \version 2.18.2 \header { %% perhaps: tagline = ##f indent = 0 } \layout { %% perhaps: ragged-last-bottom = ##f \context { \Score \omit BarNumber } } \new TabStaff \with { stringTunings = #ukulele-tuning } { %% perhaps: \clef moderntab \repeat unfold 8 { s1 \break } } \new Staff \repeat unfold 8 { c''1 \bar |. } Cheers, Harm ___ 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: what's the State-of-the-Art two column top-level markup function?
Hi Marc, I usually use this format though: 1. How do you control/adjust inter-paragraph spacing? 2. How do you control/adjust indentation of each paragraph? 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: hiding tablature - adding a blank tablature to music
2015-02-04 22:32 GMT+01:00 Ryan Clarin ryancla...@gmail.com: Hello, I am trying to add a completely blank tablature to some music. The idea is to create a worksheet where my students have to fill in the tablature for notes. I think I need to utilize the \hide feature within a \new TabStaff { but I just can't figure it out, nor can I find it in the manual. Thank you for your help! I should add this is for a 4 string ukulele. Ryan How about: \version 2.18.2 \header { %% perhaps: tagline = ##f indent = 0 } \layout { %% perhaps: ragged-last-bottom = ##f \context { \Score \omit BarNumber } } \new TabStaff \with { stringTunings = #ukulele-tuning } { %% perhaps: \clef moderntab \repeat unfold 8 { s1 \break } } \new Staff \repeat unfold 8 { c''1 \bar |. } Cheers, Harm ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Lyric syllables
Can i take it that sometimes lyric syllables notated thus: foo -- bar are sometimes ignored if there is insufficient space to render them? ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: centering full-measure objects (notes and/or rests)
2015-02-04 14:22 GMT+01:00 Kieren MacMillan kieren_macmil...@sympatico.ca: Hi Harm, As I said, I’ve been unable to download that file in a useable form… Is there somewhere else I can obtain it (in raw/text format), or some way to download it that possibly I haven’t tried? Found it on the nabble list — download problem solved! It looks great now. Two questions: 1. Can this behaviour be made the default? Don't think so, at least not with this code - it's pretty much a workaround. And the arpeggio-problem is still unsolved. (Loud thinking:) Maybe NoteColumn could behave like rests, where we have r1 and R1 already. Could be caused by setting a context-property or the like. This is beyond my depth , though. 2. How can one shrink the measure width so that it’s much tighter around the [single] NoteColumn? You can try the combination \newSpacingSection \override Score.SpacingSpanner #'base-shortest-duration = #(ly:make-moment 1 0) Attached you'll find a little newer version of it. Cheers, Harm \version 2.16.0 % Thanks to David Nalesnik #(set-global-staff-size 20) #(define (sort-by-X-coord sys grob-lst) Arranges a list of grobs in ascending order by their X-coordinates (let* ((X-coord (lambda (x) (ly:grob-relative-coordinate x sys X))) (comparator (lambda (p q) ( (X-coord p) (X-coord q) (sort grob-lst comparator))) #(define (find-bounding-grobs note-column grob-lst) (let* ((sys (ly:grob-system note-column)) (X-coord (lambda (n) (ly:grob-relative-coordinate n sys X))) (note-column-X (X-coord note-column))) (define (helper lst) (if (and ( (X-coord (car lst)) note-column-X) ( (X-coord (cadr lst)) note-column-X)) (cons (car lst) (cadr lst)) (if (null? (cddr lst)) (cons note-column note-column) (helper (cdr lst) (helper grob-lst))) #(define (read-out l1 l2) (define (helper ls1 ls2 ls3) Filters all elements of ls1 from ls2 by their grob-name and appends it to ls3 (let ((grob-name-proc (lambda (x) (assq-ref (ly:grob-property x 'meta) 'name (if (null? ls1) ls3 (helper (cdr ls1) ls2 (append ls3 (filter (lambda (x) (eq? (car ls1) (grob-name-proc x))) ls2)) (helper l1 l2 '())) #(define ((center-note-column x-offs) grob) (let* ((sys (ly:grob-system grob)) (elements-lst (ly:grob-array-list (ly:grob-object sys 'all-elements))) (grob-name (lambda (x) (assq-ref (ly:grob-property x 'meta) 'name))) (X-extent (lambda (q) (ly:grob-extent q sys X))) ;; NoteColumn (note-column-coord (ly:grob-relative-coordinate grob sys X)) (grob-ext (X-extent grob)) (grob-length (interval-length grob-ext)) ;; NoteHeads (note-heads (ly:grob-object grob 'note-heads)) (note-heads-grobs (if (not (null? note-heads)) (ly:grob-array-list note-heads) '())) (one-note-head (if (not (null? note-heads-grobs)) (car note-heads-grobs) '())) (one-note-head-length (if (not (null? one-note-head)) (interval-length (X-extent one-note-head)) ;; NB 0)) ;; Stem (stem (ly:grob-object grob 'stem)) (stem-dir (ly:grob-property stem 'direction)) (stem-length-x (interval-length (X-extent stem))) ;; NB ;; DotColumn (dot-column (ly:note-column-dot-column grob)) ;; AccidentalPlacement (accidental-placement (ly:note-column-accidentals grob)) ;; Arpeggio (arpeggio (ly:grob-object grob 'arpeggio)) ;; Rest (rest (ly:grob-object grob 'rest)) ;; BassFigure + ChordName (other-grobs-to-center ;; TODO ;; Not sure: What belongs to the list, what not? (list 'BassFigure ;'BassFigureAlignment ;'BassFigureAlignmentPositioning 'BassFigureBracket 'BassFigureContinuation ;'BassFigureLine 'ChordName 'FretBoard )) (all-other-grobs (read-out other-grobs-to-center elements-lst)) (condensed-other-grobs (remove (lambda (x) (not (= (ly:grob-relative-coordinate x sys X) note-column-coord))) all-other-grobs)) ;; Grobs to center between (args (list 'BarLine 'Clef 'KeySignature 'KeyCancellation 'TimeSignature))
Re: hiding tablature - adding a blank tablature to music
Thank you! Unfortunately, the \new Staff \repeat unfold 8 strings seems to completely mess it up unfortunately :( Below is a sample of what I have: mynotes = \relative c'' { a1^\markup { \fret-diagram #w:4;h:3;s:1.5; } e^\markup { \fret-diagram #w:4;h:3;s:1.5; } c^\markup { \fret-diagram #w:4;h:3;s:1.5; } g^\markup { \fret-diagram #w:4;h:3;s:1.5; } c^\markup { \fret-diagram #w:4;h:3;s:1.5; } e^\markup { \fret-diagram #w:4;h:3;s:1.5; } \break c^\markup { \fret-diagram #w:4;h:3;s:1.5; } g^\markup { \fret-diagram #w:4;h:3;s:1.5; } a'^\markup { \fret-diagram #w:4;h:3;s:1.5; } e^\markup { \fret-diagram #w:4;h:3;s:1.5; } c^\markup { \fret-diagram #w:4;h:3;s:1.5; } a'^\markup { \fret-diagram #w:4;h:3;s:1.5; } \break g,^\markup { \fret-diagram #w:4;h:3;s:1.5; } e'^\markup { \fret-diagram #w:4;h:3;s:1.5; } a^\markup { \fret-diagram #w:4;h:3;s:1.5; } c,^\markup { \fret-diagram #w:4;h:3;s:1.5; } a'^\markup { \fret-diagram #w:4;h:3;s:1.5; } g,^\markup { \fret-diagram #w:4;h:3;s:1.5; } \break a'^\markup { \fret-diagram #w:4;h:3;s:1.5; } c,^\markup { \fret-diagram #w:4;h:3;s:1.5; } g^\markup { \fret-diagram #w:4;h:3;s:1.5; } e'^\markup { \fret-diagram #w:4;h:3;s:1.5; } g,^\markup { \fret-diagram #w:4;h:3;s:1.5; } c^\markup { \fret-diagram #w:4;h:3;s:1.5; } } \score { \new Staff { \mynotes } \new TabStaff { \hide \set TabStaff.stringTunings = \stringTuningg c' e' a' { \mynotes } } } The reason you see all those fret diagrams is because they are blank, my students have to fill in the appropriate location of each of those particular notes. You will see I just put a \hide within the \new TabStaff { , and I am sure there is something to put after \hide that will hide the Tab notes, but I just can't find it in the manual. Help! On Wed, Feb 4, 2015 at 5:12 PM, Thomas Morley thomasmorle...@gmail.com wrote: 2015-02-04 22:32 GMT+01:00 Ryan Clarin ryancla...@gmail.com: Hello, I am trying to add a completely blank tablature to some music. The idea is to create a worksheet where my students have to fill in the tablature for notes. I think I need to utilize the \hide feature within a \new TabStaff { but I just can't figure it out, nor can I find it in the manual. Thank you for your help! I should add this is for a 4 string ukulele. Ryan How about: \version 2.18.2 \header { %% perhaps: tagline = ##f indent = 0 } \layout { %% perhaps: ragged-last-bottom = ##f \context { \Score \omit BarNumber } } \new TabStaff \with { stringTunings = #ukulele-tuning } { %% perhaps: \clef moderntab \repeat unfold 8 { s1 \break } } \new Staff \repeat unfold 8 { c''1 \bar |. } Cheers, Harm ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: hiding tablature - adding a blank tablature to music
Hi Ryan, Thomas' solution was not to put 'strings' but 'skip note' ;) How about: \version 2.18.12 mynotes = \relative c'' { a1 e c g c e \break c g a' e c a' \break g, e' a c, a' g, \break a' c, g e' g, c } \score { %% create 24 blank diagrams: \new Dynamics { \repeat unfold 24 s1^\markup { \fret-diagram #w:4;h:3;s:1.5; } } \new Staff \mynotes \new TabStaff \with { stringTunings = \stringTuning g c' e' a' \override Clef.stencil = #(lambda (grob) (grob-interpret-markup grob #{ \markup \fontsize #-2 \musicglyph #clefs.tab_change #})) } { %% Thomas says: %\repeat unfold 24 s1 %% where 's' is for 'skip note' %% or you can put: \hideNotes \mynotes } } HTH, Pierre ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: centering full-measure objects (notes and/or rests)
Hi Jay, Gould says that a bar containing a single note is placed left of center. Full measure rests are centered. So lilypond is behaving correctly Note that Gould’s description (page 41) supports my feature request, and is decidedly *not* how Lilypond currently works — here’s the exact example she gives: \version 2.19.15 testing = { \time 4/4 c1 c1 \time 3/4 c2. \time 3/8 c4. c4. } \layout { ragged-right = ##f } \score { \new RhythmicStaff \testing } Notice how Lilypond puts the noteheads at the **left edge of the measure**, and not “just left of the centre of the bar” as indicated by Gould (and all the engravings I looked at in both my own library and in IMSLP). Cheers, 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: centering full-measure objects (notes and/or rests)
Hi Thomas, Once I did: http://lists.gnu.org/archive/html/lilypond-user/2013-05/msg00880.html Iirc, there is a problem now, because of internal changes. But try it out. As I said, I’ve been unable to download that file in a useable form… Is there somewhere else I can obtain it (in raw/text format), or some way to download it that possibly I haven’t tried? 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: Re: Shortening volta brackets at two (and more) staves
Thank you David! Yes, this solved my problem, and I am satisfied. It works fine also with four staves Choir staff which I will use it for. /Kaj Den 2015-02-04 02:50, skrev David Nalesnik: Hi, On Tue, Feb 3, 2015 at 4:35 PM, David Nalesnik david.nales...@gmail.com mailto:david.nales...@gmail.com wrote: Hi Kaj, On Tue, Feb 3, 2015 at 1:37 PM, Kaj Persson kape_...@algonet.se mailto:kape_...@algonet.se wrote: In the snippet collection, the Repeats section, there is one named Shortening volta brackets. I have use for just this, since in a piece of music I need some extra space in order to put a mark immediately after the volta alternative bracket. So I tested it, and, yes, the example promised well. The method is to work with the variable voltaSpannerDuration via the the statement: \set Score.voltaSpannerDuration = #(ly:make-moment 2 4) This way you can shorten the bracket even down to one single strike: But when I expand the system to this, hence two staves instead of one, this happens: I'll have to look at this some more, but it seems there is a bug. Even in the single staff example, there is a warning: cannot end volta spanner. I get this with the snippet you reference as well. Possibly there is a flaw in lily/volta-engraver.cc. And another possibly: this might be related to what happens in your multi-staff example. Yes, there is a problem in the file that defines the engraver. Unfortunately, there would need to be a fix to this file to enable you to use the property voltaSpannerDuration to give you what you want (and this wouldn't be available until the next release). Fortunately, there is a workaround, though you will need to eyeball it to get a good result. Try this: \version 2.18.2 StaffA = \relative c' { c4 c c c \repeat volta 2 { d4 d d d } \alternative { { e4 e e e } { % Shorten the volta bracket \override Score.VoltaBracket.shorten-pair = #'(0.5 . 5) % OR: % \offset shorten-pair #'(0 . 5) Score.VoltaBracket f4 r4 r4 r4 } } \repeat volta 2 {g4 g g g} } StaffB = \relative c'{ c4 c c c \repeat volta 2 { d4 d d d } \alternative { { e4 e e e } { % Shorten the volta bracket %\override Score.VoltaBracket.shorten-pair = #'(0.5 . 5) f4 r4 r4 r4 } } \repeat volta 2 {g4 g g g} } \score { \StaffA % Remove the comment sign (%) on next line to get two staves. \StaffB \layout { } } % Hope this helps, David ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: lengthening broken ties
Hi Werner, On Wed, Feb 4, 2015 at 12:14 AM, Werner LEMBERG w...@gnu.org wrote: Don't know. In any case, I think the goal should be to make this work with an override of 'minimum-length, rather than setting 'minimum-length though 'after-line-breaking. The very problem is that minimum-length gives the distance between *note heads*, which is completely unusable IMHO. If I increase minimum-length globally to fix the broken tie case, the horizontal size of all other ties is *far* too large. Or do you mean something different? In the case of a broken tie, minimum-length would give the distance relative to a NonMusicalPaperColumn on one side. If the minimum-length property were accessible later on in the typesetting process, you'd be able to do something like [\once] \alterBroken minimum-length #'(1 . 5) Tie or [\once] \offset minimum-length #'(0 . 4) Tie Both of these commands would address the pieces independently. \alterBroken and \offset act directly as overrides/tweaks of 'minimum-length, rather than doing their work within 'after-line-breaking as your example does. Perhaps it will never be possible to go through 'after-line-breaking, which may always be too late. --David ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
alist with type checking
Hi all, I'm working on (or rather with) functions managing nested association lists (taken from Jan-Peter's https://github.com/openlilylib/openlilylib/blob/master/ly/_internal/utilities/alist-access.ily). This is intended to manage a hierarchical object with configuration options for a project or a library. One thing I didn't manage to come up with so far is a way to add type checking. So far a key is created and initialized with a command \registerOption path.to.key initial-value Later only registered keys can be modified with a \setOption new-value command. This is already great, but it would be cool if \registerOption could accept an (optional) predicate argument and store that predicate so that a subsequent \setOption will only be successful if the new value satisfies the predicate. Any ideas how to achieve that? I thought about storing a pair of predicate and value instead of only the value but so far it failed completely ;-) Thanks for any suggestions Urs ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: centering full-measure objects (notes and/or rests)
Hi Harm, As I said, I’ve been unable to download that file in a useable form… Is there somewhere else I can obtain it (in raw/text format), or some way to download it that possibly I haven’t tried? Found it on the nabble list — download problem solved! It looks great now. Two questions: 1. Can this behaviour be made the default? 2. How can one shrink the measure width so that it’s much tighter around the [single] NoteColumn? 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: lengthening broken ties
On Wed, Feb 4, 2015 at 7:45 AM, David Nalesnik david.nales...@gmail.com wrote: Hi Werner, On Wed, Feb 4, 2015 at 12:14 AM, Werner LEMBERG w...@gnu.org wrote: Don't know. In any case, I think the goal should be to make this work with an override of 'minimum-length, rather than setting 'minimum-length though 'after-line-breaking. The very problem is that minimum-length gives the distance between *note heads*, which is completely unusable IMHO. If I increase minimum-length globally to fix the broken tie case, the horizontal size of all other ties is *far* too large. Or do you mean something different? In the case of a broken tie, minimum-length would give the distance relative to a NonMusicalPaperColumn on one side. If the minimum-length property were accessible later on in the typesetting process, you'd be able to do something like Why not make it possible to give different values of minimum-length right when you do the basic override? Perhaps minimum-length could be a pair, one number giving the non-broken value, another giving the broken. Or--less intrusive--there could be a property alongside it which acted on a broken object, I think that would be pretty easy to implement. --David ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
architecture problem with midi2ly on a mac
When I do: midi2ly —help I get: Patricks-MacBook-Pro:mi2ly.0.12 pat$ midi2ly --help Traceback (most recent call last): File /Applications/LilyPond.app/Contents/Resources/bin/midi2ly, line 54, in module import midi ImportError: dlopen(/Applications/LilyPond.app/Contents/Resources/lib/lilypond/current/python/midi.so, 2): no suitable image found. Did find: /Applications/LilyPond.app/Contents/Resources/lib/lilypond/current/python/midi.so: mach-o, but wrong architecture This is on a MacBook Pro running OS X 10.10.2. uname -a gives: Darwin Patricks-MacBook-Pro 14.1.0 Darwin Kernel Version 14.1.0: Mon Dec 22 23:10:38 PST 2014; root:xnu-2782.10.72~2/RELEASE_X86_64 x86_64 I’m pretty sure that means 64-bit mode. Is there any way I can get midi2ly running on this computer?___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user