lilypond-user
[Top][All Lists]
Advanced

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

transpose to a set of pitches


From: Sirius Barras
Subject: transpose to a set of pitches
Date: Tue, 27 Feb 2018 19:12:24 +0100

I would like to transpose a motif (using \modalTranspose) to a _set_ of different pitches. At the moment this is what I do:

scale = {c d e f g a b}
motif = {c' e' g' c'}
{
  \modalTranspose c e \scale \motif
  \modalTranspose c g \scale \motif
  \modalTranspose c a \scale \motif
}

How can I do something similar to this:

toPitchSet = {e g a}
scale = {c d e f g a b}
motif = {c' e' g' c'}
  \modalTranspose c \toPitchSet \scale \motif
}

Many thanks, S.

reply via email to

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