-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
47 lines (34 loc) · 1.02 KB
/
index.html
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
<html>
<head>
<meta charset="utf-8"></meta>
<script src="js/jquery.js"></script>
<script src="js/jquery-ui.js"></script>
<script src="js/nexusUI.js"></script>
<script src="js/webpd-latest.js"></script>
<script src="js/pdgui.js"></script>
<link rel="stylesheet" href="css/pdgui.css"></link>
</head>
<body>
<script>
var patch, patchData;
$(function() {
$.get('pd/simple.pd', function(mainStr) {
patchData = Pd.getPatchData(mainStr)
patch = Pd.loadPatch(patchData)
GUI.loadPatch(patchData)
Pd.start()
// connect db meters -- only for this environment
dbL.setup(Pd._glob.audio.context,Pd._glob.audio.channels[0])
dbR.setup(Pd._glob.audio.context,Pd._glob.audio.channels[1])
})
})
</script>
<div id="title">
<span id="titletext">A WebPD Interface</span>
<canvas nx="meter" id="dbL"></canvas>
<canvas nx="meter" id="dbR"></canvas>
</div>
<div id="objects"></div>
<canvas id="connections"></canvas>
</body>
</html>