lilypond-devel
[Top][All Lists]
Advanced

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

Re: Add N.C. entry to ChordNames context.


From: Neil Puttock
Subject: Re: Add N.C. entry to ChordNames context.
Date: Wed, 13 May 2009 22:15:00 +0100

2009/5/12 Carl D. Sorensen <address@hidden>:

> I think I need to create chord_name_ in two different places, because in one
> place the event is notes_[0] (if I have a chord), and in the other it's
> rest_event_ (if I have a rest).  But all the other stuff can avoid
> duplication, I think.

You could use the conditional operator:

chord_name_ = make_item ("ChordName", rest_ ? rest_->self_scm () :
notes_[0]->self_scm ());

Regards,
Neil




reply via email to

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