Problem with a snippet "shorthand for triplets [0.21429]"
It came from: %% http://lsr.di.unimi.it/LSR/Item?id=328 Here is part of it: % First version, with a single argument, i.e. the % syntax is \triplet{ c d e } triplet = #(define-music-function (music) (ly:music?) #{ \tuplet 3/2 $music #}) \score{ \relative c'{ c4 \triplet {c d e} } } This produces: GNU LilyPond 2.18.2 Processing `/home/rmd/Music/holycity/trips.ly' Parsing.../usr/share/lilypond/2.18.2/scm/ly-syntax-constructors.scm:56:23: In expression (apply (ly:music-function-extract fun) parser ...): /usr/share/lilypond/2.18.2/scm/ly-syntax-constructors.scm:56:23: Wrong number of arguments to # Compilation exited abnormally with code 1 at Mon Jun 27 12:18:38 Please any advice? thank you.
Re: Problem with a snippet "shorthand for triplets [0.21429]"
Thank you who replied. Sometime "soon" I will update Lilypond but I will not reply further unless this fails...
Re: Problems with musicxml2ly
Thank you very much all who replied. Paul Hodges said (in part): ... Music XML files always require a lot of processing to get acceptable > output ... > This is certainly true in this instance!! Thank you all.
skipping whole bars in lyrics
This problem has appeared on this forum: https://lists.gnu.org/archive/html/lilypond-user/2004-11/msg00295.html but some years ago, so I thought it better to start a new thread. I am trying to set the carol "O holy night " by A. Adam ( arr P. Le Bas ) verse 1 goes like this: a): sopranos only b): altos join in, same words c): they sing different words. Verses 2 & 3 similar. What I think should happen is in a) and b) \lyricsto \sopmusic below the staff and then at c) the sop. lyrics go above the staff and the alto words start up below; but only on the remaining alto music not on all the alto music . So what I want is the equivalent of \lyricmode{ \rest 30 bars (lyrics) } The best I could find in the thread above was \lyricmode { \repeat unfold #n {\skip 1} (lyrics) } which is messy because n is the number of notes, not bars. There are far more notes and you have to adjust for ties & slurs & etc. and the bars are numbered. Please any advice? thank you
Problems with midi2ly
Please: 1. Where is the manual? The man page says it is a texinfo document, but I cannot find it. 2. Trying to convert a Midi file, nearly all notes have weird durations. I assume that I should add a -d or -s but the manpage gives no hint of the units of duratioon . 3. Lyrics get mangled. To see this, go to manuals > learning > 3.4.2 Four part SATB and extract the Handel example. Add \layout {} \midi {} just above the very last } which terminates the \score. Save, say as handel.ly . Run lilypond on this. The pdf looks exactly as it says in the manual. But run midi2ly on the midi file. This gives handel-midi.ly Now run lilypond on that file and 3 lines of lyrics have disappeared. With more complicated lyrics, you get error messages about simultaneous lyrics. Please any advice? thank you. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
problems with midi2ly
BUMP: please where is the manual? ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
I cannot integrate music and text
I have a lilypond file which is a 4 part vocal score, 20 bars long. It runs with no visible error and prints correctly. I have tried: 1. Using OOolilypond 0.4. I inserted my file into the template "direct to lilypond", it produces lots of syntax errors. I found a minimal example: \key c \major aes the aes is an unexpected string 2. Using thepdf import extension from openoffice.org. This comes with no instructions saying how you should use it. I did file > open on my music.pdf file and set the document class to pdf . The file was read and something appeared which was clearly my score, but all of the noteheads and most of the lyrics were missing. The surviving lyrics were about 1 letter per word, and in a horrible looking font. I think this may be because openoffice cannot find the required fonts, but I dont know what fonts are needed or where to install them. On my system (Ubuntu unix 8.04) there are at least 20 directories containing font files. 3. Using lilypond-book. I took the example from Sec 4.1 of the online lilypond manual and replaced screech-boink.ly with my music.ly . Again the result was recognisable but the bars were in the wrong order and some bars were missing altogether. Thanks for any help, Mark ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Problem: multi-bar rests in SATB score
Lilypond version 2.10.33: to see my problem, take the SATB template from Appendix D4.1 and insert \set Score.skipBars = ##t at the start of the \global section and insert R1*7 in front of each voice's notes. Instead of a 7 bar rest, I get a 1 bar rest followed by a 6 bar rest, and these rests are printed twice in each staff, once for Sopranos and once for Altos. Please any advice? thank you ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
messy chord
Lilypond 2.13, trying to set a SATB vocal score using the template from appendix 4.1. In one bar the tenors sing (using absolute pitches)g4 first bass sing g8 (f8) (with an automatic beam) 2nd bass sing g,4 I have tried several ways to enter the bass parts, none of them work. The least bad I have found is << \\ { g8 (f8) } \\ \\ g,4 >> and the g,4 collides with the beam on the g8. Please how can I drag the g,4 about 2 mm to the left? thank you, Mark ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
What has happened to the index?
I upgraded from v 2.10 to 2.12. I looked for "ragged" in the index in the learning manual for 2.12 & couldnt find it. The index in Appendix H of the user manual for v. 2. 10 has ~~1300 entries. Ditto, App. D, learning manual for 2.12 has ~~950 entries. Is this intended? ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
titles & scores
V. 2.12.3 I am trying to set a file that consists of several short pieces, each with a title. Each piece is a \score and each title a \markup: header of whole file \markup { title 1} \score 1 \markup { title 2} \score 2 etc. I think that there is too much vertical space between each title and its score, even with after-title-space=0\cm I tried putting the titles into a \header block in each score, that made the problem worse. Also Lilypond frequently breaks pages between a title and its score. Please any advice? thank you ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Bar numbers at start of score
Version 2.12.3 I want to print the current bar number at the start of a score. In theory you can do this by inserting \bar "" but this does not work when the score begins with a \partial . The only relevant post I can find is bar numbers at beginning of line by Walter Hofmeister 2007/08/05 and the stated solution was \once \override Score.BarNumber #'break-visibility = #all-visible or #'#(#t #t #t) and I tried both with no visible effect. The manual says the same. I would be happy to print the number after the \partial . Please any advice? thank you. ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Request for changes in manuals
I am using Version 2.12.3. In a previous post I asked about printing bar numbers in non-standard places. I was told: 1) \once \override Score.BarNumber #'break-visibility = #all-visible I believe that the manual fails to say that this command only works if you put it in exactly the right place, which is at the bar that is to be numbered. 2)and barNumberVisibility = #all-bar-numbers-visible I cannot find this documented anywhere. 3) It seems as if #(definecan be used to define macros with arguments. but I cannot find the syntax. If these are not in the manual, please could they be inserted? thank you. ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Request for advice: how to install documents
Lubuntu 12.04, I recently downloaded Lilypond 2.18.2, (Linux generic package from lilypond.org/unix.html ) Then sudo sh ./lilypond-2.18.2-1.linux-x86.sh --doc --prefix /usr/local [password] This ran without visible error and lilypond works, but the documents are badly installed: 1. Man pages are in/usr/local/lilypond/usr/share/man/man1 (at least the ones I have found) and the man program cannot find them. 2. There are lots of html and pdf files in /usr/local/lilypond/usr/share/doc/lilypond/html/Documentation and sub-directories and there seem to be several copies of everything that is represented. So please is there a sensible way to install the documents? By "sensible" I mean: one copy of each manual, and some convenient way of reading it. Another problem appears when I try to read the manuals from the website. The split HTML files have navigation buttons for next page etc, and I cannot get them to work. Please any advice? Thank you ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Problem: incompatible Lilypond and Guile
Thank you who replied. I think I should explain some background: I was trying to write a template which has bugs. (off-topic, I hope to post a new thread on "handbells"). I got the exact same error with Guile 1.8.8+1-6ubuntu2 Then I removed that and installed Guile 2.0.5+1-1 In general Lilypond seems to be working with both Guiles, I only get this error when I try to debug. Then I downloaded Guile 2.0.11 from the gnu.org website and tried to build it. Configure failed (also off topic). David Kastrup wrote: [in part] ... > part > of it is stabbing around in the dark around bugs and undocumented areas > of GUILE 2. > > So why does the gnu.org website http://www.gnu.org/software/guile/ say that Guile 2.0.11 is stable? ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Handbells
I was trying to write a template for printing music for handbells. What I want is: Conductor gets a full score. Each handbell ringer gets a part with the handbell music in a piano staff, and his or her notes highlighted in colours. My current problem is shown by this file: BEGIN \version "2.18.2" #(define (shout) (display "hello")) upper = \relative c' { c4 d e f } \score { \new Staff \upper \layout { }} #(shout) END This produces the expected .pdf file. But the shout occurs **before** the \score is processed. The output reads (in part) Processing `b.ly' Parsing...hello Interpreting music... and I need it to occur after the \score . Please any advice? I tried putting the #(shout) inside the \score { } but that gives a syntax error. Thank you ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: handbells
The file I posted is only intended as a tiny file to show my current problem. I could post something longer but I dont think this would give the experts any better idea of my problem. In outline, I wanted to print out a \score with the handbell music in plain black, collecting information as it goes. call a Scheme procedure to assign bells to ringers. In my example "shout" stands for this procedure. My problem is: how to get "shout" to run after the first \score is printed? Then do the Scheme equivalent of for ( i=0; i___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Problem: incompatible Lilypond and Guile
With help from the Guile users group (thanks to Germán Arias & Chris Vine) I installed Guile 2.0.11. The reported problem persists. I can run L-pond (as long as I do not try anything difficult) (still version 2.18.2) but I cannot debug. The tiny test x.ly fails with the same error. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: handbells
Thanks to David Nalesnik who has solved my problem. Mark ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Please how to use the Scheme debugger?
I am using L-Ubuntu 12.04, Lilypond 2.18.2, Guile 1.6, then 1.8 (from Ubuntu repository), then Guile 2.0.11 (from gnu.org) The manual ( Contributor's Sec 10.7.3 ) says to do \include "guile-debugger.ly" This produces Parsing... /usr/local/lilypond/usr/share/lilypond/current/ly/guile-debugger.ly:39:2: error: GUILE signaled an error for the expression beginning here # (use-modules (ice-9 readline)) readline is not provided in this Guile installation /usr/local/lilypond/usr/share/lilypond/current/ly/guile-debugger.ly:40:2: error: GUILE signaled an error for the expression beginning here # (activate-readline) Unbound variable: activate-readline Guile debugger for Lilypond For help enter (debug-help) /usr/local/lilypond/usr/share/lilypond/current/ly/guile-debugger.ly:46:2: error: GUILE signaled an error for the expression beginning here # (use-modules (scm guile-debugger)) no code for module (ice-9 debugger command-loop) guile> I get the same errors with all 3 versions of Guile. I could not find anything relevant either in Google or guile users. Thank you ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Please how to use the Scheme debugger?
My apologies to D. Kastrup for having replied in the wrong way. It seems that Lilypond ( lilypond-2.18.2-1.linux-x86.sh installed with default options ) comes with its own private copy of Guile (1.8.7). Unfortunately this means that installing another version of Guile does not change anything. Please is there any way to break the link between Lilypond and this version of Guile? At present, the only way I can get a working debugger is by reverting to Lilypond 2.14 . ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Notes engraved in weird order
Version 2.14 While trying to debug something else I found that Lilypond sometimes engraves its notes in a strange order. If you print the same piece repeatedly, the order changes. I changed my program to display pitch-semitones. With input piece = \relative c' { c4 d e f g a b c,, d f g a } \score { \piece} \score { \piece} the relevant part of the output is Drawing systems... Notes: (-7 -10 -5 -3 5 4 7 2 0 11 9 -12) Notes: (11 -5 -7 -12 9 0 4 7 2 -3 5 -10) Layout output to `order.ps'... Converting to `./order.pdf'... success: [cut] The typeset output is correct. Please is this supposed to happen? I cannot find it documented. I hope to attach my program (sorry about the length, I dont think I can make it shorter). \version "2.14.2" #(define n-list '() ) %{ pitch-to-color modified: print black and generate messages %} #(define (pitch-to-color pitch) (let* (( nn (ly:pitch-semitones pitch)) ( m '(0 0 0 ) )) (set! note-i (1+ note-i)) (set! n-list (cons nn n-list )) (if (>= note-i count-notes) (begin (set! note-i 0 ) (ly:message "Notes: ~a \n" (reverse n-list )) (set! n-list '() ) )) m )) #(define (color-notehead grob) (pitch-to-color (ly:event-property (event-cause grob) 'pitch))) %{Test piece. %} \layout { \context { \Voice \override NoteHead #'color = #color-notehead }} piece = \relative c' { c4 d e f g a b c,, d f g a } #(define count-notes 12) #(define note-i 0) \score { \piece} \score { \piece} ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Problems with musicxml2ly
Sorry about the length of this: In outline: I tried to use musicxml2ly on a xml file. This ran with no error, but when I ran lilypond on the result, I got a flood of warnings & then a fatal error & no output. I append the (truncated) error report I hope. Unfortunately I do not know any way to produce a small xml that will give this error. The file I wanted was "O holy night" by Adolphe Adam (translated into English) adapted by P. Le Bas. It came from this address: https://www.cpdl.org/wiki/index.php/Minuit,_chr%C3%A9tiens_(O_Holy_Night)_(Adolphe_Charles_Adam)#In_English_translation.2C_.22O_Holy_Night.22 & it was the first item listed. It was available in pdf , mid , mp3 , xml and sib. jsonformatter.org said it is a valid xml file. The pdf looks good. I tried midi2ly & the result was really weird. Please any advice? rmd@rmd:~/Music/night$ musicxml2ly O\ Holy\ Night\ -\ NP.xml musicxml2ly: Reading MusicXML from O Holy Night - NP.xml ... musicxml2ly: Converting to LilyPond expressions... musicxml2ly: warning: Negative skip -3/2 (from position 249/2 to 123) musicxml2ly: warning: Negative skip -9/8 (from position 993/8 to 123) [ 350 similar errors] musicxml2ly: Converting to LilyPond expressions... musicxml2ly: Converting to LilyPond expressions... musicxml2ly: warning: Negative skip -1 (from position 275/2 to 273/2) musicxml2ly: Converting to LilyPond expressions... Traceback (most recent call last): File "/usr/bin/musicxml2ly", line 2986, in main() File "/usr/bin/musicxml2ly", line 2981, in main voices = convert (filename, options) File "/usr/bin/musicxml2ly", line 2892, in convert score = extract_score_structure (mxl_pl, staff_info) File "/usr/bin/musicxml2ly", line 430, in extract_score_structure staff = read_score_part (el) File "/usr/bin/musicxml2ly", line 383, in read_score_part staff.instrument_name = extract_display_text (partname) File "/usr/bin/musicxml2ly", line 907, in extract_display_text child = el.get_maybe_exist_named_child ("display-text") File "/usr/share/lilypond/2.18.2/python/musicxml.py", line 114, in get_maybe_exist_named_child return self.get_maybe_exist_typed_child (get_class (name)) File "/usr/share/lilypond/2.18.2/python/musicxml.py", line 123, in get_maybe_exist_typed_child raise "More than 1 child", klass TypeError: exceptions must be old-style classes or derived from BaseException, not str rmd@rmd:~/Music/night$