Re: [frogs] Fw: Fw: Pentatonic Diatonic Transposition?

[ Thread Index | Date Index | More lilynet.net/frogs Archives ]



Trevor Daniels wrote Saturday, January 29, 2011 10:01 PM

Ian Hulin wrote Saturday, January 29, 2011 8:44 PM

On 29/01/11 18:45, Trevor Daniels wrote:

Mike Ellis sent me his modal transpose code, now extended to include a couple of other functions. See his note below and tarball attached. I placed modal-transform.scm in /scm and added the three functions in modal-transform-init.ly to ly/music-functions-init.ly, both in my Windows Lily GUB release, and tried compiling his regression test. I
get the error:

unbound variable: make-modal-transposer

This is a public function defined in modal-transform.scm.

Just to be sure I fired up Ubuntu, make the same changes to git and
rebuilt LilyPond.  As expected, I get the same error.

What am I missing?

Trevor

Here's a guess. Is scm/modal-transform-init.scm loaded by lily.scm in
the list where all the others are loaded using ly:load?

Good guess! That put me on the right track. Adding modal-transform.scm to the list in lily.scm is one thing that needs to be done. Then I had to delete (define-module (scm modal-transpose)) which was at the start
of modal-transform.scm.  Then the test compiled successfully.

But one puzzle remains.  At the end of the log file is:
...
Layout output to `modal-transpose.ps'...
Converting to `./modal-transpose.pdf'...
success: Compilation successfully completed
WARNING: (lily): `_' imported from both (lily) and (scm ps-to-png)

Can anyone suggest why the warning appears?

OK, I found it.  modal-transform.scm contained (use-modules (lily)).
Deleting this removed the warning and I now get a clean compile.

On to sorting out the formatting ...

Trevor



---
----
Join the Frogs!


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/