MusicTransform
MusicTransform[music, transformation]
MusicTransform[music, {transformation, parameters}]
MusicTransform[transformation]applies a symbolic transformation to a music object. The one-argument form is an operator that can be mapped over music expressions.
Available transformations depend on the object. Common operations include transposition, pitch sorting, accidental normalization, trimming, combining and separating voices.
Examples
Transpose a note by seven semitones:
MusicTransform[
MusicNote["C4"],
{"Transpose", Quantity[7, IndependentUnit["semitones"]]}
]Use the operator form:
MusicTransform[
{"Transpose", Quantity[7, IndependentUnit["semitones"]]}
] /@ {
MusicNote["C4"],
MusicChord["DMinor"]
}Query transformations available for an object:
MusicTransform[MusicScore[{"C4"}], "Properties"]See the official Wolfram Language reference for supported transformations and parameters.