-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
174 lines (142 loc) · 7.67 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="description" content="Korg Volca FM patch editor using WebMIDI">
<title>FMFriend</title>
<link rel="stylesheet" href="styles.css">
<script src="jquery-3.1.1.min.js"></script>
<script src="underscore-min.js"></script>
<script src="vue.min.js"></script>
<script src="fmfriend.js"></script>
<script src="fmfriend-view.js"></script>
</head>
<body>
<div id="fmfriend" v-cloak>
<div v-if="!fmf.status.success" class="error">{{ fmf.status.error }}</div>
<template v-else>
<div class="header">
<div class="output-chooser">
<h1>MIDI output</h1>
<select v-model="fmf.output">
<option v-for="(output, i) in fmf.outputs" v-bind:value="i">{{ output.name }}</option>
</select>
</div>
<div class="name">
<h1>Patch name</h1>
<input v-model="patch_name" v-on:input="fmf.updated" type="text" maxlength="10" placeholder=" "></input>
</div>
<div class="send-patch">
<button v-on:click="fmf.send_patch">Send patch</button>
<input type="checkbox" v-model="fmf.send_on_update" id="send-on-update"></input>
<label for="send-on-update">Send on parameter change</label>
</div>
</div>
<div class="patch">
<div class="sections">
<div v-for="(operator, operator_ix) in fmf.operators" class="section-container">
<div class="section operator">
<div class="header">
<h1>{{ operator.name }}</h1>
<input type="checkbox" v-model="operator.enabled" v-on:change="fmf.updated">
</div>
<hr>
<div class="parameters">
<div class="parameter-group">
<div class="parameter-subgroup">
<fmf-slider :fmf="fmf" :param="operator.freq_coarse"></fmf-slider>
<fmf-slider :fmf="fmf" :param="operator.freq_fine"></fmf-slider>
</div>
<div class="parameter-subgroup">
<fmf-radios :fmf="fmf" :param="operator.osc_mode" :operator="operator_ix" group="osc-mode" :pretty="fmf.osc_mode_pretty"></fmf-radios>
<fmf-slider :fmf="fmf" :param="operator.detune"></fmf-slider>
</div>
</div>
<hr>
<div class="parameter-group">
<div class="parameter-subgroup">
<fmf-slider :fmf="fmf" :param="operator.amp_mod_sense"></fmf-slider>
<fmf-slider :fmf="fmf" :param="operator.key_velocity_sense"></fmf-slider>
</div>
<div class="parameter-subgroup">
<fmf-slider :fmf="fmf" :param="operator.output_level"></fmf-slider>
</div>
</div>
<hr>
<div class="parameter-group">
<div class="parameter-subgroup">
<fmf-slider v-for="eg_rate in operator.eg_rates" :fmf="fmf" :param="eg_rate"></fmf-slider>
</div>
<div class="parameter-subgroup">
<fmf-slider v-for="eg_level in operator.eg_levels" :fmf="fmf" :param="eg_level"></fmf-slider>
</div>
</div>
<hr>
<div class="parameter-group">
<div class="parameter-subgroup">
<fmf-slider :fmf="fmf" :param="operator.level_scale_left_depth"></fmf-slider>
<fmf-slider :fmf="fmf" :param="operator.level_scale_right_depth"></fmf-slider>
<fmf-slider :fmf="fmf" :param="operator.level_scale_break_point"></fmf-slider>
</div>
<div class="parameter-subgroup">
<fmf-radios :fmf="fmf" :param="operator.level_scale_left_curve" :operator="operator_ix" group="level-scale-left-curve" :pretty="fmf.level_scale_curve_pretty"></fmf-radios>
<fmf-radios :fmf="fmf" :param="operator.level_scale_right_curve" :operator="operator_ix" group="level-scale-right-curve" :pretty="fmf.level_scale_curve_pretty"></fmf-radios>
<fmf-slider :fmf="fmf" :param="operator.osc_rate_scale"></fmf-slider>
</div>
</div>
</div>
</div>
</div>
<div class="section-container">
<div class="section">
<div class="header">
<h1>Global</h1>
</div>
<hr>
<div class="parameters">
<div class="parameter-subgroup">
<fmf-slider :fmf="fmf" :param="fmf.global.algorithm"></fmf-slider>
</div>
<hr>
<div class="parameter-group">
<div class="parameter-subgroup">
<fmf-slider :fmf="fmf" :param="fmf.global.transpose"></fmf-slider>
<fmf-slider :fmf="fmf" :param="fmf.global.feedback"></fmf-slider>
</div>
<div class="parameter-subgroup">
<fmf-radios :fmf="fmf" :param="fmf.global.osc_key_sync" group="osc-key-sync" :pretty="fmf.osc_key_sync_pretty"></fmf-radios>
<fmf-slider :fmf="fmf" :param="fmf.global.mod_sense_pitch"></fmf-slider>
</div>
</div>
<hr>
<div class="parameter-group">
<div class="parameter-subgroup">
<fmf-slider v-for="pitch_eg_rate in fmf.global.pitch_eg_rates" :fmf="fmf" :param="pitch_eg_rate"></fmf-slider>
</div>
<div class="parameter-subgroup">
<fmf-slider v-for="pitch_eg_level in fmf.global.pitch_eg_levels" :fmf="fmf" :param="pitch_eg_level"></fmf-slider>
</div>
</div>
<hr>
<div class="parameter-group">
<div class="parameter-subgroup">
<fmf-radios :fmf="fmf" :param="fmf.global.lfo_sync" group="lfo-sync" :pretty="fmf.lfo_sync_pretty"></fmf-radios>
<fmf-slider :fmf="fmf" :param="fmf.global.lfo_rate"></fmf-slider>
<fmf-slider :fmf="fmf" :param="fmf.global.lfo_delay"></fmf-slider>
</div>
<div class="parameter-subgroup">
<fmf-slider :fmf="fmf" :param="fmf.global.lfo_pitch_mod_depth"></fmf-slider>
<fmf-slider :fmf="fmf" :param="fmf.global.lfo_amp_mod_depth"></fmf-slider>
<fmf-slider :fmf="fmf" :param="fmf.global.lfo_wave"></fmf-slider>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</template>
</div>
<noscript>JavaScript is required</noscript>
</body>
</html>