Re: Ties in chord mode

2020-03-01 Thread Ben Eichler
Hi Carl,

Thanks for clarifying my stream of consciousness blathering. My preference
was not to have any chord name displayed at all for tied chords.

Your workarounds are both excellent ideas, however I ultimately adopted
Thomas' solution, as it achieved what I needed with minimal entry required.

On Mon, 2 Mar 2020 at 17:34, Carl Sorensen  wrote:

>
>
>
>
> *From: *Ben Eichler 
> *Date: *Saturday, February 29, 2020 at 1:46 AM
> *To: *
> *Subject: *Ties in chord mode
>
>
>
> Hi all,
>
>
>
>
>
> I transcribe songs using a style of melody + lyrics + chords. In certain
> songs, I write the same chord twice. Sometimes I want both chords to be
> printed, for example the second chord is starting a new section. Other
> times I may want only the first chord to be printed. \set chordChanges =
> ##t is too blunt an instrument (ha!) to deal with these situations. The
> only tool I am aware of to deal with this is overflowing bar duration, but
> sometimes the duration needs to be either irregular or longer than 6 beats,
> and having a tie would become helpful.
>
>
>
> In a 4/4 time signature, if I want to make a chord last for 6 beats, I can
> luckily work around it using a dotted duration that overflows the bar:
>
> Chord notation: |C . . . |(C) . F . |
>
> Lilypond notation: {\chordMode { c1. f2 }
>
>
>
> But suppose I want that C major chord to last only for 5 beats, in a
> melody I would use a tie, but that doesn't work in chord mode, the second
> chord is printed which I don't want:
>
> Chord notation: |C . . . |(C) F . . |
>
> Lilypond notation: \chordmode { c1( c4) f2. }
>
>
>
> First, the notation you are proposing uses slurs, not ties.
>
>
>
> Second, \chordmode already supports ties:
>
>
>
> \version "2.18.0"
>
>
>
> mus = \chordmode{
>
>   c1~c1~c1
>
> }
>
>
>
> \score {
>
>   <<
>
> \new ChordNames {\mus}
>
> \new Staff {\mus}
>
>   >>
>
> }
>
>
>
> As you can see in this example, ties in \chordmode are done exactly as you
> would expect.
>
>
>
> The issue is not that ties don’t work in \chordmode, but rather that the
> ChordNames context doesn’t display the chords the way you would like to see
> them displayed.
>
>
>
> Is it your preference that the chord name for tied chords be displayed in
> parentheses?  Or would you rather have it not displayed at all?
>
>
>
> You can make a request for a new feature, but I don’t know that anybody is
> actively working on the ChordNames context.  So the feature may not be
> implemented.
>
>
>
> Another possibility for a workaround:
>
>
>
> \version "2.18.0"
>
>
>
> mus = \chordmode {
>
>   c1 |
>
>   c1 |
>
>   c1*127/128  \once \hideNotes r4*1/32 |
>
>   c1
>
> }
>
>
>
>
>
> <<
>
>   \new ChordNames \with {
>
>  noChordSymbol=" "
>
>  chordChanges = ##t
>
>   }{ \mus}
>
>   \new Staff {\mus}
>
> >>
>
>
>
> Perhaps the best workaround I can think of is to \set chordChanges = ##t,
> then any place you want to show a chord name, you can do either a \once
> \set chordChanges = ##t or a \once \unset chordChanges.
>
>
>
> \version "2.18.0"
>
>
>
> mus = \chordmode {
>
>   c1 |
>
>   c1 |
>
>   c1 |
>
>   c4 f2. |
>
>   c1 |
>
> %  \once \set chordChanges = ##f
>
>   \once \unset chordChanges
>
>   c1 |
>
>   c1 |
>
> }
>
>
>
>
>
> <<
>
>   \new ChordNames \with {
>
>  noChordSymbol=" "
>
>  chordChanges = ##t
>
>   }{ \mus}
>
>   \new Staff {\mus}
>
> >>
>
>
>
>
>
> HTH,
>
>
>
> Carl
>
>
>


Re: Ties in chord mode

2020-03-01 Thread Carl Sorensen


From: Ben Eichler 
Date: Saturday, February 29, 2020 at 1:46 AM
To: 
Subject: Ties in chord mode

Hi all,


I transcribe songs using a style of melody + lyrics + chords. In certain songs, 
I write the same chord twice. Sometimes I want both chords to be printed, for 
example the second chord is starting a new section. Other times I may want only 
the first chord to be printed. \set chordChanges = ##t is too blunt an 
instrument (ha!) to deal with these situations. The only tool I am aware of to 
deal with this is overflowing bar duration, but sometimes the duration needs to 
be either irregular or longer than 6 beats, and having a tie would become 
helpful.

In a 4/4 time signature, if I want to make a chord last for 6 beats, I can 
luckily work around it using a dotted duration that overflows the bar:
Chord notation: |C . . . |(C) . F . |
Lilypond notation: {\chordMode { c1. f2 }

But suppose I want that C major chord to last only for 5 beats, in a melody I 
would use a tie, but that doesn't work in chord mode, the second chord is 
printed which I don't want:
Chord notation: |C . . . |(C) F . . |
Lilypond notation: \chordmode { c1( c4) f2. }

First, the notation you are proposing uses slurs, not ties.

Second, \chordmode already supports ties:

\version "2.18.0"

mus = \chordmode{
  c1~c1~c1
}

\score {
  <<
\new ChordNames {\mus}
\new Staff {\mus}
  >>
}

As you can see in this example, ties in \chordmode are done exactly as you 
would expect.

The issue is not that ties don’t work in \chordmode, but rather that the 
ChordNames context doesn’t display the chords the way you would like to see 
them displayed.

Is it your preference that the chord name for tied chords be displayed in 
parentheses?  Or would you rather have it not displayed at all?

You can make a request for a new feature, but I don’t know that anybody is 
actively working on the ChordNames context.  So the feature may not be 
implemented.

Another possibility for a workaround:

\version "2.18.0"

mus = \chordmode {
  c1 |
  c1 |
  c1*127/128  \once \hideNotes r4*1/32 |
  c1
}


<<
  \new ChordNames \with {
 noChordSymbol=" "
 chordChanges = ##t
  }{ \mus}
  \new Staff {\mus}
>>

Perhaps the best workaround I can think of is to \set chordChanges = ##t, then 
any place you want to show a chord name, you can do either a \once \set 
chordChanges = ##t or a \once \unset chordChanges.

\version "2.18.0"

mus = \chordmode {
  c1 |
  c1 |
  c1 |
  c4 f2. |
  c1 |
%  \once \set chordChanges = ##f
  \once \unset chordChanges
  c1 |
  c1 |
}


<<
  \new ChordNames \with {
 noChordSymbol=" "
 chordChanges = ##t
  }{ \mus}
  \new Staff {\mus}
>>


HTH,

Carl



RE: Ties in chord mode

2020-02-29 Thread Ben Eichler
Wow I’ve never seen that syntax before. Works perfectly for what I need, since 
I’m only printing chord letters in a ChordNames context. Thanks Thomas!

-Ben

From: Thomas Morley
Sent: 01 March 2020 07:38
To: Ben Eichler
Cc: lilypond-user
Subject: Re: Ties in chord mode

Am Sa., 29. Feb. 2020 um 11:07 Uhr schrieb Ben Eichler :
>
> Hi all,
>
>
> I transcribe songs using a style of melody + lyrics + chords. In certain 
> songs, I write the same chord twice. Sometimes I want both chords to be 
> printed, for example the second chord is starting a new section. Other times 
> I may want only the first chord to be printed. \set chordChanges = ##t is too 
> blunt an instrument (ha!) to deal with these situations. The only tool I am 
> aware of to deal with this is overflowing bar duration, but sometimes the 
> duration needs to be either irregular or longer than 6 beats, and having a 
> tie would become helpful.
>
> In a 4/4 time signature, if I want to make a chord last for 6 beats, I can 
> luckily work around it using a dotted duration that overflows the bar:
> Chord notation: |C . . . |(C) . F . |
> Lilypond notation: {\chordMode { c1. f2 }
>
> But suppose I want that C major chord to last only for 5 beats, in a melody I 
> would use a tie, but that doesn't work in chord mode, the second chord is 
> printed which I don't want:
> Chord notation: |C . . . |(C) F . . |
> Lilypond notation: \chordmode { c1( c4) f2. }
>
> Or maybe I want that C major chord to last for 3 bars. Multiple ties can be 
> used in a melody, but there's no equivalent in chord mode, the 2nd and 3rd 
> chords are printed which I don't want:
> Chord notation: |C . . . |(C) . . . |(C) . . . |
> Lilypond notation: \chordmode { c1( c c) }
>
> Unless anyone can recommend a workaround for this, I am submitting a request 
> to support ties in chord mode. The parentheses ( ) syntax used for melody 
> seems the obvious choice.
>
> Would appreciate any comments on this. If there's a more appropriate place to 
> submit requests like this I will gladly move it elsewhere.
>
> Thanks in advance,
>
>
> -Ben

Why not:

chrdI = \chordmode { c1. f2 }
chrdII = \chordmode { c1*5/4 f2. }
chrdIII = \chordmode { c1*3 }

<< \new Staff \chrdI \new ChordNames \chrdI >>
<< \new Staff \chrdII \new ChordNames \chrdII >>
<< \new Staff \chrdIII \new ChordNames \chrdIII >>

Cheers,
  Harm



Re: Ties in chord mode

2020-02-29 Thread Thomas Morley
Am Sa., 29. Feb. 2020 um 11:07 Uhr schrieb Ben Eichler :
>
> Hi all,
>
>
> I transcribe songs using a style of melody + lyrics + chords. In certain 
> songs, I write the same chord twice. Sometimes I want both chords to be 
> printed, for example the second chord is starting a new section. Other times 
> I may want only the first chord to be printed. \set chordChanges = ##t is too 
> blunt an instrument (ha!) to deal with these situations. The only tool I am 
> aware of to deal with this is overflowing bar duration, but sometimes the 
> duration needs to be either irregular or longer than 6 beats, and having a 
> tie would become helpful.
>
> In a 4/4 time signature, if I want to make a chord last for 6 beats, I can 
> luckily work around it using a dotted duration that overflows the bar:
> Chord notation: |C . . . |(C) . F . |
> Lilypond notation: {\chordMode { c1. f2 }
>
> But suppose I want that C major chord to last only for 5 beats, in a melody I 
> would use a tie, but that doesn't work in chord mode, the second chord is 
> printed which I don't want:
> Chord notation: |C . . . |(C) F . . |
> Lilypond notation: \chordmode { c1( c4) f2. }
>
> Or maybe I want that C major chord to last for 3 bars. Multiple ties can be 
> used in a melody, but there's no equivalent in chord mode, the 2nd and 3rd 
> chords are printed which I don't want:
> Chord notation: |C . . . |(C) . . . |(C) . . . |
> Lilypond notation: \chordmode { c1( c c) }
>
> Unless anyone can recommend a workaround for this, I am submitting a request 
> to support ties in chord mode. The parentheses ( ) syntax used for melody 
> seems the obvious choice.
>
> Would appreciate any comments on this. If there's a more appropriate place to 
> submit requests like this I will gladly move it elsewhere.
>
> Thanks in advance,
>
>
> -Ben

Why not:

chrdI = \chordmode { c1. f2 }
chrdII = \chordmode { c1*5/4 f2. }
chrdIII = \chordmode { c1*3 }

<< \new Staff \chrdI \new ChordNames \chrdI >>
<< \new Staff \chrdII \new ChordNames \chrdII >>
<< \new Staff \chrdIII \new ChordNames \chrdIII >>

Cheers,
  Harm



Re: Ties in chord mode

2020-02-29 Thread Klaus Blum
Hi Ben, 


Ben Eichler wrote
> suppose I want that C major chord to last only for 5 beats, in a melody
> I would use a tie, but that doesn't work in chord mode, the second chord
> is
> printed which I don't want:
> Chord notation: |C . . . |(C) F . . |
> Lilypond notation: \chordmode { c1( c4) f2. }

If you don't need MIDI output  from your Ly file, you can put invisible
rests into the chords: 

% ---
\version "2.19.83"

<<
  \new ChordNames \chordmode {
c1
s4 f s s
  }
  \new Staff \relative c' {
\repeat unfold 8 {c4} 
  }
>>
% ---

Am I right that you don't want the chord symbols you've put in parentheses? 
If you want an output like  |  C   | (C) F  | you can write
c1 \parenthesize c4 f2.

Cheers, 
Klaus



--
Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html



Ties in chord mode

2020-02-29 Thread Ben Eichler
Hi all,


I transcribe songs using a style of melody + lyrics + chords. In certain
songs, I write the same chord twice. Sometimes I want both chords to be
printed, for example the second chord is starting a new section. Other
times I may want only the first chord to be printed. \set chordChanges =
##t is too blunt an instrument (ha!) to deal with these situations. The
only tool I am aware of to deal with this is overflowing bar duration, but
sometimes the duration needs to be either irregular or longer than 6 beats,
and having a tie would become helpful.

In a 4/4 time signature, if I want to make a chord last for 6 beats, I can
luckily work around it using a dotted duration that overflows the bar:
Chord notation: |C . . . |(C) . F . |
Lilypond notation: {\chordMode { c1. f2 }

But suppose I want that C major chord to last only for 5 beats, in a melody
I would use a tie, but that doesn't work in chord mode, the second chord is
printed which I don't want:
Chord notation: |C . . . |(C) F . . |
Lilypond notation: \chordmode { c1( c4) f2. }

Or maybe I want that C major chord to last for 3 bars. Multiple ties can be
used in a melody, but there's no equivalent in chord mode, the 2nd and 3rd
chords are printed which I don't want:
Chord notation: |C . . . |(C) . . . |(C) . . . |
Lilypond notation: \chordmode { c1( c c) }

Unless anyone can recommend a workaround for this, I am submitting a
request to support ties in chord mode. The parentheses ( ) syntax used for
melody seems the obvious choice.

Would appreciate any comments on this. If there's a more appropriate place
to submit requests like this I will gladly move it elsewhere.

Thanks in advance,


-Ben