misuse of chords

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

misuse of chords

Joe McCool
Please, as a niave user I struggling to understand chords in traditional music.

Why is it that timidity plays these chords OK in the first tune part, but only the first chord in the 2nd part:

\version "2.18.2"
 %lilypond - to keep the midi.bash happy\version "2.7.40"
\header {
composer = "Andrew Swaine"
crossRefNumber = "1"
footnotes = ""
tagline = "Lily was here 2.18.2 -- automatically converted from ABC"
title = "Easter Snow Mazurka (ly)"
}
melody = {
  \override Score.BarNumber.break-visibility = ##(#t #t #t)
  \set Score.currentBarNumber = #1
  \time 3/4
  \tempo 4 = 120
  %\autobeam on
  \relative c' {
    \key d \major
    \time 3/4
    \repeat volta 2 {
      b'8.[ cis16~] cis8. d16 ~ d8. fis16 %% \bar "|"
      e8. fis16 e8. d16 cis8. b16 %% \bar "|"
      ais8. b16 ~ b8. cis16 ~ cis8. fis,16 %% \bar "|"
      d'8. cis16 b8.  d16 cis8. ^A fis,16 %% \bar "|"
      b8. cis16 ~ cis8. d16 ~ d8. fis16 %% \bar "|"
      e8. fis16 e8. d16 cis8. e16 %% \bar "|"
      fis8. g16 fis8. e16 d8. cis16 %% \bar "|"
      b4 b'4 -. r4
    }
    \repeat volta 2 {
      g8. fis16~ fis8. e16 e8. d16 %% \bar "|"
      cis8.  d16 e8. g16 fis8. e16  %% \bar "|"
      fis8.  e16 ~ e8. d16 ~ d8. cis16 %% \bar "|"
      b8.  cis16 d8. fis16 e8. d16 %% \bar "|"
      e8. d16 ~ d8. cis16 ~ cis8. b16 %% \bar "|"
      ais8. b16 cis8. e16 d8. cis16 %% \bar "|"
      b8. ais16 b8. d16 cis8. ais16
    }
    \alternative{
      { b8. cis16 dis8. b16 dis8. fis16 }
      { b,4 r8. fis16 ( g8. fis16 ^>)}
    }
  }
}

harmonies = \chordmode {
   b2.:min
   g:maj
   fis
   g4 r a
   b2.:min
   e:min
   fis
   b:min

   e:min
   a
   d
   g
   e:min
   f
   b:min
% alternatives
   b
   b:min
}

final = {
  <<
    \new ChordNames {
      \set chordChanges = ##t
      \harmonies
    }
    \new Voice = "one" { \melody }
  >>
}

\score {
  \final
  \layout { }
}

\score {
  \unfoldRepeats      
  {
    \final
  }
  \midi{}
}

--
Thanks.
____________________________
Joe McCool CEng, MIMarEST, SMIEEE
www.tangentengineering.co.uk
(44)7802572441


Reply | Threaded
Open this post in threaded view
|

Re: misuse of chords

David Kastrup
Joe McCool <[hidden email]> writes:

> Please, as a niave user I struggling to understand chords in traditional
> music.
>
> Why is it that timidity plays these chords OK in the first tune part, but
> only the first chord in the 2nd part:
>
> \version "2.18.2"
>  %lilypond - to keep the midi.bash happy\version "2.7.40"
> \header {
> composer = "Andrew Swaine"
> crossRefNumber = "1"
> footnotes = ""
> tagline = "Lily was here 2.18.2 -- automatically converted from ABC"
> title = "Easter Snow Mazurka (ly)"
> }

> melody = {
>     \repeat volta 2 {
>     }
>     \repeat volta 2 {
>     }
>     \alternative{
>       { b8. cis16 dis8. b16 dis8. fis16 }
>       { b,4 r8. fis16 ( g8. fis16 ^>)}
>     }
>   }
> }

> harmonies = \chordmode {
>    b2.:min
>    g:maj
>    fis
>    g4 r a
>    b2.:min
>    e:min
>    fis
>    b:min
>
>    e:min
>    a
>    d
>    g
>    e:min
>    f
>    b:min
> % alternatives
>    b
>    b:min
> }

> \score {
>   \unfoldRepeats
>   {
>     \final
>   }
>   \midi{}
> }

The thing is that in the visual layout, repeat voltas are not
represented by any actual repetitions but by repeat barlines and similar
stuff.  So it is sufficient to add the volta/repeat structure to one
Staff/Voice/whatever.

However, \unfoldRepeats does not work at the music "iteration" stage but
changes the music expression directly.  So its effect does not extend to
\harmonies .

You need to place the volta/repeat structure in every Staff/Voice to
have \unfoldRepeats do its work successfully.

--
David Kastrup
My replies have a tendency to cause friction.  To help mitigating
damage, feel free to forward problematic posts to me adding a subject
like "timeout 1d" (for a suggested timeout of 1 day) or "offensive".

Reply | Threaded
Open this post in threaded view
|

Re: misuse of chords

Karlin High
In reply to this post by Joe McCool
On 2/11/2020 1:24 PM, Joe McCool wrote:
> Please, as a niave user I struggling to understand chords in traditional
> music.

...

> Joe McCool CEng, MIMarEST, SMIEEE
> www.tangentengineering.co.uk


I've seen a Joe McCool mentioned before in relation to LilyPond, ABC
Notation, traditional music, and boats.

<http://www.tug.org/tugboat/tb29-3/tb93mccool.pdf>

Was that you, or a different one?
--
Karlin High
Missouri, USA

Reply | Threaded
Open this post in threaded view
|

Re: misuse of chords

Joe McCool
In reply to this post by David Kastrup
OnTue, Feb 11, 2020 at 10:17 PM David Kastrup <[hidden email]> wrote:
 
You need to place the volta/repeat structure in every Staff/Voice to
have \unfoldRepeats do its work successfully.

Sigh!

Yes David, I had only just pressed the send button and I twigged to that.

Sorry for taking up your time and thanks a lot for super Lilypond.  In my case it is probably using a sledge hammer to crack a nut, but I love it to bits :-)

--
Thanks.
____________________________
Joe McCool CEng, MIMarEST, SMIEEE
www.tangentengineering.co.uk
(44)7802572441


Reply | Threaded
Open this post in threaded view
|

Re: misuse of chords

Joe McCool
In reply to this post by Karlin High
On Tue, Feb 11, 2020 at 11:11 PM Karlin High <[hidden email]> wrote:
 
Was that you, or a different one?

Wow!  Hawk eye Karlin, well spotted.   Yes, I'm afraid I am the same JMcC and I am still learning and enjoying.

There is at least one other Joe McCool out there somewhere and he is at the top of the FBI's wanted list, but I assure you I am not him and he is not me :-)

--
Thanks.
____________________________
Joe McCool CEng, MIMarEST, SMIEEE
www.tangentengineering.co.uk
(44)7802572441


Reply | Threaded
Open this post in threaded view
|

Re: misuse of chords

David Kastrup
In reply to this post by Joe McCool
Joe McCool <[hidden email]> writes:

> OnTue, Feb 11, 2020 at 10:17 PM David Kastrup <[hidden email]> wrote:
>
>
>> You need to place the volta/repeat structure in every Staff/Voice to
>> have \unfoldRepeats do its work successfully.
>>
>
> Sigh!
>
> Yes David, I had only just pressed the send button and I twigged to that.
>
> Sorry for taking up your time and thanks a lot for super Lilypond.  In my
> case it is probably using a sledge hammer to crack a nut, but I love it to
> bits :-)

LilyPond certainly should be an amicable tool for just cracking nuts, so
it's a bit disconcerting that its entrails are exposed a bit (so to say)
in such a simple use case.  More often than not, we are better at hiding
them away.

All the best

--
David Kastrup
My replies have a tendency to cause friction.  To help mitigating
damage, feel free to forward problematic posts to me adding a subject
like "timeout 1d" (for a suggested timeout of 1 day) or "offensive".