X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=ly%2Fpredefined-fretboards-init.ly;h=bec581ae6603a7ce5491873b8e84f4dbb641dfdc;hb=c39d188d28fdc84cef8cbaea7b8d6e2fb718c30f;hp=ccbcf321ce58b5a87da52c8b7a2fbbd35ce3e096;hpb=1c846b2c2348b4e0ca4a3c2e8fb267047ba2d203;p=lilypond.git diff --git a/ly/predefined-fretboards-init.ly b/ly/predefined-fretboards-init.ly index ccbcf321ce..bec581ae66 100644 --- a/ly/predefined-fretboards-init.ly +++ b/ly/predefined-fretboards-init.ly @@ -1,6 +1,6 @@ %%%% This file is part of LilyPond, the GNU music typesetter. %%%% -%%%% Copyright (C) 2008--2011 Carl D. Sorensen +%%%% Copyright (C) 2008--2014 Carl D. Sorensen %%%% %%%% LilyPond is free software: you can redistribute it and/or modify %%%% it under the terms of the GNU General Public License as published by @@ -15,7 +15,7 @@ %%%% You should have received a copy of the GNU General Public License %%%% along with LilyPond. If not, see . -\version "2.13.36" +\version "2.16.0" % chord-shape-table is a hash-table of chord shapes % in the form of diagram-descriptions that can be @@ -30,14 +30,13 @@ % chord-shape-table addChordShape = -#(define-music-function (parser location key-symbol tuning shape-definition) +#(define-void-function (parser location key-symbol tuning shape-definition) (symbol? pair? string-or-pair?) (_i "Add chord shape @var{shape-definition} to the @var{chord-shape-table} -hash with the key @var{(cons key-symbol tuning)}.") +hash with the key @code{(cons @var{key-symbol} @var{tuning})}.") (hash-set! chord-shape-table (cons key-symbol tuning) - shape-definition) - (make-music 'SequentialMusic 'void #t)) + shape-definition)) #(define (chord-shape shape-code tuning) (get-chord-shape shape-code tuning chord-shape-table)) @@ -62,7 +61,7 @@ table @code{rest}." % fretboard-table storePredefinedDiagram = -#(define-music-function +#(define-void-function (parser location fretboard-table chord tuning diagram-definition) (hash-table? ly:music? pair? string-or-pair?) (_i "Add predefined fret diagram defined by @var{diagram-definition} @@ -75,5 +74,4 @@ storePredefinedDiagram = diagram-definition))) (hash-set! fretboard-table hash-key - verbose-definition) - (make-music 'SequentialMusic 'void #t))) + verbose-definition)))