Re: measurePosition within a music function?
Carl Sorensen schrieb: On 3/5/10 5:05 AM, Marc Hohl m...@hohlart.de wrote: This works fine, but I wanted to evaluate the position of the current note within the current bar. I found the measurePosition property, but to use ly:context-property context 'measurePosition in my function, I need the appropriate context. How can I achieve that? (I think it must be something very simple, but digging in the sources and the manuals, I didn't get a hint. the lsr provides a solution with \applyOutput, but this doesn't work here). It's actually not simple at all, Great to hear that I didn't overlook the obvious ;-) because music functions are evaluated during the parsing stage, when events are put on the music tree, rather than during the iteration/translation stage when the events are handed to contexts. Therefore, you need something in your music function that will have evaluation delayed until the translation stage when a context will be provided as an argument. This was something I didn't understand when I started working on the autobeaming. And it caused me lots of grief until I figured out a workaround. Thanks for clarification! The workaround is to create a context-spec-music expression and export it with ly:export. You can see some examples at the bottom of scm/beam-settings.scm. I won't promise that they're good examples, but they are examples. I'll have to study this in more detail, but I am not sure whether this is the right way to go. The main idea behind this question is a function which converts straight eights into swing style. I think I managed the mathematic and algorithmic stuff already more or less completely (for any positive swing factor x:y), and I had a look at Peter Chubb's articulate.ly to get an idea of how to go further. For the swing stuff, I need the position of the note within the measure. Another (and probably more straightforward) way to solve this would be to just sum up all the durations modulo the length of a measure. On the other hand, a more generic solution should be included into the lily/*-performer.cc structure, isn't it? Marc ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Tweaking format of page number
Hello, I tried to change font (sans / roman) and size of page number, but I couldn't do this because I didn't find engraver to engrave page number. How can I do this? Akira ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Books, bookparts, includes: what?
Le 6 mars 2010 à 20:09, Giovanni Roversi a écrit : Ok ok, I know I'm opening a new thread on the same topic just after few days, but I saw another possible solution. The problem follows: I'm transcribing the complete Supper's Ready suite by Genesis, and I want achieve a book: in the first page, the title Supper's Ready, the composer Genesis, and the table of contents with the various parts and their pages. In the second page, the title (or subtitle) 1. Lover's Leap and the text I've wrote there; at the end of the Lover's Leap's score, the second part with title and text, etc. So, I'm trying this: [...] \score { \include Lover's Leap.ly } Your problem is here. Your included file contains top-level declarations, such as global = ... tenorVoiceI = ... or the include of italiano.ly which also contains toplevel decalarations. These are forbidden inside a block (a \book, \bookpart or \score block). A posible solution: put your variables declarations in, say, Lover's Leap-music.ly, and the score block itself in a separate file, e.g. Lover's Leap-score.ly. Then your top file becomes: \version 2.12.2 \include italiano.ly \include Lover's Leap-music.ly \paper { ... } \header { ... } \markuplines \table-of-contents \bookpart { \tocItem \markup { 1. Lover's Leap } \include Lover's Leap-score.ly } Note that you do not need to write \pageBreak at the end of a \bookpart. Nicolas ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
text in staff and markup text font=addlyric font
version 2.12.2 Subject: text in staff I want to place test inside the staff lines from the manual it looks like I should use some form of \once \override TextScript #'script-priority = # %(some number here) but it's not giving me a result that I can understand/use. Should I try using some sort of 'padding' verbage or what? And I need to have markup {Text} be the same size as \addlyric. But I don't understand how to figure out what the lyric size is I do have #(set-global-staff-size 25) Where do I look to figure this out Thanks Jay -- Jay Hamilton Sound and Silence www.soundand.com 206-328-7694 ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: RhythmicStaff Multimeasure Rests
On Fri, Mar 5, 2010 at 10:31 PM, Jay Anderson horndud...@gmail.com wrote: \version 2.13.15 \new RhythmicStaff { %\override Staff.MultiMeasureRest #'extra-offset = #'(0 . -1) R1 } Of course this doesn't quite work because all multi measure rests are moved and not just single whole measure rests. I've been messing with this: \override Staff.MultiMeasureRest #'extra-offset = #(lambda (grob) '(0 . -1)) I only want to return '(0 . -1) if the multi measure rest length is the same as the length of a full bar. To get at the measure length I need to do something like (ly:context-property context 'measureLength #f). How can I get at the context from a callback function like the one above? or is there a better way to move all full measure rests down? It's interesting to me that in this example the whole rest in the last measure works correctly: \new RhythmicStaff { \time 6/4 R1. R1.*10 r1 r2 } Thanks. -Jay ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
how to get more place for a textspanner
Dear community, how can I get more space for the textspanner and its dashed line in the below quoted example? \version 2.12.2 { \clef bass \override TextSpanner #'(bound-details left text) = poco acc. \time 5/8 es8 ( \ \startTextSpan f fis \stopTextSpan \override TextSpanner #'(bound-details left text) = rit. a-- \startTextSpan gis -- ) \stopTextSpan } ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: text in staff and markup text font=addlyric font
As I understand it, these kinds of things only work with extra-offset. On 07.03.2010, at 22:41, Jay Hamilton wrote: version 2.12.2 Subject: text in staff I want to place test inside the staff lines from the manual it looks like I should use some form of \once \override TextScript #'script-priority = # %(some number here) but it's not giving me a result that I can understand/use. Should I try using some sort of 'padding' verbage or what? And I need to have markup {Text} be the same size as \addlyric. But I don't understand how to figure out what the lyric size is I do have #(set-global-staff-size 25) Where do I look to figure this out Thanks Jay -- Jay Hamilton Sound and Silence www.soundand.com 206-328-7694 ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
between-system-space in each score
I am lilyponding 5 little scores together, and 2nd score fill one page and one staff from another page. I want to put all the staves together in the same page. - If I change between-system-space in the \paper block 2nd score is OK (so it can be done without reducing note size), but the other scores have the staves too close. - If I make a break line between 2nd and 3rd scores it fills one page automatically but Lilypond reduces by one the number of systems and horizontal spacing doesn't like me. - Changing Y-extent, Y-minimum-extent, etc in the bottom staff disrupts separating title from the 1st staff I think that it would be best if there was a possibility of changing between-system-space in each score, but I don't know how. ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: silent crash on large score - how to debug?
FrÃdÃric Bron wrote So it seems there is a regression between 2.12.2 and 2.12.3 or 2.13.10. This morning the LP website is still recommending that users download and use this version of LP. Surely it should be withdrawn as being unstable or some message be inserted warning that for at least Windows users this version should avoided like the plague! It is unlikely to be fixed when all efforts are concentrated on 2.14.0. Ossie Wilson ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user