Re: Potential improvements to the homepage?
Hi Federico, > Il giorno mer 24 ago 2016 alle 0:00, David Pirotteha > scritto: > > The first thing, imo, would be to have these pages rewritten in > > scheme, Guile scheme > > I mean of course :), with the portion of the code that holds the > > content being > > expressed using sxml, see below for examples. > ... or rather strings in a scheme file? Here's a scary example: > http://git.savannah.gnu.org/cgit/guix/guix-artwork.git/tree/website/www/about.scm From someone how can fluently read lily source code, scary? :) All lilypond users know a bit of scheme right? :) Don't be! You'll get use to it a lot faster then you think! It actually reads almost as if it was English [and *nod* a lot easier then the corresponding html page], here is a simplified example. The schema is the same for all pages: import utils shared define the page `(html (@ (lang "en")) ,(html-page-header "About");; defined in shared (body ,(html-page-description) ;; dito ,(html-page-links);; dito ,(html-page-footer))) ;; dito The page content can be as simple as (div (@ (id "content-box")) (article (h1 "About the Project") (p "Lylipond is ..."))) The complexity of the content of a page is not due to sxml, but the the complexity of page itself, to the complexity of its design and how much css tweaks you're using. The hard work is in the design, the translation to guile scheme is relatively easy: one of the lily maintainers should ask Luis if he'd be interested: and he is a schemer to, he did the design for Guile's web-pages _and_ wrote the source code as well ... David pgp6n7DfN6fXl.pgp Description: OpenPGP digital signature ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Dynamic marks and vertical space
Am 27.08.2016 um 01:24 schrieb Timofey Misarenkov: (DynamicText.extra-offset can help to move, but vertical space waste remains the same. And using same approach to move \p and hairpin do not helps either.) extra-offset only moves the visual appearance of a grob but doesn’t affect spacing so if you move the ff left spacing will be as if you hadn’t moved it. So, the question is: how to make \ff to appear at the left of s ? Instead of extra-offset, use X-offset and Y-offset (in this case, X-offset is sufficient). Are you sure it’s a "ff" and a "p" (separated) and not a "ffp" (combined)? Because there is no \ffp command in LilyPond, you can create one: ffp = #(make-dynamic-script "ffp") Or use make-dynamic-script directly (see below). If you start the hairpin directly at the ffp, it’s start will move to the left together with the ffp (remember: X-offset affects spacing ;)). To avoid that, just increase it’s bound-padding. \version "2.18.2" \score { \new GrandStaff << \new Staff = "up" \relative c' { \clef treble 4-> \repeat unfold 12 {16-.} } \new Dynamics = "dynamics" { % this moves the ffp to the left \once \override DynamicText.X-offset = -4.5 % this increases the gap between ffp and start of hairpin \once \override Hairpin.bound-padding = 2.5 s2...-#(make-dynamic-script "ffp")\< s16\! | } \new Staff = "down" \relative c, { \clef bass 4-> \repeat unfold 12 {16-.} } >> \layout {} } ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Dynamic marks and vertical space
Hi. The sample code below has one flaw: it wastes too much vertical space due to \ff. In the real case its even worse, because of has duration of 1 and uses more space. I'm trying to move \ff to the left, but unsuccessfully. (DynamicText.extra-offset can help to move, but vertical space waste remains the same. And using same approach to move \p and hairpin do not helps either.) So, the question is: how to make \ff to appear at the left of s ? \version "2.18.2" \score { \new GrandStaff << \new Staff = "up" \relative c' { \clef treble 4-> \repeat unfold 12 {16-.} } \new Dynamics = "dynamics" { s8\ff s8\p\< s2 s8. s16\! |} \new Staff = "down" \relative c, { \clef bass 4-> \repeat unfold 12 {16-.} } >> \layout {} } -- Timofey Misarenkov___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Switching to drummode and back
If the leadsheet needed hi-hat only in a single measure I wouldn't bother with drum mode: \version "2.18.2" \new Voice \with { \consists "Pitch_squash_engraver" } % for slash chords { \key ees \major \time 6/4 \repeat percent 4 \repeat unfold 2 { r4. \once \stemUp \tweak style #'xcircle f''4. } % cymbal \improvisationOn \clef bass f1. } Cheers, Robin ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
LilyPond logo
Hi all, I saw the recent dialog about LilyPond logo's. I created one several years ago, and it is used in the LilyPond website (upper left). http://lilypond.org/pictures/lily-home-32x32.png The original (hand drawn in Inkscape by me, copying colors and shapes from the photographed lily flower used as icon since long) is here: https://github.com/wbsoft/frescobaldi/blob/master/frescobaldi_app/icons/lilypond-run.svg It looks best at small sizes. -- Wilbert Berendsen, musician ‣ mail: i...@wilbertberendsen.nl ‣ web: www.wilbertberendsen.nl ‣ phone: +31646122877 ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Potential improvements to the homepage?
Il giorno mer 24 ago 2016 alle 19:13, Noeckha scritto: Last year we had this discussion: https://lists.gnu.org/archive/html/lilypond-devel/2015-07/msg00105.html And in this discussion, sort of agreed that the website (the first page you look at and some few others) are different from all the docs and so on. Switching the docs in all languages with the examples etc. from texinfo to sth. else is daunting to say the least. Even if this is a frequent misunderstanding, nobody ever thought about this possibility. The discussion was about switching the _website only_ to something else. Urs made a good (long) summary of the discussion here: https://lists.gnu.org/archive/html/lilypond-devel/2015-07/msg00111.html But for the front page/website there is in principle a little bit more freedom if one has a convincing alternative (with constraints still of course - and I am sure many will appear here after this mail). As I commented on the discussion last year, I think, a lot can be done by a new html/css layout without necessarily switching much of how the html content is produced. The front page should also be reconsidered. Yes, it's possible but it requires a lot of work: you'll probably have to work also on texinfo files (at least to add/remove html divs) and perhaps on the texi2html init file (written in perl). At the moment, I think that the best approach is changing small things. The best concrete proposal I've seen in this discussion is the one from Paul (who is also the person who contributed more to doc and website style in the last year and something). ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Switching to drummode and back
Thank you very much :-) That's what I needed. here the tiny example which actually matches the picture: \version "2.18.2" \new Staff \with { \accepts DrumStaff } { \time 12/8 \clef bass \repeat unfold 12 {b,8} \clef percussion \drums \with { \remove Time_signature_engraver }{ \repeat percent 4 {r4._"Vox & Drums only - HH on 2 & 4" hh4. r4. hh4. } }\noBreak \clef bass d1. } regards Sven On 26.08.2016 11:42, Malte Meyn wrote: Am 26.08.2016 um 11:40 schrieb Malte Meyn: \version "2.18.2" \new Staff \with { \accepts DrumStaff } { \repeat unfold 8 {e''8} \drums { I forgot \once \omit DrumStaff.TimeSignature here. hh4. r4. hh4 % else an additional clef would be printed \once \omit DrumStaff.Clef } \clef bass d1 } ___ 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: Switching to drummode and back
Sven Hillebrandwrites: > Hi Everybody, > I'm currently transcribing a Leadsheet for my Jazz Combo and the > original contains four bars with drumnotes. When I insert the notes via > \drummode it just prints normal notes on the center line: > > \version "2.18.2" > { >\repeat unfold 8 {e''8} >\drummode { \clef percussion > hh4. r4. hh4. } >\clef bass d1 > } > > Is there a way to make it look like the original in the attachment? The "original in the attachment" has very little to do with your code example. I'll suggest \version "2.19.27" \new OneStaff { \repeat unfold 8 {e''8} \drums \with { \remove Time_signature_engraver } { hh4. r4. hh4 } \clef bass d1 } here. For 2.18.2, this approach is a bit more complicated since you don't just need the OneStaff definition but also need other contexts (in this case, Staff) to accept it. If you don't want "cue clef" positioning before the bar line, you'll need something like \once \override Score.BreakAlignment.break-align-orders = #(make-vector 3 '(left-edge cue-end-clef ambitus breathing-sign time-signature staff-bar clef cue-clef key-cancellation key-signature custos)) at the respective place (the order between staff-bar and clef/cue-clef is decisive here). And if you want this different for line-breaks and non-breaks... -- David Kastrup ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Alternative bar numbering [0.18571]
On Thu, Aug 25, 2016 at 1:33 PM, Pastor Neubauerwrote: > I have a problem that seems to be part of the way lilypond works. I’m > using the code below. What I am wondering is how to change the lines > following the \break command. These lines seem to ignore all page formatt > ing. The first line is indented and the remaining lines are not. > I apologize for taking so long to respond. I don't remember when, where, or how I found this, but setting "\indent" to zero works, at least as late as Ly 1.18.2. I set it in a \layout block, thus : \score { *music* } \layout { indent = 0 } Hope this helps, Ralph -- Ralph Palmer Brattleboro, VT USA palmer.r.vio...@gmail.com ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Switching to drummode and back
Am 26.08.2016 um 11:40 schrieb Malte Meyn: \version "2.18.2" \new Staff \with { \accepts DrumStaff } { \repeat unfold 8 {e''8} \drums { I forgot \once \omit DrumStaff.TimeSignature here. hh4. r4. hh4 % else an additional clef would be printed \once \omit DrumStaff.Clef } \clef bass d1 } ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Switching to drummode and back
Am 26.08.2016 um 11:32 schrieb Sven Hillebrand: \version "2.18.2" { \repeat unfold 8 {e''8} \drummode { \clef percussion hh4. r4. hh4. } \clef bass d1 } Is there a way to make it look like the original in the attachment? Displaying percussion music in \drummode needs a DrumStaff instead of a Staff but “normal” notes need a Staff. So you have to create a DrumStaff (either \new DrumStaff \drummode or by using the shorthand \drums). Now this will of course print an *extra* DrumStaff below the staff. This is because Staff contexts accept Voice contexts and some others by default but not other Staffs or DrumStaffs (a staff in a staff generally makes not much sense). This can be changed in the \with block: \version "2.18.2" \new Staff \with { \accepts DrumStaff } { \repeat unfold 8 {e''8} \drums { hh4. r4. hh4 % else an additional clef would be printed \once \omit DrumStaff.Clef } \clef bass d1 } ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Switching to drummode and back
Hi Everybody, I'm currently transcribing a Leadsheet for my Jazz Combo and the original contains four bars with drumnotes. When I insert the notes via \drummode it just prints normal notes on the center line: \version "2.18.2" { \repeat unfold 8 {e''8} \drummode { \clef percussion hh4. r4. hh4. } \clef bass d1 } Is there a way to make it look like the original in the attachment? Thank you very much Sven ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Dynamics to the left of the note
On Thursday, August 25, 2016, Evan O'Dorneywrote: > Glad I could brighten your day. For the record, it's simply > > \once \override DynamicText.X-offset = -3 > > for dynamics attached to a note. > Ah, yes. No need for the initial Dynamics context. Good catch. -- Abraham ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user