Re: Can't use edition engraver to place \time and \tempo
I would suggest adding separate functions for adding standalone text grobs. Would make a lot more sense than handling some types of objects differently. On 07/12/2017 09:47 AM, Jan-Peter Voigt wrote: Hi again, I merged your PR, so \time and \tempo should work now. And I prepared a PR myself to streamline event-broadcasting. That works fine and marks can now be added. With the default way for TextScript there is only one problem. I often add TextScript to Staff contexts when they are TODO-marks or the like. But other contexts don't consist the engraver to engrave them. So they are still created by the EE and tweaks are added while incarnating the grob. I will further test the code. If it proves stable, I will merge later. Cheers Jan-Peter Am 10.07.2017 um 14:33 schrieb caag...@gmail.com: Oh, and another thing - it seems EE creates its own grobs for TextScripts and Marks in process-music, rather than handing them to the proper engraver in start-translation-timestep. This makes tweaks and other custom properties not work, let alone if you install a custom engraver for them. Moving their handling to start-translation-timestep seems to work fine, so why is it that way? (It does have the advantage of allowing multiple \marks at once, though.) TextScripts also don't work in the first measure if it's a MMR, which is weird. (Placing an empty chord before the MMR makes it work.) I'm all for having a way to manually place texts/marks, but I personally think using the default method should be the, well, default. Changing it could break existing projects that rely on that behavior, though, which is bad. ___ 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: Include file handling in lilypond-book
Am 12.07.2017 um 01:54 schrieb Karljurgen Feuerherm: Hello, Putting together an exercise book using XeLaTeX and the lilypond environment. Everything works relatively well until I try to use an include file with variable definitions. MWE: % !TEX encoding = UTF-8 Unicode % !TEX TS-program = LilyPond-Book % !LILYPOND tex = xelatex \documentclass{memoir} % \newcommand{\Ggrace}{\grace { g''32 }} \begin{document} \begin{lilypond} { \include "lilypond-variables.ly" I don't know if I remember correctly, but I think I stumbled upon this problem before. Have you tried to include a relative path? \include "./lilypond-variables.ly" ^^ HTH, Marc ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Can't use edition engraver to place \time and \tempo
Hi again, I merged your PR, so \time and \tempo should work now. And I prepared a PR myself to streamline event-broadcasting. That works fine and marks can now be added. With the default way for TextScript there is only one problem. I often add TextScript to Staff contexts when they are TODO-marks or the like. But other contexts don't consist the engraver to engrave them. So they are still created by the EE and tweaks are added while incarnating the grob. I will further test the code. If it proves stable, I will merge later. Cheers Jan-Peter Am 10.07.2017 um 14:33 schrieb caag...@gmail.com: Oh, and another thing - it seems EE creates its own grobs for TextScripts and Marks in process-music, rather than handing them to the proper engraver in start-translation-timestep. This makes tweaks and other custom properties not work, let alone if you install a custom engraver for them. Moving their handling to start-translation-timestep seems to work fine, so why is it that way? (It does have the advantage of allowing multiple \marks at once, though.) TextScripts also don't work in the first measure if it's a MMR, which is weird. (Placing an empty chord before the MMR makes it work.) I'm all for having a way to manually place texts/marks, but I personally think using the default method should be the, well, default. Changing it could break existing projects that rely on that behavior, though, which is bad. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
music running off the page
Good Afternoon all, I have some music within a .tex file, and I had compiled it a while back (several months ago) and all was well. Well, now I am using that as a template and lo and behold the music now in the current document and in the old one now goes off the edges of the page. However, in just the music, this does not happen. Note that the text does not only the music. What can I do? Is this as simple as adjusting the page margins, and if so why all of a sudden should this occur? Thanks, -Michael Dykes \documentclass[12pt,a4paper,oneside]{article} \usepackage[left=1.40cm,right=1.40cm,top=2.25cm,bottom=2.55cm]{geometry} \usepackage{color,enumitem,epsfig} \usepackage{fancyhdr,multicol,xcolor} \usepackage{indentfirst} \usepackage{titling} \setlength{\droptitle}{-6em} \newcommand*{\Chapter}{% \usefont{\encodingdefault}{\rmdefault}{b}{n}% \fontsize{24}{30}% \selectfont} \newcommand*{\Section}{% \usefont{\encodingdefault}{\rmdefault}{b}{n}% \fontsize{22}{30}% \selectfont} \renewcommand{\P}{\textbf{Priest: }} \newcommand{\D}{\textbf{Deacon: }} \newcommand{\R}{\textbf{Reader: }} \newcommand{\C}{\textbf{Choir: }} \newcommand{\A}{\textbf{ALL: }} % % % Top Matter % % % % % % % % % % % % % % % % % % % % % % % \title{% \textbf{The Third Antiphon} \\ \large \textbf{Holy Pentecost} \vspace{-4.5em}} \author{} \date{} \begin{document} \maketitle % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % \R In Thy strength the king rejoices, O Lord, and exults greatly in Thy salvation. \textit{\textbf{\textcolor{red}{Ps. 20:1}}}\\ \begin{lilypond} \version "2.18.0" \include "english.ly" \include "gregorian.ly" \layout { \context{ \Score \override SpacingSpanner.packed-spacing = ##f } \context{ \Lyrics \override LyricHyphen.minimum-distance = #2.5 \override LyricSpace.minimum-distance = #1.5 } } \header { title = \markup\bold\fontsize #1.55 {"Troparion"} poet = \markup\bold\fontsize #1.25 {"Tone 8"} composer = \markup\bold\fontsize #1.25 {"Abbreviated ''Bulgarian'' Chant"} tagline = "Translation - OCA Traditional English" } % #(set-global-staff-size 22) global = { \key g \major \override Staff.NoteHead.style = #'altdefault \override Staff.TimeSignature.stencil = ##f %\override Staff.BarLine.stencil = ##f \set Score.defaultBarType = "-" \bar "|." } move = { \bar "" \break } soprano = \relative c'' { \global % Music follows here. g4 a b c c b a g2 \bar"|" b4 a b c c \[b b b\] b a2 a g \bar "|" g4 a b c c b b b b a2 g \bar"'" g4 a b c c b b a2 a4 a g2 \bar"||" g4 a b c c \[b b b\] a2 a4 a g\breve \bar"|." } bass = \relative f { \global % Music follows here. g4 d g c, e g d g2 \bar"|" g4 d g c, e \[g g g\] g d2 d g \bar"|" g4 d g c, e g g g g d2 g \bar"|" g4 d g c, e g g d2 d4 d g2 \bar"||" g4 d g c, e \[g g g\] d2 d4 d g\breve \bar"|." } verse = \lyricmode { % Lyrics follow here. Bles -- sed art Thou, O Christ our God; for Thou hast shown the fish -- er -- men to be most wise by send -- ing down on them the Ho -- ly Spir -- it and through them catch -- ing all the world in Thy net. Glo -- ry to Thee, O good God Who lov -- est man -- kind! } \score { \new ChoirStaff << \new Staff \with { midiInstrument = "string ensemble 1" instrumentName = \markup \center-column { "Soprano" "Tenor"} } << \new Voice = "soprano" { \voiceOne \soprano } >> \new Lyrics \lyricsto "soprano" \verse \new Staff \with { midiInstrument = "string ensemble 1" instrumentName = \markup \center-column { "Alto" "Bass" } } << \clef bass \new Voice = "bass" { \voiceTwo \bass } >> >> \layout { ragged-last=##t #(layout-set-staff-size 23) \context { \Lyrics \override VerticalAxisGroup.staff-affinity = ##f \override VerticalAxisGroup.staff-staff-spacing = #'((basic-distance . 0) (minimum-distance . 2) (padding . 2)) } indent = 1.25\cm \context { \Staff \override VerticalAxisGroup.staff-staff-spacing = #'((basic-distance . 0) (minimum-distance . 2) (padding . 2)) } } \midi { \context { \Score tempoWholesPerMinute = #(ly:make-moment 155/4) } } } %{ convert-ly (GNU LilyPond) 2.18.2 convert-ly: Processing `'... Applying conversion: 2.17.0, 2.17.4, 2.17.5, 2.17.6, 2.17.11, 2.17.14, 2.17.15, 2.17.18, 2.17.19, 2.17.20, 2.17.25, 2.17.27, 2.17.29, 2.17.97, 2.18.0 %} \end{lilypond} \vspace{4mm} \R Thou hast given him his heart’s desire, and hast not withheld the request of his lips. \textit{\textbf{\textcolor{red}{Ps. 20:2}}}\\ \C Repeat \textbf{\textit{``Blessed art Thou, O Christ
barNumberCheck breaks multi-measure rests?
G'day. Is there a reason why \barNumberCheck breaks multi-measure rests? Or is this a bug? Thanks, Andrew Bromage % Example follows \version "2.19.60" Timeline = { \time 3/2 s1. * 9 \barNumberCheck #10 s1. * 8 \bar "|." } ViolinOne = \relative c'' { R1. * 15 | r1 g2 | c1. } \score { \new Staff << \Timeline \context Voice = "Violin 1" { \compressFullBarRests \clef treble \ViolinOne } >> \layout { \context { \Staff \compressFullBarRests } } } ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Include file handling in lilypond-book
Il giorno mer 12 lug 2017 alle 1:54, Karljurgen Feuerhermha scritto: Hello, Putting together an exercise book using XeLaTeX and the lilypond environment. Everything works relatively well until I try to use an include file with variable definitions. MWE: % !TEX encoding = UTF-8 Unicode % !TEX TS-program = LilyPond-Book % !LILYPOND tex = xelatex \documentclass{memoir} % \newcommand{\Ggrace}{\grace { g''32 }} \begin{document} \begin{lilypond} { \include "lilypond-variables.ly" Move this \include outside the {} music expression and put it right after \begin{lilypond}. Just like in the code that works fine in Frescobaldi ;-) \time 2/4 \grace { g''32 } g'4 \Ggrace a'4 \Ggrace b'4 \Ggrace c''4 \Ggrace d''4 \Ggrace e''4 \Ggrace f''4 g''4 a''2 g''4 f''4 \Ggrace e''4 \Ggrace d''4 \Ggrace c''4 \Ggrace b'4 \Ggrace a'4 \Ggrace g'4 \bar "||" } \end{lilypond} \end{document} LILYPOND-VARIABLES.LY: Ggrace = { \grace { g''32 } } ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: OLL/snippets renaming (Re: Broken (?) snippets in openlilylib/snippets)
On 11.07.2017 16:35, Urs Liska wrote: So actually I'd prefer a clean cut and starting over with a new and cleaner structure. +1 for that :-) Best, Simon ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Fwd: re: removing staff and clef w/o removing bar lines and brackets
On 7/11/2017 11:11 AM, Reilly Farrell wrote: > I'm creating some sight-singing examples for a class Are you aware of this sight-singing textbook... http://www.lightandmatter.com/sight/sight.html ...made with Lilypond and LaTeX, with source code available and customization encouraged under CC-BY-SA license? -- Karlin High Missouri, USA ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Include file handling in lilypond-book
Hi Marc, Good suggestion, but yes, I tried that, didn’t work. It seems that the include file is read, because the compiler doesn’t whine about undefined Ggrace, but that the variable is not expanded. I’m thinking a deficiency in the python script? K On 2017-07-12, 04:00, "lilypond-user on behalf of Marc Hohl"wrote: Am 12.07.2017 um 01:54 schrieb Karljurgen Feuerherm: > Hello, > > Putting together an exercise book using XeLaTeX and the lilypond > environment. Everything works relatively well until I try to use an > include file with variable definitions. > > MWE: > > % !TEX encoding = UTF-8 Unicode > > % !TEX TS-program = LilyPond-Book > > % !LILYPOND tex = xelatex > > \documentclass{memoir} > > % \newcommand{\Ggrace}{\grace { g''32 }} > > \begin{document} > > \begin{lilypond} > > { > >\include "lilypond-variables.ly" I don't know if I remember correctly, but I think I stumbled upon this problem before. Have you tried to include a relative path? \include "./lilypond-variables.ly" ^^ HTH, Marc ___ 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: OLL/snippets renaming (Re: Broken (?) snippets in openlilylib/snippets)
On 07/11/2017 10:35 AM, Urs Liska wrote: I would like to rename some directories and move some snippets. In particular the "notation-snippets" and the "input-shorthands" seem somewhat blurred to me. And, with the nicer syntax of \loadModule I would prefer shorter and less redundant names. \loadModule snippets.lyrics.align-on-vowels is more convenient and expressive than \loadModule snippets.notation-snippets.align-lyrics-on-vowels etc. The question is: How many people are actually using the snippets repository, and how much inconvenience would that be for these people. I *can* take some care about "deprecating" and redirecting includes, but doing this generally would actually make the whole thing totally convoluted. So actually I'd prefer a clean cut and starting over with a new and cleaner structure. Opinions? Objections? No objections here. Seems like a job for some kind of versioning or renaming of the snippets collection as a whole? ("snippets2"?) Then you could preserve backwards compatibility and get your clean break. Or... this may not be helpful... but would it work to just move the contents of snippets out into their own modules, deprecating the "snippets" grouping, but leaving it in place, as is, for now for backwards compatibility? So then you'd have, say: \loadModule lyrics.align-on-vowels Not sure what the larger repercussions of this would be, as I haven't kept up with how things are organized. Feel free to disregard. -Paul ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Marching Percussion Score
Hi Taylor, 2017-07-05 13:52 GMT-04:00 Taylor Sexton: > I was wondering if anyone knows if someone has developed a Lilypond template > for a marching percussion section. I do not know much about templates. > with all the appropriate > notation possibilities (e.g., bass drum line full unison indicated by a > slash note head on the center line). 'Wish you were more precise on what exactly you would need (or even images) and provide a minimal example file of what you have tried so far. Anywho, I'm glad to help as percussions are no the easiest to typeset on LilyPond especially for new users. I hope this helps you to get on the way :-) -- Pierre-Luc Gauthier \version "2.19.63" \language "english" % The tenor drums (or quads) are not defined in LilyPond yet. % Reading from left to right, first then second line : % Tom2, tom1, tom4, spock*, tom3 %o o % O ° O %% *spock a.k.a shot, gock, or spike. #(define tenor-drums '( (spock default #f 5) (tomI default #f 3) (tomII default #f 1) (tomIII default #f -1) (tomIV default #f -3) )) drumPitchNames.spock = #'spock drumPitchNames.tomI = #'tomI drumPitchNames.tomII = #'tomII drumPitchNames.tomIII = #'tomIII drumPitchNames.tomIV = #'tomIV % For a survival rendition via GM midiDrumPitches = #(append midiDrumPitches `((spock . ,(ly:make-pitch 0 0 NATURAL)) ; natural C (tomI . ,(ly:make-pitch 0 1 NATURAL)) ; natural D (tomII . ,(ly:make-pitch 0 1 FLAT)) ; d flat (tomIII . ,(ly:make-pitch 0 2 FLAT)) ; e flat (tomIV . ,(ly:make-pitch 0 2 NATURAL)) ; e natural )) % Some drum legend markup for students tenor-drums_Legend = \markup { \override #'(style . outline) \override #'(thickness . 3) \whiteout { \score { \new DrumStaff \with { \remove "Time_signature_engraver" %\remove "Clef_engraver" fontSize = -3 \override StaffSymbol.staff-space = #(magstep -2) } \new DrumVoice \with { \consists "Balloon_engraver" \override BalloonTextItem.annotation-balloon = ##f } \drummode { \set DrumStaff.drumStyleTable = #(alist->hash-table tenor-drums) \balloonLengthOff \balloonGrobText #'NoteHead #'(-2 . 0.0125) \markup {\italic \bold "Spock" } spock8[ \balloonGrobText #'NoteHead #'(-1 . 2.5) \markup {\italic \bold "Tom 1" } tomI \balloonGrobText #'NoteHead #'(0 . 3) \markup {\italic \bold "Tom 2" } tomII \balloonGrobText #'NoteHead #'(0.25 . 2) \markup { \italic \bold"Tom 3" } tomIII \balloonGrobText #'NoteHead #'(3 . 0) \markup { \italic \bold"Tom 4" } tomIV] \stopStaff s } \layout {indent = 0} } } } % I usualy have the song structure in its own variable songStructure = { \time 4/4 \tempo 4=100 s1*1 | \mark \default s1*4 | s1*1\fermata | \bar "|." } snareDrum = \drummode { <>\f sn8 16 16 8-> 8:32 8-> 8-> 16 16 8:~ | 4: sn16 16 16 16 <>\< \repeat unfold 2 {8: sn8->} | \repeat percent 3 \repeat percent 4 {8: sn8->} | sn1:->\f | } tenorDrums = \drummode { <>^\tenor-drums_Legend <>\f spock8 tomI tomII8. tomIII16-> tomIV4:16\sp\< spock4->\! << \repeat percent 2 { \repeat percent 2 { \repeat percent 4 { tomI16 16 tomII16 16 } } } { s2 s\mf\< | s4 s2.\> | s\< } >> tomIV1->\f | } bassDrum = \drummode { \improvisationOn <>\f bd16 8 16 r8. 16 r8 8 8.-> 16 | \repeat unfold 4 {r8 8} | \repeat percent 3 \repeat unfold 4 {16 16 8->} | bd1-> | } snareDrumPart = \new DrumStaff \with { \consists "Instrument_name_engraver" instrumentName = "Snare" shortInstrumentName = "Sn." drumStyleTable = #percussion-style % Not sure why you need 5 lines here % \override StaffSymbol #'line-count = #1 % \override Staff.StaffSymbol.line-positions = #'(0) % \override Staff.BarLine.bar-extent = #'(-2 . 2) } \new DrumVoice << \songStructure \snareDrum >> tenorDrumsPart = \new DrumStaff \with { \consists "Instrument_name_engraver" instrumentName = "Tenor" shortInstrumentName = "Ten." %drumStyleTable = #tenor-drums % I'm not sure why this does not work drumStyleTable = #(alist->hash-table tenor-drums) drumPitchTable = #(alist->hash-table midiDrumPitches) } \new DrumVoice << \songStructure \tenorDrums >> bassDrumPart = \new DrumStaff \with { \consists "Instrument_name_engraver" instrumentName = "Bass" shortInstrumentName = "B.D." drumStyleTable = #percussion-style % Not sure why you need 5 lines here % \override StaffSymbol #'line-count = #1 % \override Staff.StaffSymbol.line-positions = #'(0) % \override