[Top][All Lists]

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

Re: Black mensural notation

From: Reinhold Kainhofer
Subject: Re: Black mensural notation
Date: Tue, 4 Jan 2011 14:28:29 +0100
User-agent: KMail/1.13.5 (Linux/2.6.35-24-generic; KDE/4.5.4; i686; ; )

Am Dienstag, 4. Januar 2011, um 12:55:25 schrieb Benkő Pál:
> I'll read your docs carefully (my first impression is: it's
> absolutely stunning), but in the meantime I want to let you
> know that I'm working on white mensural notation, and I've implemented
> a preliminary version of coloratio (i.e. black notes), including
> ligaturae.  these patches are not yet submitted (first try was
> ), but I'll do so soon.

Just a short comment (I didn't really read your mail back then, to be honest):

The flags are hardcoded to appear only for unbeamed notes with duration_log >=3 
(i.e. 1/8 or shorter). The culprit is the Stem::flag function, which should be 
made more flexible in that regard (in particular, we could call the callback 
function also for longer notes, if we make sure the callback immediately 
returns an empty stencil):

Stem::flag (Grob *me)
  int log = duration_log (me);
  if (log < 3
      || unsmob_grob (me->get_object ("beam")))
    return Stencil ();

  if (!is_normal_stem (me))
    return Stencil ();

  // This get_property call already evaluates the scheme function with
  // the grob passed as argument! Thus, we only have to check if a valid
  // stencil is returned.
  SCM flag_style_scm = me->get_property ("flag");
  if (Stencil *flag = unsmob_stencil (flag_style_scm)) {
    return *flag;
  } else {
    return Stencil ();


Reinhold Kainhofer, address@hidden,
 * Financial & Actuarial Math., Vienna Univ. of Technology, Austria
 *, DVR: 0005886
 * LilyPond, Music typesetting,

reply via email to

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