[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Denemo-devel] began real transposition script
From: |
Richard Shann |
Subject: |
Re: [Denemo-devel] began real transposition script |
Date: |
Sun, 09 Nov 2008 12:05:51 +0000 |
On Sat, 2008-11-08 at 09:58 -0600, Jeremiah Benham wrote:
> > transposition - a good place to look might be the LilyPond source
> > tarball.
>
> I am looking at it but it may take some time. The transpose funtion
> seems to be written in c++.
I suspect that if you get an older tarball (e.g. LilyPond 1.6.5) you
will find it written in Scheme, based on the fact that I twice had to
tweak the figured bass code in Scheme, and now it has vanished into the
C++ swamp.
There is no harm in writing the actual transposition algorithm in C if
it is easier. The only compelling reason for using Scheme would be if it
was doing things (like transformation of 12-tone music) that people
might want to do in different ways. Scheme would then allow them to
tweak the algorithm to get the effect they wanted. But for conventional
transposition the output note for a given input note is universally
agreed, so that there is no reason for someone to want to tweak it once
it is working.
Richard
Re: [Denemo-devel] began real transposition script, Jeremiah Benham, 2008/11/08