pitchtypes.spelled_array.asi

pitchtypes.spelled_array.asi(things, things2=None)

A quick way to construct a spelled-interval array. Takes an array-like of strings or spelled intervals, or two array-likes of integers (fifths and internal/dependent octaves).

Parameters:
  • things – an array-like of strings / fifths (integers) / SpelledInterval

  • things2 – an array-like of dependent octaves (integers), when providing fifths in the first parameter

Returns:

a spelled-interval array of the same shape as the input