lilypond-user
[Top][All Lists]
Advanced

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

Re: adding common guitar chords


From: Federico Bruni
Subject: Re: adding common guitar chords
Date: Mon, 13 Feb 2017 13:43:19 +0100

Il giorno dom 12 feb 2017 alle 22:16, Julien Cubizolles <address@hidden> ha scritto:
Hello list, I'm very new to lilypond so please forgive me if what I'm asking is obvious but I needed to type some chords commonly used on a guitar: for instance a g major chord using all 6 chords would be played with fingers at frets 355433 (from the bass). In chord mode, I could only achieve it with the following --8<---------------cut here---------------start------------->8--- \chordmode {\set TabStaff.minimumFret = #2 \set TabStaff.restrainOpenStrings = ##t g,,4:16.8.10.12.15^3.7.9.11.13} --8<---------------cut here---------------end--------------->8--- That's a lot to type for something so common. Is there a way to define such a chord and name it (with the "full" suffix for example) so that in chordmode one could use g:full, c:full and so on ? Maybe there is already a snippet for it but I couldn't find it so far. Thanks for your help,

Hi Julien

This is another (simpler) way. I've commented with % what is not needed:

\version "2.19.54"
%\include "predefined-guitar-fretboards.ly"

myChords = \relative {
 \set minimumFret = #3
 <g, d' g b d g>1
}

<<
 \new ChordNames {
   \chordmode { g1 }
 }
 \new FretBoards {
   %\set FretBoards.minimumFret = #3
   \myChords
 }
 \new TabStaff {
   %\set TabStaff.minimumFret = #3
   \myChords
 }
>>







reply via email to

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