Re: \bar || and \repeat around a line break
When I encounter this situation I use: \bar :| \grace s16 \bar |: in place of \re[eat volta. I don't use \unfold so I wonder if the following would work for you: \bar || \grace s16 \bar |: I'll also try \bar ||: instead of using \grace. On Tue, Jan 15, 2013 at 9:52 PM, Marc Hohl m...@hohlart.de wrote: Am 16.01.2013 04:04, schrieb Frank Steinmetzger: Hello dear list I'm writing a score that has a \bar || at the end of a system, and a volta repeat beginning in the following system after the line break. It seems that the \bar command overwrites the |: of the following volta, making that invisible. Is there a way to get what I desire? Lilypond has a special bar line type for this: \bar ||: should do the trick. HTH, Marc Thank you very much. MWE: \version 2.16 \relative c'' { ▸ \time 4/4 ▸ \repeat unfold 20 a4 ▸ \bar || \break ▸ \repeat volta 2 { ▸ ▸ \repeat unfold 20 a4 ▸ } } __**_ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/**listinfo/lilypond-userhttps://lists.gnu.org/mailman/listinfo/lilypond-user __**_ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/**listinfo/lilypond-userhttps://lists.gnu.org/mailman/listinfo/lilypond-user ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: \bar || and \repeat around a line break
Marc Hohl m...@hohlart.de writes: Lilypond has a special bar line type for this: \bar ||: should do the trick. I agree with OP that LP should deal with this situation without having to resort to tricks. -- Johan ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: \bar || and \repeat around a line break
keith Luke kkll...@gmail.com writes: When I encounter this situation I use: \bar :| \grace s16 \bar |: \bar || \break \grace s16 \repeat volta 2 { works as well. -- Johan ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: multi-instrument parts
Hi Kieren, just stumbled across this thread. I once was trying to create an engraver, that recognizes transposition/instrument changes and inserts a time signature there. (IIRC it was a piece with a change between oboe and english horn) In the end I inserted tagged key-sigs, whenever I inserted an instrumentSwitch. But perhaps now is the time to look at this again? Cheers, Jan-Peter Am 16.01.2013 06:43, schrieb Kieren MacMillan: Hi Jay, There's this: http://lsr.dsi.unimi.it/LSR/Item?id=697 which is useful when the transposition changes mid-piece (like for clarinets, horns, and trumpets). Also you don't have to think about the 'from' pitch. You only need the 'to' pitch. That doesn't seem to handle key signatures very well — is there a workaround? Thanks, Kieren. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user \version 2.16.0 % tonic is equal - octave is not checked! #(define (ly:tonic=? p1 p2) (or (and (ly:pitch? p1) (ly:pitch? p2) (= (ly:pitch-notename p1) (ly:pitch-notename p2)) (= (ly:pitch-alteration p1) (ly:pitch-alteration p2)) ) (and (eq? #f p1) (eq? #f p2)) )) %%% don't watch this hack ... just to display real notenames here ... % pitch-notename #(define (nona pp) (if (ly:pitch? pp) (let ((str ?)) (define (search pl pp) (if (pair? pl) (let* ((pr (car pl)) (pq (cdr pr))) (if (ly:tonic=? pq pp) (set! str (car pr)) (search (cdr pl) pp)) ) )) (search pitchnames pp) str ) ?) ) %% % engraver to ... % recognize every change of instrument transposition #(define-public keyT (lambda (context) (let ((tonic (ly:make-pitch 0 0 0)) (sig '()) (last-pitch (ly:make-pitch 0 0 0))) ; no transp assumed `((process-music . ,(lambda (trans) (let ((current-pitch (ly:context-property context 'instrumentTransposition))) ; if pitch (instrument transposition) has changed, create new time signature (if (and (not (ly:tonic=? last-pitch current-pitch)) (ly:pitch? current-pitch)) (begin ; how to create a time signature grob? ; how to create the needed properties ; - concert pitch = bes maj, instr transp bes ; = should give c maj key sig with key cancelation (let ((time-sig (ly:engraver-make-grob trans 'KeySignature '( (ly:message What to do here?) ) (let ((time-sig (ly:engraver-make-grob trans 'TextScript '( (set! tonic (ly:context-property context 'tonic)) (set! sig (ly:context-property context 'keySignature)) (ly:grob-set-property! time-sig 'text (format ~A~A (nona last-pitch) (nona current-pitch))) (set! last-pitch current-pitch) ) ) ; if #t ; if #f not set ) ; fi ))) (stop-translation-timestep . ,(lambda (trans) (set! tonic (ly:make-pitch 0 0 0) ) )) % use this engraver \layout { \context { \Staff \consists #keyT } } % a test score \score { \relative c'' { \key bes \major bes2 a \transposition bes c^we should get a c maj with key cancel. b } \layout { } \midi { } } ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
lilypondbook package useful?
Hi list, I'm just starting my first try with lilypond-book. I see that I have to enter the code in my latex document, process this document with lilypond-book and then compile the resulting file to get my final pdf document. But do I see correctly that I can't compile my original file with latex anymore (because of the undefined environment/command)? I find this inacceptable, because I want to be able to compile my original document at any time during its development. If I didn't miss something, I will try to use the following workaround: * Write a .sty file containing latex definitions corresponding to the command recognized by lilypond-book. * When latex compiles the file it will then print the source code and a comment instead Attached you'll find a first sketch for the 'lilypond' environment (.sty file, test .tex file and pdf). Am I on the right track with this approach? Or is there something wrong with it? Or did I miss something, and there is already a solution? If you think that's a good idea I will complete it and suggest it as an enhancement to be distributed together with lilypond-book. And if it works, I would think about giving them an optional parameter where one can store the path to the file (resulting of a run of lilypond-book), so latex can display either the code or this image if present. And if that works too I'd suggest to update lilypond-book as to insert this additional parameter by itself, so latex would automatically use the generated image. And if I understand all this correctly (but chances are quite high I don't), I would say that this approach could make the intermediate (i.e. processed) .tex file obsolete (at least for latex). Please be patient if I'm completely off the track, but it may also be I'm not ... Wouldn't the following work: * lilypond-book processes the original latex file as usual, but writes an additional parameter (the path to the generated image) _into the original file_ (instead of creating a new file). * A latex package contains environments/commands corresponding to those understood by lilypond-book * If that additional parameter is present, it includes the image file, * otherwise it prints the source code verbatim. As lilypond-book is written in Python I might even contribute to that myself. Thanks for any opinions Urs \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{lilypondbook} \RequirePackage{verbatim} \newenvironment{lilypond}{% \medskip \hrule \medskip \noindent \textit{LilyPond example, to be processed with lilypond-book:} \verbatim } { \endverbatim \hrule \medskip } lilypondbook-test.pdf Description: Adobe PDF document \documentclass{article} \usepackage{lilypondbook} \begin{document} \section*{LilyPond code, compilable through ordinary \LaTeX} This is a normal paragraph which is followed by a music example. If I compile the document with \LaTeX, I get: \begin{lilypond} music = \relative e'' { e16 gis fis e dis cis | %1 h4 r8 | %2 e16 gis fis e dis cis | %3 h4 r8 | %4 } \end{lilypond} To get the music example I have to process this via \texttt{lilypond-book}. \end{document} ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: lilypondbook package useful?
Urs Liska li...@ursliska.de writes: But do I see correctly that I can't compile my original file with latex anymore (because of the undefined environment/command)? I find this inacceptable, because I want to be able to compile my original document at any time during its development. If I didn't miss something, I will try to use the following workaround: * Write a .sty file containing latex definitions corresponding to the command recognized by lilypond-book. * When latex compiles the file it will then print the source code and a comment instead It would be feasible to actually cause LilyPond processing. Attached you'll find a first sketch for the 'lilypond' environment (.sty file, test .tex file and pdf). Am I on the right track with this approach? Or is there something wrong with it? Well, what will always be wrong with it is that without using LilyPond-book, you can only use embedded LilyPond in situations where \verb and the verbatim environment would work. This rules out, for example, usage in macro arguments, the most important of those probably being the default \footnote command. -- David Kastrup ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: lilypondbook package useful?
Am 16.01.2013 11:27, schrieb David Kastrup: Urs Liska li...@ursliska.de writes: ... Am I on the right track with this approach? Or is there something wrong with it? Well, what will always be wrong with it is that without using LilyPond-book, you can only use embedded LilyPond in situations where \verb and the verbatim environment would work. This rules out, for example, usage in macro arguments, the most important of those probably being the default \footnote command. OK, I think I see. Is there a way for latex to see if it is in such a context (i.e. in a macro argument, or in a context where verb isn't availalbe) and react appropriately? The idea isn't to pretty-print the source code, but to be able to compile the original latex file. So I could live well with such a fallback construct: * If the optional argument is present, include the image * if not try to printout the original source code verbatim. * if that's not possible, try to print it plainly (e.g. as \texttt) * or finally just print a comment If all this doesn't lead to an end, I will plainly print out references to 'missing music examples'. Best Urs ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: lilypondbood package useful?
Hi Urs, Since you asked for opinions I will offer mine. I do quite a bit of work with LaTeX and LilyPond, but I don't use lilypond-book for a couple of reasons. It generates a lot of extra files and folders that create clutter if you don't direct its output to a separate folder, but when I do that, links to other files (graphics for example) in the .tex file no longer work since it's in a different folder now (I keep all linked files in the same folder as the .tex file because it's on Dropbox and the full path to it is different on different computers). Also there is (or was?) an annoying bug whereby LilyPond doesn't take elements to the left of the staff (instrument names and such) into account in calculating the line-width of a system that occasionally cause systems to spill over in the right-hand margin. In those situations I had to use goofy workarounds to make them fit. For those reasons I prefer to simply export images (Frescobaldi makes this very simple) and link to them as with other graphics. (Using a fixed line-width in LilyPond avoids the need to scale them or anything like that.) The main advantage I lose is lilypond-book's ability to split a single score over page breaks when it makes for a better layout (this is possible manually, but tedious), and if you were making a book purely of scores (but including a written introduction, or opening remarks or other material of that nature) I think lilypond-book is the way to go. Ideally, invoking LilyPond in LaTeX would be rather like using, for example, the Tikz package: the code is processed when LaTeX is run (no need to use lilypond-book first), but given LilyPond's size and complexity (compared to a package like Tikz) I'm not sure if that is possible. I know very little about programming; is it possible to get LaTeX to invoke LilyPond on a computer where it is installed? Or would it be necessary to create a package that included the whole LilyPond program? Regards, Kevin Barry Hi list, I'm just starting my first try with lilypond-book. I see that I have to enter the code in my latex document, process this document with lilypond-book and then compile the resulting file to get my final pdf document. But do I see correctly that I can't compile my original file with latex anymore (because of the undefined environment/command)? I find this inacceptable, because I want to be able to compile my original document at any time during its development. If I didn't miss something, I will try to use the following workaround: * Write a .sty file containing latex definitions corresponding to the command recognized by lilypond-book. * When latex compiles the file it will then print the source code and a comment instead Attached you'll find a first sketch for the 'lilypond' environment (.sty file, test .tex file and pdf). Am I on the right track with this approach? Or is there something wrong with it? Or did I miss something, and there is already a solution? If you think that's a good idea I will complete it and suggest it as an enhancement to be distributed together with lilypond-book. And if it works, I would think about giving them an optional parameter where one can store the path to the file (resulting of a run of lilypond-book), so latex can display either the code or this image if present. And if that works too I'd suggest to update lilypond-book as to insert this additional parameter by itself, so latex would automatically use the generated image. And if I understand all this correctly (but chances are quite high I don't), I would say that this approach could make the intermediate (i.e. processed) .tex file obsolete (at least for latex). Please be patient if I'm completely off the track, but it may also be I'm not ... Wouldn't the following work: * lilypond-book processes the original latex file as usual, but writes an additional parameter (the path to the generated image) _into the original file_ (instead of creating a new file). * A latex package contains environments/commands corresponding to those understood by lilypond-book * If that additional parameter is present, it includes the image file, * otherwise it prints the source code verbatim. As lilypond-book is written in Python I might even contribute to that myself. Thanks for any opinions Urs -- next part -- An HTML attachment was scrubbed... URL: http://lists.gnu.org/archive/html/lilypond-user/attachments/20130116/e3b295e3/attachment.html -- next part -- A non-text attachment was scrubbed... Name: lilypondbook.sty Type: text/x-tex Size: 261 bytes Desc: not available URL: http://lists.gnu.org/archive/html/lilypond-user/attachments/20130116/e3b295e3/attachment.sty -- next part -- A non-text attachment was scrubbed... Name: lilypondbook-test.pdf Type: application/pdf Size: 15336 bytes Desc
Re: lilypondbook package useful?
Urs Liska li...@ursliska.de writes: Am 16.01.2013 11:27, schrieb David Kastrup: Urs Liska li...@ursliska.de writes: ... Am I on the right track with this approach? Or is there something wrong with it? Well, what will always be wrong with it is that without using LilyPond-book, you can only use embedded LilyPond in situations where \verb and the verbatim environment would work. This rules out, for example, usage in macro arguments, the most important of those probably being the default \footnote command. OK, I think I see. Is there a way for latex to see if it is in such a context (i.e. in a macro argument, or in a context where verb isn't availalbe) and react appropriately? \verb is always available. It just does not work everywhere. It is easy enough to check whether you are in such a context: just juggle with catcodes, read the next char, and look whether it is affected. The problem is that where \verb does not work reliably, considerable material (typically all) will already have been scanned and catcode-assigned by TeX, and you can't say oh, I intended this to be verbatim, please reconsider. Check out URL:http://www.tex.ac.uk/cgi-bin/texfaq2html?label=verbwithin. In general, people manage to make do fairly well with those restrictions, so a LaTeX-only variant of LilyPond-book (where you can compile the original file) would certainly have its use cases. -- David Kastrup ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: lilypondbook package useful?
Urs Liska li...@ursliska.de writes: Am 16.01.2013 11:27, schrieb David Kastrup: Urs Liska li...@ursliska.de writes: ... Am I on the right track with this approach? Or is there something wrong with it? I am not sure that this is actually a reasonably up-to-date variant of the mechanism, but there is mfpic. There are probably newer style files for embedding some foreign interpreter, though. -- David Kastrup ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Stanza (or similar) at the end of a line?
Eluze elu...@gmail.com writes: Matthew Collett wrote Adding e.g. \hspace #8 before the lyric \responsum does not move it much to the right; mostly it just makes the rest of the line bunch up more. Adding e.g. \tweak #'Y-offset #-8 before \mark has no visible effect whatsoever. So can anyone suggest a way either: (a) to move the mark down; or (b) to move the lyric ℟. to somewhere near the righthand end; or (c) to place a symbol in the desired position (under or just before the double bar, level with the lyrics) by some other method entirely? attached is a hackish solution based on LSR 735 http://lsr.dsi.unimi.it/LSR/Item?id=735 test4.png http://lilypond.1069038.n5.nabble.com/file/n139644/test4.png test4.ly http://lilypond.1069038.n5.nabble.com/file/n139644/test4.ly the Mark-engraver is moved to the lyrics context and the marks are shifted with extra-offset. I had to add a hidden note (and text) at the end to display the response and stop the staff to not display the staff lines after. - no idea why this is necessary! of course you can also simply write the responsum in the music part and shift it with extra-offset from there. ly/gregorian.ly contains a predefined \responsum command. How does this relate to the problem discussed here? -- David Kastrup ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Stanza (or similar) at the end of a line?
Matthew Collett wrote Adding e.g. \hspace #8 before the lyric \responsum does not move it much to the right; mostly it just makes the rest of the line bunch up more. Adding e.g. \tweak #'Y-offset #-8 before \mark has no visible effect whatsoever. So can anyone suggest a way either: (a) to move the mark down; or (b) to move the lyric ℟. to somewhere near the righthand end; or (c) to place a symbol in the desired position (under or just before the double bar, level with the lyrics) by some other method entirely? attached is a hackish solution based on LSR 735 http://lsr.dsi.unimi.it/LSR/Item?id=735 test4.png http://lilypond.1069038.n5.nabble.com/file/n139644/test4.png test4.ly http://lilypond.1069038.n5.nabble.com/file/n139644/test4.ly the Mark-engraver is moved to the lyrics context and the marks are shifted with extra-offset. I had to add a hidden note (and text) at the end to display the response and stop the staff to not display the staff lines after. - no idea why this is necessary! of course you can also simply write the responsum in the music part and shift it with extra-offset from there. hope this is of help Eluze -- View this message in context: http://lilypond.1069038.n5.nabble.com/Stanza-or-similar-at-the-end-of-a-line-tp139513p139644.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: lilypondbood package useful?
the track, but it may also be I'm not ... Wouldn't the following work: * lilypond-book processes the original latex file as usual, but writes an additional parameter (the path to the generated image) _into the original file_ (instead of creating a new file). * A latex package contains environments/commands corresponding to those understood by lilypond-book * If that additional parameter is present, it includes the image file, * otherwise it prints the source code verbatim. As lilypond-book is written in Python I might even contribute to that myself. Thanks for any opinions Urs -- next part -- An HTML attachment was scrubbed... URL: http://lists.gnu.org/archive/html/lilypond-user/attachments/20130116/e3b295e3/attachment.html -- next part -- A non-text attachment was scrubbed... Name: lilypondbook.sty Type: text/x-tex Size: 261 bytes Desc: not available URL: http://lists.gnu.org/archive/html/lilypond-user/attachments/20130116/e3b295e3/attachment.sty -- next part -- A non-text attachment was scrubbed... Name: lilypondbook-test.pdf Type: application/pdf Size: 15336 bytes Desc: not available URL: http://lists.gnu.org/archive/html/lilypond-user/attachments/20130116/e3b295e3/attachment.pdf -- next part -- A non-text attachment was scrubbed... Name: lilypondbook-test.tex Type: text/x-tex Size: 475 bytes Desc: not available URL: http://lists.gnu.org/archive/html/lilypond-user/attachments/20130116/e3b295e3/attachment.tex -- ___ lilypond-user mailing list lilypond-user@gnu.org mailto:lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user End of lilypond-user Digest, Vol 122, Issue 108 *** ___ 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: lilypondbood package useful?
2013/1/16 Francisco Vila paconet@gmail.com: I use lilypond-book a lot and this problem is solved if you build your document using make or a bash script that does all the work. The script can create an out/ folder if it doesn't exist, tell lilypond-book to output all to out/, copy all needed files to out/, run latex inside out/ and copy the resulting PDF back to your source directory. You need to write a list of copy-needing files in the makefile/script, but then all reduces to uparrowenter to launch latest command in history of terminal. Especially if you have many short snippets and/or want your code to ve verbatim visible. And there is no better way if you want to modify a snippet by _only_ modifying its lilypond code, in a single place, and you want everything else to be made automatically. Also, look at our manuals: they just could not be made by another method, in my opinion. For openoffice/libreoffice users, the ooo-lilypond extension is also better than inserting images by hand. See http://vimeo.com/39419265 (duration: 1 min) and http://vimeo.com/39419266 (duration: 20 sec) Oh, and there are active frames of Scribus DTP program, that store lilypond code and call lilypond on-the-fly -- Francisco Vila. Badajoz (Spain) www.paconet.org , www.csmbadajoz.com ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: lilypondbood package useful?
Am 16.01.2013 12:24, schrieb Francisco Vila: 2013/1/16 Francisco Vila paconet@gmail.com: I use lilypond-book a lot and this problem is solved if you build your document using make or a bash script that does all the work. The script can create an out/ folder if it doesn't exist, tell lilypond-book to output all to out/, copy all needed files to out/, run latex inside out/ and copy the resulting PDF back to your source directory. You need to write a list of copy-needing files in the makefile/script, but then all reduces to uparrowenter to launch latest command in history of terminal. Will this recompile all lilypond snippets or does lilypond-book somehow detect if there is a sufficiently current file availble? Especially if you have many short snippets and/or want your code to ve verbatim visible. And there is no better way if you want to modify a snippet by _only_ modifying its lilypond code, in a single place, and you want everything else to be made automatically. That's what I tried to express in my former email ;-) ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: lilypondbood package useful?
2013/1/16 Urs Liska li...@ursliska.de: Will this recompile all lilypond snippets or does lilypond-book somehow detect if there is a sufficiently current file availble? Make will detect it and will only recompile what has changed. It is based on rules that link a source file with a target along with commands associated to convert the source file into the target. -- Francisco Vila. Badajoz (Spain) www.paconet.org , www.csmbadajoz.com ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: lilypondbood package useful?
Hello, For what concerns the files generated by lilypond-book, the scripts (engines) written for TeXShop by Nicola Vitacolonna are a fine solution (at least for Unix based system): these are shell scripts that store these files in temporary folders. But their huge usefulness is, for me, the use of rsync, to check that the lilypond extracts have been modified. If not, there are not re-compiled. This is very usefull when a modification was about the LaTeX code rather than lilypond code. Philippe -- View this message in context: http://lilypond.1069038.n5.nabble.com/Re-lilypondbood-package-useful-tp139647p139655.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: lilypondbood package useful?
2013/1/16 Kevin Patrick Barry barr...@tcd.ie: It generates a lot of extra files and folders that create clutter if you don't direct its output to a separate folder, but when I do that, links to other files (graphics for example) in the .tex file no longer work since it's in a different folder now (I keep all linked files in the same folder as the .tex file because it's on Dropbox and the full path to it is different on different computers). I use lilypond-book a lot and this problem is solved if you build your document using make or a bash script that does all the work. The script can create an out/ folder if it doesn't exist, tell lilypond-book to output all to out/, copy all needed files to out/, run latex inside out/ and copy the resulting PDF back to your source directory. You need to write a list of copy-needing files in the makefile/script, but then all reduces to uparrowenter to launch latest command in history of terminal. Especially if you have many short snippets and/or want your code to ve verbatim visible. And there is no better way if you want to modify a snippet by _only_ modifying its lilypond code, in a single place, and you want everything else to be made automatically. Also, look at our manuals: they just could not be made by another method, in my opinion. For openoffice/libreoffice users, the ooo-lilypond extension is also better than inserting images by hand. See http://vimeo.com/39419265 (duration: 1 min) and http://vimeo.com/39419266 (duration: 20 sec) -- Francisco Vila. Badajoz (Spain) www.paconet.org , www.csmbadajoz.com ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: \bar || and \repeat around a line break
Am Mittwoch, 16. Januar 2013, 08:52:16 schrieb Marc Hohl: Hello dear list I'm writing a score that has a \bar || at the end of a system, and a volta repeat beginning in the following system after the line break. It seems that the \bar command overwrites the |: of the following volta, making that invisible. Is there a way to get what I desire? Lilypond has a special bar line type for this: \bar ||: should do the trick. I knew about the |: bar statement, but also that I can't use two bars for the same moment. The grace hint works like a charm, thanks Johan. -- Gruß | Greetings | Qapla’ Please do not share anything from, with or about me with any Facebook service. The first night on the gallows is the worst. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: \bar || and \repeat around a line break
Frank Steinmetzger war...@gmx.de writes: I knew about the |: bar statement, but also that I can't use two bars for the same moment. The grace hint works like a charm, thanks Johan. Credits - Keith Luke -- Johan ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Circled rehearsal mark size
Take a look at the following: \set Score.markFormatter = #format-mark-numbers s8 \mark #9 s8 \mark #10 s4 \set Score.markFormatter = #format-mark-circle-numbers \mark #9 s8 \mark #10 s4 As you can see, when using circled numbered rehearsal marks the size of the circle must, by necessity, go up when you enter double digits. Is there any way to make the circle for rehearsal marks 1-9 the same size as the circle for rehearsal marks 10-99 without increasing the size of the text? In other words, what I would like to do is have the same size 9 centered in a larger circle so that when 10 comes around the mark isn't such a noticeably larger mark. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Stanza (or similar) at the end of a line?
David Kastrup wrote ly/gregorian.ly contains a predefined \responsum command. How does this relate to the problem discussed here? I didn't know that - thanks for the hint! so I added the relevant definitions from gregorian.ly: #(define (add-prefix-to-lyrics prefix music) (let ((found? #f)) (map-some-music (lambda (m) (if found? m (and (music-is-of-type? m 'lyric-event) (begin (set! (ly:music-property m 'text) (string-append prefix (ly:music-property m 'text))) (set! found? #t) m music))) responsum = #(define-music-function (parser location music) (ly:music?) (add-prefix-to-lyrics ℟ music)) the responsum as defined in that function is prefixed to a syllable but Matthew wants it at the end. here I added an invisible note and dummy text: \new Staff \new Voice = sopranos \relative f { \cadenzaOn a'1 b4 a \bar | g2 a \hideNotes g64 % -- \bar || } \new Lyrics \lyricsto sopranos { \set stanza = 1. one two three four five \responsum % -- } is there a straighter way? thanks Eluze -- View this message in context: http://lilypond.1069038.n5.nabble.com/Stanza-or-similar-at-the-end-of-a-line-tp139513p139663.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: Unwanted new page at end of score
Am 16.01.2013 12:45, schrieb Peter Gentry: I cannot suppress a page break which looks unnecessary - what am I doing wrong?. I have included the example in the attached file which I hope does not contain too much unnecessary data. This looks like a w*rd document with some binary data in it – I think the source code in combination with a png or a pdf would it make *much* easier to spot the problem here. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Aleatoric / modern notation
I agree - you have done an amazing job with this, thank you so much! Ben Jeffrey Trevino wrote Hi David, I really hope this ends up in Lilypond; you've clearly put a ton of work into this. And it's even commented now! Brilliant. It seems to be working just fine; I'll holler if there are troubles. cheers, Jeff On Sat, Jan 12, 2013 at 10:23 AM, David Nalesnik lt; david.nalesnik@ gt;wrote: Hi Jeff, On Sat, Jan 12, 2013 at 11:37 AM, Jeffrey Trevino jeffrey.trevino2@ wrote: Hi David, I just saw this fix. Thanks for spending so much time tweaking this. Maybe there's a way it can be integrated into the Lilypond code, since you've spent so much time developing it. I'll be using it in a score soon. I've actually been working at this off and on since I sent you that fix, and I've added some functionality. You no longer need to guess at the length of the extender line: you specify its endpoint with the command \frameExtenderEnd. Also, the extender (now a separate grob called FrameExtender) can be broken across lines. There are still some issues to resolve. One of these problems is that the new stencil isn't taken into account in vertical spacing, and this can result in overlaps in extreme cases. (Try moving some of the groups into regions with many ledger lines.) I'm guessing that the difficulty arises because the frame isn't an outside-staff object, but I'm unsure how to proceed. There's some test code in the attached file. Mike Solomon suggested that I handle alignment between the component parts (the frame, the extender, and ultimately a bracket-with-timing affair to encompass the frame and extender) with an alignment grob (as DynamicLineSpanner and the like). This is one angle I'm exploring. (At the moment, uncommenting the \consists line will just draw boxes around the whole affair.) Anyway, I hope this proves helpful. Please let me know if you have any suggestions, or run into difficulties. lt;http://www.jeffreytrevino.com/gt; ___ lilypond-user mailing list lilypond-user@ https://lists.gnu.org/mailman/listinfo/lilypond-user - composer | sound designer -- View this message in context: http://lilypond.1069038.n5.nabble.com/Aleatoric-modern-notation-tp18113p139671.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: Stanza (or similar) at the end of a line?
On 17/01/2013, at 12:10 am, David Kastrup d...@gnu.org wrote: ly/gregorian.ly contains a predefined \responsum command. How does this relate to the problem discussed here? Not at all: that simply prepends an ℟ to some text. Best wishes, Matthew ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Displaying page x of y in header / footer
Dear all, Here's a trick that works better than the trick I posted earlier. Add the following at the end of the music expression (e.g. after the last note), or in a separate context having the same number of measures as the music you want to engrave: \label #'theLastPage Best regards, Olivier On Fri, Dec 28, 2012 at 5:34 PM, Olivier Biot olivier.b...@gmail.comwrote: Dear all, Replying to myself all I managed to do is the following hack: add the following sneppet after the last \score {} block: \label #'theLastPage \markup \rounded-box { \tiny } Thios empty block displays nothing in the score and seems to solve the problem, although in a rather hackish way. Is there a proper way for reaching this? Best regards, Olivier On Fri, Dec 28, 2012 at 5:04 PM, Olivier Biot olivier.b...@gmail.comwrote: Dear all, I can't find how to display the total number of pages in a score as part of the page header / footer. I tried adding a theLastPage label at the end of my score but it sometimes is off by one. I sadly cannot create a small snippet that reproduces the off-by one (page 4 of 3) problem. Placing a label outside the last score block yields an unresolved label and page reference. For what it's worth, here's the stencil I'm currently using: \paper { oddHeaderMarkup = \markup \fill-line { \hspace #1 \concat { page \fromproperty #'page:page-number-string of \page-ref #'theLastPage 0 ? } \hspace #1 } } evenHeaderMarkup = \oddHeaderMarkup } Any help is welcome. Best regards, Olivier ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Stanza (or similar) at the end of a line?
Matthew Collett wrote So can anyone suggest a way either: (a) to move the mark down; or (b) to move the lyric ℟. to somewhere near the righthand end; or (c) to place a symbol in the desired position (under or just before the double bar, level with the lyrics) by some other method entirely? I'd say (a) [extra-offset] and (c) [David's hint for leveling with the Gregorian \responsum] are solved! remains how to simplify how to enter it. Eluze -- View this message in context: http://lilypond.1069038.n5.nabble.com/Stanza-or-similar-at-the-end-of-a-line-tp139513p139674.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: lilypondbood package useful?
On 16/01/2013, at 11:48 pm, Kevin Patrick Barry barr...@tcd.ie wrote: Since you asked for opinions I will offer mine. I do quite a bit of work with LaTeX and LilyPond, but I don't use lilypond-book for a couple of reasons. ... For those reasons I prefer to simply export images (Frescobaldi makes this very simple) and link to them as with other graphics. (Using a fixed line-width in LilyPond avoids the need to scale them or anything like that.) That's my approach as well (though I don't use Frescobaldi, just lilypond with the eps backend). lilypond-book might work when the main content of the book is music, and therefore most of the changes requiring recompilation are in lilypond source. But it is ill-suited to the case where the musical content is largely fixed while the text is in flux. As Kevin says, something similar to Tikz would be more flexible: LaTeX calling lilypond, rather than lilypond preprocessing the LaTeX source. Even then, something like Tikz externalisation would be wanted to stop large music excerpts being recompiled unnecessarily. Best wishes, Matthew ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Guitar tab formatting
Hello, For tablature, Is it possible to position note beams above the staff, similar to the tab style in MuseScore 2.0? Please see this link for an example: http://tnovelli.net/music/1205-mscore2-tablature/Rondo_Alla_Turca.mscx-1-800x.png Thanks, Mason ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Guitar tab formatting
Il 16/01/2013 22:38, Mason Austin Green ha scritto: For tablature, Is it possible to position note beams above the staff, similar to the tab style in MuseScore 2.0? Please see this link for an example: http://tnovelli.net/music/1205-mscore2-tablature/Rondo_Alla_Turca.mscx-1-800x.png The easiest way is enabling \tabFullNotation: \version 2.16.2 music = \relative c' { \time 2/4 \tabFullNotation \stemUp b16 a gis a } \score { \new TabStaff \context TabVoice { \clef moderntab \music } } If you find out that this turn on too many stuff in TabStaff, check the tabFullNotation definition in installation directory/usr/share/lilypond/current/ly/property-init.ly and copy only the reverts you need. HTH -- Federico ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Stanza (or similar) at the end of a line?
Matthew Collett wrote As I said in my reply to David, the \responsum from gregorian.ly is a red herring. why don't you use the red herring and add \override LyricText.extra-offset = #'(-2 . 0) \responsum in the code I proposed!? Eluze -- View this message in context: http://lilypond.1069038.n5.nabble.com/Stanza-or-similar-at-the-end-of-a-line-tp139513p139680.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: Stanza (or similar) at the end of a line?
On 17/01/2013, at 1:05 pm, Eluze elu...@gmail.com wrote: why don't you use the red herring and add \override LyricText.extra-offset = #'(-2 . 0) \responsum The suggestion of extra-offset is again a good one. Changing my definition of \responsum to responsum = \lyricmode { \once \override LyricText #'extra-offset = #'(2 . 0) \markup{ \bold \fontsize #-1 ℟. } } does the job nicely, thank you. (But I still see no point in using the definition of \responsum from gregorian.ly) Best wishes, Matthew ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: multi-instrument parts
On Tue, Jan 15, 2013 at 10:43 PM, Kieren MacMillan kieren_macmil...@sympatico.ca wrote: There's this: http://lsr.dsi.unimi.it/LSR/Item?id=697 which is useful when the transposition changes mid-piece (like for clarinets, horns, and trumpets). Also you don't have to think about the 'from' pitch. You only need the 'to' pitch. That doesn't seem to handle key signatures very well — is there a workaround? It was a simple change to make it take into account the key signatures. I updated it for the latest version as well (functions should take in pitches directly). I'm used to horn music devoid of key signatures :). \version 2.17.10 #(define (adjust-note mus key currkey) (cond ((or (eq? (ly:music-property mus 'name) 'NoteEvent) (eq? (ly:music-property mus 'name) 'KeyChangeEvent)) (ly:music-transpose mus (car currkey))) ((and (eq? (ly:music-property mus 'name) 'PropertySet) (eq? (ly:music-property mus 'symbol) 'instrumentTransposition)) (set-car! currkey (ly:pitch-negate (ly:music-property mus 'value))) (ly:music-set-property! mus 'value (ly:make-pitch 0 0 0)) mus) (else mus))) normalizeTransposition = #(define-music-function (parser location key music) (ly:pitch? ly:music?) (ly:music-transpose (let ((currkey (list (ly:make-pitch 0 0 0 (music-map (lambda (x) (adjust-note x key currkey)) music)) (ly:pitch-negate key))) music = \relative c' { \time 4/4 \transposition f \key c \major c e g c | \transposition ees \key c \major c, e g c | \transposition g \key c \major c, e g c | } \score { \new Staff { \music } \new Staff { \normalizeTransposition c' \music } \layout {} \midi {} } ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user