[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: notes in brackets
From: |
Han-Wen |
Subject: |
Re: notes in brackets |
Date: |
Fri, 28 Jun 2002 19:18:39 +0200 |
address@hidden writes:
> \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,)
this is possible; write a
(add-bracket-to-chord music)
function in Scheme that transforms
< a b >
to
< a { \property .. b \property .. } >
and do
\apply #add-bracket-to-chord < c b >
check out voicify-music (music-function.scm) for inspiration.
--
Han-Wen Nienhuys | address@hidden | http://www.cs.uu.nl/~hanwen