Re: changing the default midi instrument permanently
Try placing that context definition in the \midi block rather than the \layout block. That was my first try too, but, again, it worked only when I used Staff instead of GrandStaff. And then it didn't matter if I placed it in the layout or in the midi block ... ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Generate pdf from scheme function
Alexandre Araujo Moreira alexandr...@gmail.com writes: Alexandre Araujo Moreira alexandr...@gmail.com writes: \version 2.16.2 simpleMusic = #(define-scheme-function (parser location melody) (ly:music?) #{ \score { $melody \layout {} } #}) \simpleMusic { c1 } Is there anyway I can write something similar to simpleMusic (in usage), where it'll automatically generate the pdf given the notes? \version 2.16.2 simpleMusic = #(define-scheme-function (parser location melody) (ly:music?) #{ \score { $melody \layout {} } #}) \score { \simpleMusic { c1 } } Probably more verbose than you care for, but at least you can get midi and layout blocks in which is more than you can do using a music function. David, I tried what you said above (and some variations, as having a score around another score seemed odd) It is not a score around another score in LilyPond-think, but rather a score syntactically introduced with \score and then being constructed inside by referring to a score variable. Things work similarly with \book and \bookpart variables. and I only managed to get syntax errors. This is probably my fault: I don't have 2.16 installed but did not change the version header to reflect this in my posting. The above code works fine in current 2.17. I did not remember that the changes were not already in 2.16. My original idea was based on believing a scheme-function in Lilypond was more-or-less like a macro in Scheme. Now I think I was wrong about that. No, you are quite correct, particularly regarding the more-or-less part. Working on the more part is ongoing work, however. Is there any facility in Lilypond that would allow me to write something like \myMacro arg1 arg2 and have lilypond behave as if I had wrote the expansion of myMacro over arguments arg1 and arg2? If there is such a thing I can work out a way in which it could behave the way I want. Especially if I have anything like guile's syntax-case at my disposal. The problem is not as much defining such functions but rather to get them accepted everywhere where you would expect. This is a gradual process. I had some attempts to turn this into an all-or-nothing feature where you could use Scheme functions wherever a variable was possible. It turns out that this is quite tricky: variables in the syntax generally know their type, and Scheme functions know their type only after being called which requires their argument list to be parsed (and evaluated) first. The parser generally uses one token of lookahead to make its decisions, and whenever the syntax depends on the type of a variable, the lookahead required for finding the end of a Scheme function's argument list call interferes with the not-yet made decision about the expression's type. It is the goal to eventually get rid of all these fine distinctions and limitations, and 2.17 is a solid step forward from 2.16 in that regard. -- David Kastrup ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: changing the default midi instrument permanently
Robert Schmaus robert.schm...@web.de writes: Try placing that context definition in the \midi block rather than the \layout block. That was my first try too, but, again, it worked only when I used Staff instead of GrandStaff. And then it didn't matter if I placed it in the layout or in the midi block ... I am somewhat surprised. It should matter. midiInstrument is read by the Staff_performer, and short of overrides at Staff level (which are established by TabStaff and DrumStaff to guitar and drums, respectively), the setting at GrandStaff should be visible. I have to admit that I don't really understand how midiChannelMapping plays into this right now. -- David Kastrup ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Fingering orientations and use of
Thomas Morley thomasmorle...@googlemail.com writes: currently we have these two engravers: Fingering_engraver and New_fingering_engraver. The New_fingering_engraver has these properties: fingeringOrientations harmonicDots stringNumberOrientations strokeFingerOrientations If you want to use any of these properties you need the chord-construct. The Fingering_engraver applies more or less to fingerings without . That's the current more or less intended state and it's a mess. Well, I'm quite half-assed to divine the future, though, I hope we will change the current status somewhere down the road. For a suitable value of we... Redesigning this will definitely cause quite a few incompatibilities, so it is not for the faint of heart. The principal difference between the two engravers is that New_fingering_engraver associates articulations with the music expression they are attached to, while Fingering_engraver associates articulations with music occuring at the same time. Like with \tweak and \override, the former is more targeted and reliable, while the second has the advantage that you can use parallel music { ... } { ... } to attach articulations to an existing passage of music. Of course, in the second case it is not possible to attach to particular notes within a chord. Being a guitarist myself I write any single note, where it might be possible to assume a left or right positioning of the fingering, in , and I will not change this until the engravers-medley is somehow more cleared up. Clearing up the structure of the engravers is not really simple given the partly conflicting goals they manage to serve. However, it might make sense to let the Fingering_engraver heed more of the properties that the New_fingering_engraver can interpret. -- David Kastrup ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: changing the default midi instrument permanently
Before you (or anyone else) starts an investigation into this, let me (or someone else) double-check to be sure. I'm currently using Elysium (and Eclipse) to write LilyPond scores, and I did notice that there seems to exist something like a midi-instrument memory. Meaning that changing the midi instrument in a Voice/Staff sometimes results in that instrument being used also for other Voices (even in different scores or files!) as a default, if nothing else is specified. However, for just that reason, I've checked the Staff/GrandStaff midi/layout combinations outside the editor (in MacOS) where that instrument-memory doesn't exist for sure. And I'm pretty sure I was thorough ... but if I did miss something, I'd hate to cause a stir. It's high time to finally install VirtualBox and some Linux variation to be able to use Frescobaldi ... On Mon, Mar 18, 2013, at 09:16 AM, David Kastrup wrote: Robert Schmaus robert.schm...@web.de writes: Try placing that context definition in the \midi block rather than the \layout block. That was my first try too, but, again, it worked only when I used Staff instead of GrandStaff. And then it didn't matter if I placed it in the layout or in the midi block ... I am somewhat surprised. It should matter. midiInstrument is read by the Staff_performer, and short of overrides at Staff level (which are established by TabStaff and DrumStaff to guitar and drums, respectively), the setting at GrandStaff should be visible. I have to admit that I don't really understand how midiChannelMapping plays into this right now. -- David Kastrup ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: changing the default midi instrument permanently
Robert Schmaus robert.schm...@web.de writes: Before you (or anyone else) starts an investigation into this, let me (or someone else) double-check to be sure. I'm currently using Elysium (and Eclipse) to write LilyPond scores, and I did notice that there seems to exist something like a midi-instrument memory. Meaning that changing the midi instrument in a Voice/Staff sometimes results in that instrument being used also for other Voices (even in different scores or files!) as a default, if nothing else is specified. However, for just that reason, I've checked the Staff/GrandStaff midi/layout combinations outside the editor (in MacOS) where that instrument-memory doesn't exist for sure. And I'm pretty sure I was thorough ... but if I did miss something, I'd hate to cause a stir. It's high time to finally install VirtualBox and some Linux variation to be able to use Frescobaldi ... Frescobaldi has a Windows installer. I think the major problematic platform for Frescobaldi right now is MacOSX. -- David Kastrup ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: changing the default midi instrument permanently
David Kastrup wrote Eluze lt; eluzew@ gt; writes: it has no effect - why? Try placing that context definition in the \midi block rather than the \layout block. thanks, that works (and I could have found myself, but maybe I was confused by the fact that it works in the \with block...)! why can't midi items be read from the \layout block? now I can integrate this in my -dinclude-settings Eluze -- View this message in context: http://lilypond.1069038.n5.nabble.com/changing-the-default-midi-instrument-permanently-tp142924p142961.html Sent from the User mailing list archive at Nabble.com. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: changing the default midi instrument permanently
Eluze elu...@gmail.com writes: David Kastrup wrote Eluze lt; eluzew@ gt; writes: it has no effect - why? Try placing that context definition in the \midi block rather than the \layout block. thanks, that works (and I could have found myself, but maybe I was confused by the fact that it works in the \with block...)! A context modification in the music is applied to all outputs. why can't midi items be read from the \layout block? Why would they? The \layout block defines the output settings for the graphical output, the \midi block for the sound output. At some point of time, we might even have an \xml block (or similar) containing the settings for MusicXML output. -- David Kastrup ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Centering text between keyboard staves along with dynamics
On 14 March 2013 18:24, Marek Klein ma...@gregoriana.sk wrote: Yes: http://www.lilypond.org/doc/v2.16/Documentation/notation/expressive-marks-attached-to-notes#new-dynamic-marks mpdolce = \markup {\dynamic mp \italic dolce} mpdolcedyn = #(make-dynamic-script mpdolce) dynam = { s2\mf s\mpdolcedyn } Hi, This has several drawbacks, the main ones being that 1. the dynamic (mp) is not correctly centered below the note head ; 2. it is not recognized as a mp dynamic in the MIDI. (not applicable in a Dynamics context, but in the general case of dynamics in Voice) I'd suggest to use Graham's make-dynamic-extra instead, which does not have these drawbacks. http://lists.gnu.org/archive/html/lilypond-user/2011-06/msg00335.html Cheers, Xavier -- Xavier Scheuer x.sche...@gmail.com ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Force barline in middle of a bar
In my (minimal) example below, I'm having trouble with displaying dashed barlines in the middle of the bar. Probably the first occurance of the tuplets in the violin - a figure which is running 'through' the bar - is making things difficult, but is there a way to force the barline anyway? I don't get any errors while parsing, using 2.17.14, but I don't get the dashed barlines either. Jethro SAMPLE = violin = \relative c' { \time 17/8 r4 r8 \times 2/3 { a8[ a a] } \times 2/3 { a2 a4 } a2 a4 r4 | } viola = \relative c' { \time 17/8 a8[ a] a4 \bar dashed s8 s2 s2 s4 \bar dashed a8[ a] | } cello = \relative c' { \time 17/8 \times 2/3 { a8[ a a] } a4 \bar dashed s8 s2 s2 s4 \bar dashed a8[ a] | } \score { \new StaffGroup \new Staff \violin \new Staff \viola \new Staff \cello } ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Force barline in middle of a bar
2013/3/18 Jethro Van Thuyne p...@jethro.be: In my (minimal) example below, I'm having trouble with displaying dashed barlines in the middle of the bar. Probably the first occurance of the tuplets in the violin - a figure which is running 'through' the bar - is making things difficult, but is there a way to force the barline anyway? I don't get any errors while parsing, using 2.17.14, but I don't get the dashed barlines either. Jethro Hi Jethro, the bar-line-interface is heavily changed. Use \bar ! instead of \bar dashed or run convert-ly. Though, there're thoughts to change the input-syntax again to make it more user-friendly while keeping it's functionality: http://lists.gnu.org/archive/html/lilypond-user/2013-03/msg00238.html ff @David (K) Ok, you're right. ;) Cheers, Harm ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Force barline in middle of a bar
Ok great, that does the trick the way I want it to be displayed :) Thanks! Jethro Thomas Morley (18 Mar 2013 @ 13:53) the bar-line-interface is heavily changed. Use \bar ! instead of \bar dashed or run convert-ly. Cheers, Harm ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: problem with slur
fabio gabbianelli fabiogabbiane...@hotmail.it writes: hi everybody! i'm good with english so i'll post the image to let you see my problem: The image contains a number of slurs, so it is not sufficient for guessing what your problem is. -- David Kastrup ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: problem with slur
Hi Fabio, what exactly is your problem (what is this exactly)? Ties combine notes over a bar line for example : a ~ a Slurs mean legato: a( a) Or is your problem how to write multiple voices in one staff? (That I would consider the most tricky part of your example). Cheers, Joram how can i write this on lilypond??? ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: problem with slur
Hi Fabio, here is a code that nearly reproduces your measures (without slurs/ties on first and last notes). I hope you can read from this example what you asked for. You can remove the comments (from % to the line end). For others reading this, some more detailed questions: 1) Why is there a Solo even if both voices have notes there (in case I do not hide the PartCombineTexts)? 2) The 16th-rest in measure 2 is too close to the previous note to my eyes. 3) The ties connecting measure 2 and 3 are looking like slurs (shouldn't it be placed between the notes?) Cheers, Joram \version 2.16.0 \new Staff \partcombine \relative c'' { % why is there a Solo without the next line? \set Staff.printPartCombineTexts = ##f \time 6/8 a16 r g4( f) g8( | % why is the first rest so close to prev. note? % why is the final tie looking like a slur? e16) r r8 r g4. ~ | g16 r f4( e) f8 | } \relative c' { b16 r b4(\p c16) r a4( | g16) r r8 r a4.- ~ | % accent position improved in 2.17 a16 r a4\p( bes16) r16 g4 | } ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Lilypond Woodwind-Diagram for Bassoon missing half-hole option for first finger
I've looked at the diagram and have found the following things that I would like to mention: The top hole should be a hole on both bassoon and contrabassoon. The top hole very often has a half hole, and some players even use quarter and three-quarter holes for the top hole. The third hole on the right hand, above the three keys that make a triangle, may be an oval rather than a circle. This is because it is really a key and not a hole. I have a fingering chart from my bassoon professor in his book; I can scan it and put a link to it here so that the shapes of the keys can also be noted; it is a little difficult to read the diagram in LilyPond for bassoon, to be truthful, if one is used to the standard fingering chart layout. I'll ask for his permission and I'll upload it here if he says yes. - Ryan McClure Luna Music Engraving -- View this message in context: http://lilypond.1069038.n5.nabble.com/Lilypond-Woodwind-Diagram-for-Bassoon-missing-half-hole-option-for-first-finger-tp142777p142975.html Sent from the User mailing list archive at Nabble.com. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: svg output
On December 16, 2012 at 4:52 PM Gerard McConnell gerine...@gmail.com wrote: Apparently Microsoft has created the problem: «Known issues with this security update We are aware of issues related to OpenType Font (OTF) rendering in applications such as PowerPoint on affected versions of Windows that occur after this security update is applied. We are currently investigating these issues and will take appropriate action to address the known issues. » I'll have a look at the manual and see if I can find out how to use an alternative font in Lilypond for now. Thanks again for the help, Gerard Hi, guys: I don't think I have the font problem (I'm on Ubuntu, and I viewed the attached svg files in Inkscape with no apparent problems); however, I can't even get past step 1 — saving as svg. I end up with a ps file, not svg. I do the following: lilypond -o outfile.svg -fsvg infile.ly and that prints: Processing `infile.ly' Parsing... Interpreting music...[8] Preprocessing graphical objects... Finding the ideal number of pages... Fitting music on 1 page... Drawing systems... Layout output to `outfile.svg.ps'... Success: compilation successfully completed And the only thing produced is outfile.svg.ps, and it IS a post-script file, not an svg. What am I doing wrong? ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: svg output
Hi, have you tried the backend svg: lilypond -dbackend=svg infile.ly svg uses for some reason not the format but the backend option. Cheers, Joram lilypond -o outfile.svg -fsvg infile.ly What am I doing wrong? ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: problem with slur
the problem is the first part, when chord is legato with two linesi don't if i had explain good..! Il giorno 18/mar/2013, alle ore 15:11, Noeck ha scritto: Hi Fabio, here is a code that nearly reproduces your measures (without slurs/ties on first and last notes). I hope you can read from this example what you asked for. You can remove the comments (from % to the line end). For others reading this, some more detailed questions: 1) Why is there a Solo even if both voices have notes there (in case I do not hide the PartCombineTexts)? 2) The 16th-rest in measure 2 is too close to the previous note to my eyes. 3) The ties connecting measure 2 and 3 are looking like slurs (shouldn't it be placed between the notes?) Cheers, Joram \version 2.16.0 \new Staff \partcombine \relative c'' { % why is there a Solo without the next line? \set Staff.printPartCombineTexts = ##f \time 6/8 a16 r g4( f) g8( | % why is the first rest so close to prev. note? % why is the final tie looking like a slur? e16) r r8 r g4. ~ | g16 r f4( e) f8 | } \relative c' { b16 r b4(\p c16) r a4( | g16) r r8 r a4.- ~ | % accent position improved in 2.17 a16 r a4\p( bes16) r16 g4 | } ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: problem with slur
Is the example I posted a solution for you? If it's only the two slurs, try: \set doubleSlurs = ##t 18.03.2013 16:02, fabio gabbianelli: the problem is the first part, when chord is legato with two linesi don't if i had explain good..! \version 2.16.0 \new Staff \partcombine \relative c'' { \set Staff.printPartCombineTexts = ##f \time 6/8 a16 r g4( f) g8( | e16) r r8 r g4. ~ | g16 r f4( e) f8 | } \relative c' { b16 r b4(\p c16) r a4( | g16) r r8 r a4.- ~ | a16 r a4\p( bes16) r16 g4 | } ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: svg output
2013/3/18 Noeck noeck.marb...@gmx.de have you tried the backend svg: lilypond -dbackend=svg infile.ly svg uses for some reason not the format but the backend option. keep a look to this issue: http://code.google.com/p/lilypond/issues/detail?id=967 ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Slurs and Ties
Hi, while answering a question here, I wondered about the different positioning of slurs and ties. Slurs begin and end centred on the note head, while ties are placed between the notes (cf. example below). I think this is also what Gould suggests. \relative c'' { \textLengthOff b^expected ~ b( b) b a^a bit ugly ~ a( a) a d,^expected ~ d( d) d c^hard to distinguish ~ c( c) c b^expected ~ b( b) b } It has two consequences that look strange to my eye: 1.) For notes between the staff lines (a’ and c” - and others for different directions), the slur crosses a staff line. Is that intended? It is a bit ugly but probably the only way to distinguish it from a tie. 2.) For notes outside the staff (on ledger lines, like c’) there is in my opinion no reason to place ties below the note heads. I would prefer to have them placed like for the d or b example, because currently ties are almost undistinguishable (when not printed in direct comparison) for those notes. Or is that done on purpose? Thanks for clarifying! Joram ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Slurs and Ties
Hi, On Mon, Mar 18, 2013 at 5:44 PM, Noeck noeck.marb...@gmx.de wrote: 2.) For notes outside the staff (on ledger lines, like c’) there is in my opinion no reason to place ties below the note heads. I would prefer to have them placed like for the d or b example, because currently ties are almost undistinguishable (when not printed in direct comparison) for those notes. Or is that done on purpose? You are absolutely right, this is just LilyPond's sloppiness. In general, tie formatting is ugly in many cases, and i'm thinking about a complete redesign of tie formatting since summer 2011 (yep, 1.5 years now). I have many examples and half the design written, but little time to finish it :/ cheers, Janek ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: big-picture question regarding Lilypond's capabilities (current and potential)
Kieren MacMillan kieren_macmil...@sympatico.ca wrote: My two-act musical, Robin Hood: The Legendary Musical Comedy, had a three-week run at Toronto's Hart House Theatre in January. It was quite successful, to the point that several parties have voiced an interest in further developing and producing it. Congratulations! In my dream world, people who are interested in producing any of my musicals should be able to say (e.g.) the following: 1. “I would like PDFs for the full score, vocal score, vocal book, and band parts for piano+bass+percussion. 2. I would like ‘Generosity’ transposed down a tone.” 3. “In the opening number, I would like to cut mm. 101-117, and have mm. 212-213 made into a vamp (i.e., with repeat signs and the word ‘vamp, cont. on vox’ written above).” That's very generous of you. Most of the rental license agreements one has to sign for a musical today prohibit cuts or additions of any kind. Of course, that prohibition is almost universally ignored. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: svg output
Bric wrote lilypond -o outfile.svg -fsvg infile.ly please note that lilypond adds the extension automatically so probably you want to write lilypond -o outfile -dbackend=svg infile.ly Eluze -- View this message in context: http://lilypond.1069038.n5.nabble.com/svg-output-tp137775p142987.html Sent from the User mailing list archive at Nabble.com. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Slurs and Ties
You are absolutely right, this is just LilyPond's sloppiness. In general, tie formatting is ugly in many cases, and i'm thinking about a complete redesign of tie formatting since summer 2011 (yep, 1.5 years now). I have many examples and half the design written, but little time to finish it :/ Thanks for your reply. I really hope you find some time. But I know there are other things that should be completed and done. Cheers, Joram ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Generate pdf from scheme function
Thanks for everything, guys. I just tested what David said on 2.17 and it worked for the case I described here. Problem is, when I try to add a \header block inside it I start getting errors again. Considering how many problems I've faced so far regarding this, I feel I'm trying to push the scheme-functions in a direction they're not intended to go, is that correct? So far I managed to achieve the overall results I want \include-ing a couple files (one above the information I want to supply setting default values for some global variables, the melody and other variables set in the main file, then another included file below it all containing the structure I wanted my macro to generate. It's not the best result but it's a good trade-off so far. Am I missing another, better, way to do it programmatically? Or are scheme-functions actually intended to do what I'm failing to do and I'm just using them wrong? On Mon, Mar 18, 2013 at 5:07 AM, David Kastrup d...@gnu.org wrote: Alexandre Araujo Moreira alexandr...@gmail.com writes: Alexandre Araujo Moreira alexandr...@gmail.com writes: \version 2.16.2 simpleMusic = #(define-scheme-function (parser location melody) (ly:music?) #{ \score { $melody \layout {} } #}) \simpleMusic { c1 } Is there anyway I can write something similar to simpleMusic (in usage), where it'll automatically generate the pdf given the notes? \version 2.16.2 simpleMusic = #(define-scheme-function (parser location melody) (ly:music?) #{ \score { $melody \layout {} } #}) \score { \simpleMusic { c1 } } Probably more verbose than you care for, but at least you can get midi and layout blocks in which is more than you can do using a music function. David, I tried what you said above (and some variations, as having a score around another score seemed odd) It is not a score around another score in LilyPond-think, but rather a score syntactically introduced with \score and then being constructed inside by referring to a score variable. Things work similarly with \book and \bookpart variables. and I only managed to get syntax errors. This is probably my fault: I don't have 2.16 installed but did not change the version header to reflect this in my posting. The above code works fine in current 2.17. I did not remember that the changes were not already in 2.16. My original idea was based on believing a scheme-function in Lilypond was more-or-less like a macro in Scheme. Now I think I was wrong about that. No, you are quite correct, particularly regarding the more-or-less part. Working on the more part is ongoing work, however. Is there any facility in Lilypond that would allow me to write something like \myMacro arg1 arg2 and have lilypond behave as if I had wrote the expansion of myMacro over arguments arg1 and arg2? If there is such a thing I can work out a way in which it could behave the way I want. Especially if I have anything like guile's syntax-case at my disposal. The problem is not as much defining such functions but rather to get them accepted everywhere where you would expect. This is a gradual process. I had some attempts to turn this into an all-or-nothing feature where you could use Scheme functions wherever a variable was possible. It turns out that this is quite tricky: variables in the syntax generally know their type, and Scheme functions know their type only after being called which requires their argument list to be parsed (and evaluated) first. The parser generally uses one token of lookahead to make its decisions, and whenever the syntax depends on the type of a variable, the lookahead required for finding the end of a Scheme function's argument list call interferes with the not-yet made decision about the expression's type. It is the goal to eventually get rid of all these fine distinctions and limitations, and 2.17 is a solid step forward from 2.16 in that regard. -- David Kastrup ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user -- Bad programming is easy. Idiots can learn it in 21 days, even if they are dummies. - As seen in 'How to Design Programs' ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Generate pdf from scheme function
Alexandre Araujo Moreira alexandr...@gmail.com writes: Thanks for everything, guys. I just tested what David said on 2.17 and it worked for the case I described here. Problem is, when I try to add a \header block inside it I start getting errors again. \header inside of \score is not possible as far as I remember. You need to use \paper instead. \header can only be used at top level or inside of \book. -- David Kastrup ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Generate pdf from scheme function
On 18 March 2013 19:49, David Kastrup d...@gnu.org wrote: \header inside of \score is not possible as far as I remember. You need to use \paper instead. \header can only be used at top level or inside of \book. \header blocks may be placed in a \score block, but only after the music expression, cf. NR 3.2.1 Creating titles headers and footers Titles explained http://lilypond.org/doc/v2.17/Documentation/notation/creating-titles-headers-and-footers.html#titles-explained Several people (including Reinhold) asked for the possibility to place \header in \score before the music expression but I cannot find a corresponding issue on the tracker. Cheers, Xavier -- Xavier Scheuer x.sche...@gmail.com ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Custom footers
Postridie Idus Martias MMXIII scripsit Thomas Morley : Where do you store the values you want have printed? How is the structure of your file(s). Which is your version? etc Please post a compilable example. I have access to lilypond 2.12.3 (Debian stable). I of course already looked in the documentation page http://lilypond.org/doc/v2.12/Documentation/user/lilypond/Custom-titles and this was why I referred to the extremely poor (and ugly) language of \on-the-fly and \fromproperty. Where do I store the values: that is actually part of the question. And I'm also not able to post a compilable example since that would mean that the problem would be solved... Basically, I would like something like the output of the following code, except that the evenFooterMarkup should not be typed by hand. % code follows theme = \relative c'' { c4 d e } bass = \relative c { c4 d e } \pageBreak \markup { Title } \new Staff { \set Staff.instrumentName = Theme \theme } \paper { evenFooterMarkup = \markup { Title - 1 - Theme (1/1) } } \pageBreak \markup { Title } \new Staff { \set Staff.instrumentName = Bass \bass } \paper { evenFooterMarkup = \markup { Title - 2 - Bass (1/1) } } ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: lilypond-user Digest, Vol 124, Issue 124
Message: 8 Date: Sat, 16 Mar 2013 15:20:32 -0700 From: Sarah k Alawami marri...@gmail.com To: lilly pond discuss discuss lilypond-user@gnu.org Subject: articulation simbols Message-ID: 70420b68-2597-433f-b1cc-47d884d5d...@gmail.com Content-Type: text/plain; charset=us-ascii Hello to all. I was tryign to look up accents and staccato marks in lily pond. I found a lit of articulations but it just shows the image of music and the manual at least as far as I can tell does not explain what % and - and + mean etc etc etc. I thin I remember how to do it but is there text I can write? I tried accent and staccato, but that failed with a bang. i put comments on where these things should be for my own benefit so I can add them before the project is due, and just wrote the notes down for now. any thoughts on how I should go about doing this? Thanks and be blessed. + is not really an articulation, it is the symbol for a stopped note. OK, Lilypond calls it an articulation. I don't (I'm a horn player, but so is Han-Wen who I'm sure put it in originally, so go figure!) % is not an articulation, it is the symbol for a comment (in the lilypond code). - combines with other symbols to make articulations: . (staccato) (accent) - (tenuto) etc. It is quicker to type than \staccato etc. Example: d4- f- g- a g8-. e-. c-. g-. c4-- e-- d-^ f-^___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: big-picture question regarding Lilypond's capabilities (current and potential)
Hi Tim, Congratulations! Thanks! That's very generous of you. Most of the rental license agreements one has to sign for a musical today prohibit cuts or additions of any kind. Of course, that prohibition is almost universally ignored. As a music director of musicals, I know only too well the arcane, uninforced [uninforceable, really], and ultimately counterproductive terms in those licensing agreements. As a composer and [self-]publisher of musicals, I refuse to follow the dinosaurs into The Graveyard of 20th Century Business Models. =) Best, Kieren. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Custom footers
On Mar 18, 2013, at 8:40 PM, Jérôme Plût wrote: Postridie Idus Martias MMXIII scripsit Thomas Morley : Where do you store the values you want have printed? How is the structure of your file(s). Which is your version? etc Please post a compilable example. I have access to lilypond 2.12.3 (Debian stable). I of course already looked in the documentation page http://lilypond.org/doc/v2.12/Documentation/user/lilypond/Custom-titles and this was why I referred to the extremely poor (and ugly) language of \on-the-fly and \fromproperty. Where do I store the values: that is actually part of the question. they come from the header. It might be valuable to re-read 3.1.3 which states, A .ly file may contain any number of toplevel expressions, where a toplevel expression is one of the following: An output definition, such as \paper, \midi, and \layout. Such a definition at the toplevel changes the default book-wide settings. If more than one such definition of the same type is entered at the top level any definitions in the later expressions have precedence. So you can have only one toplevel \paper, although you can have a separate one for each \bookpart.___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: changing the default midi instrument permanently
David Kastrup wrote Eluze lt; eluzew@ gt; writes: ..., but maybe I was confused by the fact that it works in the \with block...! A context modification in the music is applied to all outputs. why can't midi items be read from the \layout block? Why would they? The \layout block defines the output settings for the graphical output, the \midi block for the sound output. that's how it works right now - but since LilyPond is able to tell what goes to the graphical or sound output I don't see why I have to specify where it goes myself!? maybe the terms \layout and \midi should then be summarized in something more neutral like \settings or \migr (for *mi*di and *gr*aphics) Eluze -- View this message in context: http://lilypond.1069038.n5.nabble.com/changing-the-default-midi-instrument-permanently-tp142924p143001.html Sent from the User mailing list archive at Nabble.com. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: changing the default midi instrument permanently
Eluze elu...@gmail.com writes: David Kastrup wrote Eluze lt; eluzew@ gt; writes: ..., but maybe I was confused by the fact that it works in the \with block...! A context modification in the music is applied to all outputs. why can't midi items be read from the \layout block? Why would they? The \layout block defines the output settings for the graphical output, the \midi block for the sound output. that's how it works right now - but since LilyPond is able to tell what goes to the graphical or sound output I don't see why I have to specify where it goes myself!? Context definitions are large, particularly for layout (containing all grob descriptions). Duplicating every information into every layout definition would cause severe overhead particularly for Midi generation. Also the translators (engravers and performers) are seriously different in nature for layout and midi, so joining them does not make sense. maybe the terms \layout and \midi should then be summarized in something more neutral like \settings or \migr (for *mi*di and *gr*aphics) What parts should be common for layout and midi and what parts not? You'd not likely want to share translators... -- David Kastrup ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: how to keep BarNumber above pedal indications?
Hi Thomas, \consists Piano_pedal_align_engraver That solved it — thank you! Best wishes, Kieren. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: articulation simbols
Message: 2 Date: Mon, 18 Mar 2013 13:00:40 -0700 From: Tim Reeves tim.ree...@tokamerica.com To: lilypond-user@gnu.org Subject: Re: lilypond-user Digest, Vol 124, Issue 124 Message-ID: of01d29e28.05b80cfb-on88257b32.00696897-88257b32.006de...@tokamerica.com Content-Type: text/plain; charset=us-ascii Message: 8 Date: Sat, 16 Mar 2013 15:20:32 -0700 From: Sarah k Alawami marri...@gmail.com To: lilly pond discuss discuss lilypond-user@gnu.org Subject: articulation simbols Message-ID: 70420b68-2597-433f-b1cc-47d884d5d...@gmail.com Content-Type: text/plain; charset=us-ascii Hello to all. I was tryign to look up accents and staccato marks in lily pond. I found a lit of articulations but it just shows the image of music and the manual at least as far as I can tell does not explain what % and - and + mean etc etc etc. I thin I remember how to do it but is there text I can write? I tried accent and staccato, but that failed with a bang. i put comments on where these things should be for my own benefit so I can add them before the project is due, and just wrote the notes down for now. any thoughts on how I should go about doing this? Thanks and be blessed. + is not really an articulation, it is the symbol for a stopped note. OK, Lilypond calls it an articulation. I don't (I'm a horn player, but so is Han-Wen who I'm sure put it in originally, so go figure!) % is not an articulation, it is the symbol for a comment (in the lilypond code). - combines with other symbols to make articulations: . (staccato) (accent) - (tenuto) etc. It is quicker to type than \staccato etc. Example: d4- f- g- a g8-. e-. c-. g-. c4-- e-- d-^ f-^ Sorry for messing up the thread subject. One of the drawbacks of getting the emails in digest format is you have to change the subject when you reply. Tim Reeves ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: articulation simbols
I guess I'll have to remember those symbols then. lol! The manual did not explain them at all. Is there a way to memorize these? I'm coming from braille music here lol! lol. I know what percent is. I think I might have been going faster then my brain. Hehahah. Thanks and take care. On Mar 18, 2013, at 6:03 PM, Tim Reeves tim.ree...@tokamerica.com wrote: Message: 2 Date: Mon, 18 Mar 2013 13:00:40 -0700 From: Tim Reeves tim.ree...@tokamerica.com To: lilypond-user@gnu.org Subject: Re: lilypond-user Digest, Vol 124, Issue 124 Message-ID: of01d29e28.05b80cfb-on88257b32.00696897-88257b32.006de...@tokamerica.com Content-Type: text/plain; charset=us-ascii Message: 8 Date: Sat, 16 Mar 2013 15:20:32 -0700 From: Sarah k Alawami marri...@gmail.com To: lilly pond discuss discuss lilypond-user@gnu.org Subject: articulation simbols Message-ID: 70420b68-2597-433f-b1cc-47d884d5d...@gmail.com Content-Type: text/plain; charset=us-ascii Hello to all. I was tryign to look up accents and staccato marks in lily pond. I found a lit of articulations but it just shows the image of music and the manual at least as far as I can tell does not explain what % and - and + mean etc etc etc. I thin I remember how to do it but is there text I can write? I tried accent and staccato, but that failed with a bang. i put comments on where these things should be for my own benefit so I can add them before the project is due, and just wrote the notes down for now. any thoughts on how I should go about doing this? Thanks and be blessed. + is not really an articulation, it is the symbol for a stopped note. OK, Lilypond calls it an articulation. I don't (I'm a horn player, but so is Han-Wen who I'm sure put it in originally, so go figure!) % is not an articulation, it is the symbol for a comment (in the lilypond code). - combines with other symbols to make articulations: . (staccato) (accent) - (tenuto) etc. It is quicker to type than \staccato etc. Example: d4- f- g- a g8-. e-. c-. g-. c4-- e-- d-^ f-^ Sorry for messing up the thread subject. One of the drawbacks of getting the emails in digest format is you have to change the subject when you reply. Tim Reeves ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user