Re: Errors when using TabStaff with stringTunings
Blöchl Bernhard b_120902342...@telecolumbus.net writes: I sent that post on Monday August 24th at about 17:00 UTC. It never appeared on the list for reasons I do not know. For another trial I send that mail again. I cannot tell you the reason #'( -5 -10 -15 -20) does not work. But I can tell you how I do it: %~~~ \version 2.18.0 five-bass = \stringTuning b,, e, a, d g yourmusic = { \key g \minor R1*12 r8 bes'8\1 bes'\1 bes'\1 r8 a'\1 a'\1 a'\1 r c''\1 c''\1 c''\1 r bes'\1 bes'\1 bes'\1 r bes'\1 bes'\1 bes'\1 r a'\1 a'\1 a'\1 r d''\1 d''\1 d''\1 r d''\1 d''\1 d''\1 r8 bes'8\1 bes'\1 bes'\1 r8 a'\1 a'\1 a'\1 r c''\1 c''\1 c''\1 r bes'\1 bes'\1 bes'\1 r bes'\1 bes'\1 bes'\1 r a'\1 a'\1 a'\1 d''\1 d''\1 d''\1 d''\1 d''\1 d''\1 d''\1 d''\1 } \score { \new StaffGroup \new TabStaff %\set TabStaff.stringTunings = #'( -5 -10 -15 -20) \set TabStaff.stringTunings = #five-bass { \yourmusic } \layout{} } % That even works with \version 2.12.3. Uh, it even works with \version 2.7.38. You just have to use a version of LilyPond that is at least at version 2.15.16 (for addition of the \stringTuning command with the somewhat undescriptive but colorful commit message commit 3170fd65067a96ea861c173c81fce5f0e127762e Author: David Kastrup d...@gnu.org Date: Sun Oct 23 15:29:45 2011 +0200 Get rid of most of the insane string-tunings API ) and at least version 2.15.43 to allow for assigning a value to five-bass with a normal LilyPond assignment. You seem to misunderstand what \version does. It is important for convert-ly, and LilyPond will complain whenever the \version header indicates a version newer than itself (or, for some strange reason, older than 2.7.38). But apart from this warning, LilyPond does not change behavior. It's still the same old 2.18.2 or whatever else it has been compiled as. -- David Kastrup ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Errors when using TabStaff with stringTunings
Blöchl Bernhard b_120902342...@telecolumbus.net writes: with That even works with \version 2.12.3. I just reference to the original code under question. It obviously used lilypond \version 2.12.3 But it's a bad idea to tack on a version header referring to a version with which the file won't work. For one thing, if people with an older version of LilyPond try running the code, they'll get mysterious error messages without being advised about the version mismatch. For another, when convert-ly is being run on the file, it might make a hash of it because it assumes a much older syntax than there actually is and upgrades it. So there is no point in leaving a \version 2.12.3 at the top of the file while at the same time updating its syntax to that of 2.18.2 (or in this case probably 2.16.0 if nothing else is in there requiring a newer version). -- David Kastrup ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Errors when using TabStaff with stringTunings
with That even works with \version 2.12.3. I just reference to the original code under question. It obviously used lilypond \version 2.12.3 Regards Am 25.08.2015 09:13, schrieb David Kastrup: Blöchl Bernhard b_120902342...@telecolumbus.net writes: I sent that post on Monday August 24th at about 17:00 UTC. It never appeared on the list for reasons I do not know. For another trial I send that mail again. I cannot tell you the reason #'( -5 -10 -15 -20) does not work. But I can tell you how I do it: %~~~ \version 2.18.0 five-bass = \stringTuning b,, e, a, d g yourmusic = { \key g \minor R1*12 r8 bes'8\1 bes'\1 bes'\1 r8 a'\1 a'\1 a'\1 r c''\1 c''\1 c''\1 r bes'\1 bes'\1 bes'\1 r bes'\1 bes'\1 bes'\1 r a'\1 a'\1 a'\1 r d''\1 d''\1 d''\1 r d''\1 d''\1 d''\1 r8 bes'8\1 bes'\1 bes'\1 r8 a'\1 a'\1 a'\1 r c''\1 c''\1 c''\1 r bes'\1 bes'\1 bes'\1 r bes'\1 bes'\1 bes'\1 r a'\1 a'\1 a'\1 d''\1 d''\1 d''\1 d''\1 d''\1 d''\1 d''\1 d''\1 } \score { \new StaffGroup \new TabStaff %\set TabStaff.stringTunings = #'( -5 -10 -15 -20) \set TabStaff.stringTunings = #five-bass { \yourmusic } \layout{} } % That even works with \version 2.12.3. Uh, it even works with \version 2.7.38. You just have to use a version of LilyPond that is at least at version 2.15.16 (for addition of the \stringTuning command with the somewhat undescriptive but colorful commit message commit 3170fd65067a96ea861c173c81fce5f0e127762e Author: David Kastrup d...@gnu.org Date: Sun Oct 23 15:29:45 2011 +0200 Get rid of most of the insane string-tunings API ) and at least version 2.15.43 to allow for assigning a value to five-bass with a normal LilyPond assignment. You seem to misunderstand what \version does. It is important for convert-ly, and LilyPond will complain whenever the \version header indicates a version newer than itself (or, for some strange reason, older than 2.7.38). But apart from this warning, LilyPond does not change behavior. It's still the same old 2.18.2 or whatever else it has been compiled as. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Errors when using TabStaff with stringTunings
I sent that post on Monday August 24th at about 17:00 UTC. It never appeared on the list for reasons I do not know. For another trial I send that mail again. I cannot tell you the reason #'( -5 -10 -15 -20) does not work. But I can tell you how I do it: %~~~ \version 2.18.0 five-bass = \stringTuning b,, e, a, d g yourmusic = { \key g \minor R1*12 r8 bes'8\1 bes'\1 bes'\1 r8 a'\1 a'\1 a'\1 r c''\1 c''\1 c''\1 r bes'\1 bes'\1 bes'\1 r bes'\1 bes'\1 bes'\1 r a'\1 a'\1 a'\1 r d''\1 d''\1 d''\1 r d''\1 d''\1 d''\1 r8 bes'8\1 bes'\1 bes'\1 r8 a'\1 a'\1 a'\1 r c''\1 c''\1 c''\1 r bes'\1 bes'\1 bes'\1 r bes'\1 bes'\1 bes'\1 r a'\1 a'\1 a'\1 d''\1 d''\1 d''\1 d''\1 d''\1 d''\1 d''\1 d''\1 } \score { \new StaffGroup \new TabStaff %\set TabStaff.stringTunings = #'( -5 -10 -15 -20) \set TabStaff.stringTunings = #five-bass { \yourmusic } \layout{} } % That even works with \version 2.12.3. If you really have a 6 string bass extend the string list. I think to six-bass = \stringTuning b,, e, a, d g c' Am 24.08.2015 22:12, schrieb Kevin Nowaczyk: Thanks for the help everyone, I would up changing the stringTungings line to: \set Staff.stringTunings = \stringTuning e,, a,, d, g, And everything works fine. However, I also tried the notaion: \set Staff.stringTunings = #bass-tuning but that didn't work. I'll have to figure that out at a later time. All-in-all, I installed mediawiki with the Score plugin to show off a few guitar tabs I transcribed a few years ago. If you're curious, the first one (that now works) is here: http://wiki.beakerboy.com/index.php/Steven_Smith Thanks Again, Kevin Nowaczyk On Mon, 8/24/15, David Kastrup d...@gnu.org wrote: Subject: Re: Errors when using TabStaff with stringTunings To: Kevin Nowaczyk beakerbo...@yahoo.com Cc: lilypond-user@gnu.org Date: Monday, August 24, 2015, 12:36 PM Kevin Nowaczyk beakerbo...@yahoo.com writes: I have a lilypond file which used to parse perfectly well several years ago. Run convert-ly -ed on the file. At least on your example file, it upgraded the version successfully. The resulting code is rather ugly but works. You might want to look up the \stringTuning function in the notation manual in order to do this in a prettier way. -- 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: Errors when using TabStaff with stringTunings
That cannot work as you overwrite your setting \set Staff.stringTunings = \stringTuning e,, a,, d, g, with \set Staff.stringTunings = #bass-tuning #bass-tuning is preset in the list in lilypond you got shortly with another mail. Correct use is \new TabStaff { \set Staff.stringTunings = \stringTuning e,, a,, d, g, \yournotes } I wold recommend you to study the manual, i. e. http://lilypond.org/doc/v2.18/Documentation/notation/common-notation-for-fretted-strings.html Regards Am 24.08.2015 22:38, schrieb Kevin Nowaczyk: In this case..the band is little known and no longer together. I had it hidden from view for anonymous visitors except open it up for the next couple days for people here who were interested in checking it out. I do like the automatic midi feature. It helps identify mistakes pretty easily. Kevin On Mon, 8/24/15, Simon Albrecht simon.albre...@mail.de wrote: Subject: Re: Errors when using TabStaff with stringTunings To: Kevin Nowaczyk beakerbo...@yahoo.com, lilypond-user@gnu.org Date: Monday, August 24, 2015, 4:25 PM Am 24.08.2015 um 22:12 schrieb Kevin Nowaczyk: Thanks for the help everyone, I would up changing the stringTungings line to: \set Staff.stringTunings = \stringTuning e,, a,, d, g, And everything works fine. However, I also tried the notaion: \set Staff.stringTunings = #bass-tuning but that didn't work. I'll have to figure that out at a later time. All-in-all, I installed mediawiki with the Score plugin to show off a few guitar tabs I transcribed a few years ago. If you're curious, the first one (that now works) is here: http://wiki.beakerboy.com/index.php/Steven_Smith You may only hope that you don’t get any problems due to the legal (copyright) issues with this… Yours, Simon ___ 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
Errors when using TabStaff with stringTunings
I have a lilypond file which used to parse perfectly well several years ago. I recently reinstalled lilypond (2.18.2 from debian-stable) and now I receive an error. I've reduced the file down and determined that setting the stringTunings is the problem. The file I have has both guitar tab and bass guitar tab. If I leave the \set TabStaff.stringTunings = #'(4 -1 -5 -10 -15 -20) line out, it displays correctly. If I add it in, it presents the following error: GNU LilyPond 2.18.2 Processing `Steven_smith_working.ly' Parsing... Interpreting music...[8]/usr/share/lilypond/2.18.2/scm/translation-functions.scm:313:39: In procedure ly:pitch-tones in expression (ly:pitch-tones (list-ref tuning #)): /usr/share/lilypond/2.18.2/scm/translation-functions.scm:313:39: Wrong type argument in position 1 (expecting Pitch): 4 My test file: guitarmusic = { \key g \minor R1*12 r8 bes'8\1 bes'\1 bes'\1 r8 a'\1 a'\1 a'\1 r c''\1 c''\1 c''\1 r bes'\1 bes'\1 bes'\1 r bes'\1 bes'\1 bes'\1 r a'\1 a'\1 a'\1 r d''\1 d''\1 d''\1 r d''\1 d''\1 d''\1 r8 bes'8\1 bes'\1 bes'\1 r8 a'\1 a'\1 a'\1 r c''\1 c''\1 c''\1 r bes'\1 bes'\1 bes'\1 r bes'\1 bes'\1 bes'\1 r a'\1 a'\1 a'\1 d''\1 d''\1 d''\1 d''\1 d''\1 d''\1 d''\1 d''\1 } \version 2.12.3 \score { \new StaffGroup \new TabStaff \set TabStaff.stringTunings = #'(4 -1 -5 -10 -15 -20) { \guitarmusic } \layout{} } Obviously, if all I'm doing is standard-tuned guitar, I can leave out the call to stringTunings, but for bass guitar I need that call. Thanks for any help, Kevin Nowaczyk ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Errors when using TabStaff with stringTunings
Hello Kevin, welcome back to the Pond :-) There have been many syntax changes since v2.12, and one of them is the culprit here, so you’ll want to get a look at http://lilypond.org/doc/v2.18/Documentation/usage/updating-files-with-convert_002dly. (In case you’re using Frescobaldi: Tools/Update with convert.ly…) BTW: we use to have the version number right at the beginning of the file. The attached version works fine. All the best, Simon Am 24.08.2015 um 17:36 schrieb Kevin Nowaczyk: I have a lilypond file which used to parse perfectly well several years ago. I recently reinstalled lilypond (2.18.2 from debian-stable) and now I receive an error. I've reduced the file down and determined that setting the stringTunings is the problem. The file I have has both guitar tab and bass guitar tab. If I leave the \set TabStaff.stringTunings = #'(4 -1 -5 -10 -15 -20) line out, it displays correctly. If I add it in, it presents the following error: GNU LilyPond 2.18.2 Processing `Steven_smith_working.ly' Parsing... Interpreting music...[8]/usr/share/lilypond/2.18.2/scm/translation-functions.scm:313:39: In procedure ly:pitch-tones in expression (ly:pitch-tones (list-ref tuning #)): /usr/share/lilypond/2.18.2/scm/translation-functions.scm:313:39: Wrong type argument in position 1 (expecting Pitch): 4 My test file: guitarmusic = { \key g \minor R1*12 r8 bes'8\1 bes'\1 bes'\1 r8 a'\1 a'\1 a'\1 r c''\1 c''\1 c''\1 r bes'\1 bes'\1 bes'\1 r bes'\1 bes'\1 bes'\1 r a'\1 a'\1 a'\1 r d''\1 d''\1 d''\1 r d''\1 d''\1 d''\1 r8 bes'8\1 bes'\1 bes'\1 r8 a'\1 a'\1 a'\1 r c''\1 c''\1 c''\1 r bes'\1 bes'\1 bes'\1 r bes'\1 bes'\1 bes'\1 r a'\1 a'\1 a'\1 d''\1 d''\1 d''\1 d''\1 d''\1 d''\1 d''\1 d''\1 } \version 2.12.3 \score { \new StaffGroup \new TabStaff \set TabStaff.stringTunings = #'(4 -1 -5 -10 -15 -20) { \guitarmusic } \layout{} } Obviously, if all I'm doing is standard-tuned guitar, I can leave out the call to stringTunings, but for bass guitar I need that call. Thanks for any help, Kevin Nowaczyk ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user \version 2.18.0 guitarmusic = { \key g \minor R1*12 r8 bes'8\1 bes'\1 bes'\1 r8 a'\1 a'\1 a'\1 r c''\1 c''\1 c''\1 r bes'\1 bes'\1 bes'\1 r bes'\1 bes'\1 bes'\1 r a'\1 a'\1 a'\1 r d''\1 d''\1 d''\1 r d''\1 d''\1 d''\1 r8 bes'8\1 bes'\1 bes'\1 r8 a'\1 a'\1 a'\1 r c''\1 c''\1 c''\1 r bes'\1 bes'\1 bes'\1 r bes'\1 bes'\1 bes'\1 r a'\1 a'\1 a'\1 d''\1 d''\1 d''\1 d''\1 d''\1 d''\1 d''\1 d''\1 } \score { \new StaffGroup \new TabStaff \set TabStaff.stringTunings = #`(,(ly:make-pitch 0 2 NATURAL) ,(ly:make-pitch -1 6 NATURAL) ,(ly:make-pitch -1 4 NATURAL) ,(ly:make-pitch -1 1 NATURAL) ,(ly:make-pitch -2 5 NATURAL) ,(ly:make-pitch -2 2 NATURAL) ) { \guitarmusic } \layout{} }___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Errors when using TabStaff with stringTunings
Am 24.08.2015 um 17:36 schrieb Kevin Nowaczyk: I have a lilypond file which used to parse perfectly well several years ago. I recently reinstalled lilypond (2.18.2 from debian-stable) and now I receive an error. I've reduced the file down and determined that setting the stringTunings is the problem. The file I have has both guitar tab and bass guitar tab. If I leave the \set TabStaff.stringTunings = #'(4 -1 -5 -10 -15 -20) line out, it displays correctly. If I add it in, it presents the following error: GNU LilyPond 2.18.2 Processing `Steven_smith_working.ly' Parsing... Interpreting music...[8]/usr/share/lilypond/2.18.2/scm/translation-functions.scm:313:39: In procedure ly:pitch-tones in expression (ly:pitch-tones (list-ref tuning #)): /usr/share/lilypond/2.18.2/scm/translation-functions.scm:313:39: Wrong type argument in position 1 (expecting Pitch): 4 IIRC the underlying mechanism has changed, but lilypond offers ready-to-use shortcuts that make life much easier ;-) \set TabStaff.stringTunings = #bass-tuning Lilypond offers: guitar-tuning e, a, d g b e' guitar-seven-string-tuning b,, e, a, d g b e' guitar-drop-d-tuning d, a, d g b e' guitar-drop-c-tuning c, g, c f a d' guitar-open-g-tuning d, g, d g b d' guitar-open-d-tuning d, a, d fis a d' guitar-dadgad-tuning d, a, d g a d' guitar-lute-tuning e, a, d fis b e' guitar-asus4-tuning e, a, d e a e' bass-tuning e,, a,, d, g, bass-four-string-tuning e,, a,, d, g, bass-drop-d-tuning d,, a,, d, g, bass-five-string-tuning b,,, e,, a,, d, g, bass-six-string-tuning b,,, e,, a,, d, g, c mandolin-tuning g d' a' e'' banjo-open-g-tuning g' d g b d' banjo-c-tuning g' c g b d' banjo-modal-tuning g' d g c' d' banjo-open-d-tuning a' d fis a d' banjo-open-dm-tuning a' d fis a d' ukulele-tuning g' c' e' a' ukulele-d-tuning a' d' fis' b' tenor-ukulele-tuning g c' e' a' baritone-ukulele-tuning d g b e' violin-tuning g d' a' e'' viola-tuning c g d' a' cello-tuning c, g, d a double-bass-tuning e,, a,, d, g, HTH, Marc My test file: guitarmusic = { \key g \minor R1*12 r8 bes'8\1 bes'\1 bes'\1 r8 a'\1 a'\1 a'\1 r c''\1 c''\1 c''\1 r bes'\1 bes'\1 bes'\1 r bes'\1 bes'\1 bes'\1 r a'\1 a'\1 a'\1 r d''\1 d''\1 d''\1 r d''\1 d''\1 d''\1 r8 bes'8\1 bes'\1 bes'\1 r8 a'\1 a'\1 a'\1 r c''\1 c''\1 c''\1 r bes'\1 bes'\1 bes'\1 r bes'\1 bes'\1 bes'\1 r a'\1 a'\1 a'\1 d''\1 d''\1 d''\1 d''\1 d''\1 d''\1 d''\1 d''\1 } \version 2.12.3 \score { \new StaffGroup \new TabStaff \set TabStaff.stringTunings = #'(4 -1 -5 -10 -15 -20) { \guitarmusic } \layout{} } Obviously, if all I'm doing is standard-tuned guitar, I can leave out the call to stringTunings, but for bass guitar I need that call. Thanks for any help, Kevin Nowaczyk ___ 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: Errors when using TabStaff with stringTunings
Kevin Nowaczyk beakerbo...@yahoo.com writes: I have a lilypond file which used to parse perfectly well several years ago. Run convert-ly -ed on the file. At least on your example file, it upgraded the version successfully. The resulting code is rather ugly but works. You might want to look up the \stringTuning function in the notation manual in order to do this in a prettier way. -- David Kastrup ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Errors when using TabStaff with stringTunings
Am 24.08.2015 um 22:12 schrieb Kevin Nowaczyk: Thanks for the help everyone, I would up changing the stringTungings line to: \set Staff.stringTunings = \stringTuning e,, a,, d, g, And everything works fine. However, I also tried the notaion: \set Staff.stringTunings = #bass-tuning but that didn't work. I'll have to figure that out at a later time. All-in-all, I installed mediawiki with the Score plugin to show off a few guitar tabs I transcribed a few years ago. If you're curious, the first one (that now works) is here: http://wiki.beakerboy.com/index.php/Steven_Smith You may only hope that you don’t get any problems due to the legal (copyright) issues with this… Yours, Simon ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Errors when using TabStaff with stringTunings
In this case..the band is little known and no longer together. I had it hidden from view for anonymous visitors except open it up for the next couple days for people here who were interested in checking it out. I do like the automatic midi feature. It helps identify mistakes pretty easily. Kevin On Mon, 8/24/15, Simon Albrecht simon.albre...@mail.de wrote: Subject: Re: Errors when using TabStaff with stringTunings To: Kevin Nowaczyk beakerbo...@yahoo.com, lilypond-user@gnu.org Date: Monday, August 24, 2015, 4:25 PM Am 24.08.2015 um 22:12 schrieb Kevin Nowaczyk: Thanks for the help everyone, I would up changing the stringTungings line to: \set Staff.stringTunings = \stringTuning e,, a,, d, g, And everything works fine. However, I also tried the notaion: \set Staff.stringTunings = #bass-tuning but that didn't work. I'll have to figure that out at a later time. All-in-all, I installed mediawiki with the Score plugin to show off a few guitar tabs I transcribed a few years ago. If you're curious, the first one (that now works) is here: http://wiki.beakerboy.com/index.php/Steven_Smith You may only hope that you don’t get any problems due to the legal (copyright) issues with this… Yours, Simon ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Errors when using TabStaff with stringTunings
Thanks for the help everyone, I would up changing the stringTungings line to: \set Staff.stringTunings = \stringTuning e,, a,, d, g, And everything works fine. However, I also tried the notaion: \set Staff.stringTunings = #bass-tuning but that didn't work. I'll have to figure that out at a later time. All-in-all, I installed mediawiki with the Score plugin to show off a few guitar tabs I transcribed a few years ago. If you're curious, the first one (that now works) is here: http://wiki.beakerboy.com/index.php/Steven_Smith Thanks Again, Kevin Nowaczyk On Mon, 8/24/15, David Kastrup d...@gnu.org wrote: Subject: Re: Errors when using TabStaff with stringTunings To: Kevin Nowaczyk beakerbo...@yahoo.com Cc: lilypond-user@gnu.org Date: Monday, August 24, 2015, 12:36 PM Kevin Nowaczyk beakerbo...@yahoo.com writes: I have a lilypond file which used to parse perfectly well several years ago. Run convert-ly -ed on the file. At least on your example file, it upgraded the version successfully. The resulting code is rather ugly but works. You might want to look up the \stringTuning function in the notation manual in order to do this in a prettier way. -- David Kastrup ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user