Skip to content

Commit b2604e1

Browse files
authored
Add files via upload
1 parent 3ae5566 commit b2604e1

2 files changed

Lines changed: 24 additions & 50 deletions

File tree

index.html

Lines changed: 24 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@
8686
color: rgba(255, 220, 180, 0.85);
8787
}
8888

89-
/* ---- 提示 ---- */
9089
#hint {
9190
position: absolute;
9291
bottom: max(16px, env(safe-area-inset-bottom) + 8px);
@@ -101,8 +100,6 @@
101100
white-space: nowrap;
102101
transition: opacity 0.8s ease;
103102
}
104-
105-
/* ---- 遮罩(含灵感来源和音量控制) ---- */
106103
#overlay {
107104
position: absolute;
108105
inset: 0;
@@ -155,7 +152,6 @@
155152
}
156153
}
157154

158-
/* 灵感来源链接 */
159155
.inspire-links {
160156
display: flex;
161157
gap: 18px;
@@ -179,36 +175,30 @@
179175
border-color: rgba(255, 200, 150, 0.4);
180176
}
181177

182-
/* 底部链接(在遮罩内) */
183-
.overlay-bottom-links {
184-
display: flex;
185-
gap: 16px;
186-
align-items: center;
187-
margin-top: 2px;
188-
}
189-
.overlay-bottom-links a {
178+
.footer-simple {
179+
margin-top: 2.8rem;
180+
padding-top: 1.2rem;
181+
border-top: 1px solid #928451;
190182
display: flex;
191-
align-items: center;
183+
flex-wrap: wrap;
192184
justify-content: center;
193-
width: 30px;
194-
height: 30px;
195-
color: rgba(255, 210, 160, 0.5);
196-
transition: color 0.25s, transform 0.2s;
197-
cursor: pointer;
198-
pointer-events: auto;
199-
}
200-
.overlay-bottom-links a:hover {
201-
color: rgba(255, 220, 180, 0.85);
202-
transform: scale(1.12);
185+
gap: 1.2rem 2rem;
186+
font-size: 0.85rem;
203187
}
204-
.overlay-bottom-links svg {
205-
width: 24px;
206-
height: 24px;
207-
fill: currentColor;
208-
stroke: none;
188+
.footer-simple a {
189+
display: inline-flex;
190+
align-items: center;
191+
gap: 0.4rem;
192+
text-decoration: none;
193+
color: #f8efcf;
194+
background: rgba(0,0,0,0.4);
195+
padding: 0.4rem 1rem;
196+
border-radius: 40px;
197+
transition: 0.2s;
209198
}
199+
.footer-simple a:hover { background: #b48b3f; color: #181d0e; }
200+
.footer-simple img { width: 18px; height: 18px; filter: invert(0.95); }
210201

211-
/* 音量控制 */
212202
.volume-control {
213203
display: flex;
214204
align-items: center;
@@ -305,14 +295,6 @@
305295
.inspire-links a {
306296
font-size: 11px;
307297
}
308-
.overlay-bottom-links a {
309-
width: 26px;
310-
height: 26px;
311-
}
312-
.overlay-bottom-links svg {
313-
width: 20px;
314-
height: 20px;
315-
}
316298
}
317299
@media (max-height: 600px) {
318300
.inspire-links {
@@ -350,21 +332,14 @@
350332
<span class="vol-value" id="vol-value">25%</span>
351333
</div>
352334

353-
<div class="overlay-bottom-links">
335+
<div class="footer-simple">
354336
<a href="https://github.com/CraftSoul/kards-image-tool" target="_blank"><img src="https://cdn.jsdelivr.net/gh/simple-icons/simple-icons/icons/github.svg" alt="github"> GitHub</a>
355337
<a href="https://space.bilibili.com/3546775476505152" target="_blank"><img src="https://cdn.jsdelivr.net/gh/simple-icons/simple-icons/icons/bilibili.svg" alt="bili"> BiliBili</a>
356338
</div>
357339
</div>
358340
</div>
359341

360342
<script>
361-
/* ============================================================
362-
* 拉伸Tap —— 四列音效 (boom, sla, sl, a)
363-
* 行数6 · 音调反向 · 点击修复 · 量化播放
364-
* 音量:boom减半,a加倍
365-
* 遮罩含灵感来源和底部链接
366-
* ============================================================ */
367-
368343
// ---------- 常量 ----------
369344
const BPM = 128;
370345
const SPB = 60 / BPM;
@@ -375,9 +350,8 @@
375350
const INPUT_QUEUE_LOOKAHEAD = 0.03;
376351

377352
const COLS = 4;
378-
const ROWS = 6; // 减少2行
379-
// 轨道顺序:boom, sla, sl, a
380-
const SAMPLE_NAMES = ['boom', 'sla', 'sl', 'a'];
353+
const ROWS = 6;
354+
const SAMPLE_NAMES = ['boom', 'sla', 'sl', 'a'];//赤色黎明,拉,伸,朱可夫
381355
const SAMPLE_FILES = ['boom.wav', 'sla.wav', 'sl.wav', 'a.wav'];
382356

383357
// ---------- 全局状态 ----------
@@ -516,7 +490,7 @@
516490
loadedCount++;
517491
if (loadedCount === SAMPLE_NAMES.length) {
518492
loadComplete = true;
519-
console.log('所有音效就绪(部分合成)');
493+
console.log('所有音效就绪');
520494
}
521495
});
522496
});
@@ -683,7 +657,7 @@
683657
const gain = ctx.createGain();
684658
let volFactor = 1.0;
685659
if (sampleName === 'boom') volFactor = 0.5;
686-
else if (sampleName === 'a') volFactor = 2.0;
660+
else if (sampleName === 'a') volFactor = 3.0;
687661
const baseGain = 0.9 * volFactor;
688662
gain.gain.setValueAtTime(baseGain, when);
689663
gain.gain.exponentialRampToValueAtTime(0.001, when + 0.4);

sl.wav

-44.8 KB
Binary file not shown.

0 commit comments

Comments
 (0)