Re: how offsets and alignment works: an explanation
Janek Warchoł wrote Sunday, March 24, 2013 10:56 PM On Sat, Mar 23, 2013 at 7:13 PM, Trevor Daniels t.dani...@treda.co.uk wrote: The Notation Reference is a _reference_ document. It is intended to remind users of information which they already understand. Explanations belong either in the Learning Manual, the Extensions Manual or the Contributor's Guide. I think that each manual needs some info about offsets and alignment: - Learning should give all users an idea of what's going on, Maybe this material is a little too advanced for the users expected to read the LM, unless a new chapter entitled Advanced concepts or some such were added. - Notation should list all knobs and switches No. The Internals manual is the place for this as it is automatically updated from the code. Trying to replicate this manually is going to lead to the information getting out of date. Wrong information is worse than no information. - Extending should say how to override placement and handle callbacks, - CG should make it clean how a programmer is supposed to interact with these. I'd be fine with these. Trevor ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: how offsets and alignment works: an explanation
It of course depends on how large you want the dot and what other flexibility you want/need. But with a regular '.' (or any character- string) you could easily do this without special function code needed: \version 2.16.0 dotcolor = #red smalldotmark = \markup{\bold \with-color \dotcolor . } largedotmark = \markup{\scale #'(5 . 5) \bold \with-color \dotcolor . } { c'1^\smalldotmark c''^\largedotmark } Regards, Wim. On 25 Mar 2013, at 02:10 , luis jure wrote: on 2013-03-24 at 23:56 Janek Warchoł wrote: Could i ask you to write a function that would print a red dot on top of a grob's refpoint? (the image i've attached was made with GIMP, and it would be better to have it in lily code. hey, i was trying to find somewhere in the docs how to get those red dots, because they would be really handy sometimes... i thought it was one of the many advanced features of lilypond that i never got to learn... ___ 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: frescobaldi on mac
I am trying to get frescobaldi to run. I have it installed and it loads except I get the could not load poplarqt4 module Anyone know of a fix for this? Thank you -- View this message in context: http://lilypond.1069038.n5.nabble.com/frescobaldi-on-mac-tp139401p143394.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: frescobaldi on mac
Hello, Did you install all the dependencies? If that message shows in the Preview window of frescobaldi, it seems that the python-poppler-qt4 module is not installed. Unlike other dependencies, it's not available via macports or homebrew. You have to download it here and fellow the instructions to install it: https://code.google.com/p/python-poppler-qt4/ https://code.google.com/p/python-poppler-qt4/ (choose the 0.16.3 version) Once unpacked on your computer, you'll have to use the Terminal to go to the python-poppler-qt4 folder and type those 2 commands: python setup.py build sudo python setup.py install Philippe -- View this message in context: http://lilypond.1069038.n5.nabble.com/frescobaldi-on-mac-tp139401p143396.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 offsets and alignment works: an explanation
Am 24.03.2013 23:56, schrieb Janek Warchoł: Hi all, ... On Sun, Mar 24, 2013 at 3:02 AM, Thomas Morley thomasmorle...@googlemail.com wrote: this is great!! I've never read a better explanation of x_aligned_on_self and aligned_on_x_parent. thanks! :) Could i ask you to write a function that would print a red dot on top of a grob's refpoint? (the image i've attached was made with GIMP, and it would be better to have it in lily code. I'm sure this would be simple for you.) Such a function would definitely be a good accompaniment to \displayControlPoints in OLLib. We shouldn't forget that Urs ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
extending event-listener.ly
hello list, i have just discovered that you can save music events to a file with event-listener.ly. this is an incredible feature for what i'm trying to do, that is generate csound scores from lilypond files. i managed to do that from the midi file generated by lilypond, using a very simple python program. but much information is lost. using the text file generated by event-listener would be much better, since i could manage dynamics and articulations. i'm only beginning to explore its possibilities, but one event i miss is \parenthesize. the manual says: If some events that you want to see are not included, copy ‘event-listener.ly’ into your lilypond directory and modify the file so that it outputs the information you want. i looked at event-listener.ly, but i'm afraid it's way over my head. i can hardly manage some basic python, for me scheme is undecipherable. could anyone give me a hint how to modify event-listener.ly to recognize parenthesized notes? any help would be greatly appreciated. best, lj ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Problem with lilypond-mode in emacs
Greetings - I'm running LilyPond 2.16.2 under Windows 7, SP1. I've copied the *.el files from lilypond\..\site-lisp to \emacs\emacs-24.3\site-lisp and I've set the PATH and HOME variables so that I think emacs is finding lilypond-mode.el, but when I open emacs and type M-x lilypond-mode, I get [no match]. When I drag-and-drop an .ly file onto the open emacs buffer, I get Symbol's function definition is void: lilypond-mode. I would greatly appreciate help from an experienced Windows emacs lilypond user to get this straightened out. I've used emacs under Ubuntu, with no problems, and I really like it. I appreciate your time and attention, 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
default margins and lilypond-book
I'm trying to wrestle lilypond-book into making a songbook (while realizing that's in intended [and better] for musicological documents). Can someone direct me to a list of default lilypond values for margins? My goal is to tweak the margins in the laTex source file so that they approximate lilypond's look in the final output. I've tried finding out by setting annotate-spacing = ##t, but everything is too close together and I can't read it. Thanks! ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: default margins and lilypond-book
Am 25.03.2013 14:11, schrieb Jeremy Boor: I'm trying to wrestle lilypond-book into making a songbook (while realizing that's in intended [and better] for musicological documents). Can someone direct me to a list of default lilypond values for margins? My goal is to tweak the margins in the laTex source file so that they approximate lilypond's look in the final output. I've tried finding out by setting annotate-spacing = ##t, but everything is too close together and I can't read it. Thanks! I have to admit that last time I had to do this I used a wooden ruler ;-) How do your scores look like? are they non-fullpage? Otherwise you could include the finished scores through \includepdf much easier (but you surely know that). And is your intention to keep the lilypond source inside the LaTeX document? If that's not explicitely wanted you may have a look at my 'musicexamples' package. Overview: http://www.openlilylib.org/?/musicexamples/ The links to the project page and download on SourceForge is currently broken, but the manual and the sample document are there. HTH Urs ___ 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:default margins and lilypond-book
Urs, Actually, I didn't know about \includepdf. I use LaTex for papers and things, but I'm no guru. I'll check out \includepdf. My interest in using lilypond-book is mostly a result of my needing to include front-matter (especially TOC) in the finished product. The scores are complete scores of folk songs (vocal line and chord-diagrams) that are 1-3 pages long. I use \lilypondfile to get them into LaTex. I'll try \includepdf, but the main thing is that I need TOC entries for each piece. I expect to be doing more books like this and I'd rather have a solid lilypond/latex system than go trying to learn scribus or something. For this project, my stop-gap measure has been to make the TOC separately in LaTex (manually entering page numbers from my lilypond output) then tacking the pdf's together with pdfjam. It winds up like this: http://jboor.net/roz/book/bookRozTOC2.pdf This is fine, but if I later do one that requires an afterword or introductions to each piece, I'll need to be able to switch back and forth between LaTex and lilypond while keeping page-numbering consistent. Thanks for your quick response. -Jeremy ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Problem with lilypond-mode in emacs
Greetings Am 25.03.2013 14:09, schrieb Ralph Palmer: Greetings - I'm running LilyPond 2.16.2 under Windows 7, SP1. I've copied the *.el files from lilypond\..\site-lisp to \emacs\emacs-24.3\site-lisp I did the same (exept that I created a neu subdirectory site-lisp\lilypond\). and I've set the PATH and HOME variables so that I think emacs is finding lilypond-mode.el, but when I open emacs and type M-x lilypond-mode, I get [no match]. When I drag-and-drop an .ly file onto the open emacs buffer, I get Symbol's function definition is void: lilypond-mode. I would greatly appreciate help from an experienced Windows emacs lilypond user to get this straightened out. I've used emacs under Ubuntu, with no problems, and I really like it. I appended the following to my ~/.emacs: (autoload 'LilyPond-mode lilypond-mode) (setq auto-mode-alist (cons '(\\.ly$ . LilyPond-mode) auto-mode-alist)) (add-hook 'LilyPond-mode-hook (lambda () (turn-on-font-lock))) If I open a .ly-file or create a new one, the emacs switches into the Lilypond mode (witch I can turn off with Mx LilyPond-mode. Hope that helps. (I can't switch the pdf-viewer to SumatraPDF -- but that's an other problem.) Beda ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: extending event-listener.ly
On Mon, Mar 25, 2013 at 08:58:09AM -0300, luis jure wrote: i looked at event-listener.ly, but i'm afraid it's way over my head. i can hardly manage some basic python, for me scheme is undecipherable. could anyone give me a hint how to modify event-listener.ly to recognize parenthesized notes? Unfortunately you'll need some scheme knowledge, but if you can get the general idea of the below function then you should be fine: #(define (format-note engraver event) (let* ((origin (ly:input-file-line-char-column (ly:event-property event 'origin (print-line engraver note ;; get a MIDI pitch value. (+ 60 (ly:pitch-semitones (ly:event-property event 'pitch))) (ly:duration-string (ly:event-property event 'duration)) (format-moment (ly:duration-length (ly:event-property event 'duration))) ;; point and click info (ly:format point-and-click ~a ~a (caddr origin) (cadr origin) The important bit is the (print-line ...) function. It has a number of arguments: - engraver - note - a MIDI pitch value - a duration (like 4.) - a duration (like 1.25) - point-and-click info To add \parenthesize, you need to create a similar function or extend that original one to deal with those events. To see the events, try: \displayMusic { c'4 \parenthesize d' e } oh, it looks like \parenthesize is an option to a note, rather than a separate event: ... (make-music 'NoteEvent 'parenthesize #t 'duration (ly:make-duration 2 0 1) 'pitch (ly:make-pitch 0 1 0)) ... In that case, you need to add another argument to the (print-line...) function to indicate whether the note is parenthesized or not. That requires a bunch more scheme, but this should be enough hints for you to start reading the lilypond scheme tutorial and the Extending manual. A simple binary field would be enough for your personal use, but it would be nice to have a more general approach in case people want to add more options for notes. Don't worry about this general approach (required for accepted patches into mainstream lilypond) right now; first just get the basics working for your particular purpose. - Graham ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: frescobaldi on mac
Thanks for that. Yes it shows up in the module window. I have tried to install using the commands you have posted but I always get a fatal error, sorry not in from of my computer but it is something to do with #include qt/something.sip not being at the correct path. It happens with the first command you listed. Thanks for that help, it is appreciated. -- View this message in context: http://lilypond.1069038.n5.nabble.com/frescobaldi-on-mac-tp139401p143413.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: frescobaldi on mac
Perhaps the reason is elsewhere, but your kind of error is what occurs when the python command use the built-in version of python, not the one installed by macports (or homebrew). If you installed python via macports, you could use this (always from python-poppler-st4 folder): /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7 setup.py build sudo /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7 setup.py install If it doesn't work, could you copy the text from the terminal ? -- View this message in context: http://lilypond.1069038.n5.nabble.com/frescobaldi-on-mac-tp139401p143414.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: extending event-listener.ly
on 2013-03-25 at 09:29 Graham Percival wrote: Unfortunately you'll need some scheme knowledge, but if you can get the general idea of the below function then you should be fine: thanks for the thorough explanation, graham, you just ruined my easter holidays... ;-) first i need to finish hacking my python code to get a nice csound score from the event-listener.ly output as is, and then i'll try to tackle this other problem. it might take some time, but i didn't have anything to do in easter anyway... best, lj ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: extending event-listener.ly
Le 25/03/2013 17:29, Graham Percival a écrit : On Mon, Mar 25, 2013 at 08:58:09AM -0300, luis jure wrote: i looked at event-listener.ly, but i'm afraid it's way over my head. i can hardly manage some basic python, for me scheme is undecipherable. could anyone give me a hint how to modify event-listener.ly to recognize parenthesized notes? Unfortunately you'll need some scheme knowledge, but if you can get the general idea of the below function then you should be fine: #(define (format-note engraver event) (let* ((origin (ly:input-file-line-char-column (ly:event-property event 'origin (print-line engraver note ;; get a MIDI pitch value. (+ 60 (ly:pitch-semitones (ly:event-property event 'pitch))) (ly:duration-string (ly:event-property event 'duration)) (format-moment (ly:duration-length (ly:event-property event 'duration))) ;; point and click info (ly:format point-and-click ~a ~a (caddr origin) (cadr origin) The important bit is the (print-line ...) function. It has a number of arguments: - engraver - note - a MIDI pitch value - a duration (like 4.) - a duration (like 1.25) - point-and-click info To add \parenthesize, you need to create a similar function or extend that original one to deal with those events. To see the events, try: \displayMusic { c'4 \parenthesize d' e } oh, it looks like \parenthesize is an option to a note, rather than a separate event: ... (make-music 'NoteEvent 'parenthesize #t 'duration (ly:make-duration 2 0 1) 'pitch (ly:make-pitch 0 1 0)) ... In that case, you need to add another argument to the (print-line...) function to indicate whether the note is parenthesized or not. That requires a bunch more scheme, but this should be enough hints for you to start reading the lilypond scheme tutorial and the Extending manual. A simple binary field would be enough for your personal use, but it would be nice to have a more general approach in case people want to add more options for notes. Don't worry about this general approach (required for accepted patches into mainstream lilypond) right now; first just get the basics working for your particular purpose. - Graham Hi, Today, after the same discovery I was wondering the same question than Luis but for drum-types (in \drummode, ie: sna, wbl... ) N.R. says: Not all lilypond music events are supported by ‘event-listener.ly’. Is it possible to 'listen' the drums symbols? Any hints will be appreciated. Phil. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Lyrics interfere with volta?
not top posting I'm setting a vocal piece containing a simple repeat. The code below shows problems with prematurely ending a volta, but only if the Lyrics block is included. I've trimmed the live version down to this: %- \version 2.17.14 \language english \header { title = Lyric volta bug } \new Staff { \new Voice = sop { \repeat volta 2 { ef'1 } \alternative { { r2 r4 r8 bf8 } { r2 r4 r8 bf8 } } ef'4-. r4 r2 } } \new Lyrics { \lyricsto sop { \repeat volta 2 { gu. } \alternative { { Mun -- } { Mun -- } } gu. } } %- I believe I've read the Known Issues on ties, slurs and grace notes but this seems too simple for any of those. If RTFM is indeed the answer, my pride will gratefully take second place to my sanity! Cheers, Colin ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: extending event-listener.ly
on 2013-03-25 at 22:05 Phil Hézaine wrote: Today, after the same discovery I was wondering the same question than Luis but for drum-types (in \drummode, ie: sna, wbl... ) funny, i was intending to use it for a drumstaff also... ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Lyrics interfere with volta?
I'm setting a vocal piece containing a simple repeat. The code below shows problems with prematurely ending a volta, but only if the Lyrics block is included. I've trimmed the live version down to this: The lyrics are 'connected' to the sop Voice. You only have to specify the lyrics. \new Lyrics { \lyricsto sop { gu. Mun -- Mun -- gu. } } Toine Schreurs ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: default margins and lilypond-book
Urs Liska li...@ursliska.de writes: And is your intention to keep the lilypond source inside the LaTeX document? If that's not explicitely wanted you may have a look at my musicexamples' package. Overview: http://www.openlilylib.org/?/musicexamples/ The links to the project page and download on SourceForge is currently broken, but the manual and the sample document are there. Urs, this is extremely helpful, thank you! I'd never seen it. -- David R ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Hiding one empty staff of three-staff piano score but not two
I'm typesetting a piano score that is mostly in two staves, but occasionally in three. I have filled the third staff with spacers rests when it's not needed and used \RemoveEmptyStaves and Keep_alive_together_engraver to hide it when its empty. The problem is that the first line of the score uses only one staff but *does* display the empty second staff, which Lilypond is hiding along with the third staff because it's empty. Is there a way to force the second staff to be displayed only on the first system? \version 2.16.1 right = \relative c'' { c1 | c | c | c | \break % First line c | c | c | c | \break % Second line c | c | c | c | } left = \relative c' { s1*4 | %First line that I would like to be displayed even though it's empty c1 | c | c | c | c | c | c | c | } leftTwo = \relative c { s1*8 | %First two lines c1 | c | c | c | } \score { \new PianoStaff \new Staff = right \right \new Staff = left { \clef bass \left } \new Staff = leftTwo {\clef bass \leftTwo} \layout { \context { \Staff \RemoveEmptyStaves \override VerticalAxisGroup #'remove-first = ##t } \context { \PianoStaff \remove Keep_alive_together_engraver } } } -- View this message in context: http://lilypond.1069038.n5.nabble.com/Hiding-one-empty-staff-of-three-staff-piano-score-but-not-two-tp143427.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: Hiding one empty staff of three-staff piano score but not two
When you override something in the layout-block you do so for every instance of Staff. If you want to make only the third staff disappear you have to remove the override from the layout-block and apply only to that staff like this: leftTwo = \relative c { \override Staff.VerticalAxisGroup #'remove-first = ##t s1*8 | %First two lines c1 | c | c | c | } HTH, Tao -- View this message in context: http://lilypond.1069038.n5.nabble.com/Hiding-one-empty-staff-of-three-staff-piano-score-but-not-two-tp143427p143429.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: extending event-listener.ly
On Mon, Mar 25, 2013 at 10:05:28PM +0100, Phil Hézaine wrote: Le 25/03/2013 17:29, Graham Percival a écrit : To add \parenthesize, you need to create a similar function or extend that original one to deal with those events. To see the events, try: \displayMusic { c'4 \parenthesize d' e } Today, after the same discovery I was wondering the same question than Luis but for drum-types (in \drummode, ie: sna, wbl... ) N.R. says: Not all lilypond music events are supported by ‘event-listener.ly’. Is it possible to 'listen' the drums symbols? I think the above hint should suffice. - Graham ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Lyrics interfere with volta?
On 13-03-25 03:27 PM, Toine Schreurs wrote: I'm setting a vocal piece containing a simple repeat. The code below shows problems with prematurely ending a volta, but only if the Lyrics block is included. I've trimmed the live version down to this: The lyrics are 'connected' to the sop Voice. You only have to specify the lyrics. \new Lyrics { \lyricsto sop { gu. Mun -- Mun -- gu. } } Toine Schreurs Thanks, Toine! This at least gets the score readable, although I still don't understand the original error. Cheers, Colin -- I've learned that you shouldn't go through life with a catcher's mitt on both hands. You need to be able to throw something back. -Maya Angelou, poet (1928- ) ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user