Re: strange phenomenon from guitar bends snippet

2014-12-30 Thread Federico Bruni
2014-12-30 1:38 GMT+01:00 list_lilyp...@infopower.nl:

 I'll use your snippet next time when working on the music.
 I assume you want me to check the behaviour over a line break.
 Anything else?


Anything you notice.
Please report any problem in this list, since I'm only the maintainer of
the files on github.


 Your reference to the manual re the spurious staff is excellent.

 Again, when the work is done and I have more time I'll try to comment
 out the TabVoice override commands to see if the TabStaff attempts will
 disappear.


Just tried with your first attachment, it works.
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: strange phenomenon from guitar bends snippet

2014-12-30 Thread Thomas Morley
2014-12-29 23:20 GMT+01:00 Federico Bruni fedel...@gmail.com:
 Il giorno lun 29 dic 2014 alle 19:11, Thomas Morley
 thomasmorle...@gmail.com ha scritto:

 Look at the output from: m = c e g4\arpeggio mus = { \override
 Voice.Arpeggio.color = #red \override TabVoice.Arpeggio.color = #red \m }
 \new TabStaff \new TabVoice \mus \new Staff \new Voice { \clef G_8 \mus }
 The overrides, one for Voice, one for TabVoice, results in some spurious
 context-initialization in the Staff/Voice but not in the TabStaff/TabVoice.
 See attached .png. That let me think some context-settings could probably
 avoid the problem. I wasn't able to figure it out, though. Not sure if it's
 a bug, maybe an enhancement-request.


 But I get the same output on 2.18.2 and 2.16.2.

It's present in 2.12.3 already (this is the oldest version I've installed)

 I've reworked your example to make it more clear and backward compatible
 with 2.16:


 \version 2.16.0

 mus = {
   \override Voice.NoteHead #'color = #red
   \override TabVoice.TabNoteHead #'color = #red
   c e g4\arpeggio
 }

 \new TabStaff \new TabVoice \mus

 \new Staff \new Voice { \clef G_8 \mus }


Adding

\layout {
  \context {
\Voice
\alias TabVoice
  }
}

makes the following work.

\layout {
  \context {
\Voice
\alias TabVoice
  }
}

mus = {
  \override Voice.NoteHead #'color = #red
  \override TabVoice.TabNoteHead #'color = #green
  c e g4\arpeggio
}


\new TabStaff \new TabVoice \mus

\new Staff \new Voice { \clef G_8 \mus }


Though, there's likely a reason why it's not the default _and_ it
returns an error if applied together with bend.ly.
Will investigate further.


Cheers,
  Harm

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: strange phenomenon from guitar bends snippet

2014-12-30 Thread list_lilypond
It's working here. 
Nothing special done yet.

Except that commenting out all the lines with
\once \override Tab* gets rid of the spurious TabStaffs in the
output.

regards,
Joe


On Tue, 30 Dec 2014 00:19:02 +0100
Federico Bruni fedel...@gmail.com wrote:

 2014-12-29 16:24 GMT+01:00 Federico Bruni fedel...@gmail.com:
 
  I think that it happens because it assumes that you want to use a
  TabStaff context.
  Also, Marc Hohl recommended me (in a private email) to use voice
  contexts or you may have some problems. I'll add it to the README
  on github.
 
  Finally, there are issues when a bend occurs at a line break. Very
  annoying because it happens all of a sudden as the page formatting
  changes. Harm sent me a modified version of the \bendOn function,
  which seems to work fine on my files.
  I intended to test it more but I think that I'd better push it to
  github so others (including you) can test and report any problem.
 
  I'll do it tonight.
 
 
 
 done:
 https://github.com/openlilylib/openlilylib/tree/267ea8df747289d8acd8418961156dd7de65aaa8/notation-snippets/guitar-string-bending
 
 Joe, please test the (slightly) new definition.ily file.


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: strange phenomenon from guitar bends snippet

2014-12-30 Thread Federico Bruni
2014-12-30 16:43 GMT+01:00 list_lilyp...@infopower.nl:

 It's working here.
 Nothing special done yet.

 Except that commenting out all the lines with
 \once \override Tab* gets rid of the spurious TabStaffs in the
 output.



You should comment these two lines only in bend.ly:

%%% music functions

bendOn =
#(define-music-function (parser location note) (ly:music?)
#{
  \override Voice.Slur #'stencil = #slur::draw-pointed-slur
 % \override TabVoice.Slur #'stencil = #slur::draw-bend-arrow
  $note \noBreak
#})

bendOff = {
  \revert Voice.Slur #'stencil
%  \override TabVoice.Slur #'stencil = #slur::draw-tab-slur
}
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


strange phenomenon from guitar bends snippet

2014-12-29 Thread list_lilypond
I'm trying to write out Alvin Lee's (phenomenal) guitar solo from
his Woodstock performance of I'm going home with 10 Years After, and
for the bends got the guitar-string-bending notation-snippet
http://3.hidemyass.com/ip-1/encoded/czovL2dpdGh1Yi5jb20vb3BlbmxpbHlsaWIvb3BlbmxpbHlsaWIvYmxvYi9tYXN0ZXIvbm90YXRpb24tc25pcHBldHMvZ3VpdGFyLXN0cmluZy1iZW5kaW5nL2RlZmluaXRpb25zLmlseQ%3D%3D

However, after invocation of the snippet (see .ly file attached) I get
two TAB 'phenomena' in the pdf output file (see .pdf file attached).

Can anyone guide me on how to prevent/remove those?

Thanks,
Joe
\version 2.19.15

%\include bend.ly
%\include notation-snippets/guitar-string-bending/definitions.ily
\include notation-snippets_guitar-string-bending_definitions.ily
\header {
  title = I'm going home
  composer = Alvin Lee, 10 Years After
}


melody = \relative c'' {
  \clef treble
  \key c \major
  \time 4/4

  \partial 4. a8 c8. d16 |
  \once \override Glissando #'minimum-length = #5
  \once \override Glissando #'springs-and-rods = #ly:spanner::set-spacing-rods
  \once \override Glissando #'extra-dy = #-0.5
  \times 2/3 { dis8\glissando d( c) } d8. a16 d8. a16 c8. d16 |
   c4 a8. g16 \autoBeamOff a8 a8 \autoBeamOn \times 2/3 {c8 e fis} |
   a8. a16 c8. dis16 d8. c16 \times 2/3 {d8 c a} c4 a8. g16 a4 c4 |
   \times 4/6 {dis8[ c d c a c]} \times 4/6 {dis[ c d c a c]}
   dis c gis g e g 
   \times 2/3 {bis8\glissando b c}
   g2( a)  a, \glissando b a~ a b d4( e\2) a( g) \bendOn a( g) \bendOff
}

\score {
  \melody %\new Staff 
%  \layout { }
%  \midi { }
}



i_m_going_home.pdf
Description: Adobe PDF document
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: strange phenomenon from guitar bends snippet

2014-12-29 Thread Federico Bruni
2014-12-29 14:05 GMT+01:00 list_lilyp...@infopower.nl:

 I'm trying to write out Alvin Lee's (phenomenal) guitar solo from
 his Woodstock performance of I'm going home with 10 Years After, and
 for the bends got the guitar-string-bending notation-snippet

 http://3.hidemyass.com/ip-1/encoded/czovL2dpdGh1Yi5jb20vb3BlbmxpbHlsaWIvb3BlbmxpbHlsaWIvYmxvYi9tYXN0ZXIvbm90YXRpb24tc25pcHBldHMvZ3VpdGFyLXN0cmluZy1iZW5kaW5nL2RlZmluaXRpb25zLmlseQ%3D%3D

 However, after invocation of the snippet (see .ly file attached) I get
 two TAB 'phenomena' in the pdf output file (see .pdf file attached).

 Can anyone guide me on how to prevent/remove those?


Hi Joe

I think that it happens because it assumes that you want to use a TabStaff
context.
Also, Marc Hohl recommended me (in a private email) to use voice contexts
or you may have some problems. I'll add it to the README on github.

Finally, there are issues when a bend occurs at a line break. Very annoying
because it happens all of a sudden as the page formatting changes.
Harm sent me a modified version of the \bendOn function, which seems to
work fine on my files.
I intended to test it more but I think that I'd better push it to github so
others (including you) can test and report any problem.

I'll do it tonight.
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: strange phenomenon from guitar bends snippet

2014-12-29 Thread Federico Bruni
2014-12-29 16:24 GMT+01:00 Federico Bruni fedel...@gmail.com:

 I think that it happens because it assumes that you want to use a TabStaff
 context.



btw, find attached a file which compiles fine
do you really want just a staff without tablature?
\version 2.19.15

%\include bend.ly
\include notation-snippets/guitar-string-bending/definitions.ily

\header {
  title = I'm going home
  composer = Alvin Lee, 10 Years After
}


melody = \relative c'' {
  \key c \major
  \time 4/4

  \partial 4. a8 c8. d16 |
  \once \override Glissando #'minimum-length = #5
  \once \override Glissando #'springs-and-rods = #ly:spanner::set-spacing-rods
  \once \override Glissando #'extra-dy = #-0.5
  \times 2/3 { dis8\glissando d( c) } d8. a16 d8. a16 c8. d16 |
  c4 a8. g16 \autoBeamOff a8 a8 \autoBeamOn \times 2/3 {c8 e fis} |
  a8. a16 c8. dis16 d8. c16 \times 2/3 {d8 c a} c4 a8. g16 a4 c4 |
  \times 4/6 {dis8[ c d c a c]} \times 4/6 {dis[ c d c a c]}
  dis c gis g e g
  \times 2/3 {bis8\glissando b c}
  g2( a)  a, \glissando b a~ a b d4( e\2) a( g) \bendOn a( g) \bendOff
}

\score {
  \new StaffGroup 
\new Voice { \clef treble_8 \melody }
\new TabVoice { \clef moderntab \melody }
  
  \layout {
\omit StringNumber
\context {
  \StaffGroup
  \override StaffGrouper.staff-staff-spacing.padding = #5
}
  }
}


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: strange phenomenon from guitar bends snippet

2014-12-29 Thread list_lilypond
OMG! Did I really use hidemyass.com for that snippet? :)

Ok, I put the voice context in place.
I don't know whether I did that the way you were aiming at, because the
'TAB' phenomena are still there.

See attachments.

regards,
Joe



On Mon, 29 Dec 2014 16:24:31 +0100
Federico Bruni fedel...@gmail.com wrote:

 2014-12-29 14:05 GMT+01:00 list_lilyp...@infopower.nl:
 
  I'm trying to write out Alvin Lee's (phenomenal) guitar solo from
  his Woodstock performance of I'm going home with 10 Years After, and
  for the bends got the guitar-string-bending notation-snippet
 
  http://3.hidemyass.com/ip-1/encoded/czovL2dpdGh1Yi5jb20vb3BlbmxpbHlsaWIvb3BlbmxpbHlsaWIvYmxvYi9tYXN0ZXIvbm90YXRpb24tc25pcHBldHMvZ3VpdGFyLXN0cmluZy1iZW5kaW5nL2RlZmluaXRpb25zLmlseQ%3D%3D
 
  However, after invocation of the snippet (see .ly file attached) I
  get two TAB 'phenomena' in the pdf output file (see .pdf file
  attached).
 
  Can anyone guide me on how to prevent/remove those?
 
 
 Hi Joe
 
 I think that it happens because it assumes that you want to use a
 TabStaff context.
 Also, Marc Hohl recommended me (in a private email) to use voice
 contexts or you may have some problems. I'll add it to the README on
 github.
 
 Finally, there are issues when a bend occurs at a line break. Very
 annoying because it happens all of a sudden as the page formatting
 changes. Harm sent me a modified version of the \bendOn function,
 which seems to work fine on my files.
 I intended to test it more but I think that I'd better push it to
 github so others (including you) can test and report any problem.
 
 I'll do it tonight.

\version 2.19.15
\include notation-snippets_guitar-string-bending_definitions.ily

\header {
  title = I'm going home
  composer = Alvin Lee, 10 Years After
}



melody = \relative c'' {
  \clef treble
  \key c \major
  \time 4/4

  \partial 4. a8 c8. d16 |
  \once \override Glissando #'minimum-length = #5
  \once \override Glissando #'springs-and-rods = #ly:spanner::set-spacing-rods
  \once \override Glissando #'extra-dy = #-0.5
  \times 2/3 { dis8\glissando d( c) } d8. a16 d8. a16 c8. d16 |
   c4 a8. g16 \autoBeamOff a8 a8 \autoBeamOn \times 2/3 {c8 e fis} |
   a8. a16 c8. dis16 d8. c16 \times 2/3 {d8 c a} c4 a8. g16 a4 c4 |
   \times 4/6 {dis8[ c d c a c]} \times 4/6 {dis[ c d c a c]}
   dis c gis g e g 
   \times 2/3 {bis8\glissando b c}
   g2( a)  a, \glissando b a~ a b d4( e\2) a( g) \bendOn a( g) \bendOff
}
\score {
  \new Staff {
\new Voice {
  \melody
}
  }
  \layout { }
%  \midi { }
}



i_m_going_home_01.pdf
Description: Adobe PDF document
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: strange phenomenon from guitar bends snippet

2014-12-29 Thread Federico Bruni
My reply was actually: AFAIK you **must** use a TabStaff / TabVoice and I
sent a file with this score block:

\score {
  \new StaffGroup 
\new Voice { \clef treble_8 \melody }
\new TabVoice { \clef moderntab \melody }
  
  \layout {
\omit StringNumber
\context {
  \StaffGroup
  \override StaffGrouper.staff-staff-spacing.padding = #5
}
  }
}

Maybe if you change the \bendOn and \bendOff definitions and remove the
lines where TabVoice is used it _might_work.
But I won't test it since I want to use TabStaff.



2014-12-29 17:02 GMT+01:00 list_lilyp...@infopower.nl:

 OMG! Did I really use hidemyass.com for that snippet? :)

 Ok, I put the voice context in place.
 I don't know whether I did that the way you were aiming at, because the
 'TAB' phenomena are still there.

 See attachments.

 regards,
 Joe



 On Mon, 29 Dec 2014 16:24:31 +0100
 Federico Bruni fedel...@gmail.com wrote:

  2014-12-29 14:05 GMT+01:00 list_lilyp...@infopower.nl:
 
   I'm trying to write out Alvin Lee's (phenomenal) guitar solo from
   his Woodstock performance of I'm going home with 10 Years After, and
   for the bends got the guitar-string-bending notation-snippet
  
  
 http://3.hidemyass.com/ip-1/encoded/czovL2dpdGh1Yi5jb20vb3BlbmxpbHlsaWIvb3BlbmxpbHlsaWIvYmxvYi9tYXN0ZXIvbm90YXRpb24tc25pcHBldHMvZ3VpdGFyLXN0cmluZy1iZW5kaW5nL2RlZmluaXRpb25zLmlseQ%3D%3D
  
   However, after invocation of the snippet (see .ly file attached) I
   get two TAB 'phenomena' in the pdf output file (see .pdf file
   attached).
  
   Can anyone guide me on how to prevent/remove those?
  
  
  Hi Joe
 
  I think that it happens because it assumes that you want to use a
  TabStaff context.
  Also, Marc Hohl recommended me (in a private email) to use voice
  contexts or you may have some problems. I'll add it to the README on
  github.
 
  Finally, there are issues when a bend occurs at a line break. Very
  annoying because it happens all of a sudden as the page formatting
  changes. Harm sent me a modified version of the \bendOn function,
  which seems to work fine on my files.
  I intended to test it more but I think that I'd better push it to
  github so others (including you) can test and report any problem.
 
  I'll do it tonight.


 ___
 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: strange phenomenon from guitar bends snippet

2014-12-29 Thread list_lilypond
On Mon, 29 Dec 2014 17:22:40 +0100
Federico Bruni fedel...@gmail.com wrote:

 My reply was actually: AFAIK you **must** use a TabStaff / TabVoice

I understood your reply as a possible explanation for the unwanted
behaviour of the snippet, sorry for the misunderstanding.
Actually you did write: I think that it happens because it assumes
that you want to use a TabStaff context.
And as I indeed didn't want the Tab, the snippet assumed
wrongly...

 and I sent a file with this score block:

Yes, thanks, it came in after me receiving your 1st email and replying
to that.

 \score {
   \new StaffGroup 
 \new Voice { \clef treble_8 \melody }
 \new TabVoice { \clef moderntab \melody }
   
   \layout {
 \omit StringNumber
 \context {
   \StaffGroup
   \override StaffGrouper.staff-staff-spacing.padding = #5
 }
   }
 }

Your file works perfectly, thanks!
However, I learned guitar the classical way (arrogance not intended)
and never use the tabulature notation. 
So indeed: I really wanted just a staff without tabulature.

 Maybe if you change the \bendOn and \bendOff definitions and remove
 the lines where TabVoice is used it _might_work.
 But I won't test it since I want to use TabStaff.

While trying to work out the solo I'll take the 'phenomenon' for
granted as the tabulature will only confuse my reading. Maybe when finished 
I'll try to tweak it, but given my very limited
understanding of the lilypond language I'm not confident that I'd be
successful in that.

Thanks a lot for your help,
Joe

BTW: If you'd reply directly TO the list and incidently (B)CC the
person you'd like to address directly, then it's easier for me (and I
take it for others too) to reply without having to retype the list's
address.

regards


 2014-12-29 17:02 GMT+01:00 list_lilyp...@infopower.nl:
 
  OMG! Did I really use hidemyass.com for that snippet? :)
 
  Ok, I put the voice context in place.
  I don't know whether I did that the way you were aiming at, because
  the 'TAB' phenomena are still there.
 
  See attachments.
 
  regards,
  Joe
 
 
 
  On Mon, 29 Dec 2014 16:24:31 +0100
  Federico Bruni fedel...@gmail.com wrote:
 
   2014-12-29 14:05 GMT+01:00 list_lilyp...@infopower.nl:
  
I'm trying to write out Alvin Lee's (phenomenal) guitar solo
from his Woodstock performance of I'm going home with 10 Years
After, and for the bends got the guitar-string-bending
notation-snippet
   
   
  http://3.hidemyass.com/ip-1/encoded/czovL2dpdGh1Yi5jb20vb3BlbmxpbHlsaWIvb3BlbmxpbHlsaWIvYmxvYi9tYXN0ZXIvbm90YXRpb24tc25pcHBldHMvZ3VpdGFyLXN0cmluZy1iZW5kaW5nL2RlZmluaXRpb25zLmlseQ%3D%3D
   
However, after invocation of the snippet (see .ly file
attached) I get two TAB 'phenomena' in the pdf output file
(see .pdf file attached).
   
Can anyone guide me on how to prevent/remove those?
   
   
   Hi Joe
  
   I think that it happens because it assumes that you want to use a
   TabStaff context.
   Also, Marc Hohl recommended me (in a private email) to use voice
   contexts or you may have some problems. I'll add it to the README
   on github.
  
   Finally, there are issues when a bend occurs at a line break. Very
   annoying because it happens all of a sudden as the page formatting
   changes. Harm sent me a modified version of the \bendOn function,
   which seems to work fine on my files.
   I intended to test it more but I think that I'd better push it to
   github so others (including you) can test and report any problem.
  
   I'll do it tonight.
 
 
  ___
  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: strange phenomenon from guitar bends snippet

2014-12-29 Thread Thomas Morley
2014-12-29 16:24 GMT+01:00 Federico Bruni fedel...@gmail.com:
 2014-12-29 14:05 GMT+01:00 list_lilyp...@infopower.nl:

 I'm trying to write out Alvin Lee's (phenomenal) guitar solo from
 his Woodstock performance of I'm going home with 10 Years After, and
 for the bends got the guitar-string-bending notation-snippet

 http://3.hidemyass.com/ip-1/encoded/czovL2dpdGh1Yi5jb20vb3BlbmxpbHlsaWIvb3BlbmxpbHlsaWIvYmxvYi9tYXN0ZXIvbm90YXRpb24tc25pcHBldHMvZ3VpdGFyLXN0cmluZy1iZW5kaW5nL2RlZmluaXRpb25zLmlseQ%3D%3D

 However, after invocation of the snippet (see .ly file attached) I get
 two TAB 'phenomena' in the pdf output file (see .pdf file attached).

 Can anyone guide me on how to prevent/remove those?


 Hi Joe

 I think that it happens because it assumes that you want to use a TabStaff
 context.
 Also, Marc Hohl recommended me (in a private email) to use voice contexts or
 you may have some problems. I'll add it to the README on github.

 Finally, there are issues when a bend occurs at a line break. Very annoying
 because it happens all of a sudden as the page formatting changes.
 Harm sent me a modified version of the \bendOn function, which seems to work
 fine on my files.
 I intended to test it more but I think that I'd better push it to github so
 others (including you) can test and report any problem.

 I'll do it tonight.



Hi,

it's not the bend.ly causing the problem, but some behaviour of
current LilyPond.

Look at the output from:

m = c e g4\arpeggio

mus = {
  \override Voice.Arpeggio.color = #red
  \override TabVoice.Arpeggio.color = #red
  \m
}

\new TabStaff \new TabVoice \mus

\new Staff \new Voice { \clef G_8 \mus }



The overrides, one for Voice, one for TabVoice, results in some
spurious context-initialization in the Staff/Voice but not in the
TabStaff/TabVoice.
See attached .png.

That let me think some context-settings could probably avoid the
problem. I wasn't able to figure it out, though.
Not sure if it's a bug, maybe an enhancement-request.

As Federico said, deleting the overrides applied to TabStaff/TabVoice
in bend.ly should solve the problem for now.

Cheers,
  Harm
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: strange phenomenon from guitar bends snippet

2014-12-29 Thread Federico Bruni
Il giorno lun 29 dic 2014 alle 19:11, Thomas Morley 
thomasmorle...@gmail.com ha scritto:

Look at the output from:

m = c e g4\arpeggio

mus = {
  \override Voice.Arpeggio.color = #red
  \override TabVoice.Arpeggio.color = #red
  \m
}

\new TabStaff \new TabVoice \mus

\new Staff \new Voice { \clef G_8 \mus }



The overrides, one for Voice, one for TabVoice, results in some
spurious context-initialization in the Staff/Voice but not in the
TabStaff/TabVoice.
See attached .png.

That let me think some context-settings could probably avoid the
problem. I wasn't able to figure it out, though.
Not sure if it's a bug, maybe an enhancement-request.


But I get the same output on 2.18.2 and 2.16.2.
I've reworked your example to make it more clear and backward 
compatible with 2.16:



\version 2.16.0

mus = {
 \override Voice.NoteHead #'color = #red
 \override TabVoice.TabNoteHead #'color = #red
 c e g4\arpeggio
}

\new TabStaff \new TabVoice \mus

\new Staff \new Voice { \clef G_8 \mus }


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: strange phenomenon from guitar bends snippet

2014-12-29 Thread list_lilypond
True. Me too, I started from 2.16 and got that output. Which made me
upgrade to 2.18 and then to 2.19.15, where it still appears.

regards,
Joe


On Mon, 29 Dec 2014 23:20:49 +0100
Federico Bruni fedel...@gmail.com wrote:

 Il giorno lun 29 dic 2014 alle 19:11, Thomas Morley 
 thomasmorle...@gmail.com ha scritto:
  Look at the output from:
  
  m = c e g4\arpeggio
  
  mus = {
\override Voice.Arpeggio.color = #red
\override TabVoice.Arpeggio.color = #red
\m
  }
  
  \new TabStaff \new TabVoice \mus
  
  \new Staff \new Voice { \clef G_8 \mus }
  
  
  
  The overrides, one for Voice, one for TabVoice, results in some
  spurious context-initialization in the Staff/Voice but not in the
  TabStaff/TabVoice.
  See attached .png.
  
  That let me think some context-settings could probably avoid the
  problem. I wasn't able to figure it out, though.
  Not sure if it's a bug, maybe an enhancement-request.
 
 But I get the same output on 2.18.2 and 2.16.2.
 I've reworked your example to make it more clear and backward 
 compatible with 2.16:
 
 
 \version 2.16.0
 
 mus = {
   \override Voice.NoteHead #'color = #red
   \override TabVoice.TabNoteHead #'color = #red
   c e g4\arpeggio
 }
 
 \new TabStaff \new TabVoice \mus
 
 \new Staff \new Voice { \clef G_8 \mus }
 
 


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: strange phenomenon from guitar bends snippet

2014-12-29 Thread Federico Bruni
2014-12-29 23:20 GMT+01:00 Federico Bruni fedel...@gmail.com:

 But I get the same output on 2.18.2 and 2.16.2.
 I've reworked your example to make it more clear and backward compatible
 with 2.16:


 \version 2.16.0

 mus = {
   \override Voice.NoteHead #'color = #red
   \override TabVoice.TabNoteHead #'color = #red
   c e g4\arpeggio
 }

 \new TabStaff \new TabVoice \mus

 \new Staff \new Voice { \clef G_8 \mus }


The problem does not occur if Staff and TabStaff are joined with .
Now I understand why I never hit this error...

\version 2.16.0

mus = {
  \override Voice.NoteHead #'color = #red
  \override TabVoice.TabNoteHead #'color = #red
  c e g4
}


\new Staff \new Voice { \clef G_8 \mus }
\new TabStaff \new TabVoice \mus


%\new Staff \new Voice { \clef G_8 \mus }
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: strange phenomenon from guitar bends snippet

2014-12-29 Thread Federico Bruni
2014-12-29 16:24 GMT+01:00 Federico Bruni fedel...@gmail.com:

 I think that it happens because it assumes that you want to use a TabStaff
 context.
 Also, Marc Hohl recommended me (in a private email) to use voice contexts
 or you may have some problems. I'll add it to the README on github.

 Finally, there are issues when a bend occurs at a line break. Very
 annoying because it happens all of a sudden as the page formatting changes.
 Harm sent me a modified version of the \bendOn function, which seems to
 work fine on my files.
 I intended to test it more but I think that I'd better push it to github
 so others (including you) can test and report any problem.

 I'll do it tonight.



done:
https://github.com/openlilylib/openlilylib/tree/267ea8df747289d8acd8418961156dd7de65aaa8/notation-snippets/guitar-string-bending

Joe, please test the (slightly) new definition.ily file.
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: strange phenomenon from guitar bends snippet

2014-12-29 Thread list_lilypond
On Tue, 30 Dec 2014 00:19:02 +0100
Federico Bruni fedel...@gmail.com wrote:

 2014-12-29 16:24 GMT+01:00 Federico Bruni fedel...@gmail.com:
 
  I think that it happens because it assumes that you want to use a
  TabStaff context.
  Also, Marc Hohl recommended me (in a private email) to use voice
  contexts or you may have some problems. I'll add it to the README
  on github.
 
  Finally, there are issues when a bend occurs at a line break. Very
  annoying because it happens all of a sudden as the page formatting
  changes. Harm sent me a modified version of the \bendOn function,
  which seems to work fine on my files.
  I intended to test it more but I think that I'd better push it to
  github so others (including you) can test and report any problem.
 
  I'll do it tonight.
 
 
 
 done:
 https://github.com/openlilylib/openlilylib/tree/267ea8df747289d8acd8418961156dd7de65aaa8/notation-snippets/guitar-string-bending
 
 Joe, please test the (slightly) new definition.ily file.

I'll use your snippet next time when working on the music.
I assume you want me to check the behaviour over a line break.
Anything else?

Your reference to the manual re the spurious staff is excellent.

Again, when the work is done and I have more time I'll try to comment
out the TabVoice override commands to see if the TabStaff attempts will
disappear.

regards,

Joe

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user