-
Notifications
You must be signed in to change notification settings - Fork 8
/
index.html
145 lines (124 loc) · 6 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
<!DOCTYPE html>
<head>
<title>~ lofi station ~</title>
<meta name='viewport' content='width=device-width,initial-scale=1'>
<meta name='description' content='lofi generator with AI'>
<meta charset="UTF-8">
<link rel='shortcut icon' href='./assets/lofi_cat.jpeg' type='image/jpeg'>
<script src='https://cdn.jsdelivr.net/npm/tone@14.7.39/build/Tone.min.js'></script>
<script src='https://cdn.jsdelivr.net/npm/p5@1.1.9/lib/p5.min.js'></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/tone/14.8.49/Tone.js"></script>
<link rel='stylesheet' type='text/css' href='style.css' />
</head>
<body>
<div id='loading' class='invisible'>
<img id='spinner' src='https://lofi-ai-assets.s3.amazonaws.com/images/spinner.gif'>
</div>
<div id='background'></div>
<div id='main-screen'>
<div id="writeup">
<a href="https://mtsandra.github.io/blog/2023/lofi-generator/">how i made this</a><br>
</div>
<div id='menu-wrapper'>
<div class='form-heading enabled'>Drums</div>
<form id='drums'>
<label>
<input class='form-input' type='radio' value='waterdrop' name='drums' onchange="setDrums('waterdrop')" checked />
waterdrop
</label>
<label>
<input class='form-input' type='radio' value='groovy' name='drums' onchange="setDrums('groovy')" />
groovy
</label>
<label>
<input class='form-input' type='radio' value='bonfire' name='drums' onchange="setDrums('bonfire')" />
bonfire
</label>
</form>
<div class='form-heading enabled'>Ambience</div>
<form id='natureSounds'>
<label>
<input class='form-input' type='radio' value='wind' name='natureSounds' onchange="setNatureSounds('wind')" checked />
wind
</label>
<label>
<input class='form-input' type='radio' value='fireplace' name='natureSounds' onchange="setNatureSounds('fireplace')" />
fireplace
</label>
<label>
<input class='form-input' type='radio' value='rain' name='natureSounds' onchange="setNatureSounds('rain')" />
rain
</label>
</form>
<div class='form-heading enabled'>Quote</div>
<form id='talking'>
<label>
<input class='form-input' type='radio' value='record' name='talking' onchange="setTalking('record')" checked />
"keep rolling, it will be beautiful"
</label>
<label>
<input class='form-input' type='radio' value='easier' name='talking' onchange="setTalking('easier')" />
"it will get easier"
</label>
<label>
<input class='form-input' type='radio' value='sunrise' name='talking' onchange="setTalking('sunrise')" />
"in between us"
</label>
</form>
<!-- #region -->
<div class='form-heading enabled invisible'>AI Soloist</div>
<form class="invisible" id='soloist'>
<label>
<input class='form-input' type='radio' value='ai-true' name='ai' onchange="setAI('true')" />
on
</label>
<label>
<input class='form-input' type='radio' value='ai-false' name='ai' onchange="setAI('false')" checked />
off
</label>
</form>
<!-- #endregion-->
<div id='buttons-wrapper'>
<button id='choose' class='button' onclick='enableChord()'>Choose A Song</button>
<button id='use-ai' class='button' onclick='enableAI()'>Use AI</button>
</div>
<div class="form-heading enabled invisible" id="ai-track">AI Generated Solo Track</div>
<form id="ai-track" class="invisible">
<label>
<input class='form-input' type="radio" value="lofi_400_1" name="ai_track" onchange="setAITrack('lofi_400_1')" checked >
worn tape piano
</label>
<label>
<input class='form-input' type="radio" value="lofi_200_1" name="ai_track" onchange="setAITrack('lofi_200_1')" >
music box
</label>
<label>
<input class='form-input' type="radio" value="lofi_400_2" name="ai_track" onchange="setAITrack('lofi_400_2')" >
dreamy smooth vox
</label>
</form>
<div class='form-heading enabled invisible' id="chords">Chords</div>
<form id='chords' class = 'invisible'>
<label>
<input class='form-input' type='radio' value='ylangYlang' name='chords' onchange="setChords('ylangYlang')" checked />
ylang ylang
</label>
<label>
<input class='form-input' type='radio' value='festin' name='chords' onchange="setChords('festin')" />
la festin
</label>
<label>
<input class='form-input' type='radio' value='seeYouAgain' name='chords' onchange="setChords('seeYouAgain')" />
see you again
</label>
</form>
<div id='buttons-wrapper'>
<button id='start' class='button'>▷ play</button>
<button id='stop' class='button'>▢ stop</button>
</div>
</div>
<div id='canvas'></div>
</div>
</body>
<script src='./script.js'></script>
</html>