Re: creating images for web pages
On Sun, Aug 7, 2011 at 11:49 PM, Graham Percival wrote: > My strategy: read the Usage manual. There you will find > information about generating pngs directly with lilypond, and also > about using lilypond-book to create an html (plus images) file > directly. > > Cheers, > - Graham > I'm running 2.12.3 (the latest version on a mac) and there is no Usage Manual for this version. I did take a look on-line at the docs for the current revision and saw the Usage Manual, in particular the info on lilypond-book. I give it a whirl and found that the tool assumes a work-flow that I'm not prepared to accept for my current needs. lilypond-book works well and I see it's benefit but it's not for me right now. Nonetheless, thanks for the advice. It was appreciated and it broadened my lilypond knowledge. regards, eds ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: creating images for web pages
Hello, The last version for Mac is the same as for the other platforms : 2.14.2 (at least for stable release). I think you should consider updating, as lot of improvements were made from 2.12.x to 2.14.x. You'll also find the updated documentation more easily. Direct link for mac version can me found here: http://lilypond.org/macos-x.html http://lilypond.org/macos-x.html -- View this message in context: http://old.nabble.com/creating-images-for-web-pages-tp32215117p32218458.html Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
brackets for coloration
When I transcribe facsimiles that use "colored" notes (they look like a whole note or a breve, but they're filled in), I've been transcribing my guess at how the notes translate into modern notation, and footnoting the fact that they're colored. A friend recently pointed out that there's a convention in some modern editions that you use a bracket begin and end before and after the colored notes, but don't extend the bracket over the notes. So it looks similar to an ligature bracket, but doesn't have the line between the begin and the end. I just did a little bit of searching the lilypond documentation, and didn't see an obvious example of how to do this. Can someone provide one? Thanks, -- Laura (mailto:lcon...@laymusic.org, twitter: @serpentplayer) (617) 661-8097 233 Broadway, Cambridge, MA 02139 http://www.laymusic.org/ http://www.serpentpublications.org I’m at the very peak of my decline. Leonard Bernstein ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
New Binary for LilyPond on MacOSX 10.7 available
Hans, Floris et al We have built a new binary for use on 10.7 that we wondered if you can try. http://lilypond.org/~graham/ You can get them from the this link. Could you let the User and/or Dev list know if it does or doesn't resolve your issue? Thanks James )-Original Message- )From: bug-lilypond-bounces+james.lowe=datacore@gnu.org )[mailto:bug-lilypond-bounces+james.lowe=datacore@gnu.org] On )Behalf Of Hans Aberg )Sent: 10 July 2011 09:59 )To: Floris van Manen )Cc: bug-lilyp...@gnu.org bug )Subject: Re: midi2ly fails on OSX 10.6.8 ) )Please cc the list, so that others can engage in the issue. ) )Hans ) ) )On 10 Jul 2011, at 10:55, Floris van Manen wrote: ) )> )> On Jul 10, 2011, at 00:20, Hans Aberg wrote: )> )>> On 9 Jul 2011, at 22:19, Floris van Manen wrote: )>> )>>> L.S. )>>> While trying to launch the midi2ly app, it will fail to start: )>>> )>>> $/Applications/LilyPond.app/Contents/Resources/bin/midi2ly )>>> Traceback (most recent call last): )>>> File "/Applications/LilyPond.app/Contents/Resources/bin/midi2ly", )>>> line 54, in )>>> 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 that the 'import midi' line in the midi2ly script tries to open an )x86_64 binary, though all else is i386. One may try fix it using 'arch -i386' )somewhere. The architecture cane be checked using 'file', and what it is )calling using 'otool'. )> )> )> I use the macport python 2.7 version. )> Apparently the Lilypond dmg distribution package gets confused as )what interpreter to use... )> I believe the distribution package should not address outside its own )area ... )> )> .F )> ) ) )___ )bug-lilypond mailing list )bug-lilyp...@gnu.org )https://lists.gnu.org/mailman/listinfo/bug-lilypond ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: brackets for coloration
Laura Conrad wrote: > > So it looks similar to an ligature bracket, but doesn't have the line > between the begin and the end. > > I just did a little bit of searching the lilypond documentation, and > didn't see an obvious example of how to do this. Can someone provide > one? > > Thanks, > -- > Laura > Hi, do you mean something like this? \version "2.14.2" ligBr = #(define-music-function (parser location music)(ly:music?) #{ \once\override TextSpanner #'(bound-details left text) = \markup \scale #'(-1 . 2) { "¬" } \once\override TextSpanner #'(bound-details right text) = \markup \scale #'(1 . 2) { "¬" } \once\override TextSpanner #'bound-details #'left-broken #'text = ##f \once\override TextSpanner #'bound-details #'right-broken #'text = ##f \once\override TextSpanner #'bound-details #'left #'padding = #'0 \once\override TextSpanner #'bound-details #'right #'padding = #'-1 \once\override TextSpanner #'style = #'none $music #}) ligBrBegin = \startTextSpan ligBrEnd = \stopTextSpan \relative c'' { \ligBr e1\ligBrBegin d e\break f g a\ligBrEnd } Cheers, Harm -- View this message in context: http://old.nabble.com/brackets-for-coloration-tp32219338p32219920.html Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Chord from a variable
On Sunday, August 07, 2011 23:05:21 you wrote: > \version "2.14.2" > > v = { c } > > \musicMap #(lambda (m) > (and (music-has-type m 'event-chord) > (= (length (ly:music-property m 'elements)) 1) > (let ((elt (car (ly:music-property m 'elements > (set! (ly:music-property m 'elements) > (construct-chord-elements >(ly:music-property elt 'pitch) >(ly:music-property elt 'duration) >'() > m) > > \chordmode { \v c:min } Great, that comes very close to what I have been looking for. At least I have a point to start from. Thanks a lot. Cheers, Volker ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Chord from a variable
Hello Chris, > LilyPond is not a macro language. Languages like TeX and the C > preprocessor are, and that sets some people’s expectations: Exactly. Thanks for your explanations, they made things clearer for me. > I suspect you’ll need to get into Scheme to perform that kind of alchemy. Yes, Neil provided the "alchemical" formula. Thanks again, Volker ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: brackets for coloration
> "harm" == harm6 writes: harm> Laura Conrad wrote: >> >> So it looks similar to an ligature bracket, but doesn't have the line >> between the begin and the end. harm> do you mean something like this? Maybe something like that. That particular something doesn't print any bracket-like object at all for me, with lilypond 2.15.8 on ubuntu 10.10. It does print error messages: GNU LilyPond 2.15.8 Processing `testbracket.ly' Parsing... Interpreting music... Preprocessing graphical objects... Finding the ideal number of pages... Fitting music on 1 page... Drawing systems... programming error: invalid UTF-8 string continuing, cross fingers (process:21001): Pango-WARNING **: Invalid UTF-8 string passed to pango_layout_set_text() programming error: FT_Get_Glyph_Name () error: invalid argument continuing, cross fingers programming error: Glyph has no name, but font supports glyph naming. Skipping glyph U+, file /home/newlily/lilypond/usr/share/lilypond/current/fonts/otf/CenturySchL-Ital.otf continuing, cross fingers programming error: invalid UTF-8 string continuing, cross fingers (process:21001): Pango-WARNING **: Invalid UTF-8 string passed to pango_layout_set_text() programming error: FT_Get_Glyph_Name () error: invalid argument continuing, cross fingers programming error: Glyph has no name, but font supports glyph naming. Skipping glyph U+, file /home/newlily/lilypond/usr/share/lilypond/current/fonts/otf/CenturySchL-Ital.otf continuing, cross fingers Layout output to `testbracket.ps'... Converting to `./testbracket.pdf'... success: Compilation successfully completed So if it prints little bracket beginning and endings for you, maybe your fonts are different from mine? -- Laura (mailto:lcon...@laymusic.org, twitter: @serpentplayer) (617) 661-8097 233 Broadway, Cambridge, MA 02139 http://www.laymusic.org/ http://www.serpentpublications.org What a natural history of religion would show is that the human experience of the divine has deep roots in psychoactive plants and fungi. (Karl Marx may have gotten it backward when he called religion the opiate of the people.) Michael Pollan, _The Botany of Desire_ ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: brackets for coloration
> "Laura" == Laura Conrad writes: >>> >>> So it looks similar to an ligature bracket, but doesn't have the line >>> between the begin and the end. harm> do you mean something like this? Laura> Maybe something like that. That particular something doesn't Laura> print any bracket-like object at all for me, with lilypond Laura> 2.15.8 on ubuntu 10.10. It does print error messages: Sorry, forgot to tell emacs to encode the file utf-8. (Don't ask me why that isn't the default.) It does indeed print very nice bracket marks. Thanks. -- Laura (mailto:lcon...@laymusic.org, twitter: @serpentplayer) (617) 661-8097 233 Broadway, Cambridge, MA 02139 http://www.laymusic.org/ http://www.serpentpublications.org The dipsomaniac and the abstainer are not only both mistaken, but they both make the same mistake: They both regard wine as a drug and not as a drink. G. K. Chesterton ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
FW: New Binary for LilyPond on MacOSX 10.7 available
For some reason Hans won't email the group ;) From: Hans Aberg [haber...@telia.com] Sent: 08 August 2011 21:54 To: James Lowe Cc: Floris van Manen Subject: Re: New Binary for LilyPond on MacOSX 10.7 available On 8 Aug 2011, at 20:39, James Lowe wrote: > )> We have built a new binary for use on 10.7 that we wondered if you can > )try. > )> > )> http://lilypond.org/~graham/ > ) > )It works on a developer release (opening the Application and compiling a > )simple example), but I suggest you try on the final, public release. > There is a bug: when showing Info in the Finder, it says version 2.14.2. But $ LilyPond.app/Contents/Resources/bin/lilypond --version GNU LilyPond 2.15.9 Hans ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
lyqi on FC13
Hi, I used to use lyqi in past but haven't recently. I decided to revisit it and downloaded it from github (https://github.com/nsceaux/lyqi). i did get a few compilation errors, primarily variants of: In lyqi:insert-opening-delimiter: lyqi.el:3050:18:Warning: `last-command-char' is an obsolete variable (as of Emacs at least 19.34); use `last-command-event' instead. and an expected: In end of data: lyqi.el:6078:1:Warning: the function `do-applescript' is not known to be defined. The library appears to load in emacs however but none of the keys correspond to what it is supposed to. Key 'd' gives an 'f' in the input and the notes appear to be scattered all over the keyboard. I'm on a MacBook Pro 5,2 and was using the builting keyboard and I'm running Fedora 13 and Emacs 23.2.1 I would really like to get lyqi working, so any hints are welcome. Thanks, /Henrik ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: New Binary for LilyPond on MacOSX 10.7 available
On 8 Aug 2011, at 23:11, James Lowe wrote: > For some reason Hans won't email the group ;) So then don't forward my mail to the lists! - The reason is that I can't verify it, so I do not want unreliable information spread around. Wait until you find someone who can do it. Hans ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Why can't I \override TieColumn #'tie-configuration only \once?
Hi list, I know that I can tweak the ties in a chord to my liking by overriding #'tie-configuration like in the following (intentionally useless) example: \relative c' { %\once \override TieColumn #'tie-configuration = #'( ( 8 . -1) ( 3 . 1 ) ( -3 . 1) ) 2~ q | ~ q } This doesn't really make sense musically but works as I expect it to. But if I uncomment the second line and add the \once clause I'd expect that only the first tie (c major) is engraved according to my TieColumn. But it seems that instead no manual changes are applied at all, both ties are printed "normal". The override doesn't take place at all when preceded by \once. Is this expected behavior, am I missing something? Or should this be considered a bug? Best Urs ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Why can't I \override TieColumn #'tie-configuration only \once?
Urs Liska writes: > Hi list, > > I know that I can tweak the ties in a chord to my liking by overriding > #'tie-configuration like in the following (intentionally useless) > example: > > \relative c' { > %\once > \override TieColumn #'tie-configuration = > #'( ( 8 . -1) > ( 3 . 1 ) > ( -3 . 1) > ) > 2~ q | > ~ q > } > > This doesn't really make sense musically but works as I expect it to. > But if I uncomment the second line and add the \once clause I'd expect > that only the first tie (c major) is engraved according to my > TieColumn. But it seems that instead no manual changes are applied at > all, both ties are printed "normal". The override doesn't take place > at all when preceded by \once. > > Is this expected behavior, am I missing something? > Or should this be considered a bug? The tie configuration at the time of the tie ending counts, so try \relative c' { 2~ \once \override TieColumn #'tie-configuration = #'( ( 8 . -1) ( 3 . 1 ) ( -3 . 1) ) q | ~ q } -- David Kastrup ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Why can't I \override TieColumn #'tie-configuration only \once?
David Kastrup wrote: > > The tie configuration at the time of the tie ending counts, so try > \relative c' { > 2~ > \once > \override TieColumn #'tie-configuration = > #'( ( 8 . -1) > ( 3 . 1 ) > ( -3 . 1) > ) >q | > ~ q > } > > -- > David Kastrup > Yes. But the Notation Reference demonstrates: \relative c' { 2~ \override TieColumn #'tie-configuration = #'((0.0 . 1) (-2.0 . 1) (-4.0 . 1)) 2~ } And with \laissezVibrer or \repeatTie it works, using this syntax. Setting \once gives a result as expected. \relative c' { 2 ~ q \once \override LaissezVibrerTieColumn #'tie-configuration = #'(( 8 . -1)( 3 . 1 )( -3 . 1)) 2\laissezVibrer \laissezVibrer } \relative c' { 2 ~ q \once \override RepeatTieColumn #'tie-configuration = #'(( 8 . -1)( 3 . 1 )( -3 . 1)) 2\repeatTie \repeatTie } Cheers, Harm -- View this message in context: http://old.nabble.com/Why-can%27t-I-%5Coverride-TieColumn--%27tie-configuration-only-%5Conce--tp3279p3455.html Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Why can't I \override TieColumn #'tie-configuration only \once?
harm6 writes: > David Kastrup wrote: >> >> The tie configuration at the time of the tie ending counts, so try >> \relative c' { >> 2~ >> \once >> \override TieColumn #'tie-configuration = >> #'( ( 8 . -1) >> ( 3 . 1 ) >> ( -3 . 1) >> ) >>q | >> ~ q >> } >> >> -- >> David Kastrup >> > > Yes. But the Notation Reference demonstrates: > > \relative c' { > 2~ > \override TieColumn #'tie-configuration = > #'((0.0 . 1) (-2.0 . 1) (-4.0 . 1)) > 2~ > } Where is your point? It would still work after the next chord. > And with \laissezVibrer or \repeatTie it works, using this syntax. Setting > \once gives a result as expected. > > \relative c' { > 2 ~ q > \once > \override LaissezVibrerTieColumn #'tie-configuration = > #'(( 8 . -1)( 3 . 1 )( -3 . 1)) >2\laissezVibrer \laissezVibrer > } > > \relative c' { > 2 ~ q > \once > \override RepeatTieColumn #'tie-configuration = > #'(( 8 . -1)( 3 . 1 )( -3 . 1)) >2\repeatTie \repeatTie > } So they work differently. What is the problem? -- David Kastrup ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Why can't I \override TieColumn #'tie-configuration only \once?
On Di., 9. Aug. 2011 01:34:02 CEST, David Kastrup wrote: > harm6 writes: > > Yes. But the Notation Reference demonstrates: > > > > \relative c' { > > 2~ > > \override TieColumn #'tie-configuration = > > #'((0.0 . 1) (-2.0 . 1) (-4.0 . 1)) > > 2~ > > } > > Where is your point? It would still work after the next chord. The example gives the impression that it needs to be set before the tie. I would also expect this, so I would intuitively also place the \once\override before the tie and wonder why it doesn't work. Cheers, Reinhold ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: lyqi on FC13
On 11-08-08 03:33 PM, Henrik Frisk wrote: Hi, I used to use lyqi in past but haven't recently. I decided to revisit it and downloaded it from github (https://github.com/nsceaux/lyqi). i did get a few compilation errors, primarily variants of: In lyqi:insert-opening-delimiter: lyqi.el:3050:18:Warning: `last-command-char' is an obsolete variable (as of Emacs at least 19.34); use `last-command-event' instead. and an expected: In end of data: lyqi.el:6078:1:Warning: the function `do-applescript' is not known to be defined. The library appears to load in emacs however but none of the keys correspond to what it is supposed to. Key 'd' gives an 'f' in the input and the notes appear to be scattered all over the keyboard. I'm on a MacBook Pro 5,2 and was using the builting keyboard and I'm running Fedora 13 and Emacs 23.2.1 I would really like to get lyqi working, so any hints are welcome. Thanks, /Henrik ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user I think your best bet, Henrik, would be to get in touch with Nicolas Sceaux, the author of lyqui. His email, from his home page, is nicolas.sce...@free.fr cheers, Colin Campbell -- The human race has one really effective weapon, and that is laughter. -- Mark Twain ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
creating images for web pages
Hello: I'm trying to create images of lilypond output to be included in web pages. I've been able to do it but the process is extremely labour intensive and I've got to believe there's a more efficient way. Can someone please comment on ways to improve my process or suggest a different strategy? Here's what I do currently: (1) generate the typeset music for an 8.5in x 11in page to get an idea of the size of the resulting typeset music (currently, the music is typically one or two measures long and consists of about a dozen notes) (2) Add a \paper{ ... } block to the source file to redefine the page size to be the smallest page size to fit the typeset music. This is a trial-and-error method where I fiddle with the page size parameters until I get an image with the an acceptable amount of white space around the image. Here's an example showing the parameters I use: \paper{ paper-width = 7\cm paper-height = 2.54\cm top-margin = 0\mm page-top-space = 0\mm left-margin = 0\mm line-width = 7\cm } Any parameters not present (eg bottom-margin) were removed because brute-force tests showed they didn't impact on the size of the paper. (4) Add a header block to remove lilypond's default tag line (5) Regenerate the typeset music which produces a ps and pdf file of the correct size (typically about 3in to 4in wide by 1in high) (6) use ghostscript to convert the pdf/ps file to a bmp file with the following command line: gs -sDEVICE=bmpmono -r300 -dGraphicsAlphaBits=4 -o filename.bmp lilypondMusic.pdf (7) The End; the resulting file, filename.bmp, is now included in a web page. The most time consuming part of the process are figuring out the size of the typeset image. If lilypond can be coerced into producing the dimensions then that would save me considerable time. Of course, my problems here are that I don't grok lilypond, scheme, or ghostscipt enough to know any better method than the brute force method I've described above. Any help will be greatly appreciated. regards, eds ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user