-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
85 lines (68 loc) · 4.64 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
<!DOCTYPE html>
<html>
<head>
<title>javascript drum machine</title>
<meta name="description" content="A simple javascript drum machine / drum sequencer built with HTML / CSS and Javascript."
/>
</head>
<link rel="stylesheet" href="https://unpkg.com/[email protected]/build/pure-min.css" integrity="sha384-nn4HPE8lTHyVtfCBi5yW9d20FjT8BJwUXyWZT9InLYax14RDjBj46LmSztkmNP9w"
crossorigin="anonymous">
<body>
<link rel="stylesheet" type="text/css" href="main.css" />
<script
src="https://code.jquery.com/jquery-3.4.1.slim.js"
integrity="sha256-BTlTdQO9/fascB1drekrDVkaKd9PkwBymMlHOiG+qLI="
crossorigin="anonymous"></script>
<div id="app-message"></div>
<div id="tracker-container">
<div id="tracker-parent"></div>
<div id="tracker-controls">
<button id="play">Play</button>
<button id="pause">Pause</button>
<button id="stop">Stop</button>
<br />
<form class="pure-form" id="trackerControls">
<select name="sampleSet" class="base" id="sampleSet">
<option value="https://raw.githubusercontent.com/oramics/sampled/master/DM/CR-78/sampled.instrument.json">CR-78</option>
<option value="https://raw.githubusercontent.com/oramics/sampled/master/DM/TR-909/Detroit/sampled.instrument.json">TR-909 Detroit</option>
<option value="https://raw.githubusercontent.com/oramics/sampled/master/DM/TR-909/SP/sampled.instrument.json">TR-909 SP</option>
<option value="https://raw.githubusercontent.com/oramics/sampled/master/DM/MRK-2/sampled.instrument.json">MRK-2</option>
<option value="https://raw.githubusercontent.com/oramics/sampled/master/DM/TR-505/sampled.instrument.json">TR-505</option>
<option value="https://raw.githubusercontent.com/oramics/sampled/master/DM/LM-2/sampled.instrument.json">LM-2</option>
<option value="https://raw.githubusercontent.com/oramics/sampled/master/DRUMS/pearl-master-studio/sampled.instrument.json">Pearl Master Studio</option>
</select>
<br />
<input class="base" name="measureLength" id="measureLength" style="width: 60px;" value="16">Measure length<br>
<input class="base" name="bpm" id="bpm" type="range" max="1000" min="20" step="1" value="460">BPM
<br>
<hr />
<input class="base" name="detune" id="detune" type="range" max="1200" min="-1200" step="10" value="0"> Detune / Tune<br />
<hr />
<input class="base" name="gainEnabled" type="checkbox" id="gainEnabled" value="gain">Enabled gain<br />
<input class="base" name="attackAmp" id="attackAmp" type="range" max="1" min="0" step="0.1" value="0.5">AttackAmp<br>
<input class="base" name="sustainAmp" id="sustainAmp" type="range" max="1" min="0" step="0.1" value="0.9"> SustainAmp<br>
<input class="base" name="decayAmp" id="decayAmp" type="range" max="1" min="0" step="0.1" value="0.9"> DecayAmp<br>
<input class="base" name="releaseAmp" id="releaseAmp" type="range" max="1" min="0" step="0.1" value="0.9"> ReleaseAmp<br>
<input class="base" name="attackTime" id="attackTime" type="range" max="1" min="0" step="0.01" value="0.08">Attacktime<br>
<input class="base" name="decayTime" id="decayTime" type="range" max="1" min="0" step="0.01" value="0.08">DecayTime<br>
<input class="base" name="sustainTime" id="sustainTime" type="range" max="2" min="0" step="0.1" value="0.1">Sustaintime<br>
<input class="base" name="releaseTime" id="releaseTime" type="range" max="5" min="0" step="0.1" value="2">Releasetime<br />
<input class="base" name="adsrInterval" id="adsrInterval" style="width: 60px;" value="0.1">AdsrInterval<br>
<hr />
<input class="base" name="delayEnabled" type="checkbox" id="delayEnabled" value="delay"> Enabled delay
<br />
<input class="base" name="delay" id="delay" type="range" max="1" min="0" step="0.01" value="0.01"> Delay<br>
<input class="base" name="filter" id="filter" type="range" max="10000" min="20" step="0.1" value="1000"> Filter<br>
</form>
<hr />
<form class="pure-form">
<input type="text" id="filename"><br />
<button id="save">Save as </button><button id="saveAsJson">Get JSON</button> <br />
<span id="load-storage"></span>
<button id="delete">Delete selected</button>
</form>
</div>
</div>
<script src="bundle.js"></script>
</body>
</html>