lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: FretDiagrams Architecture


From: Carl Sorensen
Subject: Re: FretDiagrams Architecture
Date: Sat, 20 Nov 2004 20:17:24 -0700

On Fri, 2004-11-19 at 07:38, Han-Wen Nienhuys wrote:

> * Although it is possible to make a #(set-fret-diagram-string ) , I
> think we can use the mechanism now used for chord exceptions, ie.

> * I suppose that this is still too difficult for "normal" users, and
>   that we should also have an option
> 
>   a. to override fret diagrams for once, eg. 
> 
>     \chordmode { d:add9 \frets "abc9312" }
> 
>   b. to override a fret diagram from now on
> 
>     \chordmode {
>       \set rememberFretOverride = ##t
>       d:add9 \frets "abc9312" d:add9
>     }
> 
>    would print the 2nd chord with the same fret diagram
> 
> Of course, we need to make sure that these once-exceptions print a
> warning when a transpose is attempted.

In working on this, I discovered another way to handle different fret
diagrams for the same chord.  ChordNames ignores the octave of the
Chord, but chordmode keeps the octave.  That means that we can access
different fret diagrams for a D chord by changing the octave, i.e. 

mychords = \chordmode { d d,}

<<
        \ChordNames {\mychords}
        \FretDiagrams {\mychords}
>>

will produce two chord labels (both D), and two FretDiagrams (which will
be different items from the hash table).  I think this feature could be
convenient for those who may prefer to have multiple fret diagrams for a
chord in a piece.

What do you think?

Carl







reply via email to

[Prev in Thread] Current Thread [Next in Thread]