-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
190 lines (157 loc) · 7.88 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
<!doctype html>
<html>
<head>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
<link rel="stylesheet" href="assets/css/style.css">
<link rel="icon" type="image/x-icon" href="assets/favicon.png">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Pairsynth</title>
</head>
<body>
<div class="toolbar">
<ul>
<li class="toolbar-item toolbar-file" data-type="file">File</li>
<li class="toolbar-item toolbar-edit" data-type="edit">Edit</li>
</ul>
<div class="toolbar-menu menu-file" style="display: none;">
<ul>
<li class="item-save">Save</li>
<li class="item-export">Export</li>
</ul>
</div>
<div class="toolbar-menu menu-edit" style="display: none;">
</div>
</div>
<div class="content">
<h1>Pairsynth</h1>
<canvas id="oscilloscope" style="width:100%;max-width:500px;"></canvas>
<div class="controls">
<button class="btnPlay">Play</button>
<button class="btnStop">Stop</button>
<button class="btnReset">Reset</button>
<p style="color: #fff;">Add module</p>
<select class="modules-list"></select>
<button class="btnAddModule">Add</button>
</div>
<div class="modules"></div>
<svg id="lines"></svg>
</div>
<template id="template-module">
<div class="module draggable" data-id="{{ index }}">
<div class="index header">
<p>{{ name }} #{{ index }}</p>
</div>
<ul class="controls">
{{{controls}}}
</ul>
<div class="inputs"></div>
<div class="outputs"></div>
</div>
</template>
<template id="template-listelement-controls">
<li class="controlListElement {{ classes }}">
<label class="controlLabel" for="">{{ label }}: <span class="controlDisplayValue">{{ displayValue }}</span></label><br>
{{{content}}}
</li>
</template>
<template id="template-control-numeric">
<input type="number" class="controlInput" min="{{ min }}" max="{{ max }}" placeholder="{{ placeholder }}">
</template>
<template id="template-control-range">
<input type="range" class="controlInput" min="{{ min }}" max="{{ max }}" step="{{ step }}">
</template>
<template id="template-control-textbox">
<input type="text" class="controlInput" placeholder="{{ placeholder }}" value="{{ value }}">
</template>
<template id="template-control-dropdown">
<select class="controlInput dropdown" placeholder="{{ placeholder }}">{{{options}}}</select>
</template>
<template id="template-control-dropdown-selectvalue">
<option value="{{ value }}">{{ label }}</option>
</template>
<template id="template-control-status">
<p style="margin: 0; color: {{ color }}">{{ status }}</p>
</template>
<template id="template-toolbar-menu">
<div class="toolbar-menu">
<ul>
</ul>
</div>
</template>
<template id="template-context-menu">
<div class="contextMenu">
<ul>
<li class="contextMenuPlay" data-name="play">Play</li>
<li class="contextMenuStop" data-name="stop">Stop</li>
<li class="contextMenuAddModule" data-name="addmodule">Add Module</li>
<li class="contextMenuExport" data-name="export">Export</li>
</ul>
</div>
</template>
<template id="template-add-module">
<div class="addModule">
<h2 style="color: #fff;">Add module</h2>
<select class="modules-list">
</select>
<button class="btnAddModule">Add</button>
</div>
</template>
<template id="template-menu">
<div class="menu">
<i class="fas fa-times-circle menuClose"></i>
{{ content }}
</div>
</template>
<script src="assets/js/libs/jquery.min.js"></script>
<script src="assets/js/libs/lodash.js"></script>
<script src="assets/js/libs/mustache.min.js"></script>
<script src="assets/js/libs/chart.bundle.min.js"></script>
<script src="assets/js/ui/draggable_element.js"></script>
<!--<script src="assets/js/custom_buffer.js"></script>-->
<script src="assets/js/util.js"></script>
<script src="assets/js/wav.js"></script>
<script src="assets/js/math_utils/geometry.js"></script>
<script src="assets/js/math_utils/waveform.js"></script>
<script src="assets/js/math_utils/distribution.js"></script>
<script src="assets/js/math_utils/range.js"></script>
<script src="assets/js/modules/ports/port.js"></script>
<script src="assets/js/modules/ports/port_input.js"></script>
<script src="assets/js/modules/ports/port_output.js"></script>
<script src="assets/js/modules/ports/connection.js"></script>
<script src="assets/js/midi_manager.js"></script>
<script src="assets/js/modules/controls/control.js"></script>
<script src="assets/js/modules/controls/control_value.js"></script>
<script src="assets/js/modules/controls/control_textbox.js"></script>
<script src="assets/js/modules/controls/control_numeric.js"></script>
<script src="assets/js/modules/controls/control_numeric_integer.js"></script>
<script src="assets/js/modules/controls/control_dropdown.js"></script>
<script src="assets/js/modules/controls/control_range.js"></script>
<script src="assets/js/modules/controls/control_log_range.js"></script>
<script src="assets/js/modules/controls/control_decibel_range.js"></script>
<script src="assets/js/modules/controls/control_frequency_range.js"></script>
<script src="assets/js/modules/controls/control_phase_range.js"></script>
<script src="assets/js/modules/controls/control_status.js"></script>
<script src="assets/js/modules/i_module.js"></script>
<script src="assets/js/modules/module.js"></script>
<script src="assets/js/modules/module_custom.js"></script>
<script src="assets/js/modules/module_output.js"></script>
<script src="assets/js/modules/module_source.js"></script>
<script src="assets/js/modules/module_osc.js"></script>
<script src="assets/js/modules/module_midi_keyboard.js"></script>
<script src="assets/js/modules/module_noise.js"></script>
<script src="assets/js/modules/module_transfer.js"></script>
<script src="assets/js/modules/module_gain.js"></script>
<script src="assets/js/modules/module_vca.js"></script>
<script src="assets/js/audio_manager.js"></script>
<script src="assets/js/module_manager.js"></script>
<script src="assets/js/ui/curve/curve.js"></script>
<script src="assets/js/ui/curve/oscilloscope.js"></script>
<script src="assets/js/ui/module_renderer.js"></script>
<script src="assets/js/ui/module_connect.js"></script>
<script src="assets/js/ui/module_midi.js"></script>
<script src="assets/js/ui/menu.js"></script>
<script src="assets/js/ui/toolbar_menu.js"></script>
<script src="assets/js/ui/context_menu.js"></script>
<script src="assets/js/main.js"></script>
</body>
</html>