I'd like to set fingeringOrientations once for the whole \book.

2021-09-03 Thread list_lilypond
In a book with guitar music I'd like to position the fingering numbers  
at the left sides of the notes.


I already found out that notes have to be written as chords, i.e.  
, and tried to put

\set fingeringOrientations = #('left') in the layout block, which didn't work.
Then tried the \score block, which didn't work either.

It is as if I can only set the fingering orientations inside every  
newly created staff throughout the whole book.


Is this true, or did I just not find out how to do it properly?


Thanks.




percussion notation standard in Lilypond

2019-10-04 Thread list_lilypond

Hello all,

(very) long time not been here.

I'm engraving some drum scores for kids and it seems their teacher is  
using another notation standard than Lilypond, zo I looked it up on  
wikipedia ( https://en.wikipedia.org/wiki/Percussion_notation ) and it  
seems indeed that there are two 'standards' for percussion notation.


One apparently less used from Peckman, Jonathan (2007) (Picture  
Yourself Drumming, p.46. ISBN 1-59863-330-9), and one based on the  
recommendations of the Percussive Arts Society found in Norman  
Weinberg’s Guide To Standardized Drumset Notation (2002, ISBN  
0-9664928-1-1).


(I'm just copying here from wikipedia.)

It seems Lilypond uses neither one, as shown by the hi-hat which it  
positions between the 4th and 5th staff line, whereas both wikipedia  
examples, *and* the kids' teacher, position the hi-hat a half line  
higher (on the 5th line).


My question is now which standard Lilypond is using and why, and is it  
authoritative enough to try to bugger the teacher into switching to  
it? (I don't really mean to bugger him, rather some kind of trying to  
convince him that it's better for the kids to learn a notation 'that  
everyone is using'.)


If those 3 standards are all acceptable, wouldn't it be better if a  
Lilipond engraver were able to choose which standard to use in his  
piece?


Thanks for your thoughts!


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


Re: Is it possible to put alternatives inside repeats?

2016-12-10 Thread list_lilypond
On Fri, 9 Dec 2016 15:48:35 -0600
David Wright <lily...@lionunicorn.co.uk> wrote:

> On Fri 09 Dec 2016 at 20:40:01 (+0100), Simon Albrecht wrote:
> > On 09.12.2016 10:22, list_lilypond wrote:
> > >inside the repeat there are alternatives.
> > >
> > >As normally the \alternative{} syntax is put outside the
> > >\repeat{}, I really wonder whether this is possible at all.
> > >If possible in some other way, could someone please be so kind to
> > >point out how to repeat with embedded alternatives without
> > >rewriting all?
> > 
> > The available implementation of \repeat doesn’t allow any other use
> > of \alternative than immediately _after_ the repeated expression. So
> > it seems you’ll have to either
> > 
> > – split the repeat up into several repeats (and relocate stuff so
> > that the alternative at the beginning becomes an alternative at the
> > end
> > – write it out entirely – that might really reduce confusion for the
> > reader, except in Reich-esque pattern music,
> > – or fake the appearance by setting the context property
> > repeatCommands. There is an example in
> > <http://lilypond.org/doc/v2.18/Documentation/snippets/repeats#repeats-volta-text-markup-using-repeatcommands>.
> > So you can do something like the attached. I’d advise to close the
> > volta brackets for the 2. alternatives _inside_ the repeat, but I
> > don’t know how. Anyone?
> 
> I used \allowVoltaHook in
> http://lists.gnu.org/archive/html/lilypond-user/2015-10/msg00404.html
> but it has its downside as it seems unresettable.
> 
> Cheers,
> David.
> 
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user


Yes, I think I can do that.
I'll give it a try.
Thanks David!

Joe

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


Re: Is it possible to put alternatives inside repeats?

2016-12-10 Thread list_lilypond
Thanks Simon, for your reply.

Joe ;)


On Fri, 9 Dec 2016 20:40:01 +0100
Simon Albrecht <simon.albre...@mail.de> wrote:

> Hello anonymous guy (or gal…),
> 
> 
> On 09.12.2016 10:22, list_lilypond wrote:
> > inside the repeat there are alternatives.
> >
> > As normally the \alternative{} syntax is put outside the \repeat{},
> > I really wonder whether this is possible at all.
> > If possible in some other way, could someone please be so kind to
> > point out how to repeat with embedded alternatives without
> > rewriting all?
> 
> The available implementation of \repeat doesn’t allow any other use
> of \alternative than immediately _after_ the repeated expression. So
> it seems you’ll have to either
> 
> – split the repeat up into several repeats (and relocate stuff so
> that the alternative at the beginning becomes an alternative at the
> end – write it out entirely – that might really reduce confusion for
> the reader, except in Reich-esque pattern music,
> – or fake the appearance by setting the context property
> repeatCommands. There is an example in 
> <http://lilypond.org/doc/v2.18/Documentation/snippets/repeats#repeats-volta-text-markup-using-repeatcommands>.
>  
> So you can do something like the attached. I’d advise to close the
> volta brackets for the 2. alternatives _inside_ the repeat, but I
> don’t know how. Anyone?
> 
> Best, Simon
> 
> 


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


Re: Is it possible to put alternatives inside repeats?

2016-12-09 Thread list_lilypond
On Fri, 9 Dec 2016 09:22:50 +
list_lilypond <list_lilyp...@infopower.nl> wrote:

> Hi, 
> 
> what I want is something like:


Sorry, typo, this had to be:

\repeat volta 2 {
  \alternative{
{ a | }
{ b | }
  }
  c | d | e | f | g |
  \alternative{
{ b | }
{ c | }
  }
  d | e | f | g |  
}
\alternative{
  { b }
  { c }
}

> So inside the repeat there are alternatives.
> 
> As normally the \alternative{} syntax is put outside the \repeat{}, I
> really wonder whether this is possible at all.
> If possible in some other way, could someone please be so kind to
> point out how to repeat with embedded alternatives without rewriting
> all?
> 
> Thanks
> 
> ___
> 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


Is it possible to put alternatives inside repeats?

2016-12-09 Thread list_lilypond
Hi, 

what I want is something like:

\repeat volta 2 {
  \alternative{
{ a | }
{ b | }
  }
  c | d | e | f | g |
  \alternative{
{ b | }
{ c | }
  d | e | f | g |  
}
\alternative{
  { b }
  { c }
}

So inside the repeat there are alternatives.

As normally the \alternative{} syntax is put outside the \repeat{}, I
really wonder whether this is possible at all.
If possible in some other way, could someone please be so kind to point
out how to repeat with embedded alternatives without rewriting all?

Thanks

___
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


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 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 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 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 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


glissando to a nearby modified pitch doesn't always work inside a triplet

2014-12-27 Thread list_lilypond
I'm new here and don't know if I can send attachments, so I'll try some
code with proza:

\version 2.16.2
\relative c' {
  % The following doesn't show the (guitar) slide 
  % that I need in this triplet: 

  \times 2/3 { dis'8\glissando[ d( c)] } 

  % It's not that the slide is obscured by the d-line:

  \times 2/3 { cis8\glissando[ c( b)] } 

  % And it's not that the slide doesn't work at all,
  % because here it does:

  % \times 2/3 { e\glissando d( c) } 

  % I think it's because of the modifier in d#:

  \times 2/3 { e\glissando dis( c)}

  % Although 'coming from below' works:

  \times 2/3 { e,\glissando dis'( c)}
}


Play this in your 2.16.2, then you'll see what I mean.
My OS does not let me upgrade yet to 2.18, that's why I'm using 2.16.2.

My guess is that there is not enough space between the two notes where
the glissando needs to be because the pitch modifier occupies so much
horizontal space that lilypond 'decides' that the lenght of the line
indicating the glissando isn't enough to be visible so that it would
be better to drop the glissando altogether.

Any hints how to get this triplet show the intended slide and pull off?

Thanks,
Joe

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