Re: Repeat volta not at beginning of piece doesn't get initial repeat bar line
Am 14.07.2014 19:00, schrieb Thomas Morley: 2014-07-14 18:47 GMT+02:00 Thomas Morley thomasmorle...@gmail.com: 2014-07-14 14:03 GMT+02:00 John McWilliam jsmcwill...@gmail.com: I'd not mix \repeat volta ... and \alternative ... with manual repeat settings. Correction, you _can_ mix them, _if_ you use correct syntax. Though, it's a little complicated I think. Therefore I made the following code sometime ago (and had completely forgotten about it): Looks nice! Do you think that \setRepeatCommand should be included in the sources? I'd always found the manual tweaking of the text in the volta brackets somewhat clumsy... Marc ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Question for all LilyPond users (especially power users)
On Mon, Jul 14, 2014 at 4:56 PM, Noeck noeck.marb...@gmx.de wrote: Hi Urs, it seems like I missed something. How did you create those scores? ... What is the Cadence font? Joram, I can answer for Urs. ... The Cadence font was the first result of that effort. Hi Abraham, thanks! Now I know what I was missing. That's very interesting. I would like to give some feedback which is clearly very subjective and perhaps your work continued such that some characteristics are obsolete. Anyway, here it is: I understand the reasoning with the rounded outlines, but I think not all shortcomings of the traditional technique need to be copied. I like the treble clef (the roundings are ok, but more for the straighter downward line). For the bass clef I am not sure which on I like more. The inner roundings of accents looks a bit like overdoing to me. The same for the dash of the forte f. I would say a balanced mixture of rounded and sharp corners is a valid choice, too. The arpeggio looks smoother. Concerning the accidentals, I am undecided. It looks a bit more 'natural' like traditional notation, but also a bit less perfect... This is most visible for the sharp. I prefer the Feta versions of the natural and flat signs. The former because it is narrower and the latter because it has a more consistent line width. That's perhaps an issue with the font-switching, but the noteheads of the Candence font are larger than the staff space and thus visible below and above staff lines and overlaps with the stems. All in all a smaller rounding radius might me a better compromise in my opinion. The treble clef is the biggest improvement in my eyes. As you said you can't please everybody. I enjoy your work and I am looking forward to the font switching feature. Cheers, Joram ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user Joram, Thank you for your thoughts and comments. I can't say that any design choice I made was the right one. The main thing that motivated my decisions was that I wanted a classic printed look on modern printing technology. With laser printers, things can look so crisp, which is very useful, but not quite the look I was going for. Am I the only one who likes this look? Maybe. When I show a printed piece that was engraved using Cadence to musicians, I have had overwhelmingly positive feedback about how good it looks relative to classically engraved scores, compared to other computer engraved scores. LilyPond is surely partly to blame for this :), but they like how it doesn't look like it was done on a computer. Anyhow, it is what it is. I have made some design changes since that topic thread, but going beyond Cadence, I also wanted to make other fonts available to LilyPond users because I have had so much fun with them. When I do so, I hope you will too! Regards, Abraham ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Accidentals on repeated notes separated by rests in certain styles
-- Forwarded message -- From: guoguocuozuoduo brian777...@hotmail.com Date: Tue, Jul 15, 2014 at 12:13 AM Subject: RE: Accidentals on repeated notes separated by rests in certain styles To: David Nalesnik david.nales...@gmail.com There should be for neo-modern, neo-modern-cautionary, neo-modern-voice, neo-modern-voice-cautionary, but not dodecaphonic-no-repeat. For the record, I think that all of the styles should suppress the repeated accidental, or none should. It comes down to whether the same pitch separated by a rest should be considered an immediate repetition. I think so. Consider the following: { fis'4-. fis'-. } vs. { fis'8 r fis' r } It doesn't make much sense to me that there should be a difference in behavior between the two in any style which detects immediate repetition. --David ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Accidentals on repeated notes separated by rests in certain styles
David Nalesnik david.nales...@gmail.com writes: -- Forwarded message -- From: guoguocuozuoduo brian777...@hotmail.com Date: Tue, Jul 15, 2014 at 12:13 AM Subject: RE: Accidentals on repeated notes separated by rests in certain styles To: David Nalesnik david.nales...@gmail.com There should be for neo-modern, neo-modern-cautionary, neo-modern-voice, neo-modern-voice-cautionary, but not dodecaphonic-no-repeat. For the record, I think that all of the styles should suppress the repeated accidental, or none should. It comes down to whether the same pitch separated by a rest should be considered an immediate repetition. I think so. Consider the following: { fis'4-. fis'-. } vs. { fis'8 r fis' r } It doesn't make much sense to me that there should be a difference in behavior between the two in any style which detects immediate repetition. So what about { { fis'8 r8 r4 r4 r8 fis'8 } \\ { r8 cis'8 f' r2 } } ? Should neo-modern-voice really consider the second fis'8 a repetition of the first one? I think that's stretching it. A lot. -- David Kastrup ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Accidentals on repeated notes separated by rests in certain styles
On Tue, Jul 15, 2014 at 6:52 AM, David Kastrup d...@gnu.org wrote: So what about { { fis'8 r8 r4 r4 r8 fis'8 } \\ { r8 cis'8 f' r2 } } ? I think you mean { fis'8 r8 r4 r4 r8 fis'8 } \\ { r8 cis'8 f' r2 } Should neo-modern-voice really consider the second fis'8 a repetition of the first one? I think that's stretching it. A lot. Well, that example certainly would be. Take neo-modern and neo-modern-cautionary out of the mix. My observation holds for neo-modern and dodecaphonic-no-repeat, which both operate at a staff level. --David ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Accidentals on repeated notes separated by rests in certain styles
On Tue, Jul 15, 2014 at 7:04 AM, David Nalesnik david.nales...@gmail.com wrote: On Tue, Jul 15, 2014 at 6:52 AM, David Kastrup d...@gnu.org wrote: So what about { { fis'8 r8 r4 r4 r8 fis'8 } \\ { r8 cis'8 f' r2 } } ? I think you mean { fis'8 r8 r4 r4 r8 fis'8 } \\ { r8 cis'8 f' r2 } Should neo-modern-voice really consider the second fis'8 a repetition of the first one? I think that's stretching it. A lot. Well, that example certainly would be. Take neo-modern and neo-modern-cautionary out of the mix. My observation holds for neo-modern and dodecaphonic-no-repeat, which both operate at a staff level. In any case, the method of determining automatic accidentals should take into account more than local alterations and the key signature. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Accidentals on repeated notes separated by rests in certain styles
On Tue, Jul 15, 2014 at 7:04 AM, David Nalesnik david.nales...@gmail.com wrote: Take neo-modern and neo-modern-cautionary out of the mix. My observation holds for neo-modern and dodecaphonic-no-repeat, which both operate at a staff level. *Arghh* I meant neo-modern-voice, of course. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Accidentals on repeated notes separated by rests in certain styles
Hi David, Concerning the style dodecaphonic-no-repeat, I think that the current behaviour is exactly how it should be! Sure, in your simple example above the accidental looks superfluous, but usually the works that really benefit from dodecaphonic-no-repeat have a much more complex musical texture. Have a look on this example below: http://lilypond.1069038.n5.nabble.com/file/n164485/example.png example.ly http://lilypond.1069038.n5.nabble.com/file/n164485/example.ly Would you say your suggestion is beneficial here? Regards, Gilberto -- View this message in context: http://lilypond.1069038.n5.nabble.com/Accidentals-on-repeated-notes-separated-by-rests-in-certain-styles-tp164462p164485.html Sent from the User mailing list archive at Nabble.com. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
[openlilylib] documentation browser and generator (start)
Hi all, despite the fact that I absolutely can't afford it I have started writing some stuff for a new openlilylib. As it turned out we won't have a script to (only) generate documentation for the library but rather a tool that can - generate HTML documentation for the library - browse the library by snippet name, category, tag, author (and possibly more options in the future) - display documentation for a selected snippet (built on-the-fly from the actual snippet) That's what I started to implement, you can have an impression from the screenshot: http://openlilylib.org/screenshots/oll-doc-screenshot.png In addition one will be able to use the tool to _edit_ snippet metadata, e.g. by selecting tags from existing ones etc. and having instant feedback from the generated documentation page. As this implies that the whole documentation for openlilylib will be built from the snippets themselves there will be some restrictions to the coding conventions. These will have to be updated during the reorganization. For example any free-form comments will be discarded, so everything has to go into explicit fields. On the other hand I find it nice that you can now see how for example the snippet-description will turn out in the documentation page, so this will be an incentive to write better headers for new and existing snippets. There is still a long way to go, but I think we have a great start. And I would like to ask anybody who is willing and able for assistance. If more people help working on this we will reach something beautiful earlier ;-) The program itself is a PyQt application (like Frescobaldi), but there is significant headroom for help in the HTML/CSS part and for general discussion. One particular topic I would appreciate someone to look into is integrating the ly-music module from Frescobaldi, initially at least to provide formatted LilyPond listings in the tool and in the generated HTML docs. Anybody who wants to have a look is encouraged to (git) checkout the reorganization or the doc-script branch from the openlilylib repo. Best Urs ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Accidentals on repeated notes separated by rests in certain styles
Hi Gilberto, On Tue, Jul 15, 2014 at 7:25 AM, Gilberto Agostinho gilbertohasn...@gmail.com wrote: Hi David, Concerning the style dodecaphonic-no-repeat, I think that the current behaviour is exactly how it should be! Sure, in your simple example above the accidental looks superfluous, but usually the works that really benefit from dodecaphonic-no-repeat have a much more complex musical texture. Have a look on this example below: http://lilypond.1069038.n5.nabble.com/file/n164485/example.png example.ly http://lilypond.1069038.n5.nabble.com/file/n164485/example.ly Would you say your suggestion is beneficial here? No :) (And I should probably take a lesson from some of my own music...) --David ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Score alignment
On 12 Jul 2014 10:54, Phil Holmes m...@philholmes.net wrote: - Original Message - From: Samuel Toogood sam_toog...@athsoc.org.uk To: lilypond-user@gnu.org Sent: Saturday, July 12, 2014 9:42 AM Subject: Score alignment Apologies for asking such a basic sounding question, but I have looked and looked and come up with nothing. Is it possible to horizontally align whole scores to the right edge rather than the left? Many thanks, Sam Toogood Well, by default they're aligned to the right _and_ left edge. Are you asking for something like ragged-left? -- Phil Holmes Yes, something like ragged-left. Sorry for not making that clear. Thanks, Sam ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Accidentals on repeated notes separated by rests in certain styles
Hi David, David Nalesnik-2 wrote No :) (And I should probably take a lesson from some of my own music...) Same here, when I first saw your proposition I was also surprised with the default behaviour of LilyPond, but then by checking some of my own scores for the annoying repeated accidentals after rests, I realized that they were pretty much always necessary! Take care, Gilberto -- View this message in context: http://lilypond.1069038.n5.nabble.com/Accidentals-on-repeated-notes-separated-by-rests-in-certain-styles-tp164462p164489.html Sent from the User mailing list archive at Nabble.com. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Suggestion for improvement
This isn't a bug, so I wanted to post it here first -- see what other people think. If I compile a PDF with LilyPond and open it with Adobe Reader, then run LilyPond again, I get this error: Converting to `./pictures-at-an-exhibition-all.pdf'... warning: `(gs -q -dNOSAFER -dDEVICEWIDTHPOINTS=595.28 -dDEVICEHEIGHTPOINTS=841.89 -dCompatibilityLevel=1.4 -dNOPAUSE -dBATCH -r1200 -sDEVICE=pdfwrite -sOutputFile=./pictures-at-an-exhibition-all.pdf -c.setpdfwrite -fpictures-at-an-exhibition-all.ps)' failed (1) fatal error: failed files: C:/Users/Knute/Documents/GitHub/The-Mutopia-Project/ftp/MussorgskyM/pictures-at-an-exhibition/pictures-at-an-exhibition-lys/ pictures-at-an-exhibition-all.ly Exited with return code 1. -- Now I'm a programmer, and I can figure out that this that this is GhostScript failing to convert the PS file to PDF, because I have it open and it needs to close it and recreate it. But it took me a while. For those non-programmer LilyPoders, I would think a better error message is in order. Maybe LilyPond can check if the PDF exists and try to close or delete it. Any other thoughts? Knute Snortum (via Gmail) ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Suggestion for improvement
Am 15.07.2014 15:56, schrieb Knute Snortum: Any other thoughts? Nothing constructive, only the observation (for the record) that this is a Windows-only issue. Urs ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Spanner.center.text property?
Hi David et al., I’ve been out of the loop/Pond recently… what’s the current status on “measure-attached spanners”? http://lists.gnu.org/archive/html/lilypond-user/2013-12/msg01032.html I’m trying to get my musicals/* code base ready to donate to openlilylib, and would love to have this in there (and available for me, too!). Thanks, Kieren. ___ Kieren MacMillan, composer www: http://www.kierenmacmillan.info email: i...@kierenmacmillan.info ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Suggestion for improvement
On 07/15/2014 03:58 PM, Urs Liska wrote: Am 15.07.2014 15:56, schrieb Knute Snortum: Any other thoughts? Nothing constructive, only the observation (for the record) that this is a Windows-only issue. Just for the record, it's not a Windows issue rather than an Adobe-Reader-on-Windows issue (see, e.g., [1]). For some reason I never understood, it opens the file in a blocking mode on Windows. Same issue for, e.g., LaTeX. Closing it might technically be possible, but it's not nice to kill other processes. There are different options to replace content (rewrite the file, or delete and move a new one to the same place), and they do make a difference, but AFAIK, Adobe does not play nicely with both. And what you really want is that your reader auto-refreshes when new content arrives, which requires some support on the viewer side. In short: it's a well-known annoyance that is beyond the PDF creator's domain. Fortunately, other readers exist which don't lock the file and even take notice of file updates automagically. SumatraPDF [2] is the one recommended most often. HTH, Alexander [1] http://mathoverflow.net/questions/1329/automatically-updating-pdf-reader-for-windows [2] http://blog.kowalczyk.info/software/sumatrapdf/free-pdf-reader.html ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Suggestion for improvement
Is there an OS-agnostic way of checking if the PDF is locked and issuing a more user-friendly message? Knute Snortum (via Gmail) On Tue, Jul 15, 2014 at 7:26 AM, Alexander Kobel n...@a-kobel.de wrote: On 07/15/2014 04:19 PM, Alexander Kobel wrote: Fortunately, other readers exist which don't lock the file and even take notice of file updates automagically. SumatraPDF [2] is the one recommended most often. Oh, and if you don't desperately need a bunch of buttons to click on, check out if the Windows port of MuPDF [1] works nicely for you. I like it a lot on Linux; it's faster than everything else I've seen, and it's rendering is pretty accurate and nice. HTH, Alexander [1] http://www.mupdf.com/ ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Suggestion for improvement
On 07/15/2014 04:30 PM, Knute Snortum wrote: Is there an OS-agnostic way of checking if the PDF is locked and issuing a more user-friendly message? I assume so, yes; but judging from the error message, you'd rather have to ask the GhostScript people to add it. IMHO it makes sense for LilyPond that it does not try to interpret the error messages from an external tool, but prints them in verbatim. Best, Alexander ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Suggestion for improvement
On 07/15/2014 04:19 PM, Alexander Kobel wrote: Fortunately, other readers exist which don't lock the file and even take notice of file updates automagically. SumatraPDF [2] is the one recommended most often. Oh, and if you don't desperately need a bunch of buttons to click on, check out if the Windows port of MuPDF [1] works nicely for you. I like it a lot on Linux; it's faster than everything else I've seen, and it's rendering is pretty accurate and nice. HTH, Alexander [1] http://www.mupdf.com/ ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: [openlilylib] documentation browser and generator (start)
Urs Liska wrote - generate HTML documentation for the library - browse the library by snippet name, category, tag, author (and possibly more options in the future) - display documentation for a selected snippet (built on-the-fly from the actual snippet) Hi Urs, Wow, looking good! Unfortunately, I doubt I'll have time to help out over the next few weeks, but I'd like to help when I can. Looks like a good opportunity to learn some python. Cheers, -Paul -- View this message in context: http://lilypond.1069038.n5.nabble.com/openlilylib-documentation-browser-and-generator-start-tp164486p164498.html Sent from the User mailing list archive at Nabble.com. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
How to put RehearsalMarks on their own horizontal line?
Hi, I'm having a hard time trying put all RehearsalMarks on their own horizontal line. This is an example: %% \version 2.19.10 global = { \time 3/4 \tempo Allegro s1*3/4*2 } part = { \clef treble c'4 \mark \default d'4 e'4 c'4 \mark \default d'4 e'4 } \score { \new Staff \global \part } %% Here, I want B to be higher - on the same line as A. In other words, I want rehearsalm marks to behave like expression marks in Dynamics context. I tried to define new context, but with no success. Any ideas appreciated. --Best Karol ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: How to put RehearsalMarks on their own horizontal line?
- Original Message - From: Karol Majewski karo...@wp.pl To: lilypond-user lilypond-user@gnu.org Sent: Tuesday, July 15, 2014 6:03 PM Subject: How to put RehearsalMarks on their own horizontal line? Hi, I'm having a hard time trying put all RehearsalMarks on their own horizontal line. This is an example: %% \version 2.19.10 global = { \time 3/4 \tempo Allegro s1*3/4*2 } part = { \clef treble c'4 \mark \default d'4 e'4 c'4 \mark \default d'4 e'4 } \score { \new Staff \global \part } %% Here, I want B to be higher - on the same line as A. In other words, I want rehearsalm marks to behave like expression marks in Dynamics context. I tried to define new context, but with no success. Any ideas appreciated. --Best Karol See Vertical collision avoidance in the NR: \score { \new Staff \override Score.RehearsalMark.outside-staff-priority = #0 \global \part } -- Phil Holmes ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: How to put RehearsalMarks on their own horizontal line?
See Vertical collision avoidance in the NR: \score { \new Staff \override Score.RehearsalMark.outside-staff-priority = #0 \global \part } Hi Phil, I tried that before, but this solution has one drawback: rehearsal marks are _below_ tempo marks. And I want to place them _above_ tempo marks. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Repeat volta not at beginning of piece doesn't get initial repeat bar line
Thanks Thomas for your input. I have applied your first alternative - the simpler one - to a four part piece. This is the classical length of a march in piping. The enclosed snippet illustrates the result. The end of the first part looses its repeat barline. I have tried introducing a \bar :|. at the end of the first part, however, this causes the repeat barline at the beginning of the second part to be supressed. Using manual commands instead of the \repeat volta format for the first part doesn't improve the situation. I feel that we are very close to a solution and would appreciate any suggestions you may be able to offer. \version 2.18.0 \defineBarLine .|:-|. #'(|. .|: |.) % needed to allow the % volta-hook mid-line: #(allow-volta-hook .|:-|.) music = \relative c' { \key c \major \time 4/4 \bar .|: %Part 1 \repeat volta 2 { a4. a8 b4. b8 c4. c8 d4. d8 \break } %Part 2 \set Score.repeatCommands = #'(start-repeat) e4. e8 f4. f8 \set Score.repeatCommands = #'((volta 1.)) g4. g8 a4. a8 \set Score.repeatCommands = #'((volta #f) (volta 2. --2,4) end-repeat) b4. b8 c4. c8 \bar .|:-|. \set Score.repeatCommands = #'((volta #f)) \break %Part 3 \repeat volta 2 { a4. a8 b4. b8 c4. c8 d4. d8 \break } %% not changed: %Part 4 \repeat volta 2 { e4. e8 f4. f8 \set Score.repeatCommands = #'((volta 1.)) g4. g8 f4.f8 \set Score.repeatCommands = #'((volta #f)) } }% end relative \score { \new Staff { \music } } - John McWilliam -- View this message in context: http://lilypond.1069038.n5.nabble.com/Repeat-volta-not-at-beginning-of-piece-doesn-t-get-initial-repeat-bar-line-tp163676p164502.html Sent from the User mailing list archive at Nabble.com. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: How to put RehearsalMarks on their own horizontal line?
Hi Karol, I tried to define new context, but with no success. It would help if you included a minimal code example, so we could diagnose the problem. This does what you want, I think: \version 2.19.10 \layout { \context { \type Engraver_group \name ScoreMarks \consists Staff_collecting_engraver \consists Axis_group_engraver \override VerticalAxisGroup.staff-affinity = #DOWN \consists Mark_engraver \consists Time_signature_engraver \override TimeSignature.stencil = #point-stencil } \context { \Score \remove Mark_engraver \accepts ScoreMarks } } global = { \time 3/4 \tempo Allegro s4 \mark \default s2 s4 \mark \default s2 } part = { \clef treble c'4 d' e' c'4 d' e' } \score { \new ScoreMarks \global \new Staff \global \part } Hope this helps! Kieren. ___ Kieren MacMillan, composer www: http://www.kierenmacmillan.info email: i...@kierenmacmillan.info ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Repeat volta not at beginning of piece doesn't get initial repeat bar line
Marc Hohl wrote Looks nice! Do you think that \setRepeatCommand should be included in the sources? I'd always found the manual tweaking of the text in the volta brackets somewhat clumsy... Or at least it could be added to the LSR? -Paul -- View this message in context: http://lilypond.1069038.n5.nabble.com/Repeat-volta-not-at-beginning-of-piece-doesn-t-get-initial-repeat-bar-line-tp163676p164504.html Sent from the User mailing list archive at Nabble.com. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: How to put RehearsalMarks on their own horizontal line?
Karol Majewski karo...@wp.pl writes: Hi, I'm having a hard time trying put all RehearsalMarks on their own horizontal line. This is an example: %% \version 2.19.10 global = { \time 3/4 \tempo Allegro s1*3/4*2 } part = { \clef treble c'4 \mark \default d'4 e'4 c'4 \mark \default d'4 e'4 } \score { \new Staff \global \part } %% Here, I want B to be higher - on the same line as A. In other words, I want rehearsalm marks to behave like expression marks in Dynamics context. I tried to define new context, but with no success. Any ideas appreciated. The following appears to work. \version 2.19.10 global = { \time 3/4 \tempo Allegro s1*3/4*2 } part = { \clef treble c'4 \mark \default d'4 e'4 c'4 \mark \default d'4 e'4 } \score { \new Marks \part \new Staff \global \part } \layout { \context { \Score \remove Mark_engraver \accepts Marks } \context { \name Marks \type Engraver_group \alias Staff % swallow Staff-level settings \alias Voice % swallow Voice-level settings \consists Mark_engraver \consists Axis_group_engraver \override VerticalAxisGroup.staff-affinity = #UP } } -- David Kastrup ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: How to put RehearsalMarks on their own horizontal line?
Very nice, Kieren! But still there are some issues: 1) place the first \mark at the begin and you'll get an error: programming error: cyclic chain in pure-Y-offset callbacks 2) Take a look at this example: %%% \version 2.19.10 \layout { \context { \type Engraver_group \name ScoreMarks \consists Staff_collecting_engraver \consists Axis_group_engraver \override VerticalAxisGroup.staff-affinity = #DOWN \consists Mark_engraver \consists Time_signature_engraver \override TimeSignature.stencil = #point-stencil } \context { \Score \remove Mark_engraver \accepts ScoreMarks } } global = { \time 3/4 \tempo Allegro \mark \default s4 s2 s4 \mark \default s2 \tempo Adagio s4*3 } part = { \clef treble c'4 d' e' c'4 d' e' c'''4 d''' e''' } \score { \new ScoreMarks \global \new Staff \global \part } %%% Here, I'd like to have both A and B _above_ Adagio (see attachment). ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Repeat volta not at beginning of piece doesn't get initial repeat bar line
2014-07-15 20:08 GMT+02:00 John McWilliam jsmcwill...@gmail.com: Thanks Thomas for your input. I have applied your first alternative - the simpler one - to a four part piece. This is the classical length of a march in piping. The enclosed snippet illustrates the result. The end of the first part looses its repeat barline. I have tried introducing a \bar :|. at the end of the first part, however, this causes the repeat barline at the begining of the second part to be surpressed. Using manual commands instead of the \repeat volta format for the first part doesn't improve the situation. I feel that we are very close to a solution and would appreciate any suggestions you may be able to offer. \version 2.18.0 \defineBarLine .|:-|. #'(|. .|: |.) % needed to allow the % volta-hook mid-line: #(allow-volta-hook .|:-|.) music = \relative c' { \key c \major \time 4/4 \bar .|: %Part 1 \repeat volta 2 { a4. a8 b4. b8 c4. c8 d4. d8 \break } %Part 2 \set Score.repeatCommands = #'(start-repeat) e4. e8 f4. f8 \set Score.repeatCommands = #'((volta 1.)) g4. g8 a4. a8 \set Score.repeatCommands = #'((volta #f) (volta 2. --1,2) end-repeat) b4. b8 c4. c8 \bar .|:-|. \set Score.repeatCommands = #'((volta #f)) \break %Part 3 \repeat volta 2 { a4. a8 b4. b8 c4. c8 d4. d8 \break } %% not changed: %Part 4 \repeat volta 2 { e4. e8 f4. f8 \set Score.repeatCommands = #'((volta 1.)) g4. g8 f4.f8 \set Score.repeatCommands = #'((volta #f)) } }% end relative \score { \new Staff { \music } } how about: \version 2.18.0 \defineBarLine .|:-|. #'(|. .|: |.) % needed to allow the volta-hook mid-line: #(allow-volta-hook .|:-|.) music = \relative c' { \key c \major \time 4/4 \bar .|: %Part 1 \repeat volta 2 { a4. a8 b4. b8 c4. c8 d4. d8 \bar :..: \break } %Part 2 \set Score.repeatCommands = #'(start-repeat) e4. e8 f4. f8 \set Score.repeatCommands = #'((volta 1.)) g4. g8 a4. a8 \set Score.repeatCommands = #'((volta #f) (volta 2. --1,2) end-repeat) b4. b8 c4. c8 \bar .|:-|. \set Score.repeatCommands = #'((volta #f)) \break %Part 3 \repeat volta 2 { a4. a8 b4. b8 c4. c8 d4. d8 \break } %Part 4 \repeat volta 2 { e4. e8 f4. f8 \set Score.repeatCommands = #'((volta 1.)) g4. g8 f4.f8 \set Score.repeatCommands = #'((volta #f)) } }% end relative \score { \new Staff \music } 2014-07-15 20:06 GMT+02:00 John McWilliam jsmcwill...@gmail.com: [...] You advise against combining the two approaches to writing repeats, the \repeat volta and the manual approach, however, the second part of the snippet does just that. Do the problems only arise when using the \alternative option? Well, it's possible to combine them, though you need to use correct code/syntax Finally, should my comments have been posted on the forum instead of via a personal email? Yes. Please always reply to all! Cheers, Harm ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user