Re: Harmonica tablature
Hi Mark I am new to Lilypond. Could you give me a brief description of what the various parts of your code are doing? Thank you! shelt...@berkeley.edu wrote: I would like to develop some harmonica tablature using Lilypond. What I need is to put a one or two digit number above (possibly below instead) each note in the standard notation. I would like to have this happen automatically - ie whenever I enter a note in the usual manner the one or two digit number would appear as a tablature. Any suggestions on how I might accomplish this? How are the numbers determined according to the notes? Since you didn't mention that, I just used the ly:pitch-notename value for each note. I'm sure this isn't what you want, but this should at least give you an idea of a reasonable approach. Hope this helps. - Mark ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Harmonica tablature
shelt...@berkeley.edu wrote: I am new to Lilypond. Could you give me a brief description of what the various parts of your code are doing? It would be hard to explain it if you've not yet seen how music is stored in pure scheme. You'll need to use the \displayMusic function to see what I'm talking about. Below are two scores: one without, and one with the \harmonicaTab music-function. Add these to the bottom of the file in my last post. I've prepended \displayMusic to both of them so you can see the difference in the two scheme expressions. Look at the console output to see what needs to be added for the numbers to appear as they do. Then look back at the code from the file and see how much you can figure out. Then let me know what you still don't understand. - Mark * * * * * * * * * * * \displayMusic \relative c' { c d f } \displayMusic \relative c' \harmonicaTab { c d f } ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Upward stems left to the notehead
The usual convention says that upward stems are positioned right to the notehead, while the downward stems are positioned right to the notehead. Is there a way, how to invert this behavior for whole score at once, please? I.e. how to make the downward stems positioned always left to the notehead and upward stems right to the notehead? -- View this message in context: http://old.nabble.com/Upward-stems-left-to-the-notehead-tp28287808p28287808.html Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com. ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Harmonica tablature
OK. Thanks soo much Mark. shelt...@berkeley.edu wrote: I am new to Lilypond. Could you give me a brief description of what the various parts of your code are doing? It would be hard to explain it if you've not yet seen how music is stored in pure scheme. You'll need to use the \displayMusic function to see what I'm talking about. Below are two scores: one without, and one with the \harmonicaTab music-function. Add these to the bottom of the file in my last post. I've prepended \displayMusic to both of them so you can see the difference in the two scheme expressions. Look at the console output to see what needs to be added for the numbers to appear as they do. Then look back at the code from the file and see how much you can figure out. Then let me know what you still don't understand. - Mark * * * * * * * * * * * \displayMusic \relative c' { c d f } \displayMusic \relative c' \harmonicaTab { c d f } ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Bookpart without page break?
2010/4/17 Graham Percival gra...@percival-music.ca: [...] \header includes tagline and copyright, which does not go above a score. Yes but in the case we use a global \header (i.e. outside any \score block) for everything that is common, then only piece and opus are changed in the \header inside the \score. And both are printed above the score. And to be in bad faith the large majority of \header variables are printed above the score. :p If you bring it up during GLISS, it will be considered. Thanks! I will add it to my register of grievances. ;) 2010/4/17 Reinhold Kainhofer reinh...@kainhofer.com: Unfortunately, it is not a two-minutes job. A few weeks ago, I also tried to fix this, since I found it annoying too. Basically, all that needs to be changed is parser.yy, but unfortunately, the changes are not trivial, and I couldn't prevent lilypond from crashing in every case... Glad to see I'm not the only one to consider this a little annoying. I was suspecting this wouldn't be that simple from a dev point of view. But I still hope somebody will look into this and eventually find a solution. Thanks for your work Reinhold. Xavier -- Xavier Scheuer x.sche...@gmail.com ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Lute tablature and j
Hello. I'm new to the list, but I've been using Lilypond for about a year now. Recently I've been wanting to produce some lute tablature, and just noticed the example in the documentation on doing letter tablature. I tried it out and found a problem that I'm not sure how to get around; the style of lute tablature I am interested in writing (a la Luys de Narvaez) skips the letter j as a fret indicator. Can anyone recommend a way to accomplish that in Lilypond? Apologies if this has been covered. I couldn't find it in the archives. - William Bajzek please note my new email address: williambaj...@gmail.com ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Lute tablature and j
Il giorno mar, 20/04/2010 alle 12.49 -0700, William Bajzek ha scritto: Hello. I'm new to the list, but I've been using Lilypond for about a year now. Recently I've been wanting to produce some lute tablature, and just noticed the example in the documentation on doing letter tablature. I tried it out and found a problem that I'm not sure how to get around; the style of lute tablature I am interested in writing (a la Luys de Narvaez) skips the letter j as a fret indicator. Can anyone recommend a way to accomplish that in Lilypond? Apologies if this has been covered. I couldn't find it in the archives. Hi William, do you know about the tablature mailing list? http://lists.lilynet.net/tablatures/ I don't know anything about lute tablature, anyway... maybe this thread can be interesting for you: http://n2.nabble.com/Baroque-lute-tablature-td4008032.html#a4008032 HTH, Federico ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: \extractMusic documentation.
Salut Gilles, On 19/04/10 03:13, Gilles THIBAULT wrote: Hello everybody ! It has been a while since i wanted to provide deeper informations about the function discribed here : http://lsr.dsi.unimi.it/LSR/Item?id=542 This is done now. You can get this pdf of information and the last version of extractMusic.ly in this directory : http://gillesth.free.fr/Lilypond/extractMusic/ Note that the last version of extractMusic.ly has some new features and new functions. Here are the direct links http://gillesth.free.fr/Lilypond/extractMusic/extractMusic.ly http://gillesth.free.fr/Lilypond/extractMusic/extractMusic-doc.pdf I just hope that my english is not too bad, and that the explanations will be enough understandable ... Thanks for your hard work. The only real language issues are some of your function and parameter names: French remplacer - English replace (no m before the p), likewise French remplacement - English replacement. There are some other possible minor technical writing changes, but these are nit-picks. Cheers, Ian ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Lute tablature and j
That seems like the right place to look. Thanks! On Apr 20, 2010, at 1:42 PM, Federico Bruni wrote: Hi William, do you know about the tablature mailing list? http://lists.lilynet.net/tablatures/ I don't know anything about lute tablature, anyway... maybe this thread can be interesting for you: http://n2.nabble.com/Baroque-lute-tablature-td4008032.html#a4008032 HTH, Federico - William Bajzek please note my new email address: williambaj...@gmail.com ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: \extractMusic documentation.
http://gillesth.free.fr/Lilypond/extractMusic/extractMusic.ly http://gillesth.free.fr/Lilypond/extractMusic/extractMusic-doc.pdf French remplacer - English replace (no m before the p), likewise French remplacement - English replacement. I have replaced :-) all [remplace*] by [replace*] in the 2 above files. Great thanks Ian, for your revision. Gilles ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Lute tablature and j
Well, it's the right thread, but I'm sorry to say I didn't get very far with the implementation yet. That was partly due to difficulties with discovering how to do things, but eventually problems with RSI stopped me working at my laptop for anything more than an hour or so. Progress then became so slow I've given up for the time being. But to answer your initial question, this can be done in 2.13. Just give a list of fret labels with \set fretLabels = #`(a,b, etc) in TabVoice, omitting the letter j from the list. This isn't documented yet, but you can see an example in the changes for 2.13: http://lilypond.org/doc/v2.13/Documentation/changes/index Trevor - Original Message - From: William Bajzek williambaj...@gmail.com To: Federico Bruni federicobr...@sixbarsjail.it Cc: lilypond-user@gnu.org Sent: Tuesday, April 20, 2010 10:31 PM Subject: Re: Lute tablature and j That seems like the right place to look. Thanks! On Apr 20, 2010, at 1:42 PM, Federico Bruni wrote: Hi William, do you know about the tablature mailing list? http://lists.lilynet.net/tablatures/ I don't know anything about lute tablature, anyway... maybe this thread can be interesting for you: http://n2.nabble.com/Baroque-lute-tablature-td4008032.html#a4008032 HTH, Federico - William Bajzek please note my new email address: williambaj...@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
Re: Harmonica tablature
I had started a thread about a month ago about harmonica tab. Mark's demonstration file has helped me understand how define-music-funciton can be used here. I've attached an iteration with unicode arrows to indicate breath direction (blow or draw) and holes for a standard C-tuning diatonic harmonica. I also included horizontal bars to indicate half-step bends. I'm not completely happy with the arrows and how they compose with horizontal lines (probably manually specifying lines to draw the arrows would be better). The other issue that I'm not happy about is how ties are handled. Ideally a tab marking would not be present when a there is not a new note being sounded. Alternatively, I guess tie events could be captured and some notation made in the tab line. Also, note that it is important to use \harmonicaTab \relative c' { } rather than \relative c' \harmonicaTab { } so that tab numbers are in the appropriate octave. -- Bradford Powell -- bradford.pow...@gmail.com \version 2.12.3 #(define (NoteEvent? music) (equal? (ly:music-property music 'name) 'NoteEvent)) #(define (EventChord? music) (equal? (ly:music-property music 'name) 'EventChord)) #(define* (blow hole #:optional (bends 0)) (case bends ((0) (markup #:center-column (#:simple hole #:huge ↑))) ((1) (markup #:center-column (#:simple hole #:huge (#:combine ↑ – ((2) (markup #:center-column (#:simple hole #:huge (#:combine ↑ = ((3) (markup #:center-column (#:simple hole #:huge (#:combine ↑ ≡ (else (markup #:simple #(define* (draw hole #:optional (bends 0)) (case bends ((0) (markup #:center-column (#:simple hole #:huge ↓))) ((1) (markup #:center-column (#:simple hole #:huge (#:combine ↓ – ((2) (markup #:center-column (#:simple hole #:huge (#:combine ↓ = ((3) (markup #:center-column (#:simple hole #:huge (#:combine ↓ ≡ (else (markup #:simple #(define (get-harmonica-tab NoteEvent) (case (ly:pitch-semitones (ly:music-property NoteEvent 'pitch)) ((-12) (blow 1)) ((-11) (draw 1 1)) ((-10) (draw 1)) ;((-9) (overblow 1)) ((-8) (blow 2)) ((-7) (draw 2 2)) ((-6) (draw 2 1)) ((-5) (draw 2)) ;((-5) (blow 3)) ((-4) (draw 3 3)) ((-3) (draw 3 2)) ((-2) (draw 3 1)) ((-1) (draw 3)) ((0) (blow 4)) ((1) (draw 4 1)) ((2) (draw 4)) ;((3) (overblow 4)) ((4) (blow 5)) ((5) (draw 5)) ;((6) (overblow 5)) ((7) (blow 6)) ((8) (draw 6 1)) ((9) (draw 6)) ;((10) (overblow 6)) ((11) (draw 7)) ((12) (blow 7)) ;((13) (overdraw 7)) ((14) (draw 8)) ((15) (blow 8 1)) ((16) (blow 8)) ((17) (draw 9)) ((18) (blow 9 1)) ((19) (blow 9)) ;((20) (overdraw 9)) ((21) (draw 10)) ((22) (blow 10 2)) ((23) (blow 10 1)) ((24) (blow 10)) (else (markup #:simple #(define (make-textscript dir txt) (make-music 'TextScriptEvent 'direction dir 'text txt)) #(define (make-tab-number NoteEvent) (make-textscript UP (get-harmonica-tab NoteEvent))) #(define (make-tab-numbers EventChord) (let ((elts (ly:music-property EventChord 'elements))) (map make-tab-number (filter NoteEvent? elts #(define (add-tab-numbers music) (if (EventChord? music) (set! (ly:music-property music 'elements) (append (ly:music-property music 'elements) (make-tab-numbers music music) harmonicaTab = #(define-music-function (parser location music) (ly:music?) (music-map add-tab-numbers music)) \harmonicaTab \relative c' { c d f c e d ~ | d e f a | c e g b | } ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Harmonica tablature
Hi Bradford I will take detailed look at your code this weekend. Thanks so much! I had started a thread about a month ago about harmonica tab. Mark's demonstration file has helped me understand how define-music-funciton can be used here. I've attached an iteration with unicode arrows to indicate breath direction (blow or draw) and holes for a standard C-tuning diatonic harmonica. I also included horizontal bars to indicate half-step bends. I'm not completely happy with the arrows and how they compose with horizontal lines (probably manually specifying lines to draw the arrows would be better). The other issue that I'm not happy about is how ties are handled. Ideally a tab marking would not be present when a there is not a new note being sounded. Alternatively, I guess tie events could be captured and some notation made in the tab line. Also, note that it is important to use \harmonicaTab \relative c' { } rather than \relative c' \harmonicaTab { } so that tab numbers are in the appropriate octave. -- Bradford Powell -- bradford.pow...@gmail.com ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Harmonica tablature
bradford powell wrote: I've attached an iteration with unicode arrows to indicate breath direction (blow or draw) and holes for a standard C-tuning diatonic harmonica. Veey nice work! The other issue that I'm not happy about is how ties are handled. Ideally a tab marking would not be present when a there is not a new note being sounded. Alternatively, I guess tie events could be captured and some notation made in the tab line. That's something to decide before too long. Is there no standard notation for this? Here's a situation to consider; how should this be notated? \harmonicaTab \relative c' { c~ c~ e~ c e g } - Mark ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user