On 26/02/17 14:05, Thomas Morley wrote:
> 2017-02-26 14:34 GMT+01:00 Anthony Youngman <antli...@youngman.org.uk>:
>>
>>
>> On 26/02/17 11:32, Thomas Morley wrote:
>>>
>>> 2017-02-26 12:12 GMT+01:00 Anthony Youngman <antli...@youngman.org.uk>:
> 
>>>> I wrote some code which I submitted to lilypond to handle guitar capos.
> 
>>> Do we have a tracker-issue for it?
> 
>> I don't know. But I'm attaching the patches.
> 
> Thanks for the patches, I may have a look
> 
> I think it's
> https://sourceforge.net/p/testlilyissues/issues/1742/
> Rietveld:
> https://codereview.appspot.com/4800051/
> 
I'm sure I should have more stuff around than this, I'm looking for it.
But this is a minimal example of an input file and the output.

I know what I wanted was for the user to be able to put "\capo 3" at the
start of their .ly file, and it would print the capo setting and also
set the chordmode property so the chords were printed correctly.

Cheers,
Wol

\version "2.14.0"

\header{
  texidoc="Properties capoPitch, capoVertical: display chordnames, suitably 
transposed for a guitar capo, either in a line or one above the other.
"
}

<<
  \new ChordNames \chordmode {
    c1
    g1
    c1
    g1
    c1
    g1
  }
  \chordmode {
    c1
    g1
    \set ChordNames.capoPitch = #(ly:make-pitch 0 -2 -1/2)
    c1
    g1
    \set ChordNames.capoVertical = ##t
    c1
    g1
  }
>>

Attachment: sample.pdf
Description: Adobe PDF document

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

Reply via email to