lilypond-user
[Top][All Lists]
Advanced

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

Re: Extract notes from chords, with silence when there are none


From: Gilles THIBAULT
Subject: Re: Extract notes from chords, with silence when there are none
Date: Thu, 17 Sep 2015 19:37:56 +0200
User-agent: KMail/4.14.5 (Linux/3.19.8-desktop-3.mga5; KDE/4.14.5; x86_64; ; )

> Wrap the whole expression in event-chord-wrap! before handling it.  The
> LSR issue is probably from before issue 2240 changed the representation
> of single notes.
> 
No, it is because "chord.ly" deals only with chords and keeps notes unchanged. 
But yes, event-chord-wrap! is a quick way here to avoid to change all the 
code...

So Chris, the last change you have to make in the code is to change 

line 73 (in \extractNote definition)
(extract-note music n))

by

(extract-note (event-chord-wrap! music) n))

You'll get a { r2 r2 } in Staff 2 and 3 of the snippet.
Well, no very beautiful for a score but will be perfect for Midi.
 
-- 
Gilles



reply via email to

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