maia-util
Version:
Utility math and music functions supporting various applications by Music Artificial Intelligence Algorithms, Inc.
20 lines (19 loc) • 1.22 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = [
// Major triads
[0, 4, 7], [1, 5, 8], [2, 6, 9], [3, 7, 10], [4, 8, 11], [5, 9, 0], [6, 10, 1], [7, 11, 2], [8, 0, 3], [9, 1, 4], [10, 2, 5], [11, 3, 6],
// Dominant 7th triads
[0, 4, 7, 10], [1, 5, 8, 11], [2, 6, 9, 0], [3, 7, 10, 1], [4, 8, 11, 2], [5, 9, 0, 3], [6, 10, 1, 4], [7, 11, 2, 5], [8, 0, 3, 6], [9, 1, 4, 7], [10, 2, 5, 8], [11, 3, 6, 9],
// Minor triads
[0, 3, 7], [1, 4, 8], [2, 5, 9], [3, 6, 10], [4, 7, 11], [5, 8, 0], [6, 9, 1], [7, 10, 2], [8, 11, 3], [9, 0, 4], [10, 1, 5], [11, 2, 6],
// Fully diminished 7th
[0, 3, 6, 9], [1, 4, 7, 10], [2, 5, 8, 11],
// Half diminished 7th
[0, 3, 6, 10], [1, 4, 7, 11], [2, 5, 8, 0], [3, 6, 9, 1], [4, 7, 10, 2], [5, 8, 11, 3], [6, 9, 0, 4], [7, 10, 1, 5], [8, 11, 2, 6], [9, 0, 3, 7], [10, 1, 4, 8], [11, 2, 5, 9],
// Diminished triad
[0, 3, 6], [1, 4, 7], [2, 5, 8], [3, 6, 9], [4, 7, 10], [5, 8, 11], [6, 9, 0], [7, 10, 1], [8, 11, 2], [9, 0, 3], [10, 1, 4], [11, 2, 5],
// Minor 7th
[0, 3, 7, 10], [1, 4, 8, 11], [2, 5, 9, 0], [3, 6, 10, 1], [4, 7, 11, 2], [5, 8, 0, 3], [6, 9, 1, 4], [7, 10, 2, 5], [8, 11, 3, 6], [9, 0, 4, 7], [10, 1, 5, 8], [11, 2, 6, 9]];