[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Lilypond-auto] Issue 185 in lilypond: RhythmicStaff squishing chord
From: |
lilypond |
Subject: |
Re: [Lilypond-auto] Issue 185 in lilypond: RhythmicStaff squishing chords should produce single notes |
Date: |
Fri, 20 Jul 2012 19:43:32 +0000 |
Comment #2 on issue 185 by address@hidden: RhythmicStaff squishing
chords should produce single notes
http://code.google.com/p/lilypond/issues/detail?id=185
Workaround: pass your music expression through a function that discards all
notes but one from chords before putting it on a RhythmicStaff. Several
such functions have been posted on the mailing list, for example:
% From
<http://lists.gnu.org/archive/html/lilypond-user/2012-07/msg00244.html>
% by David Kastrup. For a variant that works with older versions check
% <http://lists.gnu.org/archive/html/lilypond-user/2011-11/msg00196.html>
% by Thomas Morley.
thinout =
#(define-music-function (parser location music) (ly:music?)
(for-some-music
(lambda (m)
(and (music-is-of-type? m 'event-chord)
(let ((elts (ly:music-property m 'elements)))
(if (pair? elts)
(set-cdr!
elts
(filter!
(lambda (m) (not (ly:music-property m 'duration #f)))
(cdr elts))))
#t)))
music)
music)
\new RhythmicStaff
\thinout
\relative c { <d, g d'>4 e f8 g a4 <d b g>2. c4 d4. e8 f4 g }
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [Lilypond-auto] Issue 185 in lilypond: RhythmicStaff squishing chords should produce single notes,
lilypond <=