Re: Input syntax question
On Sun 29 Sep 2019 at 21:00:58 (-0400), Freeman Gilmore wrote: > Aaron Hill wrote: > > With quotation marks, you can break a lot of the rules: > > > > > > \version "2.19.83" > > > > "Anything?! { c'4 } " = { c'4 } > > > > { \"Anything?! { c'4 } " } > > > > Then would { \"Anything?! { c'4 } " } be equivalent to { \{ c'4 } } ? No. Typesetting { \"Anything?! { c'4 } " } would give the same output as { c'4 }. BTW there's no relationship between the characters c'4 in the variable name and the note c'4 in the score. The former might mean something to the human typing in the source, but it means nothing to LP beyond being three ASCII characters c ' 4 in the middle of a variable name. If the name contains otherwise illegal characters, then it must *always* be enclosed in "". \{ doesn't mean anything, \"{" does. So you can write "{" = g'4 "abcd" = a'4 spqr = f'4 { \"{" \abcd \"spqr" } for what it's worth. > > Whether it is prudent to do such a thing is another matter. (: Has a LilyPond obfuscation contest ever been held? :) Cheers, David. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Lyrics in polyphony with ties in second voice
Hi. I'm hoping someone can help me figure out how to notate this. I am creating a lead sheet that has vocal line with lyrics. Some sections have just the melody, and other sections have harmonies under the melody. In general, I have been having success using this pattern for going into and out of polyphony, while keeping the lyrics associated with the melody: melody = \relative c'' { c1 << { \voiceOne d } { b1 } >> | \oneVoice e1 | } However, there is one phrase where I can't figure out how to make it work, which is when the second voice contains ties. What I'm after is like the second score--except there should be ties between the chords in the second voice in bars 2-3. Alternately, like the music in example 6, except with lyrics in the 2nd & 3rd bars. \version "2.19.80" words = \lyricmode { One, two and three four } melody = \relative c'' { \time 3/4 g2.^"1. Just melody - missing harmony" | g8 a f2 ~ | 2. | e2. \bar "|." } melodyHarmonizedNoTies = \relative c'' { \time 3/4 g2.^"2. Harmonized, no ties: missing ties in voice 2" << \relative c'' { \voiceOne g8 a f2 ~ | 2. } \relative c' { 2. | 2. } >> | \oneVoice e2. \bar "|." } melodyHarmonizedWithTies = \relative c'' { \time 3/4 g2.^"3. Harmonized with ties: lyrics do not follow voice 1, and ties are missing in voice 2" << \relative c'' { \voiceOne g8 a f2 ~ | 2. } \relative c' { 2. ~ | 2. } >> | \oneVoice e2. \bar "|." } melodyHarmonizedLV = \relative c'' { \time 3/4 g2.^"4. Harmonized, LV in voice 2: Extra LV in voice 1" << \relative c'' { \voiceOne g8 a f2 ~ | 2. } \relative c' { 2. \laissezVibrer | 2. } >> | \oneVoice e2. \bar "|." } melodyHarmonizedSlashNoTies = \relative c'' { \time 3/4 g2.^"5. Slash, no ties: missing lyrics in voice 1 and missing ties in voice 2" << \relative c'' { \voiceOne g8 a f2 ~ | 2. } \\ \relative c' { 2. | 2. } >> | \oneVoice e2. \bar "|." } melodyHarmonizedSlashWithTies = \relative c'' { \time 3/4 g2.^"6. Slash with ties: lyrics do not follow voice 1" << \relative c'' { \voiceOne g8 a f2 ~ | 2. } \\ \relative c' { 2. ~ | 2. } >> | \oneVoice e2. \bar "|." } melodyHarmonizedSlashLV = \relative c'' { \time 3/4 g2.^"7. Slash, LV in voice 2: lyrics do not follow voice 1" << \relative c'' { \voiceOne g8 a f2 ~ | 2. } \\ \relative c' { 2. \laissezVibrer | 2. } >> | \oneVoice e2. \bar "|." } \book { \header { title = "MWE: lyrics in voice 1 with tied notes in voice 2" } \score { << \new Staff = "upper" { \new Voice = "lead" { \melody } } \new Lyrics \with { alignAboveContext = "staff" } { \lyricsto "lead" { \words } } >> \layout { } } \score { << \new Staff = "upper" { \new Voice = "lead" { \melodyHarmonizedNoTies } } \new Lyrics \with { alignAboveContext = "staff" } { \lyricsto "lead" { \words } } >> \layout { } } \score { << \new Staff = "upper" { \new Voice = "lead" { \melodyHarmonizedWithTies } } \new Lyrics \with { alignAboveContext = "staff" } { \lyricsto "lead" { \words } } >> \layout { } } \score { << \new Staff = "upper" { \new Voice = "lead" { \melodyHarmonizedLV } } \new Lyrics \with { alignAboveContext = "staff" } { \lyricsto "lead" { \words } } >> \layout { } } \score { << \new Staff = "upper" { \new Voice = "lead" { \melodyHarmonizedSlashNoTies } } \new Lyrics \with { alignAboveContext = "staff" } { \lyricsto "lead" { \words } } >> \layout { } } \score { << \new Staff = "upper" { \new Voice = "lead" { \melodyHarmonizedSlashWithTies } } \new Lyrics \with { alignAboveContext = "staff" } { \lyricsto "lead" { \words } } >> \layout { } } \score { << \new Staff = "upper" { \new Voice = "lead" { \melodyHarmonizedSlashLV } } \new Lyrics \with { alignAboveContext = "staff" } { \lyricsto "lead" { \words }
Re: Input syntax question
> > With quotation marks, you can break a lot of the rules: > > > \version "2.19.83" > > "Anything?! { c'4 } " = { c'4 } > > { \"Anything?! { c'4 } " } > Then would { \"Anything?! { c'4 } " } be equivalent to { \{ c'4 } } ? > > Whether it is prudent to do such a thing is another matter. (: > > > -- Aaron Hill > > ___ > 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: [OT] dicemusic -- a common-lisp generator of lilypond scores
Aaron Hill wrote: > > Be aware the final measure of the first half of the waltz needs to be > written as two alternatives. ... This corrects the otherwise odd-sounding > minor second intervals that appear in the left hand. > Thank you. I only discovered the opus-infinity site after I'd had written my version, otherwise I'm not sure I'd have bothered. Correcting this error is in my To Do list. Interestingly there is no indication of the first and second endings in the English Instructions of the edition I was working from so I guess this code is authentically wrong. Which brings up the bigger question of author intent versus publisher error but I suspect no-one really wants to open that particular can o'worms. Kind regards .. mark. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Input syntax question
On Mon, 30 Sep 2019, Andrew Bernard wrote: > The grammar is in Appendix A of the Lilypond Contributor's Guide. Thanks. How about the definitions of the terminals, such as STRING and SYMBOL? -- Matthew Skala msk...@ansuz.sooke.bc.ca People before tribes. https://ansuz.sooke.bc.ca/ ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Input syntax question
Hi Matthew, The grammar is in Appendix A of the Lilypond Contributor's Guide. Andrew On 30/9/19 5:15 am, msk...@ansuz.sooke.bc.ca wrote: Is there a formal grammar of the Lilypond language anywhere, other than the source code itself? ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Input syntax question
On 2019-09-29 12:15 pm, msk...@ansuz.sooke.bc.ca wrote: On Sun, 29 Sep 2019, Thomas Morley wrote: > What characters are allowed in variable names? From NR: "The name of a [LilyPond-]variable should have alphabetic characters only; no numbers, underscores or dashes." Thanks. I had a hard time finding this in the manual. With quotation marks, you can break a lot of the rules: \version "2.19.83" "Anything?! { c'4 } " = { c'4 } { \"Anything?! { c'4 } " } Whether it is prudent to do such a thing is another matter. (: -- Aaron Hill ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Input syntax question
On Sun, 29 Sep 2019, Thomas Morley wrote: > > What characters are allowed in variable names? > > From NR: > "The name of a [LilyPond-]variable should have alphabetic characters > only; no numbers, underscores or dashes." Thanks. I had a hard time finding this in the manual. > Note the "yet"!! It may change in future versions. Is there a formal grammar of the Lilypond language anywhere, other than the source code itself? -- Matthew Skala msk...@ansuz.sooke.bc.ca People before tribes. https://ansuz.sooke.bc.ca/ ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Input syntax question
Am So., 29. Sept. 2019 um 18:57 Uhr schrieb : > > What characters are allowed in variable names? > > -- > Matthew Skala > msk...@ansuz.sooke.bc.ca People before tribes. > https://ansuz.sooke.bc.ca/ From NR: "The name of a [LilyPond-]variable should have alphabetic characters only; no numbers, underscores or dashes." Those are the _allowed_ ones. Not sure whether the NR is still correct about underscores and dashes, though. No numbers, because they would be understood as durations. Anyway, there are possibilities to name things using signs which are not yet forbidden and can't yet be misunderstood. Example: my-first-rest¹ = { r1 } Note the "yet"!! It may change in future versions. Cheers, Harm ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Input syntax question
What characters are allowed in variable names? -- Matthew Skala msk...@ansuz.sooke.bc.ca People before tribes. https://ansuz.sooke.bc.ca/ ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: [OT] dicemusic -- a common-lisp generator of lilypond scores
On 2019-09-28 9:12 pm, Mark Probert wrote: Hi, all. While not of general interest, I thought some of you might find this small project of mine amusing. I was recently inspired by a YT video to have a go at coding one of the late 18th C dice music games (the "Mozart" Waltz generator Simrock published in 1793). It was a fun exercise and then I found out that the clever folk at opus-infinity.org had trodden this ground before me... oh well. Still I give away the source code :-) Anyhow, this is one way of creating lilypond scores and I'd be grateful if people had comments either on the lilypond idioms I've used (it is a parallelMusic thing) or on my CL (I'm pretty new to that idiom as well). Anyhow, as it currently is it generates 2xbar 3/8 waltzes in a late-18C style. They are really quite cute. Be aware the final measure of the first half of the waltz needs to be written as two alternatives. See the following output [1] from opus-infinity.org for reference. [1]: https://opus-infinity.org/media/cache/composition_manager/62bbd39039d34e7aadbf84518bfe5063/702a8a1b140b83bb8355d35017c42c4e/lilypond_concat.png This corrects the otherwise odd-sounding minor second intervals that appear in the left hand. -- Aaron Hill ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: [OT] dicemusic -- a common-lisp generator of lilypond scores
Orm wrote: > > In case this is unintentional: Rather than "Eine Kleine Waltzer" you'd > say "Ein kleiner Walzer" in German (you can capitalize the "kleiner" > if you prefer). > Thank you! To my shame I have no German and I'm sorry I managled your language. I will correct the error. Kind regards .. mark. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: [OT] dicemusic -- a common-lisp generator of lilypond scores
Hi Mark, thanks for sharing. It's always good to know about people using CL. I'm an avid CL user for many years and maintain some packages. If you're interested, drop me a note off-list and we can share ideas. In case this is unintentional: Rather than "Eine Kleine Waltzer" you'd say "Ein kleiner Walzer" in German (you can capitalize the "kleiner" if you prefer). -- Orm Am Sonntag, den 29. September 2019 um 14:12:22 Uhr (+1000) schrieb Mark Probert: > > Hi, all. > > While not of general interest, I thought some of you might find this > small project of mine amusing. I was recently inspired by a YT video > to have a go at coding one of the late 18th C dice music games (the > "Mozart" Waltz generator Simrock published in 1793). It was a fun > exercise and then I found out that the clever folk at opus-infinity.org > had trodden this ground before me... oh well. Still I give away the > source code :-) > > Anyhow, this is one way of creating lilypond scores and I'd be grateful > if people had comments either on the lilypond idioms I've used (it is a > parallelMusic thing) or on my CL (I'm pretty new to that idiom as well). > > Anyhow, as it currently is it generates 2xbar 3/8 waltzes in a late-18C > style. They are really quite cute. > > More here > > http://archsys.net/pages/coding/#dicemusic > > Kind regards .. mark. > > ___ > 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