lilypond-user
[Top][All Lists]
Advanced

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

Re: question about transposing an interval of a 4th


From: Johan Vromans
Subject: Re: question about transposing an interval of a 4th
Date: 24 Dec 2008 12:07:47 +0100
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.4

"Carl D. Sorensen" <address@hidden> writes:

> You're right, it would be nice to have this.  And fortunately, we do.

Hurray!

> Please look in the file scm/music-functions.scm. Search for
> music->make-music.

Exactly what I asked for. This is a function I'm sure gonna play with!

> In scheme, it does just what your pseudo-code below does. Except
> that it works in the scheme language mode, which means it works
> slightly differently that your pseudocode.

Of course. The pseudocode only meant to make my intentions clear (and
it worked).

> But a better way to accomplish something like the diatonic transposition
> that started all of this would be to define a function that diatonically
> transposes a single pitch, and apply it to the music with the function
> music-map, which is also defined in scm/music-functions.scm.

Yes, indeed. The music->make-music function is very generic, and has
the advantage of explicitly enumeration all kinds of things one can
encounter in a music expression.

> My main reason for this email is to address your request for a music
> expression copier, and show how in general one would play with a
> music expression.

For which I'm very grateful.
Stay tuned for nice examples of (ab)using it ;)

-- Johan




reply via email to

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