-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathexample-chord-progression-scarborough-fair.js
36 lines (34 loc) · 2.11 KB
/
example-chord-progression-scarborough-fair.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// --------------------------------------------------------------------------
// -- example-chord-progression-scarborough-fair.js
// -- initial author: Renick Bell ([email protected])
// -- initial creation date: Wed Jun 28 10:08:48 AM CST 2023
// -- contributors: Yiler Huang ([email protected]); Steve Wang ([email protected])
// -- license: GPL 3.0
// --------------------------------------------------------------------------
//Generated the values in the scarbrofair QuantizedMap:
function generateScarboroughFairValues (){
let chordProgressionScarboroughFair = [
[{ note: 2, octave: 2 }, { note: 5, octave: 2 }, { note: 9, octave: 2 }], // Dm
[{ note: 2, octave: 2 }, { note: 5, octave: 2 }, { note: 9, octave: 2 }], // Dm
[{ note: 0, octave: 2 }, { note: 4, octave: 2 }, { note: 7, octave: 2 }], // C
[{ note: 0, octave: 2 }, { note: 4, octave: 2 }, { note: 7, octave: 2 }], // C
[{ note: 2, octave: 2 }, { note: 5, octave: 2 }, { note: 9, octave: 2 }], // Dm
[{ note: 2, octave: 2 }, { note: 5, octave: 2 }, { note: 9, octave: 2 }], // Dm
[{ note: 0, octave: 2 }, { note: 4, octave: 2 }, { note: 7, octave: 2 }], // C
[{ note: 0, octave: 2 }, { note: 4, octave: 2 }, { note: 7, octave: 2 }], // C
[{ note: 2, octave: 2 }, { note: 5, octave: 2 }, { note: 9, octave: 2 }], // Dm
[{ note: 2, octave: 2 }, { note: 5, octave: 2 }, { note: 9, octave: 2 }], // Dm
[{ note: 10, octave: 2 }, { note: 2, octave: 2 }, { note: 5, octave: 2 }], // Am
[{ note: 10, octave: 2 }, { note: 2, octave: 2 }, { note: 5, octave: 2 }], // Am
[{ note: 2, octave: 2 }, { note: 5, octave: 2 }, { note: 9, octave: 2 }], // Dm
[{ note: 2, octave: 2 }, { note: 5, octave: 2 }, { note: 9, octave: 2 }], // Dm
[{ note: 0, octave: 2 }, { note: 4, octave: 2 }, { note: 7, octave: 2 }], // C
[{ note: 0, octave: 2 }, { note: 4, octave: 2 }, { note: 7, octave: 2 }] // C
];
return chordProgressionScarboroughFair.map(x => {
return {data: x.map(n => {
n.velocity = randomRange(10, 120)
return n
}), bool: true}
})
}