Re: Can lilypond do incipits?
Margarethe Maierhofer-Lischka wrote Tuesday, November 23, 2010 9:28 PM In the documentation there are some things TBC in the section "working with ancient music", not only concerning incipits but also editorial markings. It would be great to have some more information there, at least some hint or workaround. Is there any group out there that is maybe working on this? Unfortunately not, at least AFAIK. But we would always welcome any submitted text to replace the TBCs, or indeed improvements to any section of Ancient notation. There are a number of people who could format straight text submitted by others for the documentation, but none at present with spare time and sufficient expertise in ancient music to originate specialist documentation for this section. Trevor ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Can lilypond do incipits?
Hello there, concerning incipits: at the moment I use an workaround-solution for this that is also based on an adapted version of the snippet in the snippet repo. I made up an "incipit template" file which contains the incipit´s global settings and defines the contents of the single incipit lines (instrument, ancient clef, pitch, text etc). This file I include into my music file (both attached). Then it is enough to call \incipit and \fooInstrumentIncipit in my music file in the \score block to generate the incipit for the voice you want it to have. The width of the incipit bar is controlled by the incipit-width parameter in the \layout block. This workaround at least helps to keep the actual score file more simple and separates the incipit content from the rest. Of course, it is no perfect solution, but normally it works with some tweaking. Concerning incipits in general: > That being said, I'm sure it would be nice to have this music-function > distributed within LilyPond, I do, however, wonder if it is > standardized enough. (Neil just rejected a patch of my mine, and > rightly so, because it used a stencil override and therefore could not > be tweaked by the user.) > Yes, incipits ARE a standard requirement for modern critical and source-based editions! If lilypond offered an convenient way to create incipits and use common editorial markings (such as are dotted or bracketed slurs, bracketed or small-printed accidentals, footnotes or comments...), this would hopefully encourage more professional editions and musicologists to use lilypond. In the documentation there are some things TBC in the section "working with ancient music", not only concerning incipits but also editorial markings. It would be great to have some more information there, at least some hint or workaround. Is there any group out there that is maybe working on this? Greetings, Margarethe %Incipit allgemeines incipit = #(define-music-function (parser location incipit-music) (ly:music?) #{ \once \override Staff.InstrumentName #'self-alignment-X = #RIGHT \once \override Staff.InstrumentName #'self-alignment-Y = #UP \once \override Staff.InstrumentName #'Y-offset = #4 \once \override Staff.InstrumentName #'padding = #0.1 \once \override Staff.InstrumentName #'stencil = #(lambda (grob) (let* ((instrument-name (ly:grob-property grob 'long-text)) (layout (ly:output-def-clone (ly:grob-layout grob))) (music (make-music 'SequentialMusic 'elements (list (make-music 'ContextSpeccedMusic 'context-type 'Staff 'element (make-music 'PropertySet 'symbol 'instrumentName 'value instrument-name)) $incipit-music))) (score (ly:make-score music)) (mm (ly:output-def-lookup layout 'mm)) (indent (ly:output-def-lookup layout 'indent)) (width (ly:output-def-lookup layout 'incipit-width)) (incipit-width (if (number? width) (* width mm) (* indent 0.5 (ly:output-def-set-variable! layout 'indent (- indent incipit-width)) (ly:output-def-set-variable! layout 'line-width indent) (ly:output-def-set-variable! layout 'ragged-right #f) (ly:output-def-set-variable! layout 'ragged-last #f) (ly:output-def-set-variable! layout 'system-count 1) (ly:score-add-output-def! score layout) (ly:grob-set-property! grob 'long-text (markup #:score score)) (ly:system-start-text::print grob))) #}) %Incipits of single voices %CHOIR sopranoIncipit = << \new Voice = "sopranoIncipit" << \repeat unfold 1 { s8 \noBreak } { \clef soprano %\key f \major %\time 2/2 } >> >> altoIncipit = << \new Voice = "altoIncipit" << \repeat unfold 1 { c2 \noBreak } { \clef alto %\key f \major %\time } >> \new Lyrics \lyricsto altoIncipit { IV- } >> tenoreIncipit = << \new Voice = "tenoreIncipit" << \repeat unfold 1 { c8 \noBreak } { \clef tenor %\key f \major %\time 2/2 } >> \new Lyrics \lyricsto tenoreIncipit { IV- } >> bassoIncipit = << \new Voice = "bassoIncipit" << \repeat unfold 1 { d8 \noBreak } { \clef bass %\key %\time %% incipit } >> \new Lyrics \lyricsto bassoIncipit { IV- } >> %INCIPITS ORCHESTER violinoprimoIncipit = \new Voice = "violinoprimoIncipit" << \repeat unfold 1 { s8 \noBreak } { \clef soprano %\key f \major %\time 2/2 } >> violinosecondoIncipit = \new Voice = "violinosecondoIncipit" << \repeat unfold 1 { s8 \noBreak } {
Re: Can LilyPond do incipits?
On Mon, Nov 22, 2010 at 8:45 AM, David Kastrup wrote: > Looks like a nice candidate for something a bit more integrated. Since > apparently working code has already been demonstrated, frog calibre? Isn't this rather a Documentation bug? There's a big TBC in http://lilypond.org/doc/v2.13/Documentation/notation/working-with-ancient-music_002d_002dscenarios-and-solutions#incipits Since we already have the snippet, it would be trivial to include there. That being said, I'm sure it would be nice to have this music-function distributed within LilyPond, I do, however, wonder if it is standardized enough. (Neil just rejected a patch of my mine, and rightly so, because it used a stencil override and therefore could not be tweaked by the user.) Cheers, Valentin. ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Can LilyPond do incipits?
Aaron Dalton writes: > On 11/21/2010 8:11 PM, Patrick Karl wrote: >> I'm trying to duplicate in LilyPond a very ugly photocopied piece of >> music, which was handed out in an Early Music workshop, which includes >> "incipits". Does LilyPond do incipits? The only thing I find in the >> v2.12 NR is: > > Yes, it can do beautiful incipits. I place the following code at the top > of the file (retrieved from the snippets repository): > > incipit = > #(define-music-function (parser location incipit-music) (ly:music?) > #{ > \once \override Staff.InstrumentName #'self-alignment-X = #RIGHT > \once \override Staff.InstrumentName #'self-alignment-Y = #UP [...] "Can your child write?" "Yes, it can write beautifully, provided that I lead its hand." Looks like a nice candidate for something a bit more integrated. Since apparently working code has already been demonstrated, frog calibre? -- David Kastrup ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Can LilyPond do incipits?
On 11/21/2010 8:11 PM, Patrick Karl wrote: > I'm trying to duplicate in LilyPond a very ugly photocopied piece of > music, which was handed out in an Early Music workshop, which includes > "incipits". Does LilyPond do incipits? The only thing I find in the > v2.12 NR is: Yes, it can do beautiful incipits. I place the following code at the top of the file (retrieved from the snippets repository): incipit = #(define-music-function (parser location incipit-music) (ly:music?) #{ \once \override Staff.InstrumentName #'self-alignment-X = #RIGHT \once \override Staff.InstrumentName #'self-alignment-Y = #UP \once \override Staff.InstrumentName #'Y-offset = #4 \once \override Staff.InstrumentName #'padding = #0.3 \once \override Staff.InstrumentName #'stencil = #(lambda (grob) (let* ((instrument-name (ly:grob-property grob 'long-text)) (layout (ly:output-def-clone (ly:grob-layout grob))) (music (make-music 'SequentialMusic 'elements (list (make-music 'ContextSpeccedMusic 'context-type 'MensuralStaff 'element (make-music 'PropertySet 'symbol 'instrumentName 'value instrument-name)) $incipit-music))) (score (ly:make-score music)) (mm (ly:output-def-lookup layout 'mm)) (indent (ly:output-def-lookup layout 'indent)) (width (ly:output-def-lookup layout 'incipit-width)) (incipit-width (if (number? width) (* width mm) (* indent 0.5 (ly:output-def-set-variable! layout 'indent (- indent incipit-width)) (ly:output-def-set-variable! layout 'line-width indent) (ly:output-def-set-variable! layout 'ragged-right #f) (ly:output-def-set-variable! layout 'ragged-last #f) (ly:output-def-set-variable! layout 'system-count 1) (ly:score-add-output-def! score layout) (set! (ly:grob-property grob 'long-text) (markup #:score score)) (ly:system-start-text::print grob))) #}) Then something like the following: cantusIncipit = << \new MensuralVoice = cantusIncipit << \repeat unfold 9 { s1 \noBreak } { \override Rest #'style = #'neomensural \clef "neomensural-c1" \key c \major \time 2/2 r2 a'2 } >> Then finally in the \score: \new Voice = "cantus" << \incipit \cantusIncipit \cantusMusic >> \new Lyrics \lyricsto "cantus" \cantusLyrics Aaron P.S. I tried to send a PDF of a single page, but it was apparently too big. You can see the incipits in a modern edition I did at http://hdl.handle.net/1880/47815 ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Can LilyPond do incipits?
On 22/11/10 14:11, Patrick Karl wrote: I'm trying to duplicate in LilyPond a very ugly photocopied piece of music, which was handed out in an Early Music workshop, which includes "incipits". Does LilyPond do incipits? The only thing I find in the v2.12 NR is: Incipits TBC See also which doesn't seem very promising. There is no entry in the index for incipit. I looked at the v2.13 NR, and it doesn't include an entry in the index for incipit. See section A.6 of the learning manual: Ancient notation templates. And if you search the snippet repository for "incipit" there are a couple of examples: http://lsr.dsi.unimi.it/LSR/Search?q=incipit Nick ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Can LilyPond do incipits?
I'm trying to duplicate in LilyPond a very ugly photocopied piece of music, which was handed out in an Early Music workshop, which includes "incipits". Does LilyPond do incipits? The only thing I find in the v2.12 NR is: Incipits TBC See also which doesn't seem very promising. There is no entry in the index for incipit. I looked at the v2.13 NR, and it doesn't include an entry in the index for incipit. ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user