maia-util
Version:
Utility math and music functions supporting various applications by Music Artificial Intelligence Algorithms, Inc.
27 lines (26 loc) • 1.19 kB
JavaScript
export default [
// Major triads
[], [1, 5 ,8], [2, 6, 9], [3, 7, 10], [4, 8, 11], [5 ,9, 0],
[], [7, 11, 2], [8, 0, 3], [9, 1, 4], [10, 2, 5], [11, 3, 6],
// Dominant 7th triads
[], [1, 5 ,8, 11], [2, 6, 9, 0], [3, 7, 10, 1],
[], [5 ,9, 0, 3], [6, 10, 1, 4], [7, 11, 2, 5],
[], [9, 1, 4, 7], [10, 2, 5 ,8], [11, 3, 6, 9],
// Minor triads
[], [1, 4, 8], [2, 5 ,9], [3, 6, 10], [4, 7, 11], [5 ,8, 0],
[], [7, 10, 2], [8, 11, 3], [9, 0, 4], [10, 1, 5], [11, 2, 6],
// Fully diminished 7th
[], [1, 4, 7, 10], [2, 5 ,8, 11],
// Half diminished 7th
[], [1, 4, 7, 11], [2, 5 ,8, 0], [3, 6, 9, 1],
[], [5 ,8, 11, 3], [6, 9, 0, 4], [7, 10, 1, 5],
[], [9, 0, 3, 7], [10, 1, 4, 8], [11, 2, 5 ,9],
// Diminished triad
[], [1, 4, 7], [2, 5 ,8], [3, 6, 9], [4, 7, 10], [5 ,8, 11],
[], [7, 10, 1], [8, 11, 2], [9, 0, 3], [10, 1, 4],
[],
// Minor 7th
[], [1, 4, 8, 11], [2, 5 ,9, 0], [3, 6, 10, 1],
[], [5 ,8, 0, 3], [6, 9, 1, 4], [7, 10, 2, 5],
[], [9, 0, 4, 7], [10, 1, 5 ,8], [11, 2, 6, 9]
];