Re: How to create complex chord

2016-04-06 Thread Simon Albrecht

On 07.04.2016 02:41, Larry wrote:
I have read the Learning Manual and did all the exercises. The problem 
is that my retention is not as good as it once was (I'm 70 years old). 
However I still enjoy learning. 


It does take some time till one gets to grips with Lily. I wish you all 
the best and happy Ponding :-)


Yours, Simon

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


Re: How to create complex chord

2016-04-06 Thread Larry

Hello,

Thanks for your response, just what I needed.

Sorry for being on wrong  list, it's my first post, and I wasn't as 
observant as I should have been.


I have read the Learning Manual and did all the exercises. The problem 
is that my retention is not as good as it once was (I'm 70 years old). 
However I still enjoy learning.


All posts will be on the proper list going forward.

Larry

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


Re: How to create complex chord

2016-04-06 Thread Noeck
Hi Larry,

some comments first:

a) This is a mailing list for Lilypond development (changing the program
itself), please use the lilypond-user list for user questions.

b) If you reduce your code to the absolute minimum, you may find the
issue yourself and you are more likely to find someone looking into it
and help you: http://lilypond.org/tiny-examples.html

Concerning your question: I reduced your example a bit below. What you
need are the lines marked with comments (%). If it is not clear please
search in the manual for change staff and voices ("I hear voices").

HTH,
Joram



\version "2.18.2"
\language "english"

global = {
  \key e \major
}

right = \relative c' {
  \global
  \change Staff = "left"% you need to change into the lower staff
  \voiceOne % and make this voice the upper one
  \tuplet 3/2 { e,8 gs cs }
  \oneVoice % change back
  \change Staff = "right"
}

left = \relative c,  {
  \global
  \voiceTwo % if there would be shorter notes with stems
% this part should be the lower voice
  1
  \oneVoice % back to normal mode: only one voice in
this staff
}

\score {
  \new PianoStaff <<
\new Staff = "right" \right
\new Staff = "left" { \clef bass \left }
  >>
}

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


Re: How to create complex chord

2016-04-06 Thread Simon Albrecht

Hi Larry,

how come you asked on the devel list? As the name says, this list is 
about developing LilyPond, not about using it – for that, there’s the 
user list.


On 06.04.2016 21:57, Larry wrote:

Hello,

I need to create a chord of which part is a tuplet and don't know how.


A chord can only contain notes of the same duration, so for different 
durations you need two voices. Your example uses two voices, in two 
staves, and the most convenient solution would seem to be moving one of 
the voices to the lower staff. A correct version of the code is found below.
In any case, it will make your life much easier if you read the Learning 
Manual  
for getting a grip on the basics of LilyPond. It’s indispensible.


So HTH,
Simon

PS. The example was already quite good in that it was complete and 
compiled fine. However, it might have been somewhat smaller still (see 
), e.g. by omitting everything 
for MIDI output. Just saying…


%
\version "2.18.2"
\language "english"

\paper {
  #(set-paper-size "letter")
}

global = {
  \key e \major
  \time 4/4
}

right = \relative c' {
  \global
  \tempo "Adagio sostenuto"
  \change Staff = "left"
  \voiceOne
  \tuplet 3/2 { e,8 gs cs }
}

left = \relative c, {
  \global
  \voiceTwo
  1
}

\score {
  \new PianoStaff \with {
instrumentName = "Piano"
  } <<
\new Staff = "right" \with {
  midiInstrument = "acoustic grand"
} \right
\new Staff = "left" \with {
  midiInstrument = "acoustic grand"
} { \clef bass \left }
  >>
  \layout { }
  \midi {
\tempo 4=70
  }
}

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