Guitar Fret Diagram - scale degree below string

2015-08-15 Thread tone
I would like to include the scale degree below each string in a fret diagram. 
For example, below the strings on the fret diagram for B13sus4 (at the 7th
fret) I would like to print "1 b7 4 13" (without the quotes).  (Would also
be nice to use the custom symbol for "flat", rather than lowercase "b".)

Lilypond only allows one to specify a simple "finger-code" under
"fret-diagram-details".

I am looking for the simplest solution, not necessarily the most efficient. 
I have scoured the web, and have not found a satisfying method to achieve
this.  Any help is appreciated.  Below is a minimal working example.

--
% Chord Chart.
% Want to add scale degree below strings.
% Example:  below the Db7#5#9 diagram there should be:  "3 b7 #9 #5"
(without the quotes).
%
\version "2.19.15"
\pointAndClickOff
%
\score { <<
\chords {
%{ B13sus4 %}   b:13sus4
%{ Db7#5#9 %}   des:7.5+.9+
}
%
\new Lyrics \lyricmode{
%{ B13sus4 %}   \markup{ \override #'(size . 1.5) \fret-diagram-terse
#"7;x;7;9;9;x;"}
%{ Db7#5#9 %}   \markup{ \override #'(size . 1.5) \fret-diagram-terse
#"x;8;9;9;10;x;"}
}
%
\chordmode {\clef "treble_8" \override Staff.TimeSignature #'stencil = ##f
%{ B13sus4 %}
%{ Db7#5#9 %} }
%
>> 
\layout {
 \context { \Lyrics
 \override LyricSpace #'minimum-distance = #1.5
 \override VerticalAxisGroup #'minimum-Y-extent = #'(-1 . 1)
 \override LyricText #'self-alignment-X = #CENTER }
%
 \context { \ChordNames
 \override ChordName #'font-size = #1
 \override ChordName #'self-alignment-X = #CENTER
 \override ChordName #'X-offset =
#ly:self-alignment-interface::aligned-on-x-parent } }
}

ly:   ScaleDegree.ly
  
pdf:   ScaleDegree.pdf
  



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Guitar-Fret-Diagram-scale-degree-below-string-tp179664.html
Sent from the User mailing list archive at Nabble.com.

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


Re: Guitar Fret Diagram - scale degree below string

2015-08-16 Thread tone
Thanks!  That does exactly what I want.  I will paste this into my existing
chord charts.

Anybody have a simpler solution?



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Guitar-Fret-Diagram-scale-degree-below-string-tp179664p179696.html
Sent from the User mailing list archive at Nabble.com.

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


Solved: Guitar Chord Fret Diagram With Scale Degree Below String

2015-08-16 Thread tone
*Solved*:  Guitar Chord Fret Diagram With Scale Degree Below Each String

Here is one method of placing the scale degree below each string in a guitar
chord fret diagram, as suggested by Klaus.  I have also included files with
the LilyJAZZ fonts and stylesheet (bottom of page).


 

*LilyPond Code*
--

--

*Files*
ly:   Chord_Chart_with_Scale_Degrees.ly

  
pdf:   Chord_Chart_with_Scale_Degrees.pdf

  
png:   Chord_Chart_with_Scale_Degrees.png

  

*Files with LilyJAZZ Fonts and Stylesheet*
ly:   Chord_Chart_with_Scale_Degrees-LilyJazz.ly

  
pdf:   Chord_Chart_with_Scale_Degrees-LilyJazz.pdf

  
png:   Chord_Chart_with_Scale_Degrees-LilyJazz.png

  


 




--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Guitar-Fret-Diagram-scale-degree-below-string-tp179664p179700.html
Sent from the User mailing list archive at Nabble.com.

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


Re: Guitar Fret Diagram - scale degree below string

2015-08-16 Thread tone
How can I add more space between the bottom of the strings (fret diagram) and
the scale degrees?  When there are not any /accidentals/, the numbers are
too close to the strings.



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Guitar-Fret-Diagram-scale-degree-below-string-tp179664p179703.html
Sent from the User mailing list archive at Nabble.com.

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


Guitar Chord Fret Diagram - "T" above string fretted with thumb

2015-08-18 Thread tone
I would like to place the letter "T" above the strings fretted with my thumb. 
This is usually only the low E string.  Some chords require five fingers. 
Other chords are more conveniently played with the thumb on the low E.

Here is a picture I edited with an external program to include the letter
"T" above the low E string:


 

I am looking for the simplest solution, not necessarily the most efficient. 
I have scoured the web, and have not found a satisfying method to achieve
this.  Any help is appreciated.  Below is a minimal working example. 

*LilyPond Code*
---

---

*Files*
ly:   Fret_Diagram_without_Thumb.ly

  
pdf:   Fret_Diagram_without_Thumb.pdf

  
png:   Fret_Diagram_with_Thumb.png

  





--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Guitar-Chord-Fret-Diagram-T-above-string-fretted-with-thumb-tp179738.html
Sent from the User mailing list archive at Nabble.com.

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


Re: Guitar Chord Fret Diagram - "T" above string fretted with thumb

2015-08-18 Thread tone
*Solved*:  Option to include thumb indicator ("T") above string fretted with
thumb in guitar chord fret diagram

Some chords require five fingers.  Other chords are more conveniently played
with the thumb on the low E string. 

Here is one method of placing a thumb indicator above a string fretted with
your thumb in a guitar chord fret diagram, as suggested by Klaus.  I have
also included files with the LilyJAZZ fonts and stylesheet (bottom of page).


 

*LilyPond Code*


*Files*
ly:   Solved-Fret_Diagram_Thumb.ly

  
pdf:   Solved-Fret_Diagram_Thumb.pdf

  
png:   Solved-Fret_Diagram_Thumb.png

  

*Files with LilyJAZZ Fonts and Stylesheet*
ly:   Solved-Fret_Diagram_Thumb-LilyJAZZ.ly

  
pdf:   Solved-Fret_Diagram_Thumb-LilyJAZZ.pdf

  
png:   Solved-Fret_Diagram_Thumb-LilyJAZZ.png

  

LilyJAZZ names the E chord more accurately

 




--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Guitar-Chord-Fret-Diagram-T-above-string-fretted-with-thumb-tp179738p179757.html
Sent from the User mailing list archive at Nabble.com.

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


Guitar Chord Chart - Align Fret Diagram with Chord Names and Notes

2015-08-18 Thread tone
I would like to fix the spacing in my guitar chord chart.  The Chord Names
are aligned with the Notes correctly.  However, the Fret Diagram is
misaligned due to the space occupied by the fret number.

Here is a picture I edited with an external program.  A vertical
color-inverted strip is used to visualize the alignment problems.  The first
chord is correctly aligned because no fret number is printed.  The next two
chords are misaligned.  The third chord is misaligned more than the second
chord because fret number "10" occupies more space than fret number "4".  In
all three chords the Chord Names are aligned with the Notes correctly.


 

Any help is appreciated.

Here is the segment of *LilyPond code* that I use for alignment in my chord
chart



Here is the *LilyPond Code* for the entire chord chart


*Files*
ly:   Chord_Chart_bad_Spacing.ly
 
 
pdf:   Chord_Chart_bad_Spacing.pdf

  
png:   Chord_Chart_bad_Spacing.png

  




--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Guitar-Chord-Chart-Align-Fret-Diagram-with-Chord-Names-and-Notes-tp179772.html
Sent from the User mailing list archive at Nabble.com.

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


Re: Guitar Chord Chart - Align Fret Diagram with Chord Names and Notes

2015-08-19 Thread tone
An elegant solution would be to define a fretboard with fret numbers on both
sides---one of them an invisible (phantom) character.  This is beyond my
level of expertise.  Anyone know how to code this?

Here is a /brute force/ solution using "\once\override LyricText
#'extra-offset = #'( /x/ . /y/ )", and a couple of questions:



How do I define a smaller command for "\once\override LyricText
#'extra-offset = #'(0.74 . 0.0)"?  Where do I put that command in my
LilyPond code?  For example:



Then use:


Using this solution, I need only define five offsets to get relatively
accurate diagrams:
1.  sp1 - for fret number "1"
2.  sp2 - for fret numbers "2"-"9";
3.  sp11 - for fret number "11"
4.  sp10 - for fret numbers "10" and "12"-"19"
5.  sp20 - for fret numbers "20" and "22".  (Fret number "21" occupies the
same space as "12".)

This is an ugly solution.  Any better ideas?



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Guitar-Chord-Chart-Align-Fret-Diagram-with-Chord-Names-and-Notes-tp179772p179801.html
Sent from the User mailing list archive at Nabble.com.

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


Naming Substitution Functions - Numbers and Special Characters

2015-08-19 Thread tone
Does anyone have a list of characters that are allowed in substitution
functions.  I would like to make a list of chord names including fret
position.  For example, the following name is allowed:

g_dom_seven-three = \markup{ \override #'(size . 1.3) \fret-diagram-terse
#"x;x;3;4;3;x;" }

However, including a number in the name results in an error.  For example,
any of the following names result in an error:

g73
g7_3
g7-3
g7.3

For G7 at the third fret, things are fine.  However, chord names begin to
get long for altered chords:  db_dom_seven_sharp_five_sharp_nine-eight

Maybe someone has a better naming convention?



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Naming-Substitution-Functions-Numbers-and-Special-Characters-tp179806.html
Sent from the User mailing list archive at Nabble.com.

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


Re: Guitar Chord Chart - Align Fret Diagram with Chord Names and Notes

2015-08-20 Thread tone
*Solved*:  Here is one method I have found to align the fret diagram with the
chord names and notes.  It's not elegant, but it is predictable.

I use "\markup{ \concat {\transparent "4" \hspace #0.3 \custom-fret  ... 
}}.  The "4" is the fret number, and the "#0.3" is the space added due to
the fret label horizontal offset "(fret-label-horizontal-offset . -0.3)". 
This offset needs to be adjusted for double digits.  However, it is
predictable.  Here are the adjustments for the G7 chords:



Here is an image I edited with an external program to illustrate the good
alignment:


 

*LilyPond Code for the entire chord chart*


*Files*
ly:   Chord_Chart_good_Spacing.ly

  
pdf:   Chord_Chart_good_Spacing.pdf

  
png:   Chord_Chart_good_Spacing.png

  

Note:  You will need to play with the "\hspace" argument to get the
alignment correct if you are not using LilyJAZZ.

I am still interested in defining a fretboard with fret numbers on both
sides---one of them an invisible (phantom) character.  This is beyond my
level of expertise.  Anyone know how to code this? 



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Guitar-Chord-Chart-Align-Fret-Diagram-with-Chord-Names-and-Notes-tp179772p179815.html
Sent from the User mailing list archive at Nabble.com.

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


Re: Guitar Chord Chart - Align Fret Diagram with Chord Names and Notes

2015-08-20 Thread tone
An elegant solution would be to define a fretboard with fret numbers on both
sides---one of them an invisible (phantom) character.  This is beyond my
level of expertise.  Anyone know how to code this?

Here is another /brute force/ solution using "\concat {\hspace #1.4
\custom-fret  ...  }}", and a couple of questions:



How do I define a smaller command for "\markup{ \concat {\hspace #1.4
\custom-fret #"x;x;5;4;6;x;" "" "" "1" "3" \with-flat "7" "" "" }}"?  Where
do I put that command in my LilyPond code?  For example:



Then use:


Any better ideas? 



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Guitar-Chord-Chart-Align-Fret-Diagram-with-Chord-Names-and-Notes-tp179772p179804.html
Sent from the User mailing list archive at Nabble.com.

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


Re: Naming Substitution Functions - Numbers and Special Characters

2015-08-22 Thread tone
Thanks Thomas.  Putting the chord names in quotes seems to let me use any
characters I want.  Per your suggestion, I define

and recall the definitions with


Compiles fine (complete code below)

 

*Complete LilyPond Code*


*Files*
ly:   numbers_and_characters.ly
  
pdf:   numbers_and_characters.pdf
 
 
png:   numbers_and_characters.png
 
 



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Naming-Substitution-Functions-Numbers-and-Special-Characters-tp179806p179961.html
Sent from the User mailing list archive at Nabble.com.

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