-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpresets.js
More file actions
56 lines (53 loc) · 889 Bytes
/
presets.js
File metadata and controls
56 lines (53 loc) · 889 Bytes
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
module.exports = {
/**
* INTERNAL: initialize presets.
*
* @access protected
* @since 1.1.1
*/
initPresets () {
var presets = [];
for (let i = 1; i <= 99; ++i) {
for (let j = 1; j < 32; ++j) {
presets.push(
{
label: 'Bank ' + i + '.' + j,
category: 'Page ' + i,
bank: {
...(this.banks[i] && this.banks[i][j] ? this.banks[i][j] : {}),
},
feedbacks: [
{
type: 'main',
options: {
page: i,
bank: j
},
style: {}
}
],
actions: [
{
action: 'push',
options: {
page: i,
bank: j
}
}
],
release_actions: [
{
action: 'release',
options: {
page: i,
bank: j
}
}
]
}
);
}
}
this.setPresetDefinitions(presets);
}
}