-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathsampleData.js
66 lines (58 loc) · 2.21 KB
/
sampleData.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
state = {
// global state
instruments = [
{ name: "Drums", soundPreset: "BasicDrumset", mono: null, legato: false, grid:
[
[0, 0, 1, 0, 1, 0, 0, 0, 1, 1, 0, 1, 0, 1, 0, 0],
[0, 0, 1, 0, 1, 0, 0, 0, 1, 1, 0, 1, 0, 1, 0, 0],
[0, 1, 1, 0, 1, 0, 0, 0, 1, 1, 0, 1, 0, 1, 0, 0],
[0, 1, 1, 0, 1, 0, 0, 0, 1, 1, 0, 1, 0, 1, 0, 0],
[0, 1, 1, 0, 1, 0, 0, 0, 1, 1, 0, 1, 0, 1, 0, 0],
[1, 1, 1, 0, 1, 0, 0, 0, 1, 1, 0, 1, 0, 1, 0, 0],
[1, 1, 1, 0, 1, 0, 0, 0, 1, 1, 0, 1, 0, 1, 0, 0],
[1, 1, 1, 0, 1, 0, 0, 0, 1, 1, 0, 1, 0, 1, 0, 0],
],
},
{
name: "Bass", soundPreset: "ClassicBassSynth", mono: true, legato: true, grid:
[ [2], [3], [4], [], [0], [], [], [], [], [2], [], [0], [], [0], [1], [2] ]
},
{ name: "Synth1", soundPreset: "SpaceySynth", mono: false, legato: false, grid:
[ [2, 5], [3, 6], [4, 6], [], [0, 6], [], [], [], [], [2, 5], [], [0, 6], [], [0], [1, 3], [2, 5] ]
},
],
status = {
secsRemaining: 257,
bpm: 120,
isPlaying: true,
},
users = [
{ userId: 1, userName: 'Tom L', instrumentSelected: 2, color: 'blue'},
{ userId: 2, userName: 'Matt Gin', instrumentSelected: 2, color: 'green'},
],
localState = {
localUserId: 1,
localScale: 0,
// localOctaveStart: 'C2'
}
}
const scales = [
['C', 'D', 'E', 'F', 'G', 'A', 'B'],
['C', 'D', 'Eb', 'F', 'G', 'A', 'Bb'],
['C', 'Db', 'Eb', 'F', 'G', 'Ab', 'B'],
['C', 'D', 'E', 'F#', 'G', 'A', 'B'],
['C', 'D', 'E', 'F', 'G', 'A', 'Bb'],
['C', 'D', 'Eb', 'F', 'G', 'Ab', 'Bb'],
['C', 'Db', 'Eb', 'F', 'Gb', 'Aa', 'Bb'],
],
// { name: "Bass", soundPreset: "ClassicBassSynth", mono: true, legato: true, grid:
// [
// [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
// [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
// [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
// [0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
// [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
// [1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0],
// [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1],
// [0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0],
// ],