Re: elementary macro problem
Thank you, David and Simon, I see there's no straightforward solution, so I'll stick with the standard syntax. best wishes, David G On Fri, Jul 21, 2017 at 6:54 PM, Simon Albrecht wrote: > On 21.07.2017 16:22, David Griffel wrote: > >> I just want a short abbreviation of \repeat unfold >> > > I can understand that wish, but if I may give some advice from experience: > even if it’s partially possible, it’s generally better to not abbreviate > and stay with standard syntax. > It’s easier to maintain, easier to share and easier for editors to > highlight, and those advantages eventually outweigh the few more keystrokes > you have to make. > > Best, Simon > ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
elementary macro problem
I'm a fairly inexpert lilypond user. I've used simple macros before, but this one fails: thrice = \repeat unfold 3 it produces an error message: error: unknown escaped string: `\thrice' Minimal example: thrice = \repeat unfold 3 {\thrice {a b } } The same thing happens if I drop the 3 and try to define rept = \repeat unfold. The Notation Manual 3.4.4 says "... So far we’ve seen static substitution – when LilyPond sees \padText, it replaces it with the stuff that we’ve defined it to be (ie the stuff to the right of padtext=)." It then goes on to padText = #(define-music-function (parser location padding) (number?) #{ \once \override TextScript.padding = #padding #}) which looks more sophisticated than I need. I just want a short abbreviation of \repeat unfold Maybe that's not possible without learning a good deal more? David ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: 17th century English kbd ornaments
On Sat, Jul 27, 2013 at 8:29 PM, David Rogers wrote: > "Phil Holmes" writes: > > > It would certainly be possible and fairly simple to create glyphs like > > this. We would need to be careful about naming, since a shake is > > generally something else. > > ... > I guess both names "trill" and "shake" are already used for > signs in lilypond, so the keyboard ornament shake (if permanently added) > will need a special name. Hopefully something clear in meaning and not > too hard to type can be found... "keyboardshake" seems a bit long. > > Yes, this is rather a minefield. The // sign has different meanings at different periods. It's a trill for Purcell, and also Buxtehude (I think) but in early 17th cent. English kbd music there is // and /, often written across the stem, and their meanings are not 100% clear. A + over a note can mean a trill in 17th century Germany, but in lilypond it's called \stopped. Anyway, I can't think of a good clear name for the // ornament. I'll just concentrate on learning the graphic markup commands that Phill point to. David G ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Documentation suggestion: "what's new"
The Lilypond documentation has a "News" page, saying what is new since the last _major_ release. But it's not easy to see what is new since the last release. When 2.11.45 appeared, it would be nice to know how it differs from 2.11.44 - then I'd know whether it's worth upgrading. Maybe a full "release history" is available somewhere, and I just didn't find it. If it's not available, would it be possible/desirable, starting from the next release, for the News page to have at the top a paragraph "New in 2.11.46:". And so on for future releases. I guess this would not be a large extra burden, and would be useful. David -- View this message in context: http://www.nabble.com/Documentation-suggestion%3A-%22what%27s-new%22-tp16927662p16927662.html Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com. ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: "insane spring constant" error
Valentin Villenave wrote: > > > I'm getting a weird "insane spring constant" error message with > lilypond 2.11.28 using the following minimal code: > > Yes I get the same message with many of my scores since installing 2.11.28. It took a while to realise that the score was in fact compiling OK despite the alarming message. David -- View this message in context: http://www.nabble.com/%22insane-spring-constant%22-error-tf4157813.html#a11835932 Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com. ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: PSPad: a Lily-friendly editor for Windows
jimbob wrote: > > > Hi there, > I've done a bit of digging, and have found the following under XP: > > > http://www.stevecooper.org/blog wrote: >> >> Registering a new protocol >> >> > Thanks for this. I tried it, but it didn't work. The reason may be that Lilypond sets up a complex chain of events for point-and-click, which sends messages to a browser, then to some Lilypond entity entity (I'm being vague here because I don't understand the details) which responds via two Win32 environment variables specifying the editor to be used. So getting it to work may have to involve that lilypond machinery. David -- View this message in context: http://www.nabble.com/PSPad%3A-a-Lily-friendly-editor-for-Windows-tf4034990.html#a11742029 Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com. ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
figured bass - tiny accidentals
The issue of the accidentals in figured bass being a lot smaller than the figures was raised in July; I don't know that an answer was posted. It's the same in 2.9.18. It's acceptable in constructions like 4# but when the figuring consists only of # (meaning 3#), the disparity in size between the # and the figures is quite ugly, and the accidental can be hard to read unless the figures are made very large. Have I missed way of tweaking it? David -- View this message in context: http://www.nabble.com/figured-bass---tiny-accidentals-tf2318499.html#a6449607 Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com. ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: lyric extender, spacing befored
I've adopted your suggestion, and am sponsoring a fix. The support we get on this list is amazingly good. Thank you so much, Mats & others. David Mats Bengtsson-4 wrote: > > I have also searched and tried different solutions. The only thing I could > come up with was the following ugly workaround: > > \version "2.8.0" > << > \relative c'{c ( e d f g2 ) g } > \addlyrics { \markup { Long \hspace #1.0 } __ word } > >> > > For example, I tried to add a space at the end of the word using > "Long " or Long_ but it seems that LilyPond is "clever" enough to > remove any space at the beginning or end of a syllable. As far as I > can see from the implementation, this spacing is really hard-coded > into the program. Maybe http://lilypond.org/web/sponsor/ is the > best solution? > >/Mats > > David Griffel wrote: > >>Is it possible to tweak lyric-extender to increase horizontal space between >>extender and previous syllable? The default spacing is very tight. Have >>looked through manual, can't find an answer. >> >>David >> >> > > -- > = > Mats Bengtsson > Signal Processing > Signals, Sensors and Systems > Royal Institute of Technology > SE-100 44 STOCKHOLM > Sweden > Phone: (+46) 8 790 8463 > Fax: (+46) 8 790 7260 > Email: [EMAIL PROTECTED] > WWW: http://www.s3.kth.se/~mabe > = > > > > ___ > lilypond-user mailing list > lilypond-user@gnu.org > http://lists.gnu.org/mailman/listinfo/lilypond-user > > -- View this message in context: http://www.nabble.com/lyric-extender%2C-spacing-befored-tf2102325.html#a5895346 Sent from the Gnu - Lilypond - User forum at Nabble.com. ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
lyric extender, spacing befored
Is it possible to tweak lyric-extender to increase horizontal space between extender and previous syllable? The default spacing is very tight. Have looked through manual, can't find an answer. David -- View this message in context: http://www.nabble.com/lyric-extender%2C-spacing-befored-tf2102325.html#a5793691 Sent from the Gnu - Lilypond - User forum at Nabble.com. ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
point & click in 2.9.12 [was: p&c on WinXP via editor]
Following my posting about point and click not working via an editor on WinXP, I've experimented more. It seems that in 2.9.12 on Windows, point and click sometimes works and sometimes doesn't, giving the dialog described in my email of yesterday. It doesn't seem to matter whether the .pdf file is opened by double-clicking the file in Explorer or directly through an editor or via DDE through an editor. I don't see any pattern to when it works and when it doesn't. It happens with the simplest test music such as {a b c d}. I use Acrobat Reader 7.0.8. Maybe it's an acrobat problem? I don't remember having this trouble when using Lilypond 2.8.5. Maybe I was just lucky. David ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
point & click on WinXP via editor
Lilypond 2.9.12 on windows produces a .pdf file with point-and-click information, very useful. Adobe reader shows a tooltip when mouse is over a notehead or text, giving the line/column of the relevant bit of the source file. I haven't learnt how to configure it to open the editor at that point of the file - but that's not crucial given the tooltip. My problem is ... The tooltips appear if the .pdf is opened from an Explorer window, but not when Adobe Reader is opened via an editor such as CrimsonEditor or Textpad (using a user-configured menu item to open an application). What I get when using an editor is the Acrobat Reader cursor changing to a pointing finger, indicating a link, but if I click I get a message "The plug-in required by this 'URI' action is not available. Information about the missing plug-in may be available on Adobe's Web site." I looked on the website, didn't find anything. I do get the tooltips when invoking Acrobat Reader from an editor which allows sending DDE messages to applications. But that editor (TeXnicCenter) doesn't support utf-8, and has other deficiencies for lilypond use (it was designed specifically for Latex). Has anyone got point-and-click to work using an editor like Crimson or Textpad? David ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: winxp - delay and filenames
Frédéric Bron wrote: > >> 2. It seems that lilypond can read files with long names, but it writes >> .ps and .pdf files in 8+4 format > > Never experienced such a problem. I have tried both from Cygwin and from > DOS: it works, > OK, I tried again, and found that long filenames work OK. Possible reasons: 1. I'm now using v. 2.9.?, not 2.8.5; 2. I'm using a different editor to call lilypond; 3. I did something stupid when trying it before. Anyway, thanks for prompting me to try again, best wishes, David -- View this message in context: http://www.nabble.com/winxp---delay-and-filenames-tf2035854.html#a5721874 Sent from the Gnu - Lilypond - User forum at Nabble.com. ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: convert-ly error?
Your workaround did the trick, thanks very much, David on 03/08/2006 12:00 Mats Bengtsson wrote: It's a bug, see http://lists.gnu.org/archive/html/bug-lilypond/2006-07/msg00089.html One workaround is to remove the files lilylib.py and convertrules.py in C:\Program Files\LilyPond\usr\share\lilypond\current\python\ /Mats David Griffel wrote: I just installed 2.9.13 on WinXP after uninstalling 2.8.5 I tried to convert a .ly file, with first line \version "2.8.5" It failed. Here's the ouput from the console window. C:\DOCUME~1\ALLUSE~1\DOCUME~1\_DAVID~1\LILY\CLAV-S~1>convert-ly -e geheimni.ly Traceback (most recent call last): File "C:\PROGRA~1\LilyPond\usr\bin\convert-ly.py", line 39, in ? import lilylib as ly SystemError: NULL result without error in PyObject_Call C:\DOCUME~1\ALLUSE~1\DOCUME~1\_DAVID~1\LILY\CLAV-S~1> My mistake, or a program bug? David ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
convert-ly error?
I just installed 2.9.13 on WinXP after uninstalling 2.8.5 I tried to convert a .ly file, with first line \version "2.8.5" It failed. Here's the ouput from the console window. C:\DOCUME~1\ALLUSE~1\DOCUME~1\_DAVID~1\LILY\CLAV-S~1>convert-ly -e geheimni.ly Traceback (most recent call last): File "C:\PROGRA~1\LilyPond\usr\bin\convert-ly.py", line 39, in ? import lilylib as ly SystemError: NULL result without error in PyObject_Call C:\DOCUME~1\ALLUSE~1\DOCUME~1\_DAVID~1\LILY\CLAV-S~1> My mistake, or a program bug? David ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
weird horizontal-spacing problem
I'm a beginner with lilypond, have learnt a lot from the documentation, but here's a problem I can't solve. I'm writing the score of a piano song, with lyrics between the staves. The music has verbose performance instructions at various points, which I've done like this: f bes \emptyText ees ^ "Immer staerker und lebhafter" f Mostly this works fine. But the text above appears in the last line of the song, and the result is a really ugly large horizontal space in the music, seehttp://www.zen22109.zen.co.uk/screenshot-1.jpg For the .ly file see http://www.zen22109.zen.co.uk/geheim__.ly I've marked the relevant bit with % HERE IS THE PROBLEM I've searched the online documentation, and the only helpful thing I've found is \emptyText, which doesn't work here, and a statement somewhere that lilypond has no way of adjusting horizontal spacing (!!) Comments and attempts to diagnose: * inserting text earlier in the score works perfectly * the problem does not go away if I use \ragged-right, see http://www.zen22109.zen.co.uk/screenshot-2.jpg * the problem goes away if I don't print the lyrics: spacing is then OK * the problem goes away if I comment out the text: % ^ "..". So it's not purely a lyrics problem. * I don't use \lyricsto because the upper stave has some sections in a single voice and other sections in two voices, so there's no unique voice to attach the lyrics to. I hope it's not some really stupid beginner's mistake . . . well actually I hope it _is_, because then it'll be easy to fix. Any help will be much appreciated, David Griffel ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
winxp - delay and filenames
I've just started to use lilypond 2.8.5 installed on WinXP (not using cygwin). I have a couple of simple questions about running under windows. 1. Even with a very small input file, I find a delay of 4-5 seconds after invoking lilypond before I see anything happening. Is this normal, or am I doing something wrong? It's the same whether I type "lilypond filename" in a console window, or invoke lilypond through an editor interface. I've used Latex a lot, which seems to work much faster - but then music processing is more complicated than text. 2. It seems that lilypond can read files with long names, but it writes .ps and .pdf files in 8+4 format. So if I use a filename with more than 8 characters, the output files have apparently different names. Is there any way to get it to output .ps files with the same name as the input file? Thanks in advance for any answers David Griffel ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user