Re: Any way to get "optional" chords?
On 01.12.2016 01:14, Don Gingrich wrote: I'd be happy to have brackets, parentheses, See also this thread from a month ago http://lists.gnu.org/archive/html/lilypond-user/2016-10/msg00565.html Cheers, Robin ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Any way to get "optional" chords?
> One problem that I'm currently encountering is dealing with optional > chords. (The chord letters above the staff for guitar players.) These > are generally shown in either parentheses or square brackets. Is there > a way to handle several arbitrary chord names differently on a score? > By this I mean, for example, just this D, but not the others. > Here is a solution from the german forum http://www.lilypondforum.de/index.php?action=profile;area=showposts;u=54 There is a \paren command for a single chord, and the pair of \leftParen \rightParen for multiple chords. Note that the right paren command comes before the last chord. \version "2.19.15" #(define (parenthesis-ignatzek-chord-names in-pitches bass inversion context) (markup #:line ( "(" (ignatzek-chord-names in-pitches bass inversion context) ")" ))) #(define (left-parenthesis-ignatzek-chord-names in-pitches bass inversion context) (markup #:line ( "(" (ignatzek-chord-names in-pitches bass inversion context) ))) #(define (right-parenthesis-ignatzek-chord-names in-pitches bass inversion context) (markup #:line ( (ignatzek-chord-names in-pitches bass inversion context) ")" ))) paren = #(define-music-function (parser location griffe) (ly:music?) #{ \set chordNameFunction = #parenthesis-ignatzek-chord-names $griffe \set chordNameFunction = #ignatzek-chord-names #}) leftParen = #(define-music-function (parser location griffe) (ly:music?) #{ \set chordNameFunction = #left-parenthesis-ignatzek-chord-names $griffe \set chordNameFunction = #ignatzek-chord-names #}) rightParen = #(define-music-function (parser location griffe) (ly:music?) #{ \set chordNameFunction = #right-parenthesis-ignatzek-chord-names $griffe \set chordNameFunction = #ignatzek-chord-names #}) \new ChordNames \chordmode { c2:maj7 \paren a:7 | d:m g:7 | c1 | \leftParen es4:m7 aes:7 d:m \rightParen g:7 } HTH, David Elaine Alt 415 . 341 .4954 <%28415%29%20341-4954> "*Confusion is highly underrated*" ela...@flaminghakama.com self-immolation.info skype: flaming_hakama Producer ~ Composer ~ Instrumentalist -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Any way to get "optional" chords?
I produce both lead sheets with chords and lyrics and melody lineswith chords for dance music. The original material is often hand engravedand hard to read or in the wrong key -- hence the re-engraving. One problem that I'm currently encountering is dealing with optionalchords. (The chord letters above the staff for guitar players.) These are generally shown in either parentheses or square brackets. Is therea way to handle several arbitrary chord names differently on a score?By this I mean, for example, just this D, but not the others. I'd be happy to have brackets, parentheses, a different colour or evenitalic instead of a regular font -- just some way to show that *this* chordis an exception. And it may not be possible, though I'd be surprised.I couldn't find it in the documentation, though. But I may not have usedthe correct search terms. Thanks, -Don ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Optional chords
Thank you all for the replies. Problem solved. Best regards -- herbert.liec...@thinx.ch, ThinX AG, Bielstrasse 69, CH-4500 Solothurn Tel +41 (0)32 623 81 66, Mobile +41 (0)76 334 81 66, http://www.thinx.ch ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Optional chords
Herbert Liechti wrote: In Jazz notation you find often chords symbol in parenthesis (see the attached picture for an example). It this case it indicates what to play when doing a turnaround in other cases it indicates an alternative to the standard chords. For a quick pointer to an old function, look up stencilCN.ly in http://lists.gnu.org/archive/html/lilypond-user/2012-09/msg00183.html Copy over the besideCN definition and run it through convert-ly.py. The example for your case is in bar 2 of the demo, i.e. \besideCN #LEFT "(" g2:m7 \besideCN #RIGHT ")" c2:7 The code is a bit clumsy because it harks from when you couldn't usefully override the text property. But it does leave the chord name in its original position, which some other methods don't. Cheers, Robin ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Optional chords
On Fri, 2016-10-28 at 11:56 +0100, Richard Shann wrote: > On Fri, 2016-10-28 at 10:43 +0200, Herbert Liechti wrote: > > Hi > > > > > > In Jazz notation you find often chords symbol in parenthesis (see the > > attached picture for an example). It this case it indicates what to > > play when doing a turnaround in other cases it indicates an > > alternative to the standard chords. > > > > > > Is there a way to do that in lilypond? If found no hints in the > > snippets and documentation. I use this quite often. > > \parenthesize4 > > I got this from Denemo's output for the "Parenthesize Chord" command... That doesn't do several chords in one parenthesis, I looked at http://lsr.di.unimi.it/LSR/Snippet?id=902 and cooked up this example: startParenthesis = { \once \override ParenthesesItem.stencils = #(lambda (grob) (let ((par-list (parentheses-item::calc-parenthesis-stencils grob))) (list (car par-list) point-stencil ))) } endParenthesis = { \once \override ParenthesesItem.stencils = #(lambda (grob) (let ((par-list (parentheses-item::calc-parenthesis-stencils grob))) (list point-stencil (cadr par-list } %% Example: \new ChordNames { \override ParenthesesItem.font-size = #5 \startParenthesis \parenthesize d' e' f' \endParenthesis \parenthesize g' } HTH Richard > > Richard > > > > > > > Thanks and best regards > > herbert > > -- > > herbert.liec...@thinx.ch, ThinX AG, Bielstrasse 69, CH-4500 > > Solothurn > > Tel +41 (0)32 623 81 66, Mobile +41 (0)76 334 81 66, > > http://www.thinx.ch > > > > ___ > > lilypond-user mailing list > > lilypond-user@gnu.org > > https://lists.gnu.org/mailman/listinfo/lilypond-user > > > > ___ > lilypond-user mailing list > lilypond-user@gnu.org > https://lists.gnu.org/mailman/listinfo/lilypond-user ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Optional chords
Hi Herbert, several years ago, someone in the German lilypond forum posted a solution: http://www.lilypondforum.de/index.php?action=profile;area=showposts;u=54 This can easily be adjusted to draw parentheses only on the left or right side: % - #(define (parenthesis-ignatzek-chord-names in-pitches bass inversion context) (markup #:line ( "(" (ignatzek-chord-names in-pitches bass inversion context) ")" ))) #(define (left-parenthesis-ignatzek-chord-names in-pitches bass inversion context) (markup #:line ( "(" (ignatzek-chord-names in-pitches bass inversion context) ))) #(define (right-parenthesis-ignatzek-chord-names in-pitches bass inversion context) (markup #:line ( (ignatzek-chord-names in-pitches bass inversion context) ")" ))) paren = #(define-music-function (parser location griffe) (ly:music?) #{ \set chordNameFunction = #parenthesis-ignatzek-chord-names $griffe \set chordNameFunction = #ignatzek-chord-names #}) leftParen = #(define-music-function (parser location griffe) (ly:music?) #{ \set chordNameFunction = #left-parenthesis-ignatzek-chord-names $griffe \set chordNameFunction = #ignatzek-chord-names #}) rightParen = #(define-music-function (parser location griffe) (ly:music?) #{ \set chordNameFunction = #right-parenthesis-ignatzek-chord-names $griffe \set chordNameFunction = #ignatzek-chord-names #}) \new ChordNames \chordmode { \paren f1:maj7 \leftParen g2:m7 \rightParen c2:7 } % - Cheers, Klaus -- View this message in context: http://lilypond.1069038.n5.nabble.com/Optional-chords-tp195806p195817.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
Re: Optional chords
On Fri, 2016-10-28 at 10:43 +0200, Herbert Liechti wrote: > Hi > > > In Jazz notation you find often chords symbol in parenthesis (see the > attached picture for an example). It this case it indicates what to > play when doing a turnaround in other cases it indicates an > alternative to the standard chords. > > > Is there a way to do that in lilypond? If found no hints in the > snippets and documentation. I use this quite often. \parenthesize4 I got this from Denemo's output for the "Parenthesize Chord" command... Richard > > > Thanks and best regards > herbert > -- > herbert.liec...@thinx.ch, ThinX AG, Bielstrasse 69, CH-4500 > Solothurn > Tel +41 (0)32 623 81 66, Mobile +41 (0)76 334 81 66, > http://www.thinx.ch > > ___ > lilypond-user mailing list > lilypond-user@gnu.org > https://lists.gnu.org/mailman/listinfo/lilypond-user ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Optional chords
Hi In Jazz notation you find often chords symbol in parenthesis (see the attached picture for an example). It this case it indicates what to play when doing a turnaround in other cases it indicates an alternative to the standard chords. Is there a way to do that in lilypond? If found no hints in the snippets and documentation. I use this quite often. Thanks and best regards herbert -- herbert.liec...@thinx.ch, ThinX AG, Bielstrasse 69, CH-4500 Solothurn Tel +41 (0)32 623 81 66, Mobile +41 (0)76 334 81 66, http://www.thinx.ch ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user