Re: Orientation of notes in chords

2016-03-27 Thread Stephen MacNeil
Hi Andrew

as I said it was a long time ago. bit i just played with it a few seconds.
to see if I could remember. first take the following code


top = \relative c' {

e,16

\displaceHeads #'(-.8 1 0)

\adjustStem #'(2 . -2)

 g,

\displaceHeads #'(-.05 .8 0)

\adjustStem #'(1.5 . -2)

 d,  c, 

}


bot = \relative c'' {

e,,8 [g] d' c

}


\score {

<<\top\\\bot>>

}



notice each adjustment needs different calculation \displaceHeads #'(-.8 1
0) ie. no longer worked the second time. That to me is more as you said
"inelegant and complicated". second where did my flags go?


again when I asked the question a year ago I was already done the score.
And I am sure there is a solution (there always is). I just couldn't be
bothered.


As for the the "complexity of using voices"... well I don't find it that
complex. I find in guitar music I have to use them often.


HTH

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


Re: Orientation of notes in chords

2016-03-27 Thread Andrew Bernard
Hi Stephen and Alberto,

While your solution works Stephen it seems to me inelegant and complicated to 
go to the complexity of using voices to force lilypond into submission.

In what way does LSR 861 not do what you needed? We could adapt it.

Andrew


On 27/03/2016, 16:49, "Stephen MacNeil" 
 wrote:

This is common in guitar music (upper note left). So I asked this same question 
some time ago

found here

https://lists.gnu.org/archive/html/lilypond-user/2015-04/msg00010.html

I did look at 

http://lsr.di.unimi.it/LSR/Item?id=861

But it didn't work as I needed so I ended up with



%



\version "2.18.2"

nh = {

\once \override NoteHead.rotation = #'(.1 0 -380)

\once \override Stem.transparent = ##t

% Not needed I think 

% \once \override Flag.transparent = ##t

}



\relative c' {

\time 2/4



% default

<<{e,16 [] g, [] d, [] c, []}\\{e,,8 [g] d' 
c}>>



% my solution

<<{e,16 [c''] g, [c'] d, [c'] c, [c']}\\{s \nh bes!16 s \nh bes s \nh bes16 s 
\nh bes }\\{\voiceTwo e,,8 [g] d' c}>>



}

___ 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: Orientation of notes in chords

2016-03-27 Thread albie
Hi, Stephen.
Yor code is smaller and easier to read
It will probably help with my issue.
Thank you
Alberto

Sent from my android device.

-Original Message-
From: Stephen MacNeil 
To: al...@alfarrabio.di.uminho.pt, Lilypond-User Mailing List 

Sent: Sun, 27 Mar 2016 6:50
Subject: Re: Orientation of notes in chords

This is common in guitar music (upper note left). So I asked this same question 
some time ago

found here

https://lists.gnu.org/archive/html/lilypond-user/2015-04/msg00010.html

I did look at 

http://lsr.di.unimi.it/LSR/Item?id=861

But it didn't work as I needed so I ended up with


%


\version "2.18.2"

nh = {

\once \override NoteHead.rotation = #'(.1 0 -380)

\once \override Stem.transparent = ##t

% Not needed I think 

% \once \override Flag.transparent = ##t

}


\relative c' {

\time 2/4


% default

<<{e,16 [] g, [] d, [] c, []}\\{e,,8 [g] d' 
c}>>


% my solution

<<{e,16 [c''] g, [c'] d, [c'] c, [c']}\\{s \nh bes!16 s \nh bes s \nh bes16 s 
\nh bes }\\{\voiceTwo e,,8 [g] d' c}>>


}


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


Re: Orientation of notes in chords

2016-03-26 Thread Stephen MacNeil
This is common in guitar music (upper note left). So I asked this same
question some time ago

found here

https://lists.gnu.org/archive/html/lilypond-user/2015-04/msg00010.html

I did look at

http://lsr.di.unimi.it/LSR/Item?id=861

But it didn't work as I needed so I ended up with


%


\version "2.18.2"

nh = {

\once \override NoteHead.rotation = #'(.1 0 -380)

\once \override Stem.transparent = ##t

% Not needed I think

% \once \override Flag.transparent = ##t

}


\relative c' {

\time 2/4


% default

<<{e,16 [] g, [] d, [] c, []}\\{e,,8 [g]
d' c}>>


% my solution

<<{e,16 [c''] g, [c'] d, [c'] c, [c']}\\{s \nh bes!16 s \nh bes s \nh bes16
s \nh bes }\\{\voiceTwo e,,8 [g] d' c}>>


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


Re: Orientation of notes in chords

2016-03-26 Thread Alberto Simões



On 26/03/16 00:18, Andrew Bernard wrote:

LSR 861


Looks complicated, but OK, is possible.
Thanks :-)

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


Re: Orientation of notes in chords

2016-03-25 Thread Andrew Bernard
Hi Alberto,

Take a look at LSR 861.

Andrew


On 26/03/2016, 06:11, "Alberto Simões" 
 wrote:

Is there any way to say which I want for each side?
  (mostly curiosity, but it might be useful in some situations)


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


Orientation of notes in chords

2016-03-25 Thread Alberto Simões

Hi

If I type a chord with consecutive notes, like   lilypond will 
choose what notes will go to the left or to the right of the beam.


Is there any way to say which I want for each side?
 (mostly curiosity, but it might be useful in some situations)

Best
Alberto

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