Re: Abbreviations
Am 03.04.2015 um 20:28 schrieb Mattes: [...] Well, think of it like this (slightly oversimplified): 'tuplet' is a lilypond function, '\' will _call_ this function. Let's quickly check that: guile> tuplet #> If you do '#(define t tuplet)' 't' will have the same value as 'tuplet': guile> (define t tuplet) guile> t #> If you write: t = \tuplet 't' would have the value of calling 'tuplet' . HTH RalfD Hey, this is a concise yet brilliant explanation, thanks for sharing! Marc ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Abbreviations
Am 03.04.2015 um 20:28 schrieb Mattes: Am Freitag, 03. April 2015 20:15 CEST, Urs Liska schrieb: Am 03.04.2015 um 19:45 schrieb Kevin Barry: On Fri, Apr 3, 2015 at 2:23 PM, Urs Liska mailto:u...@openlilylib.org>> wrote: I'll note that for explaining in a blog post because it seems like a good example for demonstrating the relation between Scheme and LilyPond variables and the role of symbols. Maybe it fits into a post I've just started to plan (explaining what "#(define-music-function" actually means). I would be very interested to read it. I have figured out over time what kind of things tend to work and which things don't (when it comes to variables and substitution) but I don't always understand why, for example `t = \tuplet' doesn't work, but `#(define t tuplet)' does. Well, think of it like this (slightly oversimplified): 'tuplet' is a lilypond function, '\' will _call_ this function. Let's quickly check that: guile> tuplet #> If you do '#(define t tuplet)' 't' will have the same value as 'tuplet': guile> (define t tuplet) guile> t #> If you write: t = \tuplet 't' would have the value of calling 'tuplet' . HTH RalfD I've started writing the post today, and it may well be that it fits in. But I'll have to figure out if I've understood it fully myself (or if I manage to do so during the process of writing ...). If it doesn't fit it would also be a good topic for an individual post. Nothing bad with having some shorter posts in between ... Best Urs Along that line I noticed that t = #tuplet works too. Urs ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Abbreviations
* 2015-04-03 10:25 +0200 Andrew Bernard : > Can I make a simple abbreviation for input? For example \t instead of \tuplet? Since your question already got answered directly, I hope I can add a piece of advice without sounding too destructive: Don't do it. Redefining standard commands just to save typing is a terrible idea. This comes from experience not specific to LilyPond only. I still "fondly" remember the times when I had to work with LaTeX files prepared by wise guys who thought it was a brilliant idea to redefine those pesky \begin{equation} and \end{equation} commands to \be and \ee. Besides forcing me to get used to their nonstandard style and being, IMO, considerably harder to read, this completely outsmarted syntax highlighting and preview generation in my editor. Apropos outsmarting tools: with LilyPond source code in particular, you risk doing that to convert-ly, which works with textual substitutions. For example, I am thinking of the relatively recent \times -> \tuplet transition: while your code would not have broken with a redefinition as above in place, you would have cut the way to getting updated to more modern syntax. The effects on collaboration with other humans matter more, however. You might not consider this relevant if you are currently the only one reading and writing your code, yet, again from experience: one, you never know, some collaboration may come along sooner that you expect; two, you may want to ask questions or report bugs on these mailing lists, which also involves presenting parts of your code to others; and finally, three: you become a stranger to your own code faster than you think. Say your priorities shift, you don't work with LilyPond for two or three years; getting used to the syntax again will then be tedious enough without having to relearn an additional layer of indirection you piled up on top of it. To save typing, I suggest using the capabilities of your editor. Many of those allow to define keyboard shortcuts or provide other mechanisms for inserting commonly used pieces of text conveniently. If nothing else is available, you can still enter a short placeholder string while typing and then use search-and-replace before you compile. Best regards, RS ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Abbreviations
Am 04.04.2015 um 12:37 schrieb Reedmace Star: * 2015-04-03 10:25 +0200 Andrew Bernard : Can I make a simple abbreviation for input? For example \t instead of \tuplet? Since your question already got answered directly, I hope I can add a piece of advice without sounding too destructive: Don't do it. Redefining standard commands just to save typing is a terrible idea. This comes from experience not specific to LilyPond only. I still "fondly" remember the times when I had to work with LaTeX files prepared by wise guys who thought it was a brilliant idea to redefine those pesky \begin{equation} and \end{equation} commands to \be and \ee. Besides forcing me to get used to their nonstandard style and being, IMO, considerably harder to read, this completely outsmarted syntax highlighting and preview generation in my editor. Apropos outsmarting tools: with LilyPond source code in particular, you risk doing that to convert-ly, which works with textual substitutions. For example, I am thinking of the relatively recent \times -> \tuplet transition: while your code would not have broken with a redefinition as above in place, you would have cut the way to getting updated to more modern syntax. The effects on collaboration with other humans matter more, however. You might not consider this relevant if you are currently the only one reading and writing your code, yet, again from experience: one, you never know, some collaboration may come along sooner that you expect; two, you may want to ask questions or report bugs on these mailing lists, which also involves presenting parts of your code to others; and finally, three: you become a stranger to your own code faster than you think. Say your priorities shift, you don't work with LilyPond for two or three years; getting used to the syntax again will then be tedious enough without having to relearn an additional layer of indirection you piled up on top of it. To save typing, I suggest using the capabilities of your editor. Many of those allow to define keyboard shortcuts or provide other mechanisms for inserting commonly used pieces of text conveniently. If nothing else is available, you can still enter a short placeholder string while typing and then use search-and-replace before you compile. That seems like valuable advice. Thank you. Simon ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Abbreviations
> Don't do it. Redefining standard commands just to save typing is a > terrible idea. It depends. Especially \tuplet is awfully long, and it makes scores with a lot of triplets extremely hard to read. > Apropos outsmarting tools: with LilyPond source code in particular, > you risk doing that to convert-ly, which works with textual > substitutions. For example, I am thinking of the relatively recent > \times -> \tuplet transition: while your code would not have broken > with a redefinition as above in place, you would have cut the way to > getting updated to more modern syntax. This is avoidable. If you write T = #(define-music-function (parser location music) (ly:music?) #{ \tuplet 3/2 $music #} ) convert-ly will handle it for you, too. > To save typing, I suggest using the capabilities of your editor. > Many of those allow to define keyboard shortcuts or provide other > mechanisms for inserting commonly used pieces of text conveniently. > If nothing else is available, you can still enter a short > placeholder string while typing and then use search-and-replace > before you compile. There's still the legibility issue, which I consider more important. However, I know that many people think differently :-) Werner ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Abbreviations
On Sat, 04 Apr 2015 12:55:51 +0200 (CEST) Werner LEMBERG wrote: > It depends. Especially \tuplet is awfully long, and it makes scores > with a lot of triplets extremely hard to read. Maybe we can conceive of a good, intuitive and short alternative notation for triplets (and/or tuplets)? E.g. (just a wild shot) ⦓ c8 a f ⦔ or ⸦ c8 a f ⸧ ? -- Johan ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Abbreviations
Am 04.04.2015 um 14:13 schrieb Johan Vromans: On Sat, 04 Apr 2015 12:55:51 +0200 (CEST) Werner LEMBERG wrote: It depends. Especially \tuplet is awfully long, and it makes scores with a lot of triplets extremely hard to read. Maybe we can conceive of a good, intuitive and short alternative notation for triplets (and/or tuplets)? E.g. (just a wild shot) ⦓ c8 a f ⦔ or ⸦ c8 a f ⸧ ? Intuitive is a keyword here: both notations you suggest will be difficult to type for most – the first one isn’t even supported by some good fonts I just tried. Second, it represents an infix notation, which is deprecated. Plus, \tuplet is a music function and a syntax like { c8\{ a f\} } (as an example for postfix syntax) would be difficult in technical terms, I think. But to be available as default, it should be in some way characteristic of a tuplet, which is difficult to achieve using such short identifiers. On the grounds of snippets or stylesheets, it’s of course well possible to use something like %% \version "2.19.17" "\\*" = #(define-music-function (parser location mus) (ly:music?) #{ \tuplet 3/2 4 $mus #}) \relative { \* { c'8 d e f g16 a b8 } c2 } %% But I think such a solution isn’t really appropriate for the codebase, isn’t it? It would contradict general custom. Yours, Simon ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Abbreviations
Am 04.04.2015 um 18:56 schrieb Simon Albrecht: Am 04.04.2015 um 14:13 schrieb Johan Vromans: On Sat, 04 Apr 2015 12:55:51 +0200 (CEST) Werner LEMBERG wrote: It depends. Especially \tuplet is awfully long, and it makes scores with a lot of triplets extremely hard to read. Maybe we can conceive of a good, intuitive and short alternative notation for triplets (and/or tuplets)? E.g. (just a wild shot) ⦓ c8 a f ⦔ or ⸦ c8 a f ⸧ ? Intuitive is a keyword here: both notations you suggest will be difficult to type for most – the first one isn’t even supported by some good fonts I just tried. Second, it represents an infix notation, which is deprecated. Plus, \tuplet is a music function and a syntax like { c8\{ a f\} } (as an example for postfix syntax) would be difficult in technical terms, I think. But to be available as default, it should be in some way characteristic of a tuplet, which is difficult to achieve using such short identifiers. +1 On the grounds of snippets or stylesheets, it’s of course well possible to use something like %% \version "2.19.17" "\\*" = #(define-music-function (parser location mus) (ly:music?) #{ \tuplet 3/2 4 $mus #}) \relative { \* { c'8 d e f g16 a b8 } c2 } %% But I think such a solution isn’t really appropriate for the codebase, isn’t it? It would contradict general custom. +1 I think there is a way using \scaleDurations and LilyPond's beam grouping mechanism to enter consecutive eighth note triplets as normal eighth notes, but I don't find the place where this is documented. Marc Yours, Simon ___ 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
Grace notes causes clef change to occur after bar
Like the title says. What is strange is that the clef change isn't even on the same staff yet the grace note causes it to be placed incorrectly. In the actual music that I am encountering this problem, there is a line break which will cause a problem with reading because the reader won't expect the change. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Grace notes causes clef change to occur after bar
I sent that prematurely, whoops. Here's the code: \version "2.18.2" \language "english" \new PianoStaff << \new Staff { \clef bass e4 e e e \clef treble | e' e' e' e' } \new Staff = "down" { \clef bass f8-. r f-. r f-. r f-. r | \acciaccatura c,8-. c1-- | } >> On Sat, Apr 4, 2015 at 2:12 PM, Nolan Winter wrote: > Like the title says. What is strange is that the clef change isn't even on > the same staff yet the grace note causes it to be placed incorrectly. In > the actual music that I am encountering this problem, there is a line break > which will cause a problem with reading because the reader won't expect the > change. > > ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Scaling Scores
Dear List, I apologize if this is a total newbie question, but I am struggling with scaling scores. Sometimes I want really big music to put on presentation slides. Other times I want to fit a lot of music on one page. Doing something like: \layout { #(layout-set-staff-size 40) } within a score block produces freakishly big notes but doesn't scale the actual staff accordingly. Likewise, \layout { #(layout-set-staff-size 5) } produces freakishly small notes but again doesn't scale the staff to match. What is the best way to scale the music so that all elements remain in a pleasing proportion? Thank you, Pete H. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
RE: Grace notes causes clef change to occur after bar
Nolan: Place an “\acciaccatura s8” after the clef change and before the “e.” See below. Mark From: lilypond-user-bounces+carsonmark=ca.rr@gnu.org [mailto:lilypond-user-bounces+carsonmark=ca.rr@gnu.org] On Behalf Of Nolan Winter Sent: Saturday, April 04, 2015 11:13 AM To: lilypond-user@gnu.org Subject: Re: Grace notes causes clef change to occur after bar I sent that prematurely, whoops. Here's the code: \version "2.18.2" \language "english" \new PianoStaff << \new Staff { \clef bass e4 e e e \clef treble | \acciaccatura s8 e' e' e' e' } \new Staff = "down" { \clef bass f8-. r f-. r f-. r f-. r | \acciaccatura c,8-. c1-- | } >> On Sat, Apr 4, 2015 at 2:12 PM, Nolan Winter wrote: Like the title says. What is strange is that the clef change isn't even on the same staff yet the grace note causes it to be placed incorrectly. In the actual music that I am encountering this problem, there is a line break which will cause a problem with reading because the reader won't expect the change. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: parts for natural horns and trumpets
On Wed, Apr 1, 2015 at 12:22 AM, Urs Liska wrote: > You may have a look at > https://github.com/openlilylib/openlilylib/tree/master/editorial-tools/auto-transpose > That's pretty awesome. Unfortunately it doesn't behave like I'd expect by default. Here's an example: \version "2.19.15" \include "auto-transpose.ily" music = \relative c' { \transposition f c1 | } \score { \new Staff \with { \autoTranspose } \music } Playing a middle C with an F transposition I'd expect the output to be a fifth down instead it results in a fifth up. There are two variable which control this: 'music-concert-pitch' - is the music entered in concert pitch, and 'print-concert-pitch' - should the output music be concert pitch (as opposed to the transposition pitch). By default it's set to the music being entered in concert pitch and to output the music in the transposed pitch. This is the opposite of what lilypond's 'transposition' means. Switching these around works great, but the default seems wrong. Anyway, this is a _very_ useful function. Functionality like this should be part of liliypond itself. Thanks. -Jay ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Scaling Scores
2015-04-04 20:12 GMT+02:00 Peter Heisen : > Dear List, > > I apologize if this is a total newbie question, but I am struggling with > scaling scores. Sometimes I want really big music to put on presentation > slides. Other times I want to fit a lot of music on one page. Doing > something like: > > \layout { #(layout-set-staff-size 40) } > > within a score block produces freakishly big notes but doesn't scale the > actual staff accordingly. Likewise, > > \layout { #(layout-set-staff-size 5) } > > produces freakishly small notes but again doesn't scale the staff to match. > What is the best way to scale the music so that all elements remain in a > pleasing proportion? > > Thank you, > > Pete H. Hi Pete, please always state the version you use, 'layout-set-staff-size' is partly improved in latest devel-versions. Thanks David Kastrup. Use set-global-staff-size or http://lsr.di.unimi.it/LSR/Item?id=862 may be of some help. Cheers, Harm ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Scaling Scores
Sorry about that, Harm. \version "2.18.2". On Sat, Apr 4, 2015 at 12:16 PM, Thomas Morley wrote: > 2015-04-04 20:12 GMT+02:00 Peter Heisen : > > Dear List, > > > > I apologize if this is a total newbie question, but I am struggling with > > scaling scores. Sometimes I want really big music to put on presentation > > slides. Other times I want to fit a lot of music on one page. Doing > > something like: > > > > \layout { #(layout-set-staff-size 40) } > > > > within a score block produces freakishly big notes but doesn't scale the > > actual staff accordingly. Likewise, > > > > \layout { #(layout-set-staff-size 5) } > > > > produces freakishly small notes but again doesn't scale the staff to > match. > > What is the best way to scale the music so that all elements remain in a > > pleasing proportion? > > > > Thank you, > > > > Pete H. > > Hi Pete, > > please always state the version you use, 'layout-set-staff-size' is > partly improved in latest devel-versions. Thanks David Kastrup. > > Use > set-global-staff-size > or > http://lsr.di.unimi.it/LSR/Item?id=862 > may be of some help. > > Cheers, > Harm > ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Lilyjazz from a blind user
Hello everyone, I am attempting to use lilypond to write jazz charts for a small jazz combo, and possibly a jazz trombone ensemble. I downloaded and installed the lilyjazz fonts from fonts.openlilylib.org. My question is pertaining to the sample PDF documents that came with the zip file. Is there a way I could get the lilypond source files that these documents derived from? If that is not available, I really just want to know the proper way of notating cords/changes. I read the section in the notation reference about court names, however, how does one for example write "A13 sharp 11"? Sorry for the long post, thank you for any answers that would point me in the right direction. Daniel Contreras ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Using lilypond examples in an essay or text document
subject line says it all, I want to use Lily Pond in a text document. Can someone point me in the right direction to achieve this? Thanks a bunch I am using version 2.18. Daniel Contreras ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Using lilypond examples in an essay or text document
Am 4. April 2015 21:41:17 MESZ, schrieb Daniel Contreras : >subject line says it all, I want to use Lily Pond in a text document. >Can someone point me in the right direction to achieve this? Thanks a >bunch I am using version 2.18. Ehm, and what program to produce the text document? >Daniel Contreras >___ >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: Using lilypond examples in an essay or text document
> On 4 Apr 2015, at 21:10, Urs Liska wrote: > > > > Am 4. April 2015 21:41:17 MESZ, schrieb Daniel Contreras > : >> subject line says it all, I want to use Lily Pond in a text document. >> Can someone point me in the right direction to achieve this? Thanks a >> bunch I am using version 2.18. > > Ehm, and what program to produce the text document? > >> Daniel Contreras >> ___ >> 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 There is a plugin for OpenOffice called OOoLilypond which I used a couple of years ago. I can’t remember all the details of installation, etc, but essentially you create an ordinary OpenOffice Document, type in your text, and then switch over to the plugin and key in (or copy-and-paste) a fragment of lilypond code. It does a very nice job of mixing text and engraved music. Michael ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Using lilypond examples in an essay or text document
On 2015-04-04 02:20 PM, Michael Hendry wrote: On 4 Apr 2015, at 21:10, Urs Liska wrote: Am 4. April 2015 21:41:17 MESZ, schrieb Daniel Contreras : subject line says it all, I want to use Lily Pond in a text document. Can someone point me in the right direction to achieve this? Thanks a bunch I am using version 2.18. Ehm, and what program to produce the text document? Daniel Contreras ___ 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 There is a plugin for OpenOffice called OOoLilypond which I used a couple of years ago. I can’t remember all the details of installation, etc, but essentially you create an ordinary OpenOffice Document, type in your text, and then switch over to the plugin and key in (or copy-and-paste) a fragment of lilypond code. It does a very nice job of mixing text and engraved music. Also, Lyx is quite easy to use, providing a good GUI to LaTex with a well-developed LilyPond environment. Cheers, Colin -- I've learned that you shouldn't go through life with a catcher's mitt on both hands. You need to be able to throw something back. -Maya Angelou, poet (1928- ) ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Using lilypond examples in an essay or text document
On 05/04/2015 05:41, Daniel Contreras wrote: subject line says it all, I want to use Lily Pond in a text document. Can someone point me in the right direction to achieve this? Thanks a bunch I am using version 2.18. Lyx and Scribus both allow Lilypond source to be included in frames within a document. Lyx actually installs with a sample lilypond.lyx document, demonstrating how it works. Nick ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Using lilypond examples in an essay or text document
Am 04.04.2015 um 22:20 schrieb Michael Hendry: On 4 Apr 2015, at 21:10, Urs Liska wrote: Am 4. April 2015 21:41:17 MESZ, schrieb Daniel Contreras : subject line says it all, I want to use Lily Pond in a text document. Can someone point me in the right direction to achieve this? Thanks a bunch I am using version 2.18. Ehm, and what program to produce the text document? Daniel Contreras ___ 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 There is a plugin for OpenOffice called OOoLilypond which I used a couple of years ago. I can’t remember all the details of installation, etc, but essentially you create an ordinary OpenOffice Document, type in your text, and then switch over to the plugin and key in (or copy-and-paste) a fragment of lilypond code. It does a very nice job of mixing text and engraved music. Michael At a more general level: What kind of scores do you want to use in the text document: "music examples" (i.e. single system excerpts), scores (i.e. multi system or even full-page) or inline within paragraphs? Of course you can try to insert PDF, EPS, SVG or PNG files in text documents, then the option -dpreview may be of use for you (creating a cropped file with only the first system), or using \include "lilypond-book-preamble.ly", which will produce cropped PDF files for each system of your score. HTH Urs ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
lilypond-book, snippet inside tabular
I'm trying to put lilypond snippets inside a tabular environment in LaTeX, but running lilypond-book on the file seems to ignore the lilypond blocks. I'm guessing that lilypond-book just ignores the tabular environment as a whole. Anyone have a workaround for using lilypond-book? otherwise I'll revert to my initial thought: running lilypond (to produce the snippets) and latex (to produce the doc) separately. Here's the file (many of the usepackages are not needed) \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{graphicx} \usepackage{tabularx} \usepackage{enumerate} \usepackage{units} \usepackage[section]{placeins} \usepackage{hyperref} \usepackage[cm]{fullpage} \usepackage{parcolumns} \usepackage[table]{xcolor} \begin{document} \def\arraystretch{5.0} \arrayrulecolor{gray!20} \begin{tabular}[h]{ p{0.2\textwidth} p{0.75\textwidth} } %\vfill \huge\textbf{Intro} & \vfill \\ \huge\textbf{ Intro \vfill } & \begin{lilypond} \relative c' { c4 d e f g} \end{lilypond} \\ \hline \huge\textbf{ Verse \vfill } & B \\ \hline \huge\textbf{ Chorus \vfill } & B \\ \hline \huge\textbf{ Verse \vfill } & B \\ \hline \huge\textbf{ Chorus \vfill } & B \\ \hline \end{tabular} \def\arraystretch{1.0} \end{document} ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
RE:Using lilypond examples in an essay or text document
I would suggest just write the document in lilypond... that's what i do. HTH Stephen ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: lilypond-book, snippet inside tabular
dl.mcnam...@comcast.net: > I'm trying to put lilypond snippets inside a tabular environment in LaTeX, > but > running lilypond-book on the file seems to ignore the lilypond blocks. > I'm guessing that lilypond-book just ignores the tabular environment as a > whole. > > Anyone have a workaround for using lilypond-book? otherwise I'll revert to my > initial thought: > running lilypond (to produce the snippets) and latex (to produce the doc) > separately. ... You can make lilypond generate eps's for each systems, which you then can \includegraphics into the tex file. I do that by using \include "lilypond-book-preamble.ly" and $(LP) --ps -dbackend=eps $< For a I.ly, it will generate I-xx.eps (where xx is numbers 1.., one for each system) and I-systems.tex, which contains the needed \includedgraphics commands, Then I simply \input{I-systems.tex} in my latex file. Have a look at http://turkos.aspodata.se/git/musik/WAMozart/requiem/ /// The above is basically a manually run lilypond-book thing. Regards, /Karl Hammar --- Aspö Data Lilla Aspö 148 S-742 94 Östhammar Sweden +46 173 140 57 ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Scaling Scores
Using version 2.18.2, I found that "#(set-global-staff-size 10)" inserted at the book level scales everything on the page nicely. Ditto for a big size like 40. But "\score{ … \layout { #(layout-set-staff-size 10) } }" has unpredictable results. The documentation at http://www.lilypond.org/doc/v2.18/Documentation/notation-big-page#setting-the-staff-size doesn't make a distinction. I hadn't thought to try them both. Thanks for the suggestion, Harm. On Sat, Apr 4, 2015 at 12:31 PM, Peter Heisen wrote: > Sorry about that, Harm. \version "2.18.2". > > On Sat, Apr 4, 2015 at 12:16 PM, Thomas Morley > wrote: > >> 2015-04-04 20:12 GMT+02:00 Peter Heisen : >> > Dear List, >> > >> > I apologize if this is a total newbie question, but I am struggling with >> > scaling scores. Sometimes I want really big music to put on >> presentation >> > slides. Other times I want to fit a lot of music on one page. Doing >> > something like: >> > >> > \layout { #(layout-set-staff-size 40) } >> > >> > within a score block produces freakishly big notes but doesn't scale the >> > actual staff accordingly. Likewise, >> > >> > \layout { #(layout-set-staff-size 5) } >> > >> > produces freakishly small notes but again doesn't scale the staff to >> match. >> > What is the best way to scale the music so that all elements remain in a >> > pleasing proportion? >> > >> > Thank you, >> > >> > Pete H. >> >> Hi Pete, >> >> please always state the version you use, 'layout-set-staff-size' is >> partly improved in latest devel-versions. Thanks David Kastrup. >> >> Use >> set-global-staff-size >> or >> http://lsr.di.unimi.it/LSR/Item?id=862 >> may be of some help. >> >> Cheers, >> Harm >> > > ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: lilypond-book, snippet inside tabular
On 05/04/2015 07:28, dl.mcnam...@comcast.net wrote: I'm trying to put lilypond snippets inside a tabular environment in LaTeX, but running lilypond-book on the file seems to ignore the lilypond blocks. I'm guessing that lilypond-book just ignores the tabular environment as a whole. Anyone have a workaround for using lilypond-book? otherwise I'll revert to my initial thought: running lilypond (to produce the snippets) and latex (to produce the doc) separately. Have a look at Lyx. Support for lilypond-book is mentioned here: http://wiki.lyx.org/LyX/NewInLyX20#lb, and there is a sample lyx document with lilypond code that is installed in the examples folder when you install Lyx. Alternatively, with Scribus you can certainly have Lilypond code in a frame in a table, as I've done that in the past, but Scribus doesn't use LaTeX - though you can embed LaTeX code in a Scribus frame. Nick ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
align text with rests horizontally
I'm trying to put text below rests to indicate what to do for the next note. I tried 2 ways to align text with rests but the text is not aligned horizontally. Any other way to try? Here is a sample: http://lilybin.com/0krmre/1 -- View this message in context: http://lilypond.1069038.n5.nabble.com/align-text-with-rests-horizontally-tp174079.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: guide / shift finger
that's nice but you may want to look at the fingeringSlideEngraver http://lists.gnu.org/archive/html/lilypond-user/2014-02/txt3tFIgdpIld.txt -- View this message in context: http://lilypond.1069038.n5.nabble.com/guide-shift-finger-tp174025p174080.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: Using lilypond examples in an essay or text document
Org-mode is a pretty remarkable way to do this. You can embed LilyPond source code directly into the document's markup. Then, when you export to LaTeX, it can compile the LP snippets automatically and insert them into the result. begin sample org file #+PROPERTY: header-args:lilypond :prologue \header{tagline=##f} #+TITLE: Org-mode, LaTeX, LilyPond #+DATE: <2015-04-05 Sun> #+AUTHOR: James Harkins #+LATEX_CLASS: article #+DATE: \today If you're into What You See Is What You Mean, org-mode supports LilyPond code blocks: #+BEGIN_SRC lilypond :file demo.eps :exports results \relative c' { c4 e g e f d b g } #+END_SRC And even automatically trims the result! end sample org file The main drawback is that it's ideal for people who already use Emacs, but if you don't use Emacs, then you would have to learn Emacs. hjh ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Scaling Scores
Peter, you wrote Saturday, April 04, 2015 11:51 PM > Using version 2.18.2, I found that "#(set-global-staff-size 10)" inserted > at the book level scales everything on the page nicely. Ditto for a big > size like 40. But "\score{ … \layout { #(layout-set-staff-size 10) } }" has > unpredictable results. The documentation at > http://www.lilypond.org/doc/v2.18/Documentation/notation-big-page#setting-the-staff-size > doesn't make a distinction. There is a footnote on that page: > Known issues and warnings > > layout-set-staff-size does not change the distance between the staff lines. Maybe this is the issue that affected you. Perhaps that comment should be moved to the main text. Trevor ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user