lilypond-user
[Top][All Lists]
Advanced

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

Re: notes in brackets


From: Simon Bailey
Subject: Re: notes in brackets
Date: 26 Jun 2002 19:36:25 +0200

thanx mats, that works, but only if i use this construct:

%% PARENTHESES FUNCTION COPIED HERE FROM molecule-hacking.ly

openbracket = {
  \property Voice.NoteHead \override #'molecule-callback
    =
    #(parenthesize-callback Note_head::brew_molecule)
}

closebracket = {
  \property Voice.NoteHead \revert #'molecule-callback
}

% --------------------------------------------------------------------

\score {
  \notes \relative c''' {
    a4
    <{c4} \context Voice = bottom {\openbracket c, \closebracket}> 
  }
}

is there anyway to get this construct a bit neater? i'm not bothered
about typing this a few times, but i was wondering if there's a way to
pass values to a scheme function, say like so (in a bad form of pseudo
code):

function makeBracketChord(noteOne . noteTwo) = {
  <{noteOne} 
    \context Voice = b {
      \openbracket noteTwo \closebracket
      }
    >
}

and then calling in a score context:
\makeBracketChord(c4 . c,)

greetz,
simon.

-- 
Confucius say, man who live in glass house shower in basement.



reply via email to

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