Re: Lily dances
Hi Mike, On 2010-12-22, Mike Solomon wrote: > Hey all, > > I am embarking on a new project to make lily dance. > > Attached are 3 files: > > 1) svgdance.svg (best viewed in something that's not Internet > Explorer - click on the notes and/or accidentals and see what > happens!) Very cool! > 3) 0001-Implements-metadata-for-SVG-manipulation.patch (needs to be > applied to the current master - then, recompile everything in lily > and scm and install) Looks pretty straightforward. As you can see, it's not too difficult to sneak new data into the backends. :-) > I think the applications of this are broader than making grobs > dance. I am going to use it for a composition, but I think it can > also be used for animated Schenker graphs, annotated scores, > pedagogical sites, etc.. Sure, I think it definitely has further applications, even ones we can't imagine right now. > As always with my side projects, I could use some help! If you are > interested in this sorta thing and want to help make the code > better, lemme know. Before I work on integrating this into the > post-2.14 source, I'd like for several people to play with it and > share their thoughts! Some random thoughts: I find your implementation of the 'metadata property value very interesting. :-) It's nice, but it doesn't feel very "LilyPondy" to me. Not sure how to improve it right now. What about SVG+SMIL? More browser makers are adding support for it... I think it would be nice to add prewritten JavaScript functions, or entire JavaScript libraries that users can pull in to use for animation, or other purposes. Of course, your "set-svg-header" could be used to write custom functions, but it would be easier to include functions (from the user's point of view) from separate JavaScript files. I tried to load svgdance.svg in Batik Squiggle, and an error was generated: file:/home/pnorcks/svgdance.svg: The attribute "style" represents an invalid CSS declaration ("cursor:hand;"). Original message: The "hand" identifier is not a valid value for the "cursor" property. --- Thanks for your work, and I'm looking forward to see how this progresses. Regards, Patrick ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
spacing in 2.13.44
Hello, I used 2.13.44 to test my part making, and besides the existing "couldn't fit music on page" problem, the follwing warning was added: warning: couldn't fit music on page: ragged-spacing was requested, but page was compressed I still prefer the automatical function to let the non-fit stave or system jump to the next page. Regards Haipeng ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Not enough space between certain words
On Dec 26, 2010, at 9:36 PM, Michael Dykes wrote: > I am working on another liturgical piece of music, and it has a refrain that > ends with the word: Alleluia! In most cases, that word is getting scrunched > up, and the dashes are not visible. The rest of the piece is fine, except for > that part. Could anyone help, please? Attached is the current version of the > file. In the Notation Reference in the section on lyrics, specifically, extenders and hyphens, minimum-length and minimum-distance are named as controlling whether or not hyphens are displayed.___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Not enough space between certain words
I am working on another liturgical piece of music, and it has a refrain that ends with the word: Alleluia! In most cases, that word is getting scrunched up, and the dashes are not visible. The rest of the piece is fine, except for that part. Could anyone help, please? Attached is the current version of the file. -- In Christ, Michael D \version "2.12.2" \include "english.ly" \include "gregorian.ly" \header { title = "Menaion ~ 06 January ~ The Theophany of our Lord." subtitle = "Second Antiphon" composer = "Tone 2" poet = "Lesser Znamenny Chant" } global = { \key f \major \override Staff.TimeSignature #'stencil = ##f \override Staff.BarLine #'stencil = ##f } move = { \bar "" \break } soprano = \relative c'' { \global % Music follows here. f,4 f a a bf2(a) \divisioMinima f4 f f g a a a a a a f g2 f2 \divisioMaior f4 a a a a a a a a f g2 f \divisioMinima a2 g4 a bf2 bf a4(bf a g) f2 g a(g) f1 \divisioMaxima f4 f f f g a a bf2 bf4 a2 \divisioMinima f4 f f g a a a f g2 g4 g f2 \divisioMaior f4 a a a a a a a a f g2 f \divisioMinima a2 g4 a bf2 bf a4(bf a g) f2 g a(g) f1 \divisioMaxima f4 f g a a a a a a a a a a g a bf2 bf4 a2 \divisioMinima f4 f f g a a a a a a a a f g2 g4 g f2 \divisioMaior f4 a a a a a a a f g2 f \divisioMinima a2 g4 a bf2 bf a4(bf a g) f2 g a(g) f1 \divisioMaxima a4 g a bf2 bf4 bf bf a2 \divisioMinima f4 a f g2 g f \divisioMaior f4 a a a a a a a a f g2 f \divisioMinima a2 g4 a bf2 bf a4(bf a g) f2 g a(g) f1 \divisioMaxima } alto = \relative c' { \global % Music follows here. f4 f f f bf,(d) f2 \divisioMinima f4 f f f f f f f f f f c2 f \divisioMaior f4 f f f f f f f f f c2 f \divisioMinima f2 f4 f bf,2 d f1 f2 d c1 f \divisioMaxima f4 f f f f f f bf,2 d4 f2 \divisioMinima f4 f f f f f f f c2 c4 c f2 \divisioMaior f4 f f f f f f f f f c2 f \divisioMinima f2 f4 f bf,2 d f1 f2 d c1 f \divisioMaxima f4 f f f f f f f f f f f f f f bf,2 d4 f2 \divisioMinima f4 f f f f f f f f f f f f c2 c4 c f2 \divisioMaior f4 f f f f f f f f c2 f \divisioMinima f2 f4 f bf,2 d f1 f2 d c1 f \divisioMaxima f4 f f bf,2 bf4 bf d f2 \divisioMinima f4 f f c2 c f2 \divisioMaior f4 f f f f f f f f f c2 f \divisioMinima f2 f4 f bf,2 d f1 f2 d c1 f \divisioMaxima } tenor = \relative c' { \global % Music follows here. f,4 f a a bf2(a) \divisioMinima f4 f f g a a a a a a f g2 f2 \divisioMaior f4 a a a a a a a a f g2 f \divisioMinima a2 g4 a bf2 bf a4(bf a g) f2 g a(g) f1 \divisioMaxima f4 f f f g a a bf2 bf4 a2 \divisioMinima f4 f f g a a a f g2 g4 g f2 \divisioMaior f4 a a a a a a a a f g2 f \divisioMinima a2 g4 a bf2 bf a4(bf a g) f2 g a(g) f1 \divisioMaxima f4 f g a a a a a a a a a a g a bf2 bf4 a2 \divisioMinima f4 f f g a a a a a a a a f g2 g4 g f2 \divisioMaior f4 a a a a a a a f g2 f \divisioMinima a2 g4 a bf2 bf a4(bf a g) f2 g a(g) f1 \divisioMaxima a4 g a bf2 bf4 bf bf a2 \divisioMinima f4 a f g2 g f \divisioMaior f4 a a a a a a a a f g2 f \divisioMinima a2 g4 a bf2 bf a4(bf a g) f2 g a(g) f1 \divisioMaxima } bass = \relative c { \global % Music follows here. f4 f f f bf,(d) f2 \divisioMinima f4 f f f f f f f f f f c2 f \divisioMaior f4 f f f f f f f f f c2 f \divisioMinima f2 f4 f bf,2 d f1 f2 d c1 f \divisioMaxima f4 f f f f f f bf,2 d4 f2 \divisioMinima f4 f f f f f f f c2 c4 c f2 \divisioMaior f4 f f f f f f f f f c2 f \divisioMinima f2 f4 f bf,2 d f1 f2 d c1 f \divisioMaxima f4 f f f f f f f f f f f f f f bf,2 d4 f2 \divisioMinima f4 f f f f f f f f f f f f c2 c4 c f2 \divisioMaior f4 f f f f f f f f c2 f \divisioMinima f2 f4 f bf,2 d f1 f2 d c1 f \divisioMaxima f4 f f bf,2 bf4 bf d f2 \divisioMinima f4 f f c2 c f2 \divisioMaior f4 f f f f f f f f f c2 f \divisioMinima f2 f4 f bf,2 d f1 f2 d c1 f \divisioMaxima } verse = \lyricmode { % Lyrics follow here. I hath loved the Lord, be -- cause He hath heard my voice and my sup -- pli -- ca -- tion. O Son of God, Who was bap -- tized in the Jor -- dan, save us who sing to Thee,__ Al -- le -- lu -- ia! Be -- cause He hath in -- clined His ear to me, there -- fore I shall call on Him as long as I live. O Son of God, Who was bap -- tized in the Jor -- dan, save us who sing to Thee,__ Al -- le -- lu -- ia! The snares of death hath en -- comp -- assed me; the pangs of She -- ol laid hold on me; I suf -- fered dis -- tress and anguish, then I called on the Name of the Lord. O Son of God, Who was bap -- tized in the Jor -- dan, save us who sing to Thee,__ Al -- le -- lu -- ia! Gra -- cious and right -- eous is the Lord; our God is mer -- ci -- ful. O Son of God, Who was bap -- tized in the Jor -- dan, save us who sing to Thee,__ Al -- le -- lu -- ia! } \score { \new ChoirStaff << \new Staff \with { midiInstrument = " string ensemble 1 " instrumentName = \markup \center-
Re: SVG instrument names misaligned
On 2010-12-25, Mike Solomon wrote: > This displays fine as a PDF, but as an SVG the names of the staves > appear oddly shifted in several browsers. Any suggestions for how > to fix that w/o too much kludgery? Are you talking about the inter-word spacing or about text-alignment issues in certain browsers? In Chromium, for instance, the line of text "en mordant l'anche" is not correctly aligned. Other browsers seem to handle this fine. The issue of inter-word spacing is a problem with many browsers. For example, if you open your SVG in Firefox, then refresh the page, letters will shift into (generally) incorrect positions. In terms of a fix, I can't think of one at the SVG level. LilyPond uses simple and elements to render text, and browsers should be responsible for making the text look nice at all zoom levels. > Also, is there a way in SVG to use a font whose design is more > appropriate for the scaled size of lilypond's normal output? I have > a feeling that part of the reason this may be off is due to the > crimped nature of the font that comes with using native SVG fonts. LilyPond 2.12 uses SVG fonts, but LilyPond 2.13 does not. This was changed because the support for SVG fonts is not widespread. Opera, Batik Squiggle, and Webkit browsers support them, but Firefox probably never will. To answer your question though, I'm not aware of any SVG support for handling fonts with different design sizes (at least not automatically). > I would be more than happy if there were an option that created a an > SVG which turned all of the fonts to which I'm accustomed in the > postscript version into Bezier paths in the SVG that displayed as > beautiful lilypond lettering. So something like on-the-fly glyph conversion? I opened an issue for this a while ago: https://code.google.com/p/lilypond/issues/detail?id=973 By the way, I'll have a look at your JavaScript/SVG work later this evening. Thanks, Patrick ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Spacing between two sections of the same staff and custom bar numbers
On 26 December 2010 17:06, Iwillnotexist Idonotexist wrote: > > Hello Lilypond users, Please reply to all. I was the only LilyPond user that received your e-mail! ;-D > Thank you a lot for the tips on spacing. It was exactly what I was looking > for. Great. :) > As for the bar numbers, if I exclude bar numbers skipped because they are in > a multi-measure rest, I need every barnumber except 12, 16, 24, 32, 40, 48, > 64 and 73 below the barline (as opposed to the default, above and to the > left), and the aforementioned exceptions need to be above the staff, in bold > and boxed. I see in Bar_number_engraver a variable of type procedure called > barNumberVisibility that decides on printing, and was wondering if this was > the property to set or override, and if so, how. This is fairly unconventional. Here is how I would do that. Please note that maybe other more talented users may have another (better) solution. To print by default _every_ bar numbers _below_ the bar line I would use \layout { \context { \Score barNumberVisibility = #all-bar-numbers-visible % to print "1" also \override BarNumber #'break-visibility = #'#(#f #t #t) % #end-of-line-invisible \override BarNumber #'direction = #DOWN \override BarNumber #'self-alignment-X = #CENTER } } Then, to print the exceptions above the staff, in bold and boxed I would use a variable (let's call it "barNumberMark"): barNumberMark = { \once \override Score.BarNumber #'direction = #UP \once \override Score.BarNumber #'stencil = #(make-stencil-boxer 0.1 0.25 ly:text-interface::print) \once \override Score.BarNumber #'font-series = #'bold } and I would call \barNumberMark each time I want to highlight the bar number, i.e. measure 12, 16, 24, 32, 40, 48, 64 and 73. You'll find in attachment my proposal applied to your file. Cheers, Xavier PS: Measure 62 and 72 I also changed your r1 into R1 (whole measure rest centered). -- Xavier Scheuer \version "2.13.40" % Version \header{ % Header title = "Magma" % Title composer = \markup \bold "LARRY CLARK" % Composer instrument = "Trumpet" % Instrument } % End Header % Variables Intro = { d1\f\< | d4\! e r2 | d2\< e4 f | g\! e r2 | d1\< | e4\! f r } FourDescTwos = { a2 g | f e } FourAscFours = { d4 e f a } FourDescFours = { a4 g f e } FourDescFoursUp = { a'4 g f e } AscOnesTwo = { e4 f g2 } DescOnesTwo = { g4 f e2 } SwingDownOnesTwoCr = { d4 c d2\< } SwingDownOnes = { r4 g e g } SwingDownOnesfk = { r4\! g\f e g } ArcD = { d4 e f d } ArcDmf = { d4\mf e f d } ArcDfk = { d4\!\f e f d } ArcDffk = { d4\!\ff e f d } ArcE = { e4 f g e } ArcG = { g4 f e g } AccA = { a4_> r g_> r } AccAk = { a'4\!_> r g_> r } barNumberMark = { \once \override Score.BarNumber #'direction = #UP \once \override Score.BarNumber #'stencil = #(make-stencil-boxer 0.1 0.25 ly:text-interface::print) \once \override Score.BarNumber #'font-series = #'bold } \score{ % Score \new Staff \with { instrumentName = \markup \bold "BPS42" % Bullshit: Only to make BPS42 appear there } { % Staff % Settings \clef treble % Treble \numericTimeSignature % Force 4/4 instead of C \time 4/4 % Force 4/4 \tempo "Aggressive" 4 = 152 % Tempo \compressFullBarRests % Allow compression, to get |--| full-measure rests \override MultiMeasureRest #'expand-limit = #1 % Force limit to less than 2 % Music \bar "" \relative c' { % Score proper \repeat volta 2 {\Intro d4 } % part of 1st line \alternative { % Repeat { \FourDescFoursUp | \SwingDownOnesTwoCr\break} % End 1st line { a'2\! g } % Beginning 2nd line } % End Repeat { f e~ | e1\< | \barNumberMark d4_>\ff\! r4 r2 | R1*3 | \barNumberMark \ArcDmf | \AscOnesTwo | \FourAscFours } \break % part of 2nd line { \DescOnesTwo | \ArcD | \ArcE | \FourDescFours | \SwingDownOnesTwoCr | \barNumberMark \ArcDfk | \AscOnesTwo } \break % 3rd line { \FourAscFours | \DescOnesTwo | \ArcD | \ArcE | \FourDescFours | \SwingDownOnesTwoCr | \barNumberMark R1*7\! } \break % 4th line { r2 g\mp\< | \barNumberMark \SwingDownOnesfk | \ArcG | r4 a f d | g4 f g2 | \SwingDownOnes | \ArcG } \break % 5th line { f4 e a e | d e d2\< | \barNumberMark \AccAk | a4_> g_> r2 | R1*2 | \AccA | f4_> e_> r2 | R1*2 } \break % 6th line { \AccA | a4_> g_> r4 g | \FourDescTwos | a1( | g) | R1 | r2 f4\mf\< e | \barNumberMark \ArcDffk } \break % 7th line { \AscOnesTwo | \FourAscFours | \DescOnesTwo | \ArcD | \ArcE | \FourDescTwos | R1 | \barNumberMark \Intro g4 } % 8th + beginning of 9th line { \AccA | f4_> r e_> r | d2_>\ff c4_> e_> d_> d_> r2 } % part of 9th and last line } % End of Music } % End of Staff \layout { \context { \Score barNumberVisibility = #all-bar-numbers-visible % to print "1" also \override BarNumber #'break-visibility = #'#(#f #t #t) % #end-of-line-invisible \override BarNumber #'direction = #DOWN \override BarNumber #'self-alignmen
Re: ANN: Frescobaldi 1.2.0
One handy thinkg would be easy configurable 'quick inserts'. The user could write a "plugin" with his/her own favorite articulations/etc. Other would be midi insert mode, with maybe integration with VMPK (also qt based). 2010/12/26 Bernardo Barros : > Very nice, Wilbert! > > I'm downloading it. > > The plans for 2.0 include new functionalities, or mainly the > replacement of pyKDE? > ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: ANN: Frescobaldi 1.2.0
Very nice, Wilbert! I'm downloading it. The plans for 2.0 include new functionalities, or mainly the replacement of pyKDE? ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
RE: Spacing between two sections of the same staff and custom bar numbers
Olexa, I cannot answer your first question but to your second. 2. How to order Lilypond to draw bar numbers below the staff and at specific locations, and to box a subset of them and place them above the staff instead. I suspect I need a function that takes in the bar number and prints out yes or no according to the value. In C, this would look something like --- Can you not simply use something as indicated here http://lilypond.org/doc/v2.13/Documentation/notation/bars#index-rehearsal-mark-style Just choose what number you want to put in your 'box'. James ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
SVG instrument names misaligned
This displays fine as a PDF, but as an SVG the names of the staves appear oddly shifted in several browsers. Any suggestions for how to fix that w/o too much kludgery? Also, is there a way in SVG to use a font whose design is more appropriate for the scaled size of lilypond's normal output? I have a feeling that part of the reason this may be off is due to the crimped nature of the font that comes with using native SVG fonts. I would be more than happy if there were an option that created a an SVG which turned all of the fonts to which I'm accustomed in the postscript version into Bezier paths in the SVG that displayed as beautiful lilypond lettering. Thanks! Mike \version "2.13.44" \paper { left-margin=4\cm } \score { \new StaffGroup { << \new Staff = "mordant" { \set Staff.instrumentName = \markup { \right-column { "en mordant l'anche" "et soufflant" } } a' a' a' a' } \new Staff = "gemissant" { \set Staff.instrumentName = \markup { \right-column { "en poussant des petits cris," "la gorge fermée" } } a' a' a' a' } >> } } ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Spacing between two sections of the same staff and custom bar numbers
On 26 December 2010 01:33, Iwillnotexist Idonotexist wrote: > > Hello Lilypond users, > > I have been trying, lately, to typeset a one-page score to make it resemble > as much as possible the original. The original sheet has (almost) exactly > the same music as that generated by the attached .ly file, with two > exceptions. After quite a lot of time trying everything I could, I still > cannot figure out: > > 1. How to manually set the distance between two sections of the same staff. > In my attachment, the bar numbers 1-8, 9-18, 19-25, 26-38, 39-45, 46-55, > 56-64, 65-73 and 74-82 make up the nine sections of the very same staff. > Now, as you can see after compiling, the staff sections are quite close, and > I would like to manually increase the distance between them. How does one > proceed to do this? I cannot use the staff-staff-spacing, > staffgroup-staff-spacing or any of those properties, since they apply to > spacing between staves, not between sections of the same staff. So is there > any \override or property I can use? Hi! Please use system-system-spacing , which defines the space between 2 systems (whereas staff-staff-spacing defines the space between 2 staves within a system). \paper { system-system-spacing = #'((basic-distance . 16) (minimum-distance . 10) (padding . 1) (stretchability . 60)) % default: %(basic-distance . 12) %(minimum-distance . 8) %(padding . 1) %(stretchability . 60) } See NR 4.1.4 Flexible vertical spacing \paper variables http://lilypond.org/doc/v2.13/Documentation/notation/flexible-vertical-spacing-_005cpaper-variables.html > 2. How to order Lilypond to draw bar numbers below the staff and at specific > locations, and to box a subset of them and place them above the staff > instead. Which locations? At the beginning of the line or do you want to print these at specific locations (i.e. specific bar numbers) within the middle of a line? What would be the purpose of this? You can change BarNumber #'direction at specific places using \once \override Score.BarNumber #'direction = #DOWN _each time_ (i.e. at each bar) you want to print the bar number down. You should also change Bar number visibility at the same time: \once \override Score.BarNumber #'break-visibility = #'#(#t #t #t) http://lilypond.org/doc/v2.13/Documentation/notation/bars.html#bar-numbers But I asked your purpose because I think you want something more like RehearsalMark. http://lilypond.org/doc/v2.13/Documentation/notation/bars.html#rehearsal-marks Cheers, Xavier -- Xavier Scheuer ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user