[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: prall with accidental
From: |
David Kastrup |
Subject: |
Re: prall with accidental |
Date: |
Mon, 21 Jan 2013 21:22:42 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) |
Jérôme Plût <address@hidden> writes:
> Decimo tertio Kalendas Februarias MMXIII scripsit Werner LEMBERG :
>> Yeah, this looks like a good syntax suggestion. Is a Scheme solution
>> possible, or does this need a C++ extension?
>
> It seems that this requires a C++ extension.
> Namely, \key only generates a KeyChangeEvent, so Scheme macros cannot
> access the current key signature.
The key change event changes a context property, and an acknowledger for
the script can pick it up.
> And \key is a C++ primitive, so replacing it with a Scheme function
> will not work.
>
> A nice way to make this work would then be to make the current key
> signature available to Scheme functions and make a generic function
> such as
> b \ornament #'prall { cis }
> and then shortcuts (pralltoo foo) => (ornament #'prall foo) etc.
The key signature is only reliably in place during iteration.
> (By the way, couldn't this lead to mainstreaming articulate.ly ?)
I don't know what you mean by "mainstreaming", but articulate.ly is
licensed differently to LilyPond.
--
David Kastrup
- Re: prall with accidental, (continued)
- Re: prall with accidental, Werner LEMBERG, 2013/01/18
- Re: prall with accidental, Werner LEMBERG, 2013/01/18
- Re: prall with accidental, Kieren MacMillan, 2013/01/18
- Re: prall with accidental, David Kastrup, 2013/01/18
- Re: prall with accidental, Werner LEMBERG, 2013/01/19
- Re: prall with accidental, Jay Anderson, 2013/01/19
- Re: prall with accidental, Thomas Morley, 2013/01/20
- Re: prall with accidental, David Kastrup, 2013/01/20
- Re: prall with accidental, Werner LEMBERG, 2013/01/20
- Re: prall with accidental, Jérôme Plût, 2013/01/21
- Re: prall with accidental,
David Kastrup <=
- Re: prall with accidental, Werner LEMBERG, 2013/01/20