Re: Fretboard diagrams: Why does LilyPond sometimes try to interpret ":7" as a duration?

2022-07-25 Thread David Kastrup
Kevin Cole  writes:

> On Mon, Jul 25, 2022 at 5:56 PM Aaron Hill  wrote:
>>
>> On 2022-07-25 1:56 pm, Kevin Cole wrote:
>> >> frets = \chordmode { f4 c4:7 g4:7 c4 bf4 d4:m }
>> ^^
>> Input is in chord mode.  Modifiers like :m and :7 work.
>>
>> >> frets = { g4 c4 a4 d4:7 }
>>^
>> Missing \chordmode.  :7 indicates a tremolo with an invalid duration.
>
> Oops. I stared at it for half an hour and missed the typo completely.
> Embarrassing. I'll blame it on sleepiness.

Frankly, we already had a discussion about how to make the default
\notemode a unified note/chord mode, long long ago.  Tremolo input
notation is what is the main detraction here.

-- 
David Kastrup



Re: Fretboard diagrams: Why does LilyPond sometimes try to interpret ":7" as a duration?

2022-07-25 Thread Kevin Cole
On Mon, Jul 25, 2022 at 5:56 PM Aaron Hill  wrote:
>
> On 2022-07-25 1:56 pm, Kevin Cole wrote:
> >> frets = \chordmode { f4 c4:7 g4:7 c4 bf4 d4:m }
> ^^
> Input is in chord mode.  Modifiers like :m and :7 work.
>
> >> frets = { g4 c4 a4 d4:7 }
>^
> Missing \chordmode.  :7 indicates a tremolo with an invalid duration.

Oops. I stared at it for half an hour and missed the typo completely.
Embarrassing. I'll blame it on sleepiness.

But many thanks.



Re: Fretboard diagrams: Why does LilyPond sometimes try to interpret ":7" as a duration?

2022-07-25 Thread Carl Sorensen
>
> > respectively, work fine. The third has a bit more going on, but adding:
> >
> > > 
> > > frets = { g4 c4 a4 d4:7 }
> > > 
> >
> > now gives me:
> >
> > > error: not a duration
> > >  g4 c4 a4 d4:
> > >  7
> >
> > (Without the frets score, everything is fine.)
>

You are not in \chordmode

frets = \chordmode{g4 c4 a4 d4:7}

Carl


Re: Fretboard diagrams: Why does LilyPond sometimes try to interpret ":7" as a duration?

2022-07-25 Thread Aaron Hill

On 2022-07-25 1:56 pm, Kevin Cole wrote:

frets = \chordmode { f4 c4:7 g4:7 c4 bf4 d4:m }

   ^^
Input is in chord mode.  Modifiers like :m and :7 work.


frets = { g4 c4 a4 d4:7 }

  ^
Missing \chordmode.  :7 indicates a tremolo with an invalid duration.


-- Aaron Hill



Re: Fretboard diagrams: Why does LilyPond sometimes try to interpret ":7" as a duration?

2022-07-25 Thread Kevin Cole
On Mon, Jul 25, 2022 at 4:56 PM Kevin Cole  wrote:
>
> Hi,
>
> I decided to move all of the fretboards from various scores to a
> "summary" score at the top -- sort of a "legend" so that the scores
> would not take up so much space.
>
> I'm defining a variable named frets and then, later:
>
> 
> \score {
>   <<
> \new ChordNames \frets
> \new FretBoards \frets
>   >>
>   \layout { }
> }
>
> \score {
>   <<
> \new ChordNames \chordNames
> \new Voice = "mel" { \melody }
> \new Lyrics \lyricsto mel \words
>   >>
>   \layout { \autoBeamOff }
> }
> 
>
> Two files:
>
> > 
> > frets = \chordmode {  f4 c4:7 g4:7 c4 bf4 d4:m }
> > 
>
> and
>
> > 
> > frets = { f4 bf4 c4 }
> > 
>
> respectively, work fine. The third has a bit more going on, but adding:
>
> > 
> > frets = { g4 c4 a4 d4:7 }
> > 
>
> now gives me:
>
> > error: not a duration
> >  g4 c4 a4 d4:
> >  7
>
> (Without the frets score, everything is fine.)

P.S. BTW, since people often ask, I am using LilyPond 2.22.1



Fretboard diagrams: Why does LilyPond sometimes try to interpret ":7" as a duration?

2022-07-25 Thread Kevin Cole
Hi,

I decided to move all of the fretboards from various scores to a
"summary" score at the top -- sort of a "legend" so that the scores
would not take up so much space.

I'm defining a variable named frets and then, later:


\score {
  <<
\new ChordNames \frets
\new FretBoards \frets
  >>
  \layout { }
}

\score {
  <<
\new ChordNames \chordNames
\new Voice = "mel" { \melody }
\new Lyrics \lyricsto mel \words
  >>
  \layout { \autoBeamOff }
}


Two files:

> 
> frets = \chordmode {  f4 c4:7 g4:7 c4 bf4 d4:m }
> 

and

> 
> frets = { f4 bf4 c4 }
> 

respectively, work fine. The third has a bit more going on, but adding:

> 
> frets = { g4 c4 a4 d4:7 }
> 

now gives me:

> error: not a duration
>  g4 c4 a4 d4:
>  7

(Without the frets score, everything is fine.)