generated from Cycling74/rnbo.example.webpage
-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
77 lines (73 loc) · 3.43 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="theme-color" content="#000000">
<meta name="rnbo-version" content="1.0.0-alpha.5">
<link rel="stylesheet" href="style/style.css">
<title>FaceArp</title>
<script src="https://cdn.jsdelivr.net/npm/@mediapipe/camera_utils/camera_utils.js" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/@mediapipe/drawing_utils/drawing_utils.js" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/@mediapipe/face_mesh/face_mesh.js" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/110/three.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/webmidi@latest/dist/iife/webmidi.iife.js"></script>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<svg id="background" width="100%" height="100%"></svg>
<div id="rnbo-root">
<div>
<h1 id="patcher-title">Please wait...</h1>
</div>
<div>
<video class="input_video" style="display: none"></video>
<canvas class="output_canvas" width="854px" height="480px"></canvas>
</div>
<div id="rnbo-clickable-keyboard">
<h2>MIDI Keyboard</h2>
<em id="no-midi-label">No MIDI input</em>
</div>
<div id="rnbo-midi">
<h2>MIDI In</h2>
<span id="midiin-error"></span>
<form id="midiin-form" className="inport">
<div className="midiin-input">
<select id="midiin-select"></select>
</div>
</form>
<!-- <h2>MIDI Out</h2>
<span id="midiout-error"></span>
<form id="midiout-form" className="inport">
<div className="midiout-input">
<select id="midiout-select"></select>
</div>
</form> -->
</div>
<div id="rnbo-parameter-sliders">
<h2>Parameters</h2>
<em id="no-param-label">No parameters</em>
</div>
<div>
<p>
rootNote: 0 - C, 1 - C#, 2 - D, 3 - D#, 4 - E, 5 - F, 6 - F#, 7 - G, 8 - G#, 9 - H, 10 - H#, 11 - A
</p>
<img src="img\computerKeyboard.PNG" />
</div>
<div id="link-code">
<button onclick="window.location.href='https://github.com/maceq687/FaceArp';">See the source code</button>
</div>
</div>
<!-- Load the script that creates the RNBO device -->
<!-- Uncomment if you know the version of your exported RNBO patch to avoid dynamic loading -->
<!-- <script type="text/javascript" src="https://cdn.cycling74.com/rnbo/latest/rnbo.min.js"></scrip> -->
<!-- (Optional) The guardrails.js script isn't required for RNBO to work, and you can skip including it -->
<!-- It simply offers some helpful error messages for common problems -->
<script type="text/javascript" src="js/guardrails.js"></script>
<!-- Import RNBO Engine Wrapper -->
<!-- Make sure to include the RNBO engine version to the version of your exported code, found in rnbopackage.json -->
<script type="text/javascript" src="js/computerkeyboard.js"></script>
<script type="text/javascript" src="js/webmidi-io.js"></script>
<script type="text/javascript" src="js/app.js"></script>
</body>
</html>