[Top][All Lists]

[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: 23 Dec 2008 11:18:59 +0100
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.4

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

> Examples of how LilyPond uses scheme are found in [...]

It would be nice to have a boilerplate scheme function that processes
an arbitrary music expression and returns a new expression that is an
identical copy of the original expression.

In some arbitrary pseudo-code:

  function X takes music-expression Y returns music-expression
    new Z
    for each element of Y
      if element is note
        append note to Z
      if element is rest
        append rest to Z
      ... maybe some more cases ...
        append element to Z

    return Z

This would make it easy to experiment with manipulation of music
expressions. In Chip's case:

      if element is note
        subtrackt 4 from pitch
        append note to Z

-- Johan

reply via email to

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