-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathshownotes-layout.js
68 lines (65 loc) · 1.84 KB
/
shownotes-layout.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
67
68
loadedInterfaceName = "show notes";
interfaceOrientation = "landscape";
pages = [
[
{
"name": "refresh",
"type": "Button",
"bounds": [.8, 0, .1, .1],
"startingValue": 0,
"isLocal": true,
"mode": "contact",
"ontouchstart": "interfaceManager.refreshInterface()",
"stroke": "#aaa",
"label": "refresh",
},
{
"name": "tabButton",
"type": "Button",
"bounds": [.9, 0, .1, .1],
"mode": "toggle",
"stroke": "#aaa",
"isLocal": true,
"ontouchstart": "if(this.value == this.max) { control.showToolbar(); } else { control.hideToolbar(); }",
"label": "menu",
},
// Shownote Button
{
"name":"createNote",
"type":"Button",
"mode": "momentary",
"min": 0, "max": 1,
"address" : "/note",
"startingValue": 0,
"bounds": [ 0, .8, 1, .2],
"stroke": "#639",
"label": "Add Shownote",
"labelSize": 40,
"address":"createNote"
},
{
"name":"ping",
"type":"Button",
"mode": "momentary",
"min": 0, "max": 1,
"address" : "/note",
"startingValue": 0,
"bounds": [ .9, .1, .1, .1],
"stroke": "#639",
"label": "ping",
"address":"ping"
},
// Info Text
{
"name": "infoText",
"type": "Label",
"bounds": [.4, 0, .2, .05],
"value": "OSC Show Notes",
"backgroundColor": "#639",
"color": "#000",
"size": 20,
"verticalCenter": true,
"align": "center",
}
]
];