Skip to content

Transposition

transpose(notes, fromRoot, toRoot) shifts a set of notes from one key to another by the semitone distance between the two roots.

transpose

transpose(notes: Note[], fromRoot: Note, toRoot: Note): Note[]

Transposes a set of notes from one key to another. Always transposes the fixed triad [C, E, G] here - pick the roots to shift it between keys.

ResultD, F#, A