Re: adding common guitar chords

2017-02-15 Thread Julien Cubizolles
Federico Bruni  writes:


> 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
>  1
> }
>
> <<
>  \new ChordNames {
>\chordmode { g1 }
>  }
>  \new FretBoards {
>%\set FretBoards.minimumFret = #3
>\myChords
>  }
>  \new TabStaff {
>%\set TabStaff.minimumFret = #3
>\myChords
>  }

Thanks, for your suggestion. I had tried something similar but I need to
define new Chordname for each root note. I thought it could be
calculated by lilypond once the list of intervalls has been specified
along with the strings to play them with.

Julien.

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


Re: adding common guitar chords

2017-02-15 Thread Julien Cubizolles
David Kastrup  writes:


> We have the required information in predefined fretboards.  Maybe we
> should have a general function for substituting chords with the
> predefined shapes rather than only do that as part of fretboard display.

Yes, that would be nice :-)

Julien.

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


Re: adding common guitar chords

2017-02-13 Thread Federico Bruni
Il giorno dom 12 feb 2017 alle 22:16, Julien Cubizolles 
 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
 1
}

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





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


Re: adding common guitar chords

2017-02-13 Thread David Kastrup
Klaus Blum  writes:

> Hi Julien, 
>
> Julien Cubizolles wrote
>> 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 ? 
>
> you can define your chord by assembling the six "real" pitches:
>
> % --
> g_full = #(define-music-function (parser location) ()
> #{
>   
> #})
>
> {
>   \new TabStaff {
> \chordmode {
>   g1 \g_full g
> }
>   }
> }
> % --

We have the required information in predefined fretboards.  Maybe we
should have a general function for substituting chords with the
predefined shapes rather than only do that as part of fretboard display.

-- 
David Kastrup

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


Re: adding common guitar chords

2017-02-13 Thread Klaus Blum
Hi Julien, 

Julien Cubizolles wrote
> 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 ? 

you can define your chord by assembling the six "real" pitches:

% --
g_full = #(define-music-function (parser location) ()
#{
  <g, d g b d' g'>
#})

{
  \new TabStaff {
\chordmode {
  g1 \g_full g
}
  }
}
% --

Cheers, 
Klaus




--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/adding-common-guitar-chords-tp200057p200058.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


adding common guitar chords

2017-02-13 Thread Julien Cubizolles
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,

Julien.


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