Re: Fwd: Justify to both sides
On 2017-03-18 10:28 AM, CieMaKat . wrote: Hello everyone! I would like to place custom header for piece, i.e.: hymn number and authors of music and lyrics aligned to both sides of the page: Obraz w treści 2 I tried to do it with fill-line, but then part of the /"Lyrics author" /goes off the page. Please check a result of the following code: \version "2.18.0" \score { \new Voice { c' } \addlyrics { Al } \header { piece = \markup { \line { \lower #2.4 \fontsize #8 \bold "105 " } \column { \bold "Hymn Title" \fill-line { \line { Melody author } \line { Lyrics author } } } } } } How can I fix that? I believe the Notation Reference, at section 3.2.2 Custom titles, headers and footers, will give you wqhat you need. The starting point will likely involve creating a scoreTitleMaqrkup. Hope that helps! Colin -- One of the advantages of being disorderly is that one is constantly making exciting discoveries. - A. A. Milne, From the Daryl R. Gibson collection ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Fwd: Justify to both sides
Hello everyone! I would like to place custom header for piece, i.e.: hymn number and authors of music and lyrics aligned to both sides of the page: [image: Obraz w treści 2] I tried to do it with fill-line, but then part of the *"Lyrics author" *goes off the page. Please check a result of the following code: > \version "2.18.0" > > \score { > \new Voice { c' } > \addlyrics { Al } > > \header { > piece = \markup { > \line { \lower #2.4 \fontsize #8 \bold "105 " } > \column { > \bold "Hymn Title" > \fill-line { > \line { Melody author } > \line { Lyrics author } > } > } > } > } > } > How can I fix that? Best regards, *M.Ciesiółka* ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Partial
> > > > Date: Fri, 17 Mar 2017 21:48:50 +0100 > From: David Kastrup> To: Joseph Austin > Cc: lilypond-user@gnu.org > Subject: Re: Partial > Message-ID: <87k27nbpe5@fencepost.gnu.org> > Content-Type: text/plain > > Joseph Austin writes: > >> I've been experimenting with \partial, the command for scoring >> anacrusis, and discovered some apparently undocumented features. >> >> First of all, although I did not see it in the documentation, >> the form \partial DUR*NUM, such as \partial 8*5, seems to work, where >> NUM is an integer multiplying DUR. > > Multipliers are an optional part of _all_ durations, so DUR*NUM would be > redundant. > >> This seems to be sufficient to accommodate any arbitrary anacrusis, >> (except possibly partial tuplets, but I'm not sure such rhythms occur >> in practice). > > Multipliers can be fractions. \partial 4*3/7 will also work. > >> Also, durations specified with dots also work, e.g \partial 4.. >> >> Should these options be added to the documentation? >> (Or perhaps it's already there but I missed it.) > > All those can be part of _any_ duration. Nothing specific to \partial . > > -- > David Kastrup > Notation Reference 1.2.1 Scaling durations <> <>The duration of single notes, rests or chords may be multiplied by a fraction N/M by appending *N/M (or *N if M is 1) to the duration. This will not affect the appearance of the notes or rests produced, but the altered duration will be used in calculating the position within the measure and setting the duration in the MIDI output. Multiplying factors may be combined like *L*M/N. Factors are part of the duration: From reading this, given that it does say the altered duration will be used in calculating the position within the measure, perhaps I should have concluded that it would apply to \partial and have the desired effect, but I was more focused on This will not affect the appearance of the notes or rests produced In any case, I tested it and it does work. But thinking about it, I'm wondering why one would want to notate a different duration than is actually played, for instance, applying David's later example: ( \partial 8*2/3*2 (8*2/3 being _one_ eighth note triplet). as follows: First, use the formula as a duration multiplier: c8*2/3*2 d e f g a b c d e f g a In this case, each note is notated as 1 eighth, but counted as 4/3 of an eighth-note, giving 6 eighth-notes per 4/4 measure. | c8 d8 e8 f8 g8 a8 | b8 c8 d8 e8 f8 g8 | a This is consistent with the description of Scaling Duration in the Notation Reference. Now using the same multiplier as a partial for a scale in triplet eighth-notes: \partial 8*2/3*2 \tuplet 3/2 {c8 d e f g a b c d e f g a b } c It is notated as: \tuplet 3/2 {c8 d8 | e8 f8 g8 a8 b8 c8 d8 e8 f8 g8 a8 b8 } | c8 That is, an anacrusis of 2 triplet eighths.. This is both the nominal time and the allocated time (4/3 of an eighth). Let me just say, for my purposes, I would like \partial to work the way it works now, that is, \partial 8*5 means a partial measure of five eighth notes, both notated as such and counted as such. Without such an interpretation, I suspect there are amounts of anacrusis that could not be expressed, such as five eighth notes. However, I'm not sure the documentation is consistent with that interpretation. I'm relatively new to Lilypond at this level of detail. All I can say is that the allowed forms and interpretation of \partial isn't so clear to me from the existing documentation. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Putting piano/forte *before* the note
On 18 March 2017 at 12:08, David Kastrup wrote: > Mojca Miklavec writes: > >> Is there any way that I could write something like >> >> melody = { >> \makethispiano \melodyA >> \melodyB >> \makethisforte \melodyA >> } >> >> To avoid having to split the segment > > melody = { > <>\p \melodyA > \melodyB > <>\f \meldyA > } > > <> is an empty chord (no duration since it has no notes to give a > duration to), so it's handy for sneaking in "post-events" (constructs > needing to be written after a note or chord) when they don't have to be > attached to particular notes. Wonderful, it works like a charm. Thank you very much, Mojca ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Putting piano/forte *before* the note
Mojca Miklavecwrites: > Hi, > > I often have repeated segments of music where the first time the > segment is played piano and the second time it is played forte. > > I define segments with > > melodyA = \fixed c' { c4 e g | ... } > > and then > > melody = { \melodyA \melodyB \melodyA } > > Is there any way that I could write something like > > melody = { > \makethispiano \melodyA > \melodyB > \makethisforte \melodyA > } > > To avoid having to split the segment and write > > melodyA = \fixed c' { e4 g | ... } > melody = { > c4\p \melodyA > \melodyB > c4\f \melodyA > } > > This is particularly problematic because I usually add those marks > later and would then need to modify the scores in weird ways to > achieve the desired effect. > > I guess I could use conditional variables, but I would prefer if I > could just add some kind of markup, even if it's eventually placed at > the bar. > > Thank you, > Mojca melody = { <>\p \melodyA \melodyB <>\f \meldyA } <> is an empty chord (no duration since it has no notes to give a duration to), so it's handy for sneaking in "post-events" (constructs needing to be written after a note or chord) when they don't have to be attached to particular notes. -- David Kastrup ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Putting piano/forte *before* the note
Hi, I often have repeated segments of music where the first time the segment is played piano and the second time it is played forte. I define segments with melodyA = \fixed c' { c4 e g | ... } and then melody = { \melodyA \melodyB \melodyA } Is there any way that I could write something like melody = { \makethispiano \melodyA \melodyB \makethisforte \melodyA } To avoid having to split the segment and write melodyA = \fixed c' { e4 g | ... } melody = { c4\p \melodyA \melodyB c4\f \melodyA } This is particularly problematic because I usually add those marks later and would then need to modify the scores in weird ways to achieve the desired effect. I guess I could use conditional variables, but I would prefer if I could just add some kind of markup, even if it's eventually placed at the bar. Thank you, Mojca (Please CC me.) ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: can we pass in header variables as CLI parameters?
On 17/03/17 21:10, Ian Ring wrote: Hi, sorry if this has been asked before... Is it possible to pass in header variables in via the CLI? For example, I would like to pass the copyright date in via a parameter, instead of it being saved in the .LY file. This can be done in LaTeX, so I hope there is a way to do something similar in lilypond. Cheers Ian You could define a variable on the command line and insert it into the header block of a Lilypond file. \version "2.18.2" #(use-modules (guile-user)) \header { copyright = \markup { "©" \year "The Composer" } } { c''1 } lilypond -e '(define-public year "2017")' tmp.ly See http://lilypond.org/doc/v2.19/Documentation/usage/command_002dline-usage#basic-command-line-options-for-lilypond -- Timothy Lanfear, Bristol, UK. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user