transpose
  1. amount

Change the pitch of each value by the given amount. Expects numbers or note strings as values. The amount can be given as a number of semitones or as a string in interval short notation. If you don't care about enharmonic correctness, just use numbers. Otherwise, pass the interval of the form: ST where S is the degree number and T the type of interval with

  • M = major
  • m = minor
  • P = perfect
  • A = augmented
  • d = diminished

Examples intervals:

  • 1P = unison
  • 3M = major third
  • 3m = minor third
  • 4P = perfect fourth
  • 4A = augmented fourth
  • 5P = perfect fifth
  • 5d = diminished fifth
"c2 c3".fast(2).transpose("<0 -2 5 3>".slow(2)).note()
"c2 c3".fast(2).transpose("<1P -2M 4P 3m>".slow(2)).note()

aliases: trans()

parametertype
amount
  • string
  • number
Either number of semitones or interval string.