Re: Snippet 390
2008/4/12 Alexander Kobel <[EMAIL PROTECTED]>: > Oh, and since I'm typing right now anyway: Here's a slight modification of > LSR snippet 390 to also modify rest events, laying around here for some > time... Thanks, updated. Cheers, Valentin ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Running LilyPond from a memory stick
2008/4/12 Ben Lewis <[EMAIL PROTECTED]>: > Start > Run > RegEdit? I know it exists in XP, so that should work. No; the point is, you should have to be able to run LilyPond from the USB stick *without* modifying the registry at all. Some applications (look, for instance, at the portable version of Firefox or GIMP) manage to intercept registry calls and substitute their own parameters; that's what we should try to implement. Cheers, Valentin ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: English Translation
Am 2008-04-11 um 22:31 schrieb Werner LEMBERG: "- what is a good way of translating the German "ewig reicher Gott", [...] The meaning of "reich" in this example is extremely uncommon in (modern) German. I *guess* it refers to the old stem of "-rich" (like in names) that means "ruler", similar to "Reich" (empire, see "dein Reich komme" in German paternoster). I disagree. Doing a quick search with google I find the following title of this song: As a pagan I won't argue about Christian translations. ;-) Greetlings from Lake Constance --- fiëé visuëlle Henning Hraban Ramm http://www.fiee.net http://angerweit.tikon.ch/lieder/ https://www.cacert.org (I'm an assurer) ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Metronome marks
On 12/04/2008, Alexander Kobel wrote: > I think there's another drawback of the snippet. > I had a very similar problem, trying to add marks like "Moderato (* = > 63)", yet using rehearsal marks at the same time for sectioning the piece. > Problem is, Lily can't handle two RehearsalMark events on the same beat > (don't know whether there's a workaround), so I wanted to use > MetronomeMarks. Sounds familiar. :-) I got around the simultaneous RehearsalMark limitation by using invisible measures. My dirty trick is attached below. This time it worked but there might be situations, when it doesn't. Your solution looks interesting, too. I must dig a bit deeper into it. -Risto % \version "2.11.39" \paper { ragged-right = ##t } { \key a \major \set Score.markFormatter = #format-mark-box-letters \once \override Score.RehearsalMark #'outside-staff-priority = #5000 \once \override Score.RehearsalMark #'self-alignment-X = #left \once \override Score.RehearsalMark #'extra-spacing-width = #'(+inf.0 . -inf.0) \once \override Score.RehearsalMark #'break-align-symbols = #'(key-signature) \mark \markup \bold "Senza denti" % the hidden bar \override Score.TimeSignature #'stencil = ##f \time 1/16 s16 \bar "" \revert Score.TimeSignature #'stencil \time 4/4 \once \override Score.RehearsalMark #'self-alignment-X = #left \once \override Score.RehearsalMark #'extra-spacing-width = #'(+inf.0 . -inf.0) \once \override Score.RehearsalMark #'break-align-symbols = #'(bar-line) \mark \markup \box {\bold "Intro"} d'1 \mark \default d' } % <>___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Metronome marks
> I got around the simultaneous RehearsalMark limitation by using > invisible measures. My dirty trick is attached below. Apparently a piece for very aged people only :-) Werner ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: OFF: Help from native English speakers (epsecially if speaking German)
Op Friday 11 April 2008 10:31:49 schreef Bertalan Fodor (LilyPondTool): > - what is a good way for translating the German "inständiges flehen", > meaning something like pleading, devoted praying In the orthodox church one might say: (Litany of) Fervent Intercession. Jan. ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Metronome marks
Risto Vääräniemi wrote: On 12/04/2008, Alexander Kobel wrote: I think there's another drawback of the snippet. I had a very similar problem, trying to add marks like "Moderato (* = 63)", yet using rehearsal marks at the same time for sectioning the piece. Problem is, Lily can't handle two RehearsalMark events on the same beat (don't know whether there's a workaround), so I wanted to use MetronomeMarks. Sounds familiar. :-) I got around the simultaneous RehearsalMark limitation by using invisible measures. My dirty trick is attached below. This time it worked but there might be situations, when it doesn't. Sounds familiar. :-) My first attempt was using "grace skips" (\grace s16) instead of hidden bars. This makes it easier to align the time on multiple voices by far, and the result looked like yours. Your solution looks interesting, too. I must dig a bit deeper into it. Actually, it's a quite nice technique. Not sure where else I can use it (if at all); but since virtually everything in Lily uses stencils and you can combine them with ly:stencil-combine-at-edge, I bet there will be other applications. Alexander ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Lytex and directory structure
thanks. hugo 2008/4/11, Graham Percival <[EMAIL PROTECTED]>: > > On Fri, 11 Apr 2008 20:33:19 -0300 > Hugo Ribeiro <[EMAIL PROTECTED]> wrote: > > > If I put it into the main file, everything goes ok. Put if I put this > > same code into any file that is in a subdirectory, like > > '../Cap01/cap01-02_notacao.tex' I receive an error in the Latex. It > > says: > > > > "! LaTeX Error: Environment lilypond undefined." > > > You need to run lilypond-book on Cap01/cap01-02_notacao.lytex > (note the new extension!) first. Cap01/cap01-02_notaco.tex (note > the old extension) **must** be created automatically from > lilypond-book. > > You'll want to set up some makefiles for this. I've attached two > of my makefiles as examples; "makefile.intro" would go in an > intro/ directory, and be renamed to simply "makefile" of course. > > We discussed this about a month ago; you may want to look at the > archives for more info. > > Cheers, > > - Graham > > > ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
\incudes in \include'd files
Hi all I'm setting up a bunch of different settings for my scores. I've put them into a separate definition file so that I can just \include it. I have several different definition files feeding into a master definition file, and I include the master file in my score. My definition files are stored in /def/, and my scores are kept in /scores/ My files would look like this: master_def.ly \version "2.11.43" \include "note_def.ly" %some other stuff . score.ly \version "2.11.43" \include "../def/master_def.ly" %music stuff . When I compile my score, I get the error: ../def/master_def.ly:4:9: error: cannot find file: `note_def.ly' Lilypond is correctly opening master_def.ly, but is then trying to open note_def.ly in the current path, rather than ../def Is there a way to have /include keep relative path information? Cheers Matthew ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: \incudes in \include'd files
Hi Matthew, If the file isn't in the local directory, or lily search path, you have to specify additional path with -I [capital i], such as: lilypond -I I have made a simple script to myself which does this for me: #!/bin/bash lilypond -I/usr/alto/projects/music/scores/lilylib $1 and called it 'lily' to simplify 'my life' :-) Cheers, David ;; -- Le Sat, 12 Apr 2008 13:26:33 + (UTC), Matthew <[EMAIL PROTECTED]> a écrit : > Hi all > > I'm setting up a bunch of different settings for my scores. I've put them > into a > separate definition file so that I can just \include it. > > I have several different definition files feeding into a master definition > file, > and I include the master file in my score. My definition files are stored in > /def/, and my scores are kept in /scores/ > > > My files would look like this: > > master_def.ly > \version "2.11.43" > \include "note_def.ly" > > %some other stuff > > . > > score.ly > \version "2.11.43" > \include "../def/master_def.ly" > > %music stuff > > . > > When I compile my score, I get the error: > ../def/master_def.ly:4:9: error: cannot find file: `note_def.ly' > > > Lilypond is correctly opening master_def.ly, but is then trying to open > note_def.ly in the current path, rather than ../def > > Is there a way to have /include keep relative path information? > > > > Cheers > > Matthew > > > > ___ > lilypond-user mailing list > lilypond-user@gnu.org > http://lists.gnu.org/mailman/listinfo/lilypond-user ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: \incudes in \include'd files
2008/4/12 Matthew <[EMAIL PROTECTED]>: > Is there a way to have /include keep relative path information? Currently there isn't (and I find it very much annoying, which is why I proposed to sponsorize this implementation). See http://code.google.com/p/lilypond/issues/detail?id=391 Cheers, Valentin ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: \incudes in \include'd files
On 12 Apr 2008, at 18:17, Valentin Villenave wrote: Is there a way to have /include keep relative path information? Currently there isn't (and I find it very much annoying, which is why I proposed to sponsorize this implementation). See http://code.google.com/p/lilypond/issues/detail?id=391 I have a vague memory this was discussed before. Anyway, it was discussed on the Bison lists, and decided that a relative path in a file should be relative that file. By contrast, in a startup argument, it should be relative the program, in order to get in right in 'make'-files for example. - ANd if one want to know exactly how the shell computes the full path, then one can look at say 'man bash', section "COMMAND EXECUTION". Hans Åberg ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: vim
Dear Patrick, I had luck, it worked! Thanks Stefan 2008/4/10, Patrick McCarty <[EMAIL PROTECTED]>: > > On Thu, Apr 10, 2008 at 03:56:26PM +0200, Stefan Thomas wrote: > > Dear lilypond-users, > > I have a question concerning vim. I've read that there is a special > > vimrc available. But where can I get or find it? And I've also read > > that I have to add to the file " ~/.vim/filetype.vim " > > the message > > if exists("did_load_filetypes") > >finish > > endif > > augroup filetypedetect > >au! BufNewFile,BufRead *.ly setf lilypond > > augroup END > > But unfortunately I don't find a file of the kind > > ~/.vim/filetype.vim. What can I do? > > Thanks for Your support! > > Stefan > > > Hi Stefan, > > If you have LilyPond installed in Linux, the necessary content for > ~/.vim/filetype.vim and ~/.vimrc is not installed by default. You > have to add it yourself. > > Just add the if exists(...) stuff to ~/.vim/filetype.vim, or create > ~/.vim/filetype.vim with this content if the file does not exist. > Then add the following line to ~/.vimrc > > set runtimepath+=~/lilypond/usr/share/lilypond/current/vim/ > > If that doesn't work, find out where this "vim" directory is located, > and change the path accordingly. > > Hope this helps, > > Patrick > ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Problems altering Staff Size
I'm typesetting a concerto, and I want to use the feta14 size for the full score. The first time I tried, I placed the #(global-set-staff-size 14), but it changed the appearance of all the parts, too. So, I added the \layout { #(layout-set-staff-size 14) } segment to my \score { } block, and it promptly made my score look like the attached segment. Any advice? ~Ben P.S. In the image, this is about half of an 8.5*11 page. -- My PGP key (can be found on the Ubuntu Keyserver) Fingerprint is: 74D9 E4BE 2F95 3806 E2FA 7E04 8A71 5831 0E8B CAA1 <> signature.asc Description: This is a digitally signed message part. ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: vim
Hi, I think I managed to make Vim do syntax highlighting but I don't get lilypond as an option in gvim dropdown syntax menu. Any ideas? Any other integration tips? On Sat, Apr 12, 2008 at 2:27 PM, Stefan Thomas <[EMAIL PROTECTED]> wrote: > Dear Patrick, > I had luck, it worked! > Thanks > Stefan > > 2008/4/10, Patrick McCarty <[EMAIL PROTECTED]>: > > > > On Thu, Apr 10, 2008 at 03:56:26PM +0200, Stefan Thomas wrote: > > > Dear lilypond-users, > > > I have a question concerning vim. I've read that there is a special > > > vimrc available. But where can I get or find it? And I've also read > > > that I have to add to the file " ~/.vim/filetype.vim " > > > the message > > > if exists("did_load_filetypes") > > >finish > > > endif > > > augroup filetypedetect > > >au! BufNewFile,BufRead *.ly setf lilypond > > > augroup END > > > But unfortunately I don't find a file of the kind > > > ~/.vim/filetype.vim. What can I do? > > > Thanks for Your support! > > > Stefan > > > > > > Hi Stefan, > > > > If you have LilyPond installed in Linux, the necessary content for > > ~/.vim/filetype.vim and ~/.vimrc is not installed by default. You > > have to add it yourself. > > > > Just add the if exists(...) stuff to ~/.vim/filetype.vim, or create > > ~/.vim/filetype.vim with this content if the file does not exist. > > Then add the following line to ~/.vimrc > > > > set runtimepath+=~/lilypond/usr/share/lilypond/current/vim/ > > > > If that doesn't work, find out where this "vim" directory is located, > > and change the path accordingly. > > > > Hope this helps, > > > > Patrick > > > > > ___ > lilypond-user mailing list > lilypond-user@gnu.org > http://lists.gnu.org/mailman/listinfo/lilypond-user > > -- Rafael F. -- () /\ www.asciiribbon.org ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
makefile generator
Attached program finds dependencies in lilypond files. E.g.: $ grep include Sliv.ly global.ly Sliv.ly:\include "global.ly" Sliv.ly:\include "Mliv.ly" Sliv.ly:\include "score.ly" global.ly:\include "choirbook.ly" global.ly:\include "../common/global.ly" $ depend_ly ps Sliv.ly Sliv.ps:Sliv.ly ../common/global.ly Mliv.ly choirbook.ly global.ly score.ly So you can have: %.ps: %.ly lilypond --ps $< dep depend.mk: depend_ly ps S*.ly > depend.mk -include depend.mk in your makefile. Regards, /Karl #!/usr/bin/perl -w use strict; my %inc; my @Inc = ("."); sub Usage() { print "Usage: depend_ly [-I[:]...] ext ly-file(s) Where is where to find included ly-files ext is the file extension which your lilypond run should generate e.g.: pdf, ps, eps "; exit 1; } sub file_exist($) { my $file = shift; my $inc; foreach (@Inc) { if ($_ eq ".") { $inc = $file; } else { $inc = "$_/$file"; } if (stat $inc ) { return $inc; } } return 0; } sub ly_inc($) { my $file = shift; my $fh; my %lst = (); # which files to recursively check # no file no dependancies open($fh, "<", $file) || return; while(<$fh>) { s/%.*$//; # this breaks for multiple \include per line m/\\include[ \t]+\"([^\"]+)\"/ || next; #" my $inc_file = $1; # consider only existing files as dependancies $inc_file = file_exist $inc_file || next; # only add this file to %lst if we have not checked it for dependancies if (!$inc{$inc_file}) { $lst{$inc_file} = 1; } # add this as an dependancy $inc{$inc_file} = 1; } foreach (keys(%lst)) { &ly_inc($_); } } if (@ARGV < 2) { Usage(); } my $ext = shift @ARGV; if ($ext =~ m/^-I(.*)$/) { push @Inc, split(/:/, $1); $ext = shift @ARGV; } my $file; foreach $file (@ARGV) { # reset found dependancies for each new file to check %inc = (); &ly_inc($file); my $stem = $file; $stem =~ s/\.ly$//; my $prefix = "$stem.$ext"; if ($ext eq "eps") { # more than one file is generated for the eps backend $prefix .= " $stem-systems.tex"; } my $lst = join(" ", sort(keys(%inc))); print "$prefix:\t$file ", $lst, "\n"; } ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Problems altering Staff Size
On Sat, 12 Apr 2008 13:22:44 -0500 Ben Lewis <[EMAIL PROTECTED]> wrote: > I'm typesetting a concerto, and I want to use the feta14 size for the > full score. The first time I tried, I placed the # > (global-set-staff-size 14), but it changed the appearance of all the > parts, too. So, I added the \layout { > #(layout-set-staff-size 14) } segment to my \score { } block, and it > promptly made my score look like the attached segment. Any advice? I believe this is covered by the warning at the bottom of NR 5.2.1 Setting the staff size (in the 2.11 docs) This message isn't particularly helpful, but we don't have the resources to fix this bug. Cheers, - Graham ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Another LilyPond/Leopard solution
Hi, I posted a guide to run LilyPond with Aquamacs on Leopard... I hope it help other users. (No need to work with everything in the same folder, but still using the PowerPC binaries) http://www.padovani.googlepages.com/lily-aquamacs-leopard.html ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Problems altering Staff Size
2008/4/12 Ben Lewis <[EMAIL PROTECTED]>: > I'm typesetting a concerto, and I want to use the feta14 size for the full > score. The first time I tried, I placed the #(global-set-staff-size 14), but > it changed the appearance of all the parts, too. So, I added the \layout { > #(layout-set-staff-size 14) } segment to my \score { } block, and it > promptly made my score look like the attached segment. Any advice? I'd do something like: #(set-global-staff-size 14) \layout { \context { \Staff \type "Engraver_group" \name "SoloStaff" \alias Staff \remove "Time_signature_engraver" \override VerticalAxisGroup #'minimum-Y-extent = #'(-8 . 8) \override StaffSymbol #'thickness = #1.5 \override StaffSymbol #'staff-space = #1.5 fontSize = #3 } \context { \StaffGroup \accepts "SoloStaff" } } \new StaffGroup << \new Staff a1 \new Staff a1 \new Staff a1 \new SoloStaff a1 \new Staff a1 \new Staff a1 \new Staff a1 >> If you like it, please consider adding it to the LSR: http://lsr.dsi.unimi.it/LSR/html/contributing.html Cheers, Valentin ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Problems altering Staff Size
2008/4/12 Valentin Villenave <[EMAIL PROTECTED]>: > \remove "Time_signature_engraver" Ooops -- this line is (obviously) to be removed in the snippet I just sent. Cheers, Valentin ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Another LilyPond/Leopard solution
I kind of avoid emacs and its clones like the plague, but, does aquamacs have any lilypond syntax coloring? or foldings like TextMate? I usually use nano or TeXShop, but there are some aspects of TextMate that I would really like to use, but the syntax coloring in TextMate is so bad that I can't use it. Am 12.04.2008 um 21:36 schrieb padovani: Hi, I posted a guide to run LilyPond with Aquamacs on Leopard... I hope it help other users. (No need to work with everything in the same folder, but still using the PowerPC binaries) http://www.padovani.googlepages.com/lily-aquamacs-leopard.html ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: [ANN] LilyKDE 0.5.0 released
2008/4/11 Wilbert Berendsen <[EMAIL PROTECTED]>: > Hi all, > > LilyKDE 0.5.0 has been released[1]. Nice -- just in time for the "LilyPond Report"! Attached is a fr.po localization file. I actually do not use KBabel or anything, so there will probably some things to edit. But perhaps you'll be interested in it though. Cheers, Valentin fr.po Description: Binary data ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: \incudes in \include'd files
Matthew gmail.com> writes: > > Is there a way to have /include keep relative path information? > I've got a work around that only works because of my simple, one level directory structure def/master_def.ly \version "2.11.43" \include "../def/note_def.ly" %some other stuff . scores/score.ly \version "2.11.43" \include "../def/master_def.ly" %music stuff In my master def file, I go up a directory and then back into /def to get to my files. It works :| ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Orchestra file causing an init.ly error
Eric Hedekar gmail.com> writes: > > > AHHH, there's the problem! I should have known better!-Eric I use Lilypondtool for jEdit -> coloured text ftw! . I've done that comment thing several times, but now that I've got coloured text, it makes it a lot easier to recognise what I've done. ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Problems altering Staff Size
I've shifted to using \include for the music, then applying #(set-global-staff-size 14) to the score file I've created, however this produces another problem; while the staffs are resized to the feta14 size, none of the other objects are. How could I remedy this? ~Ben On Saturday 12 April 2008 14:15:43 Graham Percival wrote: > On Sat, 12 Apr 2008 13:22:44 -0500 > Ben Lewis <[EMAIL PROTECTED]> wrote: > > > I'm typesetting a concerto, and I want to use the feta14 size for the > > full score. The first time I tried, I placed the # > > (global-set-staff-size 14), but it changed the appearance of all the > > parts, too. So, I added the \layout { > > #(layout-set-staff-size 14) } segment to my \score { } block, and it > > promptly made my score look like the attached segment. Any advice? > > I believe this is covered by the warning at the bottom of > NR 5.2.1 Setting the staff size > (in the 2.11 docs) > > This message isn't particularly helpful, but we don't have the > resources to fix this bug. > > Cheers, > - Graham > -- My PGP key (can be found on the Ubuntu Keyserver) Fingerprint is: 74D9 E4BE 2F95 3806 E2FA 7E04 8A71 5831 0E8B CAA1 signature.asc Description: This is a digitally signed message part. ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Extracting only lyrics and chords
Mats Bengtsson wrote: Why not read the section called "Lyrics independent of notes" in the manual? /Mats This came tantalisingly close to giving me a solution; the catch was that the ties and slurs in the melody were ignored or lost and the alignment of the lyrics against the chords went out the window. Thanks anyway. Brett ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user