Re: scheme artificial harmonic (transposition within chord)
Neil Puttock wrote: On 15 February 2011 14:25, Rob Canning r...@goto10.org wrote: where lies the error or is there a better way to do this - am slightly suprised there is not a build in function for this... maybe there is? There are several parser limitations you're encountering here. The only way around them is to stay in scheme when creating the new chord: artHarm = #(define-music-function (parser location note) (ly:music?) (let ((harm (ly:music-transpose (ly:music-deep-copy (car (ly:music-property note 'elements))) (ly:make-pitch 0 3 0 (set! (ly:music-property harm 'articulations) (list (make-music 'HarmonicEvent))) (set! (ly:music-property note 'elements) (append (ly:music-property note 'elements) (list harm))) note)) { \artHarm ais } BTW, this only works properly in absolute note mode due to the way transposing interacts with \relative { } blocks (there's a note in the docs warning about this under \transpose). from the docs i see that it might be possible if somehow another \relative can be included within the transpose doesnt work: \relative { \transpose c d {a4 b c d} } does work: \transpose c d { \relative { a4 b c d} } i wonder is it possible to add a relative within the function? or maybe allow the function to accept \relative as part of its input argument?i guess the former would be better if its possible my goal is so that the interval defined in the function is always placed above the root pitch passed as an argument any ideas if this is possible? thanks rob Cheers, Neil ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
scheme artificial harmonic (transposition within chord)
hello, i am trying to get scheme to automate artificial harmonics so i dont need to specify the pitch of the note written up the perfect fourth i am running in to the problem of scheme not evaluating the variable once put inside the chord (i get errors regarding /lilyvartmpc /) where lies the error or is there a better way to do this - am slightly suprised there is not a build in function for this... maybe there is? artHarm = #(define-music-function (parser location note) (ly:music?) #{ $note \transpose c f $note \harmonic #}) { \artHarm b } thanks rob ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: scheme artificial harmonic (transposition within chord)
Neil Puttock wrote: On 15 February 2011 14:25, Rob Canning r...@goto10.org wrote: where lies the error or is there a better way to do this - am slightly suprised there is not a build in function for this... maybe there is? There are several parser limitations you're encountering here. The only way around them is to stay in scheme when creating the new chord: artHarm = #(define-music-function (parser location note) (ly:music?) (let ((harm (ly:music-transpose (ly:music-deep-copy (car (ly:music-property note 'elements))) (ly:make-pitch 0 3 0 (set! (ly:music-property harm 'articulations) (list (make-music 'HarmonicEvent))) (set! (ly:music-property note 'elements) (append (ly:music-property note 'elements) (list harm))) note)) { \artHarm ais } BTW, this only works properly in absolute note mode due to the way transposing interacts with \relative { } blocks (there's a note in the docs warning about this under \transpose). this is great thank you! these chunks of scheme really help me get my head around things. thank you too to patrick for your link - looks like some very useful stuff there rob Cheers, Neil ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
ghostscript and ly 2.12.2 broken? vserver architecture misidentification with uname -m
hello! suddenly i have a problem which appeared yesterday - perhaps something upgraded ghostscript (Ghostscript 8.70 (2009-07-31)) and now there is a problem on lilypond 2.12.2: Layout output to `test.ps'... Converting to `./test.pdf'... `gs -q -dSAFER -dDEVICEWIDTHPOINTS=595.28 -dDEVICEHEIGHTPOINTS=841.89 -dCompatibilityLevel=1.4 -dNOPAUSE -dBATCH -r1200 -sDEVICE=pdfwrite -sOutputFile=./test.pdf -c .setpdfwrite -f test.ps' failed (256) error: failed files: test.ly should i downgrade ghostscript or what is the solution? i am on ubuntu karmic i thought i would upgrade to the unstable version to test compatability there but there is no deb yet so two questions: i am running a 32bit ubuntu karmic vserver on a 64bit debian host - so the architechture is misidentified by the arch=$(uname -m) in the install .sh script i tried to fool it by commenting that out and : arch=i686 then i get this: untarring lilypond-2.13.49-1.linux-x86.sh bzip2: (stdin) is not a bzip2 file. tar: Child died with signal 13 tar: Exiting with failure status due to previous errors plan B is to try building a 2.13 debian package in my launchpad ppa - i dont have much hope for this but i am going to give it a go ... currently cloning the git repo... too much for one email to sumarise is there a quick fix for this ghostscript problem? thanks rob ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: A quick way to change 50 lilypond files
hsweet wrote: Search/Replace in an editor is fine for one or 2 files. + I never remember regex syntax so this way it's written down : ) +I just wanted to avoid having to do this manually for 50 files. This does them all at once. 50 or 500. i find sed handy for this kind of batch text manipulation you have to escape the \ in \transpose so it is written \\transpose you also have to do a bit of uglyness to escape the ' so ' will become \'\'' this oneliner will replace \transpose c' d' with \transpose c' b' in all the files in whatever directory you execute it in sed s'/\\transpose c\'\'' d\'\'' /\\transpose c\'\'' b\'\''/'g *.ly this will spit the output into the terminal for you to check then when you are sure it is good you can add the -i flag to make it actually edit the files sed -i s'/\\transpose c\'\'' d\'\'' /\\transpose c\'\'' b\'\''/'g *.ly rob Here is one I just thought of... (Haven't tested yet) It should make copies transposed for clarinet. $line=~s:\\relative c':\\transpose c b \\relative c':; $line=~s:\\chordmode:\\transpose c b \ \chordmode:; $line=~s:Violin:Clarinet:; hsweet wrote: I had a bunch of band charts I needed to update. I wanted to assign each chart a number and give them all a midi tempo. Then every now and then I learn something new that I want to add. I dusted off an old Perl script, changed a few lines and I was able to automate the process. It reads all the lilypond files in a folder, reads and changes the text inside and writes the updated file to a temporary folder called changed. Open to the changed folder in a terminal, type lilypond * and lily will recompile everything. The key to the whole thing is the line=~s/xxx /yyy / lines. If you have ever used regex it will make sense. open(OUT, changed/$file); #output is to a folder called Changed one level deeper in tree foreach my $line(@text){ $line=~s:\\date:\\italic{ \Sheet $cnt | Updated \ \\date } :; $line=~s:\\midi { }:$midistring:; print OUT $line; } This is the whole program. http://old.nabble.com/file/p30495491/lymod.pl lymod.pl ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: nested variables in scheme
David Kastrup said : r...@goto10.org writes: beza #0.4 feeding into something like this: (which doesn't work) beza = #(define-music-function (parser location thickness) (number?) #{ \bezier #'( 0.1 1.0 0.15 1.0 $number ) #}) What happens if you write $thickness instead? here is a simplified version of the problem and the lilypond error: hpRot = #(define-music-function (parser location rot) (list?) #{ \once \override Hairpin #'rotation = $rot #}) fooBar = #(define-music-function (parser location zabadoo) (number?) #{ { a b c d \hpRot #'($zabadoo 0 1) s2^\ s s s \! } #}) \fooBar #3 Drawing systems.../usr/share/lilypond/2.12.2/scm/layout-page-layout.scm:53:9: In procedure ly:system-print in expression (ly:system-print sys): /usr/share/lilypond/2.12.2/scm/layout-page-layout.scm:53:9: Wrong type (expecting real number): lilyvartmpc from what i can guess the variable is not being evaluated but instead being passed as lilyvartmpc ... thanks rob ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: nested variables in scheme
jakob lund said : 2010/12/16 Rob Canning r...@goto10.org: David Kastrup said : r...@goto10.org writes: beza #0.4 feeding into something like this: (which doesn't work) beza = #(define-music-function (parser location thickness) (number?) #{ \bezier #'( 0.1 1.0 0.15 1.0 $number ) #}) What happens if you write $thickness instead? here is a simplified version of the problem and the lilypond error: hpRot = #(define-music-function (parser location rot) (list?) #{ \once \override Hairpin #'rotation = $rot #}) fooBar = #(define-music-function (parser location zabadoo) (number?) #{ { a b c d \hpRot #'($zabadoo 0 1) s2^\ s s s \! } #}) \fooBar #3 Drawing systems.../usr/share/lilypond/2.12.2/scm/layout-page-layout.scm:53:9: In procedure ly:system-print in expression (ly:system-print sys): /usr/share/lilypond/2.12.2/scm/layout-page-layout.scm:53:9: Wrong type (expecting real number): lilyvartmpc from what i can guess the variable is not being evaluated but instead being passed as lilyvartmpc ... in that case, try try #(list $zabadoo 0 1) instead of #'($zabadoo 0 1) ... I havent tested it myself though... that works! thank you jakob and thank you lilyponders :) rob /me really needs to learn scheme thanks rob ___ 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 -- r...@goto10.org rob.goto10.org -- ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
debian and lilypond 2.12
hi, we really need to get 2.12 into debian asap it seems that the maintainer is too busy with other stuff at the moment as it seems that all threads re this on debian maintainer page have gone dead. perhaps someone else can do a non-maintainer upload? i'm not sure about the ettiquette or debian policy on this exactly but maybe its time to start looking in to that - i dont want to hassle thomas in cc if he is busy but i belive he is on this list - any suggestions? thanks rob -- r...@goto10.org rob.goto10.org -- signature.asc Description: Digital signature ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
auto ottavation
hello, is there anything i can \set or \override or anything in order for lilypond to automaticaly take care of ottavation? i would like to be able to set an upper and lower threshold and then when these are exceeded lilypond will automagicaly take care of the ottavas? thanks rob -- r...@goto10.org -- signature.asc Description: Digital signature ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
appending text files to end of score
hello, i want to insert a couple of pages at the end of the score that include my lilypond source code - is there a way to do this? would be nice to distribute the code.ly with the score - also the GPL licence etc. i realise it can be done with a markup but i would rather not include a copy of the score within the score within the score within the score etc. ;) it would be just nice to do some sort of \pageBreak \include thescore.ly \pageBreak \include theGPL.txt i suppose keeping the emacs synatax highlighting would be pushing it? thanks -- r...@goto10.org rob.goto10.org -- signature.asc Description: Digital signature ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: appending text files to end of score
James E. Bailey said : Ha! who knew what features lilypond has! \verbatim-file. It's in the markup section under other. wow yes - is there anything lilypond cant do :) ok how about this... when i use verbatim-file my file is many pages long but with verbatim-file it just rolls off the bottom of one page. anyway for it to auto page break and continue the text on the next page? thanks rob El 17.02.2009, a las 18:31, Rob Canning escribió: hello, i want to insert a couple of pages at the end of the score that include my lilypond source code - is there a way to do this? would be nice to distribute the code.ly with the score - also the GPL licence etc. i realise it can be done with a markup but i would rather not include a copy of the score within the score within the score within the score etc. ;) it would be just nice to do some sort of \pageBreak \include thescore.ly \pageBreak \include theGPL.txt i suppose keeping the emacs synatax highlighting would be pushing it? thanks -- r...@goto10.org rob.goto10.org -- ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user -- r...@goto10.org rob.goto10.org -- signature.asc Description: Digital signature ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
auto cross stave piano notes
hello, i have a string of notes for piano (one voice) spanning 5octaves that needs dividing between the two staves is there a way to set a threshold pitch and say any pitch below that threshold will go to the bottom piano stave and anything above it will go to the top piano stave? i can see how to do it manually on a note by note basis here: http://lsr.dsi.unimi.it/LSR/Snippet?id=127 but i am imagining that this is something that can be automated, defined as \autocrossstave and turned on and off in a score as needed? thanks rob ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: scheme - notes as variables
Andrew Wilson wrote: 2009/1/31 Rob Canning robcann...@eircom.net: #!/usr/bin/perl sub InsertNotes { my ($num, $form, @notes) = @_; my ($output, @temp); while (@notes) { (@temp[0..$num-1], @notes) = @notes; $output .= sprintf $form, (@temp); } return $output; } my @list = qwa b c d a b c d a f cis d aes b c d g b c d a bes c dis c c c d a e c d a b c d; my $format = %s''4\\pp r16 %s'4\\accent %s''1 %s'''4 r8 %s''4\\mf \\accent %s8 \\staccato\n; print InsertNotes(6, $format, @list); what i would like would be numbered variables (%s[1-n]) so i can repeat/recall certain elements within the script like this: like this (quasi-code): my $format = %s1''8 r16 %s1'4 %s2''1 %s3'''4 r8 %s3''4 %s4''8; The code is using the sprintf function, you can see how this works with the command perldoc -f sprintf. What printf needs is a format string and a list of variables to substitute into the string. Your quasi-code is close to being correct, you can follow any of the format strings (in out case %s) with a format parameter index. The format parameter index is 1$, 2$, etc. i.e. %s1$, %s2$ my $format = %s1$''8 r16 %s1$'4 %s2$''1 %s3$'''4 r8 %s3$''4 %s4$''8; If you're going to do that then you'll need to alter the number that you pass to the InsertNotes function or you'll be throwing entries from the note array. also would it be possible to incorperate a second variable reading from a second list? %B my $format = %sA1''%sB1 r16 %sA1'%sB2 %sA2''%sB1 %sA3'''%sB3 r8 %sA3'' %sB2 %sA4''%sB4; No, not directly. you would have to interleave the values from the separate arrays yourself before you called the sprintf function. I've attached a file with some ides rob3.pl also to read from a list my @list = qwa b c d a is something like this possible? my @list = qwmynotelist.txt see rob4.pl HTH If you want to learn perl, I recommend learning perl by O'Reilly. andrew wow! that is so fantastic - what a great help you are! i read the perlintro and the perldoc -f sprintf docs last night and now have a much clearer idea of what is going on - i also just ordered learning perl (got a copy for 0.69p!) the more i see of this perl the more i think this is definitly the way to go - i dont really know anything apart from a bit of basic shell - this looks like the next step for sure. i will study what you have sent me in detail and report back when i am clear about it all. many many thanks rob ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: scheme - notes as variables
#!/usr/bin/perl sub InsertNotes { my ($num, $form, @notes) = @_; my ($output, @temp); while (@notes) { (@temp[0..$num-1], @notes) = @notes; $output .= sprintf $form, (@temp); } return $output; } my @list = qwa b c d a b c d a f cis d aes b c d g b c d a bes c dis c c c d a e c d a b c d; my $format = %s''4\\pp r16 %s'4\\accent %s''1 %s'''4 r8 %s''4\\mf \\accent %s8 \\staccato\n; print InsertNotes(6, $format, @list); You can probably do it with scheme, but why would you want to. Both @list and $form (and the number of %s to replace) can all be read from files insterad of hard coded. This is also trivial. this is very usefull and does pretty much what i need - unfortunatly i dont really have the skill to extend and modify script as i dont know perl - i am going to learn perl as it looks very useful but this might take a while. i have two questions about how to extend this script which maybe trivial to add and just a couple of lines, but i understand that it might be much more involved and not something i can expect help with here. but here it goes anyway ;) what i would like would be numbered variables (%s[1-n]) so i can repeat/recall certain elements within the script like this: like this (quasi-code): my $format = %s1''8 r16 %s1'4 %s2''1 %s3'''4 r8 %s3''4 %s4''8; also would it be possible to incorperate a second variable reading from a second list? %B my $format = %sA1''%sB1 r16 %sA1'%sB2 %sA2''%sB1 %sA3'''%sB3 r8 %sA3'' %sB2 %sA4''%sB4; also to read from a list my @list = qwa b c d a is something like this possible? my @list = qwmynotelist.txt if anyone has any ideas how to do the above in perl / scheme or anything else i would be most interested many thanks rob ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
incorrect auto bar and auto beaming ?
hello, i have a score which specifies: \time 4/4 {tomfl16- toml16 tomml16 tommh16 tomh4.:32\laissezVibrer r8 tomfl16 toml8:16 tomml16 tomh16 tommh8 tomfl16 toml8 tommh8 tomml16 tomh16 r4 tomfl16- toml16 tommh16 tomh16 tomml4.:32\laissezVibrer r8 tomfl16 toml8:16 tomh16 tomml16 tommh8 tomfl16 toml8 tomh8 tommh16 etc. full score here: http://pastebin.com/m59cc4b7e without any barlines defined seems things dont add up right... bars 1 and 14 should have same beaming and beats but here bar 14 is short a 16th note at the end and the first four 16th notes are grouped in two pairs rather than together. any idea what i am doing wrong? (score is generated algrithmicaly so i cant tweek it to correct it) thanks rob ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
grace notes cause extra bar to contain them
hi, not sure whats going on here... if i isolate and render only one of the two staves then everything is fine but if i parse the .ly that contains two staves an extra bar gets created that contains the grace notes. i cant figure out why... here is the .ly http://pastebin.com/m672b44fd see first set of grace notes in the upper part. any ideas why this is happening? thanks rob ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: scheme - notes as variables
Andrew Wilson wrote: On Wed, Jan 28, 2009 at 12:35:16PM +, Rob Canning wrote: i have been doing this kind of thing before using a combination of puredata and sed but that was really ugly and the regular expressions were getting out of control! i would really appreciate any help learning how to do this using scheme It seems to me that what you want can be achieved with a very small amount of perl: === #!/usr/bin/perl sub InsertNotes { my ($num, $form, @notes) = @_; my ($output, @temp); while (@notes) { (@temp[0..$num-1], @notes) = @notes; $output .= sprintf $form, (@temp); } return $output; } my @list = qwa b c d a b c d a f cis d aes b c d g b c d a bes c dis c c c d a e c d a b c d; my $format = %s''4\\pp r16 %s'4\\accent %s''1 %s'''4 r8 %s''4\\mf \\accent %s8 \\staccato\n; print InsertNotes(6, $format, @list); = You can probably do it with scheme, but why would you want to. Both @list and $form (and the number of %s to replace) can all be read from files insterad of hard coded. This is also trivial. andrew thanks andrew! yes indeed this does what i want - i in the middle of trying to figure out how it works so i can modify it - adding a second variable fed by a second list etc. i was trying to do it using scheme just because i thought learning to do this kind of thing in scheme would help me with other aspects of lilypond in general - perl looks neat though the swiss army chainsaw of languages i heard it refered to as :)- maybe scheme is the wrong tool for the job? anyone? many thanks for your help rob ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Why can't I post here using email
M Watts wrote: Jonathan Kulp wrote: I use Thunderbird and post to the list all the time without problems. Me too -- it just works. I take it the OP's problem is solved, because his message got through! maybe this is a stupid question but are you replying to all? on the mail you sent me it didnt look as if it was cc'd to the list cheers rob ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
scheme - notes as variables
hello, i am just starting looking at scheme and have been looking at the examples linked from here: http://lilypond.org/doc/v2.12/Documentation/user/lilypond/Overview-of-music-functions#Overview-of-music-functions i have something specific in mind and cant see anything quite like it in the examples. here is what i would like to do: have a list of notes: list = {a b c d a b c d a f cis d aes b c d g b c d a bes c dis c c c d a e c d a b c d} then have a piece of code that unpacks this list into a score which has variable names instead of notenames. this score would contain information about rhythm, dynamics, articulations, register etc. but have variables instead of note names like this: { [var1]''4\pp r16 [var2]'4\accent [var3]''1 [var4]'''4 r8 [var5]''4\mf \accent [var6]8 \staccato } then the \list would get iterated into the variables in the score so list = {a b c d a b c d a f cis d aes b c d g b c d a bes c dis c c c d a e c d a b c d} would be unpacked into the 6 variables of the score like this... a b c d a b c d a f cis d aes b c d g b c d a bes c dis etc. giving this: { a''4\pp r16 b'4\accent c''1 d'''4 r8 a''4\mf \accent b8 \staccato c''4\pp r16 d'4\accent a''1 f'''4 r8 cis''4\mf \accent d8 \staccato etc. i have been doing this kind of thing before using a combination of puredata and sed but that was really ugly and the regular expressions were getting out of control! i would really appreciate any help learning how to do this using scheme many thanks rob ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: override minumum and maximum barlength
i am still working on a piece using proprtional notation - i now have it looking the way i want except for the minimum barlength being too short - i would like it so even 16th notes are given plenty of space and all greater values are relative and proportional to that. not sure how to achive this but i think maybe my answer is here: http://lilypond.org/doc/v2.9/Documentation/user/lilypond-internals/SpacingSpanner#SpacingSpanner though i'm not sure how to implement what i find there. this is what i have atm: %%% proportional note spacing \override SpacingSpanner #'uniform-stretching = ##t \set Score.proportionalNotationDuration = #(ly:make-moment 1 24) i'm not sure if this code is making much difference ok so i have tried some more and still i cant see any effect i have now added %%% proportional note spacing \override SpacingSpanner #' springs-and-rods = #ly:spanner::set-spacing-rods \override SpacingSpanner #'uniform-stretching = ##t \override SpacingSpanner #'shortest-duration-space = #14.4 %\set Score.proportionalNotationDuration = #(ly:make-moment 1 24)// having seen this in define-grobs.scm (SpacingSpanner . ( (springs-and-rods . ,ly:spacing-spanner::set-springs) (common-shortest-duration . ,ly:spacing-spanner::calc-common-shortest-duration) (average-spacing-wishes . #t) (shortest-duration-space . 2.0) (spacing-increment . 1.2) (base-shortest-duration . ,(ly:make-moment 3 16)) (meta . ((class . Spanner) (interfaces . (spacing-options-interface spacing-spanner-interface)) however i cant seem to make my code to work :( am i barking up the right tree at least? cheers rob hi, i have this working now - i turned \cadenzaOn - and now barlength is not relevant just spaceing which now seems to be working with \set Score.proportionalNotationDuration = #(ly:make-moment 1 64) \override Score.SpacingSpanner #'strict-note-spacing = ##t figuring our how to set minimum maximum barlengths might be usefull for future reference though? maybe this is not how lilypond deals with spacing though... rob ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
override minumum and maximum barlength
hi i am still working on a piece using proprtional notation - i now have it looking the way i want except for the minimum barlength being too short - i would like it so even 16th notes are given plenty of space and all greater values are relative and proportional to that. not sure how to achive this but i think maybe my answer is here: http://lilypond.org/doc/v2.9/Documentation/user/lilypond-internals/SpacingSpanner#SpacingSpanner though i'm not sure how to implement what i find there. this is what i have atm: %%% proportional note spacing \override SpacingSpanner #'uniform-stretching = ##t \set Score.proportionalNotationDuration = #(ly:make-moment 1 24) i'm not sure if this code is making much difference what i really need is something like this psudo code \override Bar #'bar-length = 50 i think setting a minumum and maximum barlength will fix things well enough for now... cheers ro an ugly sample of the a full draft score is here http://pastebin.com/m4f43e09f ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: override minumum and maximum barlength
Rob Canning wrote: hi i am still working on a piece using proprtional notation - i now have it looking the way i want except for the minimum barlength being too short - i would like it so even 16th notes are given plenty of space and all greater values are relative and proportional to that. not sure how to achive this but i think maybe my answer is here: http://lilypond.org/doc/v2.9/Documentation/user/lilypond-internals/SpacingSpanner#SpacingSpanner though i'm not sure how to implement what i find there. this is what i have atm: %%% proportional note spacing \override SpacingSpanner #'uniform-stretching = ##t \set Score.proportionalNotationDuration = #(ly:make-moment 1 24) i'm not sure if this code is making much difference ok so i have tried some more and still i cant see any effect i have now added %%% proportional note spacing \override SpacingSpanner #' springs-and-rods = #ly:spanner::set-spacing-rods \override SpacingSpanner #'uniform-stretching = ##t \override SpacingSpanner #'shortest-duration-space = #14.4 %\set Score.proportionalNotationDuration = #(ly:make-moment 1 24)// having seen this in define-grobs.scm (SpacingSpanner . ( (springs-and-rods . ,ly:spacing-spanner::set-springs) (common-shortest-duration . ,ly:spacing-spanner::calc-common-shortest-duration) (average-spacing-wishes . #t) (shortest-duration-space . 2.0) (spacing-increment . 1.2) (base-shortest-duration . ,(ly:make-moment 3 16)) (meta . ((class . Spanner) (interfaces . (spacing-options-interface spacing-spanner-interface)) however i cant seem to make my code to work :( am i barking up the right tree at least? cheers rob what i really need is something like this psudo code \override Bar #'bar-length = 50 i think setting a minumum and maximum barlength will fix things well enough for now... cheers rob an ugly sample of the a full draft score is here http://pastebin.com/m4f43e09f ___ 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: flatten ties ~ proportional notation.
Brett Duncan wrote: Rob Canning wrote: i was trying to do it with sed with a line like this: sed 's/~/\\glissando/' header-inserted ties-fixed; but ran into trouble with all the ^ sybols and so on - I tried this myself and it seems to work fine once add the 'g' flag: 's/~/\\glissando/g' However, horizontal glissandi may coincide with staff lines, so this isn't the best solution in any case. i think once they are fattened up they are ok Brett thanks brett - yes i just figured out last night the ommission in my sed command (duh!) - so the solution that seems to work best for me is this: sed 's/~/\\glissando/g' header-inserted ties-fixed; the new way the #gap is delt with now in 2.11 had me stumped for a couple of hours but eventually i figured it out \override Glissando #'(bound-details left padding) = #0.0 \override Glissando #'(bound-details right padding) = #0.0 \override Glissando #'minimum-length = #15 \override Glissando #'thickness = #4 ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: flatten ties ~ proportional notation.
This is the easiest way to do it, assuming you don't have any tied chords: \override TieColumn #'tie-configuration = #(lambda (grob) (let* ((notehead (ly:grob-parent grob X)) (y-off (* 2 (ly:grob-property notehead 'Y-offset (list (cons y-off 0 thanks neil, this nearly works and certainly gives me alot to look at in terms of doing intersting things with the syntax... on its own this works fine but if i combine it with somthing else it fails - not sure what i am doing wrong here... if for example i add: \override Tie #'details #'height-limit = #0 \override TieColumn #'tie-configuration = #(lambda (grob) (let* ((notehead (ly:grob-parent grob X)) (y-off (* 2 (ly:grob-property notehead 'Y-offset (list (cons y-off 0 lilypond fails with error: Drawing systems...1002-proportional.ly:295:22: In procedure * in expression (* 2 (ly:grob-property notehead #)): 1002-proportional.ly:295:22: Wrong type: () thanks, rob ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Linux question
Ralph Palmer wrote: Hi - I realize this is marginally on topic, and I apologize if it causes anyone distress. i think this is on topic as many users might be interested in GNU/Linux environments which are lilypond friendly - so i post back to list too :) I'm currently a Windows XP user. I would like to mount Linux on an old (circa 2002) Dell laptop my daughter is going to pass along to me. I've narrowed my choices to Ubuntu, Kubuntu, or Debian (a distant third). ok so i am biased as i am a developer of puredyne http://puredyne.goto10.org its debian based with a focus on audio / visual work it is a combination of the debian repositories along with the debian multimedia repositories and our own puredyne repositories. if you do a full install you can just add lilypond with aptitude install lilypond or install using the lilypond installer for the latest 2.11 version we will have a dvd version in the next release and this will include lilypond and all the lilypond extensions we can get our hands on - as a lilypond user and a puredyne developer i have a strong interest in making this a super nice environment for lilypond users. - there is also a live version which runs off usbsticks or cd which makes in nice for workshops etc. its super light so works well on old machines - it uses the xfce4 desktop as part of its lightweight ethos but if you want to bloat your system and add kde or gnome thats easy as aptitude install yourfavoritewindowmangerhere as its debian (lenny) based. good luck rob c ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
flatten ties ~ proportional notation.
hello, i would like to replace ties between notes with a line connecting note heads. i'm not sure how to go about this. should i try and flatten the curve of the tie, make it slightly thicker and change its relative possition to the notehead or is there a better way. is there some sort of global override i can do to change all ties to this style. this is what i have so far: \override Tie #'line-thickness = #3 \override Tie #'control-points = #'((0 . 0) (0 . 0) (0 . 0) (6 . 0)) but this makes all the ties the same length centered on the middle line of the stave. i would like lilypond to control these elements and just override the curve of the tie.. i would like to do this on a global level as the score is being generated algorithmicaly and trying to do it on an override-once level would be too messy. any ideas? many thanks rob ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: flatten ties ~ proportional notation.
Neil Puttock wrote: Hi Rob, hi thanks for the response, 2008/12/18 Rob Canning robcann...@eircom.net: hello, i would like to replace ties between notes with a line connecting note heads. i'm not sure how to go about this. should i try and flatten the curve of the tie, make it slightly thicker and change its relative possition to the notehead or is there a better way. is there some sort of global override i can do to change all ties to this style. Sounds a bit like a glissando. ;) yes this would be perfect but as i am modifying a preexisting score its tricky - but possible for sure my problem with this was that i was using a script to find and replace ties with glissandos - but i couldnt get it working cleanly - kept getting errors and looked for another approach i was trying to do it with sed with a line like this: sed 's/~/\\glissando/' header-inserted ties-fixed; but ran into trouble with all the ^ sybols and so on - am a lilypond newbie and a sed newbie so am really struggling but slowly i get somewhere There are lots of interesting Tie 'details in scm/define-grobs.scm will look in here.. which you might find useful; for example, overriding 'height-limit will flatten a tie: \override Tie #'(details heigh-limit) = #0 strange this doesnt seem to make any difference here - no doubt i have it in the wrong place in the code or some such - i tried it in a few places but no luck This is a bit lozenge-shaped, but I don't think you'll get a perfectly straight line since ties are made from two bezier curves sandwiched together. Regards, Neil ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: flatten ties ~ proportional notation.
Neil Puttock wrote: Hi Rob, hi thanks for the response, 2008/12/18 Rob Canning robcann...@eircom.net: hello, i would like to replace ties between notes with a line connecting note heads. i'm not sure how to go about this. should i try and flatten the curve of the tie, make it slightly thicker and change its relative possition to the notehead or is there a better way. is there some sort of global override i can do to change all ties to this style. Sounds a bit like a glissando. ;) yes this would be perfect but as i am modifying a preexisting score its tricky - but possible for sure my problem with this was that i was using a script to find and replace ties with glissandos - but i couldnt get it working cleanly - kept getting errors and looked for another approach i was trying to do it with sed with a line like this: sed 's/~/\\glissando/' header-inserted ties-fixed; but ran into trouble with all the ^ sybols and so on - am a lilypond newbie and a sed newbie so am really struggling but slowly i get somewhere There are lots of interesting Tie 'details in scm/define-grobs.scm will look in here.. which you might find useful; for example, overriding 'height-limit will flatten a tie: \override Tie #'(details heigh-limit) = #0 strange this doesnt seem to make any difference here - no doubt i have it in the wrong place in the code or some such - i tried it in a few places but no luck This is a bit lozenge-shaped, but I don't think you'll get a perfectly straight line since ties are made from two bezier curves sandwiched together. Regards, Neil ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: flatten ties ~ proportional notation.
ok so i have flattened the tie with: \override Tie #'details #'height-limit = #0 next i want to make sure all the ties start emerging from the actual note so there is no vertical offset i looked here for other tweekables: /usr/local/lilypond/usr/share/lilypond/current/scm/define-grobs.scm and tried : \override Tie #'Y-offset = #0 and \override TieColumn #'tie-configuration = #'((0 . 0)) and \override Tie #'note-head-gap = #0 amongst others obviously i am not tweeking in the right place... clues ? thanks rob 2008/12/18 Rob Canning robcann...@eircom.net: hello, i would like to replace ties between notes with a line connecting note heads. i'm not sure how to go about this. should i try and flatten the curve of the tie, make it slightly thicker and change its relative possition to the notehead or is there a better way. is there some sort of global override i can do to change all ties to this style. Sounds a bit like a glissando. ;) yes this would be perfect but as i am modifying a preexisting score its tricky - but possible for sure my problem with this was that i was using a script to find and replace ties with glissandos - but i couldnt get it working cleanly - kept getting errors and looked for another approach i was trying to do it with sed with a line like this: sed 's/~/\\glissando/' header-inserted ties-fixed; but ran into trouble with all the ^ sybols and so on - am a lilypond newbie and a sed newbie so am really struggling but slowly i get somewhere There are lots of interesting Tie 'details in scm/define-grobs.scm will look in here.. which you might find useful; for example, overriding 'height-limit will flatten a tie: \override Tie #'(details heigh-limit) = #0 strange this doesnt seem to make any difference here - no doubt i have it in the wrong place in the code or some such - i tried it in a few places but no luck This is a bit lozenge-shaped, but I don't think you'll get a perfectly straight line since ties are made from two bezier curves sandwiched together. Regards, Neil ___ 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: MediaWiki-Extension for Lilypond
lilypond -d safe foo.ly works here. Cheers, - Graham i guess the lilypond mediawiki extension is broken? in my wiki page i get the error *LilyPond error:* //usr/local//lilypond/usr/bin/lilypond: unrecognized option: `--safe' /same problem with the below line i guess. $cmd = $wgLilypond . --safe --backend=eps --format=png --header=texidoc . escapeshellarg($lyFile) . 21; cheers rob On Sun, Dec 07, 2008 at 03:05:07PM +0100, Hajo Dezelski wrote: Thanks for the hint. Still have a problem. As far as I understood I have to take the parameter -d and an option . But how is the correcht syntax? lilypond -d safe lilypond -d safe (#f) liypond -d #f I couldnt get it to work Cheers Hajo 2008/12/7 Graham Percival gra...@percival-music.ca On Sat, Dec 06, 2008 at 11:14:50PM +0100, Hajo Dezelski wrote: I am using v. 11-64. I am not a php-programmer. Is there a solution to this problem or should I drop the idea using lilypond within the mediawiki? Yes, there is a solution. That solution is to run lilypond --help and/or read the News document of lilypond. Cheers, - Graham -- --- ... indessen wandelt harmlos droben das Gestirn ___ 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: x y position on page of multiple fragments
thank you all for your various suggestions i will have a detailed look at it all later cheers rob Kieren MacMillan wrote: Hi Rob, i am trying to do a new version of a piece i originally made in finale its a grid type mobile structure type score what i need is someone to point me at the documentation that would help me make multiple musical fragments and then distribute them on a single page in a number of configurations - a grid to start with - but once i know how to make little musical snips of set dimentions and move them on the x y axis of the page should be easy from there.. Remember that: 1. \markup can include a \score; 2. \markup can be enclosed in a \box; 3. \markup can be \translate-d anywhere from its original position. In other words, look in the (2.11.65) docs for the \markup functions to do that. HTH! Kieren. there is a picture of the score i made in finale on this page about halfway down http://www.robcanning.info/melencolia.html i am guessing this kind of work is going to be alot easier with lilypond i just need a pointer where to start in the docs lilypond-user@gnu.orghttp://lists.gnu.org/mailman/listinfo/lilypond-user Hi Rob, The NonMusicalPaperColumn grob can be quite useful for this sort of thing. Take a look at NR 4.4.3 Explicit staff and system positioning and try out the X-offset and Y-offset attributes. Note that NonMusicalPaperColumn lives only in the Score context. And note that you use \override to override the grob in the \with block of the Score or in your \layout block but, strangely, if you override the grob on the fly in your note entry you must use the unusual \overrideProperty command. Trevor. -- Trevor Bača trevorb...@gmail.com ___ 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 ___ 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: MediaWiki-Extension for Lilypond
Graham Percival wrote: On Sat, Dec 13, 2008 at 01:55:30PM +, Rob Canning wrote: lilypond -d safe foo.ly works here. i guess the lilypond mediawiki extension is broken? in my wiki page i get the error /same problem with the below line i guess. $cmd = $wgLilypond . --safe --backend=eps --format=png --header=texidoc . escapeshellarg($lyFile) . 21; I already told you the answer. Please read the command-line argument I wrote, and compare it to the command-line argument you used. Also read the NEWS document for the version of lilypond that you are using. - Graham i am just pointing out that the lilypond extension http://www.mediawiki.org/wiki/Extension:LilyPond has errors i am not the author of this php script just a bug reporter backing up the report made by the last poster to this list thanks rob ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: MediaWiki-Extension for Lilypond
Graham Percival wrote: On Sat, Dec 13, 2008 at 01:55:30PM +, Rob Canning wrote: lilypond -d safe foo.ly works here. i guess the lilypond mediawiki extension is broken? in my wiki page i get the error /same problem with the below line i guess. $cmd = $wgLilypond . --safe --backend=eps --format=png --header=texidoc . escapeshellarg($lyFile) . 21; I already told you the answer. Please read the command-line argument I wrote, and compare it to the command-line argument you used. Also read the NEWS document for the version of lilypond that you are using. - Graham i am just pointing out that the lilypond extension http://www.mediawiki.org/wiki/Extension:LilyPond has errors i am not the author of this php script just a bug reporter backing up the report made by the last poster to this list thanks rob ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
x y position on page of multiple fragments
hello, i am trying to do a new version of a piece i originally made in finale its a grid type mobile structure type score what i need is someone to point me at the documentation that would help me make multiple musical fragments and then distribute them on a single page in a number of configurations - a grid to start with - but once i know how to make little musical snips of set dimentions and move them on the x y axis of the page should be easy from there... there is a picture of the score i made in finale on this page about halfway down http://www.robcanning.info/melencolia.html i am guessing this kind of work is going to be alot easier with lilypond i just need a pointer where to start in the docs many thanks rob c ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
change all noteheads
hi, i would like all my noteheads to appear as filled noteheads like a crotchet/quaver notehead from the documentation i found things like this that sort of do the job but i dont know where to find the list of available options - scripts.* is there a scripts.filled-normal for example? headPlus= { \once \override NoteHead #'stencil = #ly:text-interface::print \once \override NoteHead #'text = #(markup #:musicglyph scripts.stopped) } also i found things like this \override NoteHead #'stencil = \parallelogram this doesnt work for me but i see the idea...or maybe i dont - i think i need to know all the different variables for NoteHead maybe - not sure how this works - i see #'stencil #'color = #magenta #'style etc. but not sure where to find documnetation about how the syntax works or what the available flags are. i see there is much documenation out there but am having a little trouble navigating it. whats the easiest way to change all my noteheads to filled ones? this is where i have been looking so far http://lsr.dsi.unimi.it/LSR/Search?q=notehead and also surfing through the lilypond documenation without landing where i need to land. thanks robc ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
How to remove first score indentation?
hi, i found this old thread http://osdir.com/ml/gnu.lilypond.general/2003-03/msg00099.html but that wasnt much use i tried this \paper { indent = 0\cm} but that didnt work either. is there an easy way to do this? i would have thought so. thanks rob c ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
How to remove first score indentation?
hi, i found this old thread http://osdir.com/ml/gnu.lilypond.general/2003-03/msg00099.html but that wasnt much use i tried this \paper { indent = 0\cm} but that didnt work either. is there an easy way to do this? i would have thought so. thanks rob c ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: How to remove first score indentation?
Graham Percival wrote: On Tue, Dec 09, 2008 at 04:00:06PM +, Rob Canning wrote: i tried this \paper { indent = 0\cm} but that didnt work either. Works here. Please read LM 3.1 in the 2.11 docs to learn more about the lilypond file structure. yeah i know i need to rtfm - just cant seem to make sense of if in this context. if anyone fancies having a look to see what stooopid thing i'm doing... http://pastebin.com/m4e37b419 the indent code is around line 42 sorry for ugly code - its the result of a load of sed / bash / puredata / fomus fun cheers rob ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: change all noteheads
Mark Polesky wrote: Rob Canning wrote: i would like all my noteheads to appear as filled noteheads like a crotchet/quaver notehead Rob, try this: \override Score.NoteHead #'duration-log = #2 - Mark works a treat thanks mark rob c ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: change all noteheads
Carl D. Sorensen wrote: On 12/9/08 6:03 AM, Rob Canning [EMAIL PROTECTED] wrote: hi, i would like all my noteheads to appear as filled noteheads like a crotchet/quaver notehead from the documentation i found things like this that sort of do the job but i dont know where to find the list of available options - scripts.* is there a scripts.filled-normal for example? headPlus= { \once \override NoteHead #'stencil = #ly:text-interface::print \once \override NoteHead #'text = #(markup #:musicglyph scripts.stopped) } You've done a good job of searching. You almost got the right answer. Note that the example above changes the stencil from a notehead printer to a markup printer. Then, it selects the glyph to be used for the markup to be scripts.stopped. You will want to do the same thing, but without the \once before the \override. The list of available music glyphs is in the Notation Reference, Appendix B.6 The Feta Font. For a standard filled notehead, use noteheads.s2. also i found things like this \override NoteHead #'stencil = \parallelogram this doesnt work for me but i see the idea...or maybe i dont - i think i need to know all the different variables for NoteHead maybe - not sure how this works - i see #'stencil #'color = #magenta #'style etc. but not sure where to find documnetation about how the syntax works or what the available flags are. Documentation about the NoteHead object is found in the Internals Reference, section 3.1.69 NoteHead. The standard interfaces for (or ways to affect the characteristics of) the NoteHead are documented by links from that page. The NoteHead page mentions a stencil property, but doesn't describe the possible options, because the options include any piece of code (LilyPond or Scheme) that returns a stencil. This is described in the Notation Reference, section 5.5.3 Modifying stencils. This particular page points you to the Feta Font page and would have helped you find the name of the glyph for the filled notehead. Unfortunately, this page is not yet indexed with a reference to stencil, so I found it just by browsing through Chapter 5 of the Notation Reference, Changing defaults. Another way to find it (which I've often used in the past) is to get either the pdf or the one big page HTML version of the Notation Reference, and search for stencil. This eventually (about 20 occurences into the file) lands you at 5.5.3. Hope this helps, and good luck with your project, Carl Sorensen many thanks for the time with your answer - all this gives me great help and i look foward to getting stuck into the documentation tomorrow thank you rob c ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: How to remove first score indentation?
Neil Puttock wrote: Hi Rob, 2008/12/9 Rob Canning [EMAIL PROTECTED]: yeah i know i need to rtfm - just cant seem to make sense of if in this context. if anyone fancies having a look to see what stooopid thing i'm doing... http://pastebin.com/m4e37b419 the indent code is around line 42 From here: http://lilypond.org/doc/v2.11/Documentation/user/lilypond/Paper-size#Paper-size Setting the paper size will adjust a number of \paper variables, such as margins. To use a particular paper size with altered \paper variables, set the paper size before setting the variables. Regards, Neil fantastic that sorts it out many thanks rob c ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: another newbie download problem
Pierre Russell Straddler wrote: preface: I just got a top posting error message, which I've never seen before. I apologise for this breech of protocol and etiquette Hi there I tried to download Lilypond from the lilypond site. When I do what I am told (i.e. open with text editor) I get this message: could not open the file /tmp/lilypond-2.10.33-1.linux-x86.sh. gedit has not been able to detect the character coding. Please check that you are nopt trying to open a binary file. Select a character coding from the menu and try again (my choices are Current Locale (UTF-8) and Western (ISO-8859-15) neither of which work. That said, lilypond-2.10.33-1.linux-x86.sh is sitting on my desktop. I open a terminal window and type sh lilypond-2.10.33-1.linux-x86.sh and I get the error sh: can't open lilypond-2.10.33-1.linux-x86.sh ? so I looked around a little bit and found this: I downloaded the file from website, but when tried to open it got a message: Could not open the file /home/anne/Desktop/lilypond-2.10.33-1.linux-ppc.sh. Yes; apparently gedit is trying to open the .sh files as shell scripts; however the LilyPond distribution is actually a shar self-extracting archive (same extension, but completely different size and data in it). You just have to _execute_ this file: just open a terminal, and type cd ~/Desktop sudo lilypond-2.10.33-1.linux-ppc.sh + + + I am not a power PC user, but instead an x86 user with the latest version of Ubuntu and so I typed: the cd ~/Desktop sudo lilypond-2.10.33.-1.linux-x86.sh still didn't work. I get the error Can't open lilypond-2.10.33.-1.linux-x86.sh sudo sh lilypond-2.11.65.1.linux-x86 works fine here... maybe try with ./ sudo sh ./lilypond-2.11.65.1.linux-x86.sh and perhaps chmod +x lilypond-2.11.65.1.linux-x86.sh then sudo ./lilypond-2.11.65.1.linux-x86.sh hmmm just noticed a possible typo in your command lilypond-2.10.33.-1.linux-x86.sh should there be a dot after 33??? use the tab key to autocomplete in terminal - saves time Anyone? Please? Thanking you! Pierre Russell Straddler ___ 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
manipulating .ly with bash - echo drops \
hello, i have generated a lilypond file and would like to be able to manipulate the file with bash scripts. first thing i would like to do is insert some additional stuff one line under the 'version 2.10 line. the script i have is below - the problem is the echo $line bit drops all the \ from the score. anyone know a way to fix this script so all the \ remain intact? thanks rob # usage: ./insert.sh mainfile insertedfile outputfile cat $1 | while read line do echo $line if [[ $line == 'version 2.10' ]] then cat $2 fi done ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: manipulating .ly with bash - echo drops \
Rob Canning wrote: hello, i have generated a lilypond file and would like to be able to manipulate the file with bash scripts. first thing i would like to do is insert some additional stuff one line under the 'version 2.10 line. the script i have is below - the problem is the echo $line bit drops all the \ from the score. anyone know a way to fix this script so all the \ remain intact? thanks rob # usage: ./insert.sh mainfile insertedfile outputfile cat $1 | while read line do echo $line if [[ $line == 'version 2.10' ]] then cat $2 fi done this is my dirty solution # usage: ./insert.sh mainfile insertedfile outputfile sed 's/\\//g' $1 | while read line do echo $line if [[ $line == '\version 2.10' ]] then cat $2 fi done ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: manipulating .ly with bash - echo drops \
Jonathan Kulp wrote: Rob Canning wrote: first thing i would like to do is insert some additional stuff one line under the 'version 2.10 line. Ah. I overlooked this part. The script I put in the other email won't put the text in the right place like you want. I guess your dirty solution is better :) Jon hi jon, this is the clean way... a friend on irc just helped me clean up my life :) sed -e/version/r $2 $1 i really need to learn sed properly its a really powerfull way of editing lilypond scores i wonder is there anything on lilypond help about this stuff... rob ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
proportional notation (a la earle brown etc.) was: Re: uniform-stretching
hi, i've just been looking at the threads on proportional notation (time-space notation) and found these: http://www.mail-archive.com/lilypond-user@gnu.org/msg35955.html http://www.mail-archive.com/lilypond-user@gnu.org/msg35775.html http://www.mail-archive.com/lilypond-user@gnu.org/msg26884.html but not much more.. [quote] I'm planning to do some tutorial on how to get these things done after finishing the score as I think it is a non trivial matter to typeset a score with proportional notation, graphics for the electronic part and such and it might save some time for someone else trying to do it with lilypond. -- Orm [quote] just wondering if there is any documentation like this anywhere? orm did you ever get around to getting anything online? would be really good if anyone with any experince doing work like this could give me some pointers before i start to save me wasting time... also - maybe if there is no documentation on this, this mail could act as a kickstart in that direction :) i'd be happy to contribute as soon as i have something to contribute. many thanks rob ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
point and click brings up two emacs instances
hi, i have this problem using point and click: when i click on the pdf two instances of emacs start - this is nice but one is plenty :) any clues? i am running GNU/Linux pure:dyne (distro based on Debian lenny) GNU LilyPond 2.11.63 xpdf version 3.02 GNU Emacs 22.2.1 i have this in .xpdfrc urlCommand lilypond-invoke-editor %s this in my .emacs ;#lilypond emacs mode# (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))) (setq locale-coding-system 'utf-8) (set-terminal-coding-system 'utf-8) (set-keyboard-coding-system 'utf-8) (set-selection-coding-system 'utf-8) (prefer-coding-system 'utf-8) .emacs stuff is not relevant i guess...not sure what else i should tell you... thanks rob ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Lilypond's debian control file out of date? was: Re: live cd-with lilypond
Reinhold Kainhofer wrote: Am Montag, 25. August 2008 schrieb Rob Canning: Reinhold Kainhofer wrote: At least the Debian and Kubuntu packages of lilypond-data have the following requirement: Pre-Depends: tetex-bin | texlive-base I suppose that this is not true any longer and was never removed when lilypond switched away from using latex... There is, however, a build-time dependency on metafont (mf-nowin is called to create the feta font), which is in the texlive-base-bin package. does this mean all this is needed is a modification to the debian controlfile? Hopefully, yes. Lilypond does not have a run-time dependency on any LaTeX-distribution any more. I didn't see anything in the texlive-base package, which would be required for LilyPond, and a lilypond run after removing texlive also executed properly. Of course, that's not a guarantee that I didn't miss anything. As I said in my previous mail, compiling lilypond requires metafont, which is packaged in texlive-base-bin, and compiling the documentation requires texinfo, which uses pdfetex to create the PDF-version of the manuals. Cheers, Reinhold PS: I'm also cc'ing the packagers of the ubuntu package for lilypond in addition to the Debian packager. Please note the current run-time dependencies of Lilypond: http://lilypond.org/doc/v2.10/Documentation/topdocs/INSTALL We switched away from using latex to create the output file a long while ago, so I suppose the pre-depends dependency on latex can be removed now. I also wonder if Metafont could/should be packaged separately from texlive? hi, i just went to file a bug report against this on the debian site and found that one had already been filed on: feb. 08 2007 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=410158 would it be possible for lilypond developers to look at this bug thread and perhaps wake it up a bit? :) this predepend error is a real blocker when it comes to including lilypond on any live debian or ubuntu based cd thanks, rob ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: debian control file out of date? was: Re: live cd-with lilypondhttp://lilypond.org/doc/v2.10/Documentation/topdocs/INSTALL
Thomas Bushnell BSG wrote: On Mon, 2008-08-25 at 21:54 +0100, Rob Canning wrote: does this mean all this is needed is a modification to the debian controlfile? this would be great as if texlive-base is not a dep then lilypond should be small enough to fit on our live distro :) No, we're actually using kpsewhich. I would be happy to put in a different solution, but not to ignore the problem. thanks for your reply thomas, hi, so let me see ... the debian package lilypond-data has a pre-depend of texlive though lilypond no longer has a runtime dependency on tex this is because as thomas explained : When the package is upgraded, the old automatically generated fonts need to be cleaned up, and we are using kpsewhich to find them in order to delete them. i dont fully understand why this is a pre-depend and not a build-depend when a debian is upgraded is it not just removed and reinstalled? is there a difference between upgrade time and build time? when are these fonts generated? during runtime or buildtime? is it not the job of the old lilypond-data to cleanup after itself rather than the new version doing the clean up? are the consequences of not cleaning these files up significant compared with the implications of relying on what should no longer be a dependency. sorry to ask what maybe completely uninformed questions i just dont really understand what is going on :) its just that texlive-base is so huge it means lilypond cant be included on a debian based live cd - can anyone think of a way to do what kpsewhich utilising lower level tools ? or is there a way that maybe this clean up can be rendered unnecessary, perhaps whatever creates the fonts in the first place should clean up after itself? many thanks, rob Note that it won't get into lenny regardless. sid would be great if at all possible :) ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Lilypond's debian control file out of date? was: Re: live cd-with lilypond
Rob Canning wrote: Reinhold Kainhofer wrote: Am Montag, 25. August 2008 schrieb Rob Canning: Reinhold Kainhofer wrote: At least the Debian and Kubuntu packages of lilypond-data have the following requirement: Pre-Depends: tetex-bin | texlive-base I suppose that this is not true any longer and was never removed when lilypond switched away from using latex... There is, however, a build-time dependency on metafont (mf-nowin is called to create the feta font), which is in the texlive-base-bin package. does this mean all this is needed is a modification to the debian controlfile? Hopefully, yes. Lilypond does not have a run-time dependency on any LaTeX-distribution any more. I didn't see anything in the texlive-base package, which would be required for LilyPond, and a lilypond run after removing texlive also executed properly. Of course, that's not a guarantee that I didn't miss anything. As I said in my previous mail, compiling lilypond requires metafont, which is packaged in texlive-base-bin, and compiling the documentation requires texinfo, which uses pdfetex to create the PDF-version of the manuals. Cheers, Reinhold PS: I'm also cc'ing the packagers of the ubuntu package for lilypond in addition to the Debian packager. Please note the current run-time dependencies of Lilypond: http://lilypond.org/doc/v2.10/Documentation/topdocs/INSTALL We switched away from using latex to create the output file a long while ago, so I suppose the pre-depends dependency on latex can be removed now. I also wonder if Metafont could/should be packaged separately from texlive? hi, i just went to file a bug report against this on the debian site and found that one had already been filed on: feb. 08 2007 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=410158 would it be possible for lilypond developers to look at this bug thread and perhaps wake it up a bit? :) this predepend error is a real blocker when it comes to including lilypond on any live debian or ubuntu based cd thanks rob ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
debian control file out of date? was: Re: live cd-with lilypondhttp://lilypond.org/doc/v2.10/Documentation/topdocs/INSTALL
Reinhold Kainhofer wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Am Samstag, 23. August 2008 schrieb Mats Bengtsson: Rob Canning wrote: but at the moment we have found that lilypond pulls texlive as a dependency How come? This used to be true a very long time ago, but there are no requirements to have a TeX installation to be able to run LilyPond. See http://lilypond.org/doc/v2.10/Documentation/topdocs/INSTALL (for version 2.10) or http://lilypond.org/doc/v2.11/Documentation/user/lilypond-program/Requireme nts#Requirements (for version 2.11 and the coming version 2.12) for information on the relevant running requirements. At least the Debian and Kubuntu packages of lilypond-data have the following requirement: Pre-Depends: tetex-bin | texlive-base I suppose that this is not true any longer and was never removed when lilypond switched away from using latex... There is, however, a build-time dependency on metafont (mf-nowin is called to create the feta font), which is in the texlive-base-bin package. does this mean all this is needed is a modification to the debian controlfile? this would be great as if texlive-base is not a dep then lilypond should be small enough to fit on our live distro :) cheers rob http://code.goto10.org/projects/puredyne/ ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: live cd-with lilypond
Hello, We hope to include Lilypond in our debian based Puredyne distribution https://code.goto10.org/projects/puredyne but at the moment we have found that lilypond pulls texlive as a dependency, which is way too big for the CD ISO so when we release a live dvd version lilypond will be present for sure. https://code.goto10.org/projects/puredyne/ticket/445 I use lilypond alot in my work so I will be chasing this one up. Is there any way to run lilypond without texlive? or in a way that will make it less bloated for a live cd? Cheers, Rob Stefan Thomas wrote: Dear Valentin, many thanks for Your tips! You are right, nimblex looks great,it would be a good thing, if there could be included Lilypond! 2008/8/22 Valentin Villenave [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 2008/8/22 Stefan Thomas [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]: I'm searching for a live Cd with lilypond. I know, there is Musix, but it has a very old version. And UBUNTU Studio, as far as I know, is not a live CD, or is it? I'm afraid the best way is to build it yourself... I built a Lilypond live-CD in June for my pupils (it took me a whole night :-) After having tried with Mandriva and Fedora, I discovered that Ubuntu was probably the easiest to tweak. There's a nice, bery user-friendly tool called http://uck.sourceforge.net/ There are also http://larch.berlios.de/ (a bit more geeky), and http://custom.nimblex.net/ which is incredibly cool but does not include LilyPond :-( (hey we should ask them if they could! I'll send them a mail...) Good luck anyway! Cheers, Valentin ___ 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: live cd-with lilypondhttp://lilypond.org/doc/v2.10/Documentation/topdocs/INSTALL
maybe its an error in the debian package something in the deb is pulling down texlive anyway i'm not sure exactly whats going on in the control file but it seems that lilypond-data is dependency of lilypond and lilypond-data has texlive-base as a pre-depend. below are some snips of the debian control file that may point to the problem? will cc this to lilypond maintainer: Maintainer: Thomas Bushnell, BSG [EMAIL PROTECTED] debian package version number: lilypond (2.10.33-2.2) Cheers Rob / Package: lilypond Architecture: any Replaces: lilypond1.3 Provides: lilypond1.3 Depends: ${shlibs:Depends}, python, guile-1.8, ${misc:Depends}, lilypond-data (= ${source:Version}) Conflicts: guile-1.8 (= 1.8.2+1-2) Recommends: lilypond-doc Package: lilypond-data Section: tex Architecture: all Depends: texinfo | texlive-texinfo, ${python:Depends} Pre-Depends: tetex-bin | texlive-base Recommends: lilypond (= ${source:Version}) Conflicts: lilypond ( 2.2.2-2) Description: LilyPond music typesetter (data files) / Mats Bengtsson wrote: Rob Canning wrote: but at the moment we have found that lilypond pulls texlive as a dependency How come? This used to be true a very long time ago, but there are requirements to have a TeX installation to be able to run LilyPond. See http://lilypond.org/doc/v2.10/Documentation/topdocs/INSTALL (for version 2.10) or http://lilypond.org/doc/v2.11/Documentation/user/lilypond-program/Requirements#Requirements (for version 2.11 and the coming version 2.12) for information on the relevant running requirements. /Mats , which is way too big for the CD ISO so when we release a live dvd version lilypond will be present for sure. https://code.goto10.org/projects/puredyne/ticket/445 I use lilypond alot in my work so I will be chasing this one up. Is there any way to run lilypond without texlive? or in a way that will make it less bloated for a live cd? Cheers, Rob Stefan Thomas wrote: Dear Valentin, many thanks for Your tips! You are right, nimblex looks great,it would be a good thing, if there could be included Lilypond! 2008/8/22 Valentin Villenave [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 2008/8/22 Stefan Thomas [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]: I'm searching for a live Cd with lilypond. I know, there is Musix, but it has a very old version. And UBUNTU Studio, as far as I know, is not a live CD, or is it? I'm afraid the best way is to build it yourself... I built a Lilypond live-CD in June for my pupils (it took me a whole night :-) After having tried with Mandriva and Fedora, I discovered that Ubuntu was probably the easiest to tweak. There's a nice, bery user-friendly tool called http://uck.sourceforge.net/ There are also http://larch.berlios.de/ (a bit more geeky), and http://custom.nimblex.net/ which is incredibly cool but does not include LilyPond :-( (hey we should ask them if they could! I'll send them a mail...) Good luck anyway! Cheers, Valentin ___ 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 ___ 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