<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.lilypond.community/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Taifas</id>
	<title>LilyPond wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.lilypond.community/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Taifas"/>
	<link rel="alternate" type="text/html" href="https://wiki.lilypond.community/wiki/Special:Contributions/Taifas"/>
	<updated>2026-05-01T09:36:57Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.44.2</generator>
	<entry>
		<id>https://wiki.lilypond.community/index.php?title=Creating_guitar_scales_on_fretboards&amp;diff=6412</id>
		<title>Creating guitar scales on fretboards</title>
		<link rel="alternate" type="text/html" href="https://wiki.lilypond.community/index.php?title=Creating_guitar_scales_on_fretboards&amp;diff=6412"/>
		<updated>2026-03-01T09:03:11Z</updated>

		<summary type="html">&lt;p&gt;Taifas: D major with 2 sharps&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This snippet creates fretboards with guitar scales.&lt;br /&gt;
&lt;br /&gt;
The syntax is&lt;br /&gt;
&lt;br /&gt;
\scale-diagramm #&#039;( (string1 fret1) (string2 fret2) ... ) #notesinscale #size&lt;br /&gt;
&lt;br /&gt;
For example for a c pentatonic scale (first six notes)&lt;br /&gt;
&lt;br /&gt;
\scale-diagramm #&#039;((5 3) (5 5 ) (4 3) (4 5) (3 2) (3 5)) #5 #1.5&lt;br /&gt;
&lt;br /&gt;
you can wrap this up in a markup command for building up a list of scales&lt;br /&gt;
&lt;br /&gt;
cpenta = \markup \scale-diagramm #&#039;((5 3) (5 5 ) (4 3) (4 5) (3 2) (3 5)) #5 #1.5&lt;br /&gt;
&lt;br /&gt;
and use it like this&lt;br /&gt;
&lt;br /&gt;
c^\cpenta d f g a c&lt;br /&gt;
&lt;br /&gt;
The snippet doesn&#039;t show it, but the (1) position of the scale is inverted&lt;br /&gt;
&lt;br /&gt;
&amp;lt;lilypond version=&amp;quot;2.24&amp;quot; full&amp;gt;&lt;br /&gt;
%% http://lsr.di.unimi.it/LSR/Item?id=790&lt;br /&gt;
&lt;br /&gt;
\paper { tagline = ##f }&lt;br /&gt;
&lt;br /&gt;
%here starts the snippet:&lt;br /&gt;
&lt;br /&gt;
% Helper function to invert first elements of scales&lt;br /&gt;
#(define (inverted num mod)&lt;br /&gt;
   (if (zero? (modulo num mod))&lt;br /&gt;
         (list &#039;1 &#039;inverted)&lt;br /&gt;
         (list (1+ (modulo num mod)))))&lt;br /&gt;
&lt;br /&gt;
% Expand the (string fret) pairs to valid lilypond syntax&lt;br /&gt;
#(define (fret-from-list l1 l2 n1)&lt;br /&gt;
   (if  (null? l1) &lt;br /&gt;
        l2 &lt;br /&gt;
        (fret-from-list (cdr l1) (append l2 (list (append &#039;(place-fret) (car l1) (inverted (length l2) n1)))) n1)))&lt;br /&gt;
&lt;br /&gt;
% arg1 is the list of (string fret) pairs making up the scale&lt;br /&gt;
% arg2 is the number of unique tones in the scale (i.e. 7 for major scale, 5 for pentatonic)&lt;br /&gt;
% arg3 is a scale factor used to enlarge the fret diagram&lt;br /&gt;
#(define-markup-command (scale-diagramm layout props arg1 arg2 arg3) (list? integer? number?)&lt;br /&gt;
   (interpret-markup layout props&lt;br /&gt;
    (markup&lt;br /&gt;
     (#:override (cons &#039;size arg3 )&lt;br /&gt;
      (#:override &#039;(fret-diagram-details&lt;br /&gt;
                    . (&lt;br /&gt;
                       (finger-code . in-dot)&lt;br /&gt;
                       (number-type . arabic)&lt;br /&gt;
                       (label-dir   . -1)&lt;br /&gt;
                       (orientation . landscape)&lt;br /&gt;
                       (dot-radius  . 0.4)&lt;br /&gt;
                       (fret-count  . 8)&lt;br /&gt;
                       (top-fret-thickness . 7)))&lt;br /&gt;
        #:fret-diagram-verbose&lt;br /&gt;
          (fret-from-list arg1 &#039;() arg2))))))&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
cmajor=\markup\scale-diagramm #&#039;((5 3) (5 5) (4 2) (4 3) (4 5) (3 2) (3 4) &lt;br /&gt;
                                 (3 5) (2 3) (2 5) (2 6) (1 3) (1 5) (1 7) (1 8)) #7 #1.0&lt;br /&gt;
&lt;br /&gt;
dmajor=\markup\scale-diagramm #&#039;((5 5) (5 7) (4 4) (4 5) (4 7) (3 4) (3 6) &lt;br /&gt;
                                 (3 7) (2 5) (2 7) (2 8) (1 5) (1 7) (1 9) (1 10)) #7 #1.35&lt;br /&gt;
&lt;br /&gt;
cpenta=\markup\scale-diagramm #&#039;((5 3) (5 5) (4 3) (4 5) (3 2)  &lt;br /&gt;
                                 (3 5) (2 3)  (2 6) (1 3) (1 5)  (1 8)) #5 #1.7&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
\layout {&lt;br /&gt;
  indent = 0&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
\relative c&#039; {&lt;br /&gt;
  c   d^\cmajor e f g^&amp;quot;c Ionic&amp;quot;      a b c d e f g a b c r | \break&lt;br /&gt;
  d,, e^\dmajor fis g a^&amp;quot;d Ionic&amp;quot;      b cis d e fis g a b cis d r | \break&lt;br /&gt;
  c,, d^\cpenta f g a^&amp;quot;c pentatonic&amp;quot; a c d f g a c         |&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/lilypond&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Fretted strings]]&lt;br /&gt;
[[Category:Fretted strings]]&lt;br /&gt;
[[Category:Scheme]]&lt;br /&gt;
[[Category:Pitches]]&lt;br /&gt;
[[Category:Snippet]]&lt;/div&gt;</summary>
		<author><name>Taifas</name></author>
	</entry>
	<entry>
		<id>https://wiki.lilypond.community/index.php?title=Creating_guitar_scales_on_fretboards&amp;diff=6411</id>
		<title>Creating guitar scales on fretboards</title>
		<link rel="alternate" type="text/html" href="https://wiki.lilypond.community/index.php?title=Creating_guitar_scales_on_fretboards&amp;diff=6411"/>
		<updated>2026-03-01T08:56:31Z</updated>

		<summary type="html">&lt;p&gt;Taifas: d ionic: d e f-sharp  g ...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This snippet creates fretboards with guitar scales.&lt;br /&gt;
&lt;br /&gt;
The syntax is&lt;br /&gt;
&lt;br /&gt;
\scale-diagramm #&#039;( (string1 fret1) (string2 fret2) ... ) #notesinscale #size&lt;br /&gt;
&lt;br /&gt;
For example for a c pentatonic scale (first six notes)&lt;br /&gt;
&lt;br /&gt;
\scale-diagramm #&#039;((5 3) (5 5 ) (4 3) (4 5) (3 2) (3 5)) #5 #1.5&lt;br /&gt;
&lt;br /&gt;
you can wrap this up in a markup command for building up a list of scales&lt;br /&gt;
&lt;br /&gt;
cpenta = \markup \scale-diagramm #&#039;((5 3) (5 5 ) (4 3) (4 5) (3 2) (3 5)) #5 #1.5&lt;br /&gt;
&lt;br /&gt;
and use it like this&lt;br /&gt;
&lt;br /&gt;
c^\cpenta d f g a c&lt;br /&gt;
&lt;br /&gt;
The snippet doesn&#039;t show it, but the (1) position of the scale is inverted&lt;br /&gt;
&lt;br /&gt;
&amp;lt;lilypond version=&amp;quot;2.24&amp;quot; full&amp;gt;&lt;br /&gt;
%% http://lsr.di.unimi.it/LSR/Item?id=790&lt;br /&gt;
&lt;br /&gt;
\paper { tagline = ##f }&lt;br /&gt;
&lt;br /&gt;
%here starts the snippet:&lt;br /&gt;
&lt;br /&gt;
% Helper function to invert first elements of scales&lt;br /&gt;
#(define (inverted num mod)&lt;br /&gt;
   (if (zero? (modulo num mod))&lt;br /&gt;
         (list &#039;1 &#039;inverted)&lt;br /&gt;
         (list (1+ (modulo num mod)))))&lt;br /&gt;
&lt;br /&gt;
% Expand the (string fret) pairs to valid lilypond syntax&lt;br /&gt;
#(define (fret-from-list l1 l2 n1)&lt;br /&gt;
   (if  (null? l1) &lt;br /&gt;
        l2 &lt;br /&gt;
        (fret-from-list (cdr l1) (append l2 (list (append &#039;(place-fret) (car l1) (inverted (length l2) n1)))) n1)))&lt;br /&gt;
&lt;br /&gt;
% arg1 is the list of (string fret) pairs making up the scale&lt;br /&gt;
% arg2 is the number of unique tones in the scale (i.e. 7 for major scale, 5 for pentatonic)&lt;br /&gt;
% arg3 is a scale factor used to enlarge the fret diagram&lt;br /&gt;
#(define-markup-command (scale-diagramm layout props arg1 arg2 arg3) (list? integer? number?)&lt;br /&gt;
   (interpret-markup layout props&lt;br /&gt;
    (markup&lt;br /&gt;
     (#:override (cons &#039;size arg3 )&lt;br /&gt;
      (#:override &#039;(fret-diagram-details&lt;br /&gt;
                    . (&lt;br /&gt;
                       (finger-code . in-dot)&lt;br /&gt;
                       (number-type . arabic)&lt;br /&gt;
                       (label-dir   . -1)&lt;br /&gt;
                       (orientation . landscape)&lt;br /&gt;
                       (dot-radius  . 0.4)&lt;br /&gt;
                       (fret-count  . 8)&lt;br /&gt;
                       (top-fret-thickness . 7)))&lt;br /&gt;
        #:fret-diagram-verbose&lt;br /&gt;
          (fret-from-list arg1 &#039;() arg2))))))&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
cmajor=\markup\scale-diagramm #&#039;((5 3) (5 5) (4 2) (4 3) (4 5) (3 2) (3 4) &lt;br /&gt;
                                 (3 5) (2 3) (2 5) (2 6) (1 3) (1 5) (1 7) (1 8)) #7 #1.0&lt;br /&gt;
&lt;br /&gt;
dmajor=\markup\scale-diagramm #&#039;((5 5) (5 7) (4 4) (4 5) (4 7) (3 4) (3 6) &lt;br /&gt;
                                 (3 7) (2 5) (2 7) (2 8) (1 5) (1 7) (1 9) (1 10)) #7 #1.35&lt;br /&gt;
&lt;br /&gt;
cpenta=\markup\scale-diagramm #&#039;((5 3) (5 5) (4 3) (4 5) (3 2)  &lt;br /&gt;
                                 (3 5) (2 3)  (2 6) (1 3) (1 5)  (1 8)) #5 #1.7&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
\layout {&lt;br /&gt;
  indent = 0&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
\relative c&#039; {&lt;br /&gt;
  c   d^\cmajor e f g^&amp;quot;c Ionic&amp;quot;      a b c d e f g a b c r | \break&lt;br /&gt;
  d,, e^\dmajor fs g a^&amp;quot;d Ionic&amp;quot;      b c d e f g a b c d r | \break&lt;br /&gt;
  c,, d^\cpenta f g a^&amp;quot;c pentatonic&amp;quot; a c d f g a c         |&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/lilypond&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Fretted strings]]&lt;br /&gt;
[[Category:Fretted strings]]&lt;br /&gt;
[[Category:Scheme]]&lt;br /&gt;
[[Category:Pitches]]&lt;br /&gt;
[[Category:Snippet]]&lt;/div&gt;</summary>
		<author><name>Taifas</name></author>
	</entry>
	<entry>
		<id>https://wiki.lilypond.community/index.php?title=Talk:Fret_diagrams&amp;diff=6329</id>
		<title>Talk:Fret diagrams</title>
		<link rel="alternate" type="text/html" href="https://wiki.lilypond.community/index.php?title=Talk:Fret_diagrams&amp;diff=6329"/>
		<updated>2026-02-14T08:19:43Z</updated>

		<summary type="html">&lt;p&gt;Taifas: /* Thank you */ new section&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Thank you ==&lt;br /&gt;
&lt;br /&gt;
It helped my to understand the ways of impementing and noting custom chord-fretboards. Thank you for posting. Very valuable and structured post. [[User:Taifas|Taifas]] ([[User talk:Taifas|talk]]) 08:19, 14 February 2026 (UTC)&lt;/div&gt;</summary>
		<author><name>Taifas</name></author>
	</entry>
</feed>