Re: beam settings
On Mon, Dec 22, 2008 at 08:19:27AM +0100, Herbert Liechti wrote: I tried several settings without success: You were close. { \repeat volta 2 { \time 6/8 \set Score.beatGrouping = #'(3 3 3 3 3 3) \repeat unfold 6 { \times 2/3 { bes16 g es } } | \repeat unfold 6 { \times 2/3 { bes16 as es } } | } } An other question: Is it possible to achieve the same behavior in the \times 2/3 part, so that the 3 symbol for triplets is engraved only once? There's a property that's something like tupletPrintNumber. Go to the NR page for triplets, follow the IR link, and take a look at the tweakable properties. Cheers, - Graham ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: question about transposing an interval of a 4th
Am 22.12.2008 um 05:42 schrieb Graham Percival: Chip, I am 90% convinced that the solution to your problem was posted here: http://lists.gnu.org/archive/html/lilypond-user/2008-12/msg00586.html http://lists.gnu.org/archive/html/lilypond-user/2008-12/msg00585.html With another person trying to figure out what you wanted here: http://lists.gnu.org/archive/html/lilypond-user/2008-12/msg00581.html None of those solutions involve programming, and they are easily constructed with the knowledge in the LM. If you cannot, or will not, describe what you actually want, it's very difficult to help you. I think what Graham's trying to say (but he has difficulty formulating these kinds of things) is this: \version 2.11.65 notes = { c d e f g a h c } TrptOne = { \key d \major \transpose c d \relative c'' { \notes } } TrptTwo = { \key d \major \transpose d a, { \transpose c d \relative c'' { \notes } } } \score { \relative c'' \notes \TrptOne \TrptTwo } I find it interesting that Graham can't help people--he feels the need to teach them. Sometimes people don't understand how the functions in lilypond work. And then we have the quarterly, Graham, stop being an ass to the newbies email. ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: question about transposing an interval of a 4th
James, this is nice, but I don't think it's right. Chip, correct me if I'm wrong, but I think the second-to-last note in the 3rd staff should be G-natural, not G-sharp. G-sharp is not diatonic in the key of D major. As far as I can tell, only John's proposed (and unfinished) solution avoids this problem. - Mark James E. Bailey wrote: \version 2.11.65 notes = { c d e f g a h c } TrptOne = { \key d \major \transpose c d \relative c'' { \notes } } TrptTwo = { \key d \major \transpose d a, { \transpose c d \relative c'' { \notes } } } \score { \relative c'' \notes \TrptOne \TrptTwo } ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: question about transposing an interval of a 4th
Totally didn't even see the sharp sign. It's early. Am 22.12.2008 um 09:39 schrieb Mark Polesky: James, this is nice, but I don't think it's right. Chip, correct me if I'm wrong, but I think the second-to-last note in the 3rd staff should be G-natural, not G-sharp. G-sharp is not diatonic in the key of D major. As far as I can tell, only John's proposed (and unfinished) solution avoids this problem. - Mark James E. Bailey wrote: \version 2.11.65 notes = { c d e f g a h c } TrptOne = { \key d \major \transpose c d \relative c'' { \notes } } TrptTwo = { \key d \major \transpose d a, { \transpose c d \relative c'' { \notes } } } \score { \relative c'' \notes \TrptOne \TrptTwo } ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: beam settings
Graham Percival schrieb: On Mon, Dec 22, 2008 at 08:19:27AM +0100, Herbert Liechti wrote: I tried several settings without success: You were close. { \repeat volta 2 { \time 6/8 \set Score.beatGrouping = #'(3 3 3 3 3 3) \repeat unfold 6 { \times 2/3 { bes16 g es } } | \repeat unfold 6 { \times 2/3 { bes16 as es } } | } } I tried this before but it is not working (version 2.11.63). I found this solution \repeat volta 2 { \set Score.beatGrouping = #'(3 3 3 3 3 3) \times 2/3 { bes16[ g es] } \override TupletNumber #'stencil = ##f \repeat unfold 5 { \times 2/3 { bes16[ g es] } } | \repeat unfold 6 { \times 2/3 { bes16[ as es] } } | } Seems that the brackets are required for achieving the desired behavior. Thank you and best regards Herbie -- herbert.liec...@thinx.ch, ThinX AG, Poststrasse 2, CH-4500 Solothurn Tel +41 (0)32 623 81 66, Mobile +41 (0)76 334 81 66, http://www.thinx.ch ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
problem with substitution
Dear Lilypond-users, I trie to substitute the variable zackigschnell' with APZ', but without sucess. What is wrong with the following snippet? \version 2.11.60 \include rhythmustest.ly \new Staff { \APZ { c' d' e' f' } } rhythmustest.ly Description: Binary data ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: question about transposing an interval of a 4th
Am 22.12.2008 um 03:52 schrieb Graham Percival: On Sun, Dec 21, 2008 at 06:30:18PM -0800, Mark Polesky wrote: Graham, Great, that helps a lot. I haven't got a clue what scheme is. In that case, may I courteously extend an invitation that you read the bloody Learning Manual? Please stop the sarcasm and the indecency. If you're trying to be funny, it isn't working. It's a continuation of this email: http://lists.gnu.org/archive/html/lilypond-user/2008-11/msg00439.html If he doesn't know what scheme is, then he clearly *hasn't* read the LM cover-to-cover yet. This means that he's missed some terminology, missed some of the possibilities of lilypond, and won't be able to communicate with the lilypond community as effectively. Oh, I've read the Learning Manual cover to cover (well, it may have been changed since then, it was some months ago), and I don't understand Scheme. I leave it as an exercise for the reader. Neil, Trevor, Valentin: please don't give the answer. What are you doing? Are you trying to turn people away from LilyPond? You seem to be unfamiliar with the phrase an exercise for the reader. The idea is that solving the problem is a useful exercise. I don't think the original question asked for an exercise. There have been 15 replies to Chip's original message, and NO ONE has answered it yet. This is embarrassing. If it were as easy to the rest of us as it obviously is to you, someone would have answered it. A user asks a perfectly legitimate question, and the response is, go figure it out. Give a man a fish, teach a man to fish... Apparently you, valentin, nicolas and John are the only people on this list who know how to fish. And no one's sharing how. But what you're doing is the opposite of helpful. So please, stop. Since it's such an elementary exercise, please provide it, now. I assume it'll only take a minute. Then we can all learn. 1. Look at the selected snippets for \transpose. There's an example that's very close to what he wants. I'm guessing you mean transposing music with minimum accidentals 2. Look at { \displayMusic { a ais d dis } } to get some info about how lilypond treats pitches. The idea is to write a function that translates a ais into d dis. That goes into Scheme. I don't know if it's possible for you, but try reading LM B.1 as if this were your introduction into a programming language, lilypond being your introduction to source code. It's completely confusing. It doesn't explain anything, I have no idea what parser, location, padding, marktext, number? string? $padding +inf, -inf, or any of the other Scheme-specific things there mean. But that's okay, it isn't the Scheme documentation, it's the lilypond documentation. But, to assume that a user could, from the doucmentation in the learning manual understand how to construct anything in scheme. (I, not knowing anything about Scheme assumed I could just type #this is a string and see it printed out.) So, while someone who understands the output of { \displayMusic { a ais d dis } } might be able to figure out how to do what he wants to do, in the interim, can you, o great and wise graham, give us our first lesson in programming and explain what the output of { \displayMusic { a ais d dis } } means so that those of us who have only had musical instruction, and no programming instruction can learn how to fish write a function that translates a ais into d dis 3. Modify the existing example so that instead of producing notes with few accidentals, it changes the notename by the desired interval. - Graham ___ 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: question about transposing an interval of a 4th
Cameron Horsburgh ca...@netcall.com.au writes: He wants it diatonic, so it's not that easy. \transpose c' g {a b c} would produce {e fis g} instead of {e f g}. I'd say that deserves an additional function, e.g. \transposePitch #-4 { a b c } I'd also say that it would not be necessary for all LilyPond users to become experienced Scheme programmers. So if someone wants to write this function and share it with us many users will be grateful. -- Johan ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
manually tweaking accidental X-position
hi, I was wondering if it is possible to manually tweak the X-position of an accidental. In the list archives i found someone reporting that \override Accidental #'Y-offset works, but \override Accidental #'X-offset doesn't. Is there another way to accomplish this? thanks greetings, Kristof -- i...@kristoflauwers.domainepublic.net http://myspac.com/xofxof http://kristoflauwers.domainepublic.net -- ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: question about transposing an interval of a 4th
chip wrote: Am 21.12.2008 um 19:07 schrieb chip: I input in Concert C, transpose to the key of D for Trumpet. \transpose c d {} The First Trumpet part transposes to the key of D just fine. I would like to just copy/paste the first part into the second part. What's the second part? As mentioned just above your question - it's the first trumpet part, just copied/pasted into the 2nd trumpet part. The second part I want to transpose also for Trumpet, also in the key of D, but a fourth lower. In the key of d, but a fourth lower. Do you mean the key of a? Key of A? No, as I said in my post - in the key of D. Or do you want the part in D major, but a fourth lower than the first part? Yes, as I said, a fourth lower, in the key of D. I'm a little confused as to what you want. If it's the the latter, then yeah, it's probably doable in scheme, but I don't know scheme and can't help you there, and I would just say type it a fourth lower. melody = {c d e f g a b} trumpet 1 = {d e fâ g a b câ} trumpet 2 = {a b câ d e fâ gâ} ?? trumpet 2 = {a b câ d e fâ g} ?? If my piece were only 7 notes long that would work just fine. Graham Percival wrote: Chip, I am 90% convinced that the solution to your problem was posted here: http://lists.gnu.org/archive/html/lilypond-user/2008-12/msg00586.html http://lists.gnu.org/archive/html/lilypond-user/2008-12/msg00585.html With another person trying to figure out what you wanted here: http://lists.gnu.org/archive/html/lilypond-user/2008-12/msg00581.html None of those solutions involve programming, and they are easily constructed with the knowledge in the LM. If you cannot, or will not, describe what you actually want, it's very difficult to help you. How much clearer can I make it? The questions are answered in the posts right above the questions. A trumpet part in the key of D but notated a fourth lower, still in the key of D, as described above. The problem here is that you haven't made it clear whether you want *perfect* fourths or not. The solution I sent to the list did what you said, put the 2nd trumpet part a fourth lower without changing the key signature, but yes it has a G-sharp where the original had a C-sharp. That doesn't mean it changed the key signature, it just has the occasional accidental to maintain the perfect fourths. If you say 4ths, you have to be specific. If you want everything to be *some* kind of fourth that will never create an accidental, then it's harder to do, hence everyone's confusion. Sorry you had to type everything again. Seems like you could copy/paste the whole part, then just change the c-sharps to c naturals if you want the transposed part to have G naturals. Good luck with the rehearsal/performance :) Jon -- Jonathan Kulp http://www.jonathankulp.com ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: beam settings
Reinhold Kainhofer wrote: \set Score.beatGrouping = #'(1 1 1 1 1 1) This is way easier than using several lines like: #(override-auto-beam-setting '(end * * 6 8) 1 8) or similar. Also if you need to switch the tuplet numbers on and off a lot, you could make a shorthand for it, like numberOff = \override TupletNumber #'stencil = ##f numberOn = \revert TupletNumber #'stencil ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: beam settings
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Am Montag, 22. Dezember 2008 09:04:12 schrieb Graham Percival: You were close. { \repeat volta 2 { \time 6/8 \set Score.beatGrouping = #'(3 3 3 3 3 3) That's close, too, but not correct ;-) Am Montag, 22. Dezember 2008 09:55:25 schrieb Herbert Liechti: \repeat volta 2 { \set Score.beatGrouping = #'(3 3 3 3 3 3) \times 2/3 { bes16[ g es] } \override TupletNumber #'stencil = ##f \repeat unfold 5 { \times 2/3 { bes16[ g es] } } | \repeat unfold 6 { \times 2/3 { bes16[ as es] } } | } You're almost there... Seems that the brackets are required for achieving the desired behavior. Actually, no. What is needed is a correct value for the beatGrouping ;-) You don't want 3 eighth notes to be beamed together, do you? You want the beams to be broken after EACH eighth note. So the correct value is to set beat Grouping to #'(1 1 1 1 1 1 ), which tells lilypond to beam together all subdivisions of an eighth note, but don't beam across eighth note boundaries. So, your complete example would be: \transpose c c'' { \clef treble \time 6/8 \repeat volta 2 { \set Score.beatGrouping = #'(1 1 1 1 1 1) \times 2/3 { bes16 g es } \override TupletNumber #'stencil = ##f \repeat unfold 5 { \times 2/3 { bes16 g es } } | \repeat unfold 6 { \times 2/3 { bes16 as es } } | } } Cheers, Reinhold - -- - -- Reinhold Kainhofer, Vienna University of Technology, Austria email: reinh...@kainhofer.com, http://reinhold.kainhofer.com/ * Financial and Actuarial Mathematics, TU Wien, http://www.fam.tuwien.ac.at/ * K Desktop Environment, http://www.kde.org, KOrganizer maintainer * Chorvereinigung Jung-Wien, http://www.jung-wien.at/ -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) iD8DBQFJT4ALTqjEwhXvPN0RAg9LAKC+iAeaG/hipcibnyMkZLpe9GQ+fwCfaDWc Ym3ObXiJf4TtRjxKIOuWsWU= =ehrY -END PGP SIGNATURE- ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: beam settings
On Mon, Dec 22, 2008 at 12:54:50PM +0100, Reinhold Kainhofer wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Am Montag, 22. Dezember 2008 09:04:12 schrieb Graham Percival: You were close. { \repeat volta 2 { \time 6/8 \set Score.beatGrouping = #'(3 3 3 3 3 3) That's close, too, but not correct ;-) I must be getting old. What's the difference between my example in 2.11.65 and the picture? Octave, key signature, and tempo marking, but I could have sworn that the beaming was the same. Actually, no. What is needed is a correct value for the beatGrouping ;-) You don't want 3 eighth notes to be beamed together, do you? You want the beams to be broken after EACH eighth note. So the correct value is to set beat Grouping to #'(1 1 1 1 1 1 ), which tells lilypond to beam together all subdivisions of an eighth note, but don't beam across eighth note boundaries. I must admit that this makes sense. Am I seeing a bug in .65 that was fixed in .66? Because the #'(3 3 3 3 3 3) certainly seems to work here... Cheers, - Graham ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: question about transposing an interval of a 4th
Le lundi 22 décembre 2008 à 10:56 +0100, James E. Bailey a écrit : Am 22.12.2008 um 03:52 schrieb Graham Percival: Oh, I've read the Learning Manual cover to cover (well, it may have been changed since then, it was some months ago), and I don't understand Scheme. Indeed: there is currently no thing in all LilyPond documentation that introduces Scheme programming for non-programmers. Give a man a fish, teach a man to fish... Apparently you, valentin, nicolas and John are the only people on this list who know how to fish. And no one's sharing how. We can't share this on this list, but it'd be cool to have an introduction to programming based on Scheme and demonstrating applications in LilyPond; however, even this is a lot of work and there are more urgent and basic things to do in the next 2 months. Cheers, John ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: beam settings
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Am Montag, 22. Dezember 2008 13:49:10 schrieb Graham Percival: On Mon, Dec 22, 2008 at 12:54:50PM +0100, Reinhold Kainhofer wrote: Am Montag, 22. Dezember 2008 09:04:12 schrieb Graham Percival: You were close. { \repeat volta 2 { \time 6/8 \set Score.beatGrouping = #'(3 3 3 3 3 3) That's close, too, but not correct ;-) I must be getting old. What's the difference between my example in 2.11.65 and the picture? Octave, key signature, and tempo marking, but I could have sworn that the beaming was the same. Yes, the beaming is the same, but that's not due to your beatGrouping value, but due to the internal workings: Your beatGrouping value is inconsistent (it defines a rule for 18 eighth notes in a measure, which contradicts the time signature, so lilypond does not use the beatGrouping value at all and resolves to beaming each beat separately). You can try it also with other values, which don't make sense. For example, \set Score.beatGrouping = #'(17 3 1) will give you the same beat-wise grouping. On the other hand, once you shorten your list to the correct measure length \set Score.beatGrouping = #'(3 3) then the beaming will not be triplet-wise, but the first three triplets will be beamed together. I must admit that this makes sense. Am I seeing a bug in .65 that was fixed in .66? Because the #'(3 3 3 3 3 3) certainly seems to work here... As exaplained above, setting beatGrouping to this value effectively causes LilyPond to ignore that setting at all. It has the same effect as using \uset Score.beatGrouping In this case, LilyPond will fall back to beat-wise grouping (which is coincidentally what is desired in this case, but that's pure luck ;-) ) Cheers, Reinhold - -- - -- Reinhold Kainhofer, Vienna University of Technology, Austria email: reinh...@kainhofer.com, http://reinhold.kainhofer.com/ * Financial and Actuarial Mathematics, TU Wien, http://www.fam.tuwien.ac.at/ * K Desktop Environment, http://www.kde.org, KOrganizer maintainer * Chorvereinigung Jung-Wien, http://www.jung-wien.at/ -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) iD8DBQFJT5a+TqjEwhXvPN0RAq2pAKDIXzAjrXEE5LJQ/v4pFBRNvWmCtACeIBzC yn1UMJ8Tkl+RmgxBxdI5n98= =GYEv -END PGP SIGNATURE- ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: question about transposing an interval of a 4th
Am 22.12.2008 um 14:04 schrieb John Mandereau: Le lundi 22 décembre 2008 à 10:56 +0100, James E. Bailey a écrit : Am 22.12.2008 um 03:52 schrieb Graham Percival: Oh, I've read the Learning Manual cover to cover (well, it may have been changed since then, it was some months ago), and I don't understand Scheme. Indeed: there is currently no thing in all LilyPond documentation that introduces Scheme programming for non-programmers. And there shouldn't be, in my opinion. Give a man a fish, teach a man to fish... Apparently you, valentin, nicolas and John are the only people on this list who know how to fish. And no one's sharing how. We can't share this on this list, but it'd be cool to have an introduction to programming based on Scheme and demonstrating applications in LilyPond; however, even this is a lot of work and there are more urgent and basic things to do in the next 2 months. Given that, I'd say that the easiest solution would be to just tell us. Incidentally, he did make it clear, he wants a diatonic fourth. So, c sharp in trumpet one is g natural in trumpet 2, not g sharp. ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: beam settings
Reinhold Kainhofer schrieb: You're almost there... Seems that the brackets are required for achieving the desired behavior. Actually, no. What is needed is a correct value for the beatGrouping ;-) You don't want 3 eighth notes to be beamed together, do you? You want the beams to be broken after EACH eighth note. So the correct value is to set beat Grouping to #'(1 1 1 1 1 1 ), which tells lilypond to beam together all subdivisions of an eighth note, but don't beam across eighth note boundaries. So, your complete example would be: \transpose c c'' { \clef treble \time 6/8 \repeat volta 2 { \set Score.beatGrouping = #'(1 1 1 1 1 1) \times 2/3 { bes16 g es } \override TupletNumber #'stencil = ##f \repeat unfold 5 { \times 2/3 { bes16 g es } } | \repeat unfold 6 { \times 2/3 { bes16 as es } } | } } Reinhold I tried this code but it is not working even after upgrading to version 2.11.65. Resulting picture is dingsbums best regards Herbie ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: beam settings
Reinhold Kainhofer schrieb: You're almost there... Seems that the brackets are required for achieving the desired behavior. Actually, no. What is needed is a correct value for the beatGrouping ;-) You don't want 3 eighth notes to be beamed together, do you? You want the beams to be broken after EACH eighth note. So the correct value is to set beat Grouping to #'(1 1 1 1 1 1 ), which tells lilypond to beam together all subdivisions of an eighth note, but don't beam across eighth note boundaries. So, your complete example would be: \transpose c c'' { \clef treble \time 6/8 \repeat volta 2 { \set Score.beatGrouping = #'(1 1 1 1 1 1) \times 2/3 { bes16 g es } \override TupletNumber #'stencil = ##f \repeat unfold 5 { \times 2/3 { bes16 g es } } | \repeat unfold 6 { \times 2/3 { bes16 as es } } | } } Cheers, Reinhold Reinhold I tried this code but it is not working even after upgrading to version 2.11.65. Resulting picture is best regards Herbie PS sorry once again, picture was missed in the last post ;-) ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: question about transposing an interval of a 4th
If you're looking for a relatively gentle introduction to Scheme, I can make a few suggestions, but as you probably already know, it's not easy to grasp from far away. Maybe just ask questions? Many people, even experienced programmers have great difficulty understanding scheme and other lisp-like languages... Here are some ideas: Want to learn by watching video? - 20 hours of very high quality instruction from the masters of Scheme: http://groups.csail.mit.edu/mac/classes/6.001/abelson-sussman-lectures/ the same thing is available in perhaps easier form as a book: *The Structure and Interpretation of Computer Programs* a.k.a. SICP http://mitpress.mit.edu/sicp/full-text/book/book.html (also available for purchase in stores, amazon, etc.) A detailed overview is on-line at: http://en.wikipedia.org/wiki/Scheme_(programming_language) A great source of reference is: http://www.schemers.org/ Hope this helps! Cheers, GF. -- Forwarded message -- From: James E. Bailey derhindem...@googlemail.com To: John Mandereau john.mander...@gmail.com Date: Mon, 22 Dec 2008 15:14:18 +0100 Subject: Re: question about transposing an interval of a 4th Am 22.12.2008 um 14:04 schrieb John Mandereau: Le lundi 22 décembre 2008 à 10:56 +0100, James E. Bailey a écrit : Am 22.12.2008 um 03:52 schrieb Graham Percival: Oh, I've read the Learning Manual cover to cover (well, it may have been changed since then, it was some months ago), and I don't understand Scheme. Indeed: there is currently no thing in all LilyPond documentation that introduces Scheme programming for non-programmers. And there shouldn't be, in my opinion. Give a man a fish, teach a man to fish... Apparently you, valentin, nicolas and John are the only people on this list who know how to fish. And no one's sharing how. We can't share this on this list, but it'd be cool to have an introduction to programming based on Scheme and demonstrating applications in LilyPond; however, even this is a lot of work and there are more urgent and basic things to do in the next 2 months. Given that, I'd say that the easiest solution would be to just tell us. Incidentally, he did make it clear, he wants a diatonic fourth. So, c sharp in trumpet one is g natural in trumpet 2, not g sharp. ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: beam settings
Herbert Liechti wrote Re: beam settings Reinhold Kainhofer schrieb: You're almost there... Seems that the brackets are required for achieving the desired behavior. Actually, no. What is needed is a correct value for the beatGrouping ;-) You don't want 3 eighth notes to be beamed together, do you? You want the beams to be broken after EACH eighth note. So the correct value is to set beat Grouping to #'(1 1 1 1 1 1 ), which tells lilypond to beam together all subdivisions of an eighth note, but don't beam across eighth note boundaries. So, your complete example would be: \transpose c c'' { \clef treble \time 6/8 \repeat volta 2 { \set Score.beatGrouping = #'(1 1 1 1 1 1) \times 2/3 { bes16 g es } \override TupletNumber #'stencil = ##f \repeat unfold 5 { \times 2/3 { bes16 g es } } | \repeat unfold 6 { \times 2/3 { bes16 as es } } | } } Cheers, Reinhold Reinhold I tried this code but it is not working even after upgrading to version 2.11.65. Resulting picture is dings Reinhold's short example works here, but I see from your attached jpg that you've incorporated it in some more extensive code. Perhaps if you post that code on the list we could see what has gone wrong. Trevor ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: beam settings
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Am Montag, 22. Dezember 2008 schrieb Trevor Daniels: Reinhold's short example works here, but I see from your attached jpg that you've incorporated it in some more extensive code. He sent me the whole file and the culprit is a PianoStaff, which seems to somehow override the score's beamGrouping. So, one cannot use \set Score.beatGrouping = #'(1 1 1 1 1 1) but rather has to use \set Staff.beatGrouping = #'(1 1 1 1 1 1) Then the beaming also works fine for staves inside a PianoStaff. Cheers, Reinhold - -- - -- Reinhold Kainhofer, reinh...@kainhofer.com, http://reinhold.kainhofer.com/ * Financial Actuarial Math., Vienna Univ. of Technology, Austria * http://www.fam.tuwien.ac.at/, DVR: 0005886 * LilyPond, Music typesetting, http://www.lilypond.org -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) iD8DBQFJT77iTqjEwhXvPN0RAhSAAKCKBLXAr723vfsn7BWENvZR6s2OMwCg27Rk 9vB0T5n8YK53giyFZHddsrA= =N2Kn -END PGP SIGNATURE- ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: manually tweaking accidental X-position
kristof wrote Monday, December 22, 2008 11:59 AM hi, I was wondering if it is possible to manually tweak the X-position of an accidental. In the list archives i found someone reporting that \override Accidental #'Y-offset works, but \override Accidental #'X-offset doesn't. Is there another way to accomplish this? thanks greetings, You could try overriding the value of the 'right-padding property of the AccidentalPlacement object, which lives in the Staff context. This controls the separation between a group of accidentals and the associated note(s). There's an example of its use in the 2.11 Learning Manual. See right-padding in the index. Trevor ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: question about transposing an interval of a 4th
Le lundi 22 décembre 2008 à 15:14 +0100, James E. Bailey a écrit : Am 22.12.2008 um 14:04 schrieb John Mandereau: Indeed: there is currently no thing in all LilyPond documentation that introduces Scheme programming for non-programmers. And there shouldn't be, in my opinion. Why not? I'm sure a not so small amount of users would like to program with LilyPond, so revising and extending the Scheme tutorial is a solution IMHO. We can't share this on this list, but it'd be cool to have an introduction to programming based on Scheme and demonstrating applications in LilyPond; however, even this is a lot of work and there are more urgent and basic things to do in the next 2 months. Given that, I'd say that the easiest solution would be to just tell us. It's not just a matter of telling you; teaching how to fish (or programming Scheme) takes a long time, and I don't have that much time to teach Scheme on the list for free. GF proposed a lot of links in this thread, I'm sure you'll find something that will fit your needs. Incidentally, he did make it clear, he wants a diatonic fourth. So, c sharp in trumpet one is g natural in trumpet 2, not g sharp. Then wait for the diatonicTranspose function until Christmas :-P John ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: beam settings
Reinhold Kainhofer wrote Monday, December 22, 2008 4:22 PM Am Montag, 22. Dezember 2008 schrieb Trevor Daniels: Reinhold's short example works here, but I see from your attached jpg that you've incorporated it in some more extensive code. He sent me the whole file and the culprit is a PianoStaff, which seems to somehow override the score's beamGrouping. So, one cannot use \set Score.beatGrouping = #'(1 1 1 1 1 1) but rather has to use \set Staff.beatGrouping = #'(1 1 1 1 1 1) Then the beaming also works fine for staves inside a PianoStaff. Hmm. Does that mean that context properties set at the Score level are inherited by the Staff context only if there is no interposed staff grouping? (Copied to -devel for comment) Trevor ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: problem with substitution
On 12/22/08 2:30 AM, Stefan Thomas kontrapunktste...@googlemail.com wrote: Dear Lilypond-users, I trie to substitute the variable zackigschnell' with APZ', but without sucess. What is wrong with the following snippet? \version 2.11.60 \include rhythmustest.ly \new Staff { \APZ { c' d' e' f' } } There's nothing wrong with the snippet. The problem occurred in rhythmustest.ly. You had the following: zackigschnell = #(define-music-function (parser location music) (ly:music?) #{ \makeRhythm $music 16. 32 #}) APZ = { \zackigschnell } The way LilyPond substitution works, \zackigschnell needs to be followed by a music expression. And in your definition of APZ, there is no music expression following \zackigschnell. If you literally do the substitution, you'll get \new Staff { { \zackigschnell } {c' d' e' f' } } and you can see that there is no music expression for \zackigschnell to operator on. If you literally want to just add a new name for a function, the way to do it is with a scheme trick. Simply add #(define APZ zackigschnell) and now APZ and zackigschnell are the same thing with two different names. I've tried it on your code, and this works. Good luck, Carl ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: question about transposing an interval of a 4th
On 22.12.2008 (17:37), John Mandereau wrote: Le lundi 22 décembre 2008 à 15:14 +0100, James E. Bailey a écrit : Am 22.12.2008 um 14:04 schrieb John Mandereau: Indeed: there is currently no thing in all LilyPond documentation that introduces Scheme programming for non-programmers. And there shouldn't be, in my opinion. Why not? I'm sure a not so small amount of users would like to program with LilyPond, so revising and extending the Scheme tutorial is a solution IMHO. There are two solutions in the long run, taking two different approaches, which are not necessarily incompatible -- in fact, they should be combined, but they both call for efforts in different areas: 1. Make no mistake about it: using LilyPond IS to be a programmer, to a greater or lesser extent. And even though the plain an simple sheets with a melody line and a title just calls for a scripting language programmer, most people will sooner or later want/need to take one step further. Scheme is -- at least the way LP works at the moment -- an essential part of that. A full-scale scheme-from-the-LilyPond-perspetive tutorial would be nice to have, but a less ambitious solution would be a thorough and precise description of the INTERFACE between the two (How does LP use scheme? or How will an LP user use scheme profitably?), together with a brief description of the most common elements of scheme. I'd add also an outline of which things HAVE to be the way they are (because of requirements within scheme) and which are arbitrary in the sense that they are the way they are because of choices made by the LP developers. 2. Minimize the visibility of scheme (and the direct envolvement with LP's context properties etc.) by developing a more complete macro layer between the user and the backend, the way LaTeX sits between TeX and the user. This might probably be done to a large extent with today's LP, but the full consequence of this approach would be to modularize LP -- let the core program take care of the typesetting mechanics, and make packages for Gregorian chant, for harp music, for lead sheets, etc., i.e. for WHAT to typeset and for how the user communicates with the typesetting backend. One could think of it as an extended and systematized LSR: not just isolated examples of how to solve a particular problem, but a system of task-oriented packages. I'm sure there are disadvantages with this (in addition to the the necessary development time), but there are certainly also advantages -- one of them being to minimize the need for threads like this one. Eyolf -- A wizard cannot do everything; a fact most magicians are reticent to admit, let alone discuss with prospective clients. Still, the fact remains that there are certain objects, and people, that are, for one reason or another, completely immune to any direct magical spell. It is for this group of beings that the magician learns the subtleties of using indirect spells. It also does no harm, in dealing with these matters, to carry a large club near your person at all times. -- The Teachings of Ebenezum, Volume VIII ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
The Drummer's Gigsaw: COUNTRY.
Hi all, You'll find the COUNTRY-patterns here: http://philippe.hezaine.free.fr/spip.php?article40 I've tried some experiments with the velocities. If you want you can contribute, make new patterns, make a new notebook... etc... And i'll add your name as a contributor below the dedication. You could send me your .ly file by mail at: superbonus.project at free.fr or on this list, if it's possible Happy Christmas. -- Phil. Superbonus-Project (Site principal) http://superbonus.project.free.fr Superbonus-Project (Plate-forme d'échange): http://philippe.hezaine.free.fr ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: question about transposing an interval of a 4th
Am 22.12.2008 um 17:37 schrieb John Mandereau: Le lundi 22 décembre 2008 à 15:14 +0100, James E. Bailey a écrit : Am 22.12.2008 um 14:04 schrieb John Mandereau: Indeed: there is currently no thing in all LilyPond documentation that introduces Scheme programming for non-programmers. And there shouldn't be, in my opinion. Why not? I'm sure a not so small amount of users would like to program with LilyPond, so revising and extending the Scheme tutorial is a solution IMHO. Okay. if someone wants to take the time to write it... I mean, I'm not Graham, or anything, but its would seem to me that a Scheme tutorial should be the place to look to learn about Scheme, and the lilypond tutorial would be the place to learn about lilypond. In fact, (having absolutely zero knowledge about Scheme,) I could easily envision the Scheme tutorial in lilypond being a very large project. We can't share this on this list, but it'd be cool to have an introduction to programming based on Scheme and demonstrating applications in LilyPond; however, even this is a lot of work and there are more urgent and basic things to do in the next 2 months. Given that, I'd say that the easiest solution would be to just tell us. It's not just a matter of telling you; teaching how to fish (or programming Scheme) takes a long time, and I don't have that much time to teach Scheme on the list for free. GF proposed a lot of links in this thread, I'm sure you'll find something that will fit your needs. Again, I have no knowledge about Scheme, or programming in general, but I have the feeling it would be like learning how to read music. Something which I definitely do not have the time for or desire to learn. Incidentally, he did make it clear, he wants a diatonic fourth. So, c sharp in trumpet one is g natural in trumpet 2, not g sharp. Then wait for the diatonicTranspose function until Christmas :-P Wow, that sounds awesome. I love it when lilypond does things automagically. John ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: question about transposing an interval of a 4th
On Sun, Dec 21, 2008 at 09:40:48PM -0800, Mark Polesky wrote: If you cannot, or will not, describe what you actually want, it's very difficult to help you. He already has! He clearly stated that he wants to transpose music down a 4th, diatonically: http://lists.gnu.org/archive/html/lilypond-user/2008-12/msg00557.html If you don't know what diatonic means, look it up! You must be reading a different email at that URL. Cameron: if your melody is in C and goes {a b c}, do you want to get {e f g} or {e fis g} ? Chip: good question, I'm gonna say diatonic and see how that goes. Chip has previously said that he doesn't know music theory, and his answer is not definite. If he'd said I want {e f g}, diatonic., then the discussion would have ended with not possible without scheme programming. But his I'm gonna say and see how that goes doesn't precisely inspire confidence that he actually wants diatonic. I'll point out that half a dozen other people, including music professors, have asked him for clarification after reading that email. So my confusion is not just me being a jerk. - Graham ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: question about transposing an interval of a 4th
On Mon, Dec 22, 2008 at 06:21:56PM +0100, Eyolf ?strem wrote: On 22.12.2008 (17:37), John Mandereau wrote: Why not? I'm sure a not so small amount of users would like to program with LilyPond, so revising and extending the Scheme tutorial is a solution IMHO. It was on the cards for GDP, but was dropped quite early on due to insufficient resources. IIRC at least three people really wanted to rewrite the Scheme chapter, but I had to tell them all to focus on NR 1+2. 1. Make no mistake about it: using LilyPond IS to be a programmer, to a greater or lesser extent. And even though the plain an simple sheets with a melody line and a title just calls for a scripting language programmer, Not only that, but simply thinking about music expressions requires a certain amount of programmer-like thought. I still see newbies posting here when their misunderstanding traces back to not understanding music expressions... but hopefully that will lessen once 2.12 is out and people read the updated tutorial. 2. Minimize the visibility of scheme (and the direct envolvement with LP's context properties etc.) by developing a more complete macro layer between the user and the backend, the way LaTeX sits between TeX and the user. Stuff along those lines are planned for GOP... but just like the extent of doc work in GDP, it all depends on the amount of time and effort that users are prepared to give. Cheers, - Graham ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: beam settings
Reinhold Kainhofer schrieb: Am Montag, 22. Dezember 2008 schrieb Trevor Daniels: Reinhold's short example works here, but I see from your attached jpg that you've incorporated it in some more extensive code. He sent me the whole file and the culprit is a PianoStaff, which seems to somehow override the score's beamGrouping. So, one cannot use \set Score.beatGrouping = #'(1 1 1 1 1 1) but rather has to use \set Staff.beatGrouping = #'(1 1 1 1 1 1) Then the beaming also works fine for staves inside a PianoStaff. Yes, that is working. Thank you very much for your patient and for helping. Perhaps a good example for the documentation which points out the behavior of the beatGrouping in a clear way with the explanation of Reinhold Kainhofer in the earlier post in this threat. Best regards Herbert ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: question about transposing an interval of a 4th
On 12/22/08 10:21 AM, Eyolf Østrem ey...@oestrem.com wrote: On 22.12.2008 (17:37), John Mandereau wrote: Le lundi 22 décembre 2008 à 15:14 +0100, James E. Bailey a écrit : Am 22.12.2008 um 14:04 schrieb John Mandereau: Indeed: there is currently no thing in all LilyPond documentation that introduces Scheme programming for non-programmers. And there shouldn't be, in my opinion. Why not? I'm sure a not so small amount of users would like to program with LilyPond, so revising and extending the Scheme tutorial is a solution IMHO. There are two solutions in the long run, taking two different approaches, which are not necessarily incompatible -- in fact, they should be combined, but they both call for efforts in different areas: 1. Make no mistake about it: using LilyPond IS to be a programmer, to a greater or lesser extent. And even though the plain an simple sheets with a melody line and a title just calls for a scripting language programmer, most people will sooner or later want/need to take one step further. Scheme is -- at least the way LP works at the moment -- an essential part of that. A full-scale scheme-from-the-LilyPond-perspetive tutorial would be nice to have, but a less ambitious solution would be a thorough and precise description of the INTERFACE between the two (How does LP use scheme? or How will an LP user use scheme profitably?), together with a brief description of the most common elements of scheme. I'd add also an outline of which things HAVE to be the way they are (because of requirements within scheme) and which are arbitrary in the sense that they are the way they are because of choices made by the LP developers. Examples of how LilyPond uses scheme are found in chapter 6 of the Notation Reference. I'm currently tasked with rewriting this chapter, but I haven't got it figured out yet. Perhaps during the Christmas Break 2. Minimize the visibility of scheme (and the direct envolvement with LP's context properties etc.) by developing a more complete macro layer between the user and the backend, the way LaTeX sits between TeX and the user. This might probably be done to a large extent with today's LP, but the full consequence of this approach would be to modularize LP -- let the core program take care of the typesetting mechanics, and make packages for Gregorian chant, for harp music, for lead sheets, etc., i.e. for WHAT to typeset and for how the user communicates with the typesetting backend. One could think of it as an extended and systematized LSR: not just isolated examples of how to solve a particular problem, but a system of task-oriented packages. I'm sure there are disadvantages with this (in addition to the the necessary development time), but there are certainly also advantages -- one of them being to minimize the need for threads like this one. This may be possible as far as scheme is concerned, but I don't think it's possible for context properties. Until all collisions and spacing can be automatically resolved, users will need access to the context properties in order to resolve collisions or incorrect spacing. Predefined scheme packages are a great idea, IMO. Carl ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: beam settings
2008/12/22 Trevor Daniels t.dani...@treda.co.uk: Reinhold Kainhofer wrote Monday, December 22, 2008 4:22 PM He sent me the whole file and the culprit is a PianoStaff, which seems to somehow override the score's beamGrouping. So, one cannot use \set Score.beatGrouping = #'(1 1 1 1 1 1) but rather has to use \set Staff.beatGrouping = #'(1 1 1 1 1 1) Then the beaming also works fine for staves inside a PianoStaff. Hmm. Does that mean that context properties set at the Score level are inherited by the Staff context only if there is no interposed staff grouping? I've never noticed this to be the case; I think we need to see Herbert's file to work out whether there's something else that's influencing this behaviour. Regards, Neil ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: question about transposing an interval of a 4th
I must say I had no idea that this would turn into such a big deal. As for the piece I am working on - I've spent the morning typing in the notes for all the parts long hand, figuring out the intervals as I go, for each individual instrument. If a scheme program, or whatever it's called, is ever written to create intervals, great. But until then, it's many hours of work writing it all out. So be it. At least the piece is ready for the band to site read tonight. -- Chip ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Vertical alignment of Chords - Feature / Bug??? Subtle Solution
2008/12/22 Carl D. Sorensen c_soren...@byu.edu: Great! I'm sorry for the wrong answer, and I'm glad you came up with the right answer! No problem; it took me a bit of headscratching to work out what was going on in the absence of example usage. Can you add your example to the manual (or would you rather that I do it)? It should probably go in Notation Reference 4.4.2 Vertical spacing between systems. OK, will do. I suppose it would be better to split 4.4.2 into two subsections; one for spacing using \paper variables, and another demonstrating skyline overrides. Regards, Neil ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
RE: The Drummer's Gigsaw: COUNTRY.
Hi Phil. What a solid piece of work! You've just made my project go from 95% done to 50%!!! Some techniques have not known are in this, and when I'm done I might have some jazz/rock beats to add. Thanks!!!___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user _ Send e-mail anywhere. No map, no compass. http://windowslive.com/oneline/hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_anywhere_122008___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Vertical alignment of Chords - Feature / Bug??? Subtle Solution
On Mon, Dec 22, 2008 at 11:14:19PM +, Neil Puttock wrote: 2008/12/22 Carl D. Sorensen c_soren...@byu.edu: Can you add your example to the manual (or would you rather that I do it)? It should probably go in Notation Reference 4.4.2 Vertical spacing between systems. OK, will do. I suppose it would be better to split 4.4.2 into two subsections; one for spacing using \paper variables, and another demonstrating skyline overrides. Don't forget that NR 4 needs a complete rewrite, so don't fuss with the details too much right now. Cheers, - Graham ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user