X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Documentation%2Fsnippets%2Ffretboards-alternate-tables.ly;h=845835041186ac65d261029089832abf74314fc3;hb=e357ddf4ac442cd6fcd976516cf9f775d559094b;hp=25b9b07cc176870bce60a0a6fa83b86306c52fbe;hpb=8fbc1ac88d969b8ce2338fc1cefbf9708b7434f3;p=lilypond.git diff --git a/Documentation/snippets/fretboards-alternate-tables.ly b/Documentation/snippets/fretboards-alternate-tables.ly index 25b9b07cc1..8458350411 100644 --- a/Documentation/snippets/fretboards-alternate-tables.ly +++ b/Documentation/snippets/fretboards-alternate-tables.ly @@ -1,8 +1,10 @@ -% Do not edit this file; it is automatically -% generated from Documentation/snippets/new -% This file is in the public domain. -%% Note: this file works from version 2.13.36 -\version "2.13.36" +%% DO NOT EDIT this file manually; it is automatically +%% generated from LSR http://lsr.di.unimi.it +%% Make any changes in LSR itself, or in Documentation/snippets/new/ , +%% and then run scripts/auxiliar/makelsr.py +%% +%% This file is in the public domain. +\version "2.18.0" \header { lsrtags = "fretted-strings" @@ -11,28 +13,34 @@ Alternate fretboard tables can be created. These would be used in order to have alternate fretboards for a given chord. -In order to use an alternate fretboard table, the table must first -be created. Fretboards are then added to the table. +In order to use an alternate fretboard table, the table must first be +created. Fretboards are then added to the table. -The table to be used in displaying predefined fretboards is selected -by the property @code{\\predefinedDiagramTable}. -" +The created fretboard table can be blank, or it can be copied from an +existing table. - doctitle = "Alternate fretboard tables" -} % begin verbatim +The table to be used in displaying predefined fretboards is selected by +the property @code{\\predefinedDiagramTable}. +" + doctitle = "Fretboards alternate tables" +} % begin verbatim \include "predefined-guitar-fretboards.ly" -#(define custom-fretboard-table-one (make-hash-table 101)) +% Make a blank new fretboard table +#(define custom-fretboard-table-one (make-fretboard-table)) -#(define custom-fretboard-table-two (make-hash-table 101)) +% Make a new fretboard table as a copy of default-fret-table +#(define custom-fretboard-table-two (make-fretboard-table default-fret-table)) +% Add a chord to custom-fretboard-table-one \storePredefinedDiagram #custom-fretboard-table-one \chordmode{c} #guitar-tuning "3-(;3;5;5;5;3-);" +% Add a chord to custom-fretboard-table-two \storePredefinedDiagram #custom-fretboard-table-two \chordmode{c} #guitar-tuning @@ -40,27 +48,33 @@ by the property @code{\\predefinedDiagramTable}. << \chords { - c1 | - c1 | - c1 + c1 | d1 | + c1 | d1 | + c1 | d1 | } \new FretBoards { \chordmode { \set predefinedDiagramTable = #default-fret-table - c1 + c1 | d1 | \set predefinedDiagramTable = #custom-fretboard-table-one - c1 + c1 | d1 | \set predefinedDiagramTable = #custom-fretboard-table-two - c1 + c1 | d1 | } } \new Staff { \clef "treble_8" - \chordmode { - c1 | - c1 | - c1 - } + << + \chordmode { + c1 | d1 | + c1 | d1 | + c1 | d1 | + } + { + s1_\markup "Default table" | s1 | + s1_\markup \column {"New table" "from empty"} | s1 | + s1_\markup \column {"New table" "from default"} | s1 | + } + >> } >> -