Re: Guitar bend error
2016-04-25 0:18 GMT+02:00 Federico Bruni : > On Sun, Apr 24, 2016 at 11:38:31PM +0200, Thomas Morley wrote: >> 2016-04-24 17:13 GMT+02:00 Stephen MacNeil : >> > >> > It was written by Marc Hohl I just adapted it to have no tab since I don't >> > use tab >> > >> > >> > see >> > >> > https://github.com/openlilylib/openlilylib/tree/master/notation-snippets/guitar-string-bending >> > > > For the records, this is the new home: > https://github.com/openlilylib/snippets/tree/master/ly/tablature > > (the file is the same as in the old one, but future updates will be > pushed to the new location.. unless Urs wants to keep the old > in sync) > >> > Line breaks over bending notes are not supported and they are currently >> > disabled, because otherwise the file would not compile as soon as page >> > formatting decisions create such a situation. >> >> >> >> Manual inserting \noBreak or \break will probably not enough, without >> \layout { \autoLineBreaksOff } >> >> Opposed to what is claimed in the quote from openlilylib above, >> disabling line-breaks do not work sufficiently. > > I can add this to the README on github. Please do. But it's more a TODO: - How should this feature behave at line-break? - Until this is cleared disable line-breaks sufficiently. Thanks, Harm > >> See the out put from: >> \include "definitions.ily" >> >> \displayLilyMusic >> \relative c'' { >> \bendOn >> c1( d) >> c1( d) >> } >> >> It returns in terminal: >> >> { { \override Voice.Slur.stencil = #slur::draw-pointed-slur >> \override TabVoice.Slur.stencil = #slur::draw-bend-arrow >> c''1( \noBreak } d''1) c''1( d''1) } >> >> The overrides last until the end, but the \noBreak occurs only once!! >> > > True. Better to avoid these (likely) errors and use manual breaks. > Minimal example reworked in the new openlilylib style: > > \version "2.19.40" > \include "openlilylib" > > \useLibrary Tablature > % Workaround for issue #136 at > % https://github.com/openlilylib/snippets/issues/136 > #(display "") > \useModule tablature.bending > > % Hack needed until issue #136 is fixed: > % https://github.com/openlilylib/openlilylib/issues/136 > #(ly:message "loaded") > > > music = \relative c'' { > \displayLilyMusic > \bendOn > c1( d) > c1( d) > c1( d) > c1( d) > c1( d) > c1( d) > c1( d) > c1( d) > c1( d) > c1( d) > c1( d) > c1( d) > } > > \new StaffGroup << > \new Voice \music > \new TabVoice \music >>> > % comment this line and it won't compile > \layout { \autoLineBreaksOff } ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Guitar bend error
>I’ll see if I can get the openlilylib files to work first. they should be the same file, unless the openlilylib has been updated. I never modified the file I think >how come the graceBend slurs are always facing down in the output when it says “up” in the definitions file? do you mean pointing down? probalbly to show it goes from a higher note to a lower. Not sure I don't use tab so i could be wrong. are you referring to \once \override Voice.Slur.direction = #UP that puts the slur/bend mark above >I need bend slurs without the TabStaff. Thanks for that, Stephen! no problem, since i don't use tab i figured others could use it as well. glad it's useful. HTH Stephen ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Guitar bend error
Thanks to everyone who responded! I appreciate it. I think I might have some followup questions - like, how come the graceBend slurs are always facing down in the output when it says “up” in the definitions file? - but I’ll see if I can get the openlilylib files to work first. Although I want this score to have a TabStaff, the main reason I was using Stephen MacNeil’s code library is because in general I need bend slurs without the TabStaff. Thanks for that, Stephen! -Devon. On Sun, Apr 24, 2016 at 3:18 PM Federico Bruni wrote: > On Sun, Apr 24, 2016 at 11:38:31PM +0200, Thomas Morley wrote: > > 2016-04-24 17:13 GMT+02:00 Stephen MacNeil : > > > > > > It was written by Marc Hohl I just adapted it to have no tab since I > don't > > > use tab > > > > > > > > > see > > > > > > > https://github.com/openlilylib/openlilylib/tree/master/notation-snippets/guitar-string-bending > > > > > For the records, this is the new home: > https://github.com/openlilylib/snippets/tree/master/ly/tablature > > (the file is the same as in the old one, but future updates will be > pushed to the new location.. unless Urs wants to keep the old > in sync) > > > > Line breaks over bending notes are not supported and they are currently > > > disabled, because otherwise the file would not compile as soon as page > > > formatting decisions create such a situation. > > > > > > > > Manual inserting \noBreak or \break will probably not enough, without > > \layout { \autoLineBreaksOff } > > > > Opposed to what is claimed in the quote from openlilylib above, > > disabling line-breaks do not work sufficiently. > > I can add this to the README on github. > > > See the out put from: > > \include "definitions.ily" > > > > \displayLilyMusic > > \relative c'' { > > \bendOn > > c1( d) > > c1( d) > > } > > > > It returns in terminal: > > > > { { \override Voice.Slur.stencil = #slur::draw-pointed-slur > > \override TabVoice.Slur.stencil = #slur::draw-bend-arrow > > c''1( \noBreak } d''1) c''1( d''1) } > > > > The overrides last until the end, but the \noBreak occurs only once!! > > > > True. Better to avoid these (likely) errors and use manual breaks. > Minimal example reworked in the new openlilylib style: > > \version "2.19.40" > \include "openlilylib" > > \useLibrary Tablature > % Workaround for issue #136 at > % https://github.com/openlilylib/snippets/issues/136 > #(display "") > \useModule tablature.bending > > % Hack needed until issue #136 is fixed: > % https://github.com/openlilylib/openlilylib/issues/136 > #(ly:message "loaded") > > > music = \relative c'' { > \displayLilyMusic > \bendOn > c1( d) > c1( d) > c1( d) > c1( d) > c1( d) > c1( d) > c1( d) > c1( d) > c1( d) > c1( d) > c1( d) > c1( d) > } > > \new StaffGroup << > \new Voice \music > \new TabVoice \music > >> > % comment this line and it won't compile > \layout { \autoLineBreaksOff } > > ___ > 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: Guitar bend error
On Sun, Apr 24, 2016 at 11:38:31PM +0200, Thomas Morley wrote: > 2016-04-24 17:13 GMT+02:00 Stephen MacNeil : > > > > It was written by Marc Hohl I just adapted it to have no tab since I don't > > use tab > > > > > > see > > > > https://github.com/openlilylib/openlilylib/tree/master/notation-snippets/guitar-string-bending > > For the records, this is the new home: https://github.com/openlilylib/snippets/tree/master/ly/tablature (the file is the same as in the old one, but future updates will be pushed to the new location.. unless Urs wants to keep the old in sync) > > Line breaks over bending notes are not supported and they are currently > > disabled, because otherwise the file would not compile as soon as page > > formatting decisions create such a situation. > > > > Manual inserting \noBreak or \break will probably not enough, without > \layout { \autoLineBreaksOff } > > Opposed to what is claimed in the quote from openlilylib above, > disabling line-breaks do not work sufficiently. I can add this to the README on github. > See the out put from: > \include "definitions.ily" > > \displayLilyMusic > \relative c'' { > \bendOn > c1( d) > c1( d) > } > > It returns in terminal: > > { { \override Voice.Slur.stencil = #slur::draw-pointed-slur > \override TabVoice.Slur.stencil = #slur::draw-bend-arrow > c''1( \noBreak } d''1) c''1( d''1) } > > The overrides last until the end, but the \noBreak occurs only once!! > True. Better to avoid these (likely) errors and use manual breaks. Minimal example reworked in the new openlilylib style: \version "2.19.40" \include "openlilylib" \useLibrary Tablature % Workaround for issue #136 at % https://github.com/openlilylib/snippets/issues/136 #(display "") \useModule tablature.bending % Hack needed until issue #136 is fixed: % https://github.com/openlilylib/openlilylib/issues/136 #(ly:message "loaded") music = \relative c'' { \displayLilyMusic \bendOn c1( d) c1( d) c1( d) c1( d) c1( d) c1( d) c1( d) c1( d) c1( d) c1( d) c1( d) c1( d) } \new StaffGroup << \new Voice \music \new TabVoice \music >> % comment this line and it won't compile \layout { \autoLineBreaksOff } ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Guitar bend error
2016-04-24 17:13 GMT+02:00 Stephen MacNeil : > Add a line break before bar 25 > > r4 r8 e' g2 | \break % gradual bend on g2 towards a | > > % BAR 25 > > \bendGrace g8( a2) g2( | % gradual bend on g2 towards a | > > \bendGrace g8 a4 g8) e g2( | % gradual bend on g2 towards a | > > > > HTH > Stephen > > It was written by Marc Hohl I just adapted it to have no tab since I don't > use tab > > > see > > https://github.com/openlilylib/openlilylib/tree/master/notation-snippets/guitar-string-bending > > Line breaks over bending notes are not supported and they are currently > disabled, because otherwise the file would not compile as soon as page > formatting decisions create such a situation. Manual inserting \noBreak or \break will probably not enough, without \layout { \autoLineBreaksOff } Opposed to what is claimed in the quote from openlilylib above, disabling line-breaks do not work sufficiently. See the out put from: \include "definitions.ily" \displayLilyMusic \relative c'' { \bendOn c1( d) c1( d) } It returns in terminal: { { \override Voice.Slur.stencil = #slur::draw-pointed-slur \override TabVoice.Slur.stencil = #slur::draw-bend-arrow c''1( \noBreak } d''1) c''1( d''1) } The overrides last until the end, but the \noBreak occurs only once!! Cheers, Harm ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Guitar bend error
On 24/04/2016 16:13, Stephen MacNeil wrote: Add a line break before bar 25 r4 r8 e' g2 | \break % gradual bend on g2 towards a | % BAR 25 \bendGrace g8( a2) g2( | % gradual bend on g2 towards a | \bendGrace g8 a4 g8) e g2( | % gradual bend on g2 towards a | Or, if it's a longer piece and you want lily to choose the line breaks to look nice, you could put a \noBreak after bars 25 and 25? r4 r8 e' g2 | % gradual bend on g2 towards a | % BAR 25 \bendGrace g8( a2) g2( \noBreak | % gradual bend on g2 towards a | \bendGrace g8 a4 g8) e g2( \noBreak | % gradual bend on g2 towards a | (not tested, but that was my immediate reaction on reading this thread - disallow breaks where they're going to cause a problem) Cheers, Wol ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Guitar bend error
>The code Stephan hosts is a nightmare, because all indentation has >gone. This is true :) but I actually read it better... not sure why. and not being able to type fast it just works for me cheers Stephen ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Guitar bend error
2016-04-24 7:50 GMT+02:00 Devon LePage : > I’m transcribing a rock guitar solo, and to engrave the many string bends > I’m using Stephen MacNeil’s LilyPond code library, available here: > > http://mglessons.com/lilypond/ The code Stephan hosts is a nightmare, because all indentation has gone. For further testing I used my own version of the bend-files which should be pretty much the same as hosted at openlilylib. > If I use the “definitions_No-Tab.ly” file, LilyPond engraves the file with > no hiccups. However, if I use the “definitions.ily” for notation and TAB, I > get the following error: > > Drawing > systems.../Users/devon/Downloads/lilypond-archive/guitar_functions/definitions.ily:180:14: > In procedure ly:event-property in expression (ly:event-property (event-cause > right-bound) (quote pitch)): > > /Users/devon/Downloads/lilypond-archive/guitar_functions/definitions.ily:180:14: > Wrong type argument in position 1 (expecting Prob): #f > > Exited with return code 1. > > > Learning Scheme is still on my to-do list, so I don’t quite understand > what’s going on here. Frustratingly, I can’t seem to localize the error - > I’ve tried compiling the file with different sections commented out, but the > error isn’t consistently generated. A few times it happened at bar 13, but > then it happened at bar 31, and then a few more times at places in between. > It reliably compiles for the first 12 bars, but that’s it. > > > I’ve put the LilyPond code in a Gist here: > > > https://gist.github.com/devonlepage/624c66513538ad6b42de0f665857ade7 > > > This is the first third of the transcription. I’m hoping it will be enough > that someone might be able to diagnose the problem. I’ve taken out all > extraneous formatting code, which didn’t seem to effect the error. > > > I’m using Frescobaldi 2.19 with LilyPond 2.19.40. It also happens in 2.18. I > would prefer to use 2.19 so that I can use an alternative music font in the > final document. > > > I hope someone can help me figure out what’s going on. > > > Thanks! > > > -Devon LePage. The problem is line-breaking. The bending-code doesn't support it. Honestly, I've no clue how it should look at line-break. To proof whether it's a line-break-issue include: \paper { page-breaking = #ly:one-line-breaking } You'll see the error vanished. A minimal breaking example: \include "definitions.ily" \new TabVoice \relative c'' { \bendOn c1( \break d) } Though, what to do? Currently breaks are disabled at the end of \bendOn, which sometimes is not enough. It is likely possible to disallow line-breaks at all while \bendOn works. But is surely not what you want, while applying \bendOn to a larger piece of music. Best I can think of is to disallow breaks at all, inserting them all manually. For that you could use: \layout { \autoLineBreaksOff } HTH, Harm ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user