chore(uniapp): 内置 3 种节拍器 click 音色(MIT 协议)
- 来源:johnnysn/chrono-bump 开源节拍器项目(MIT License) - click.mp3 (3.4KB) 默认标准节拍音 - click-soft.mp3 (4.2KB) 柔和音色备选 - click-wood.mp3 (4.6KB) 木鱼质感,节拍器页用作重音 accent - 节拍器页接入 accent 音色:第 1 拍用 click-wood,后续用 click,听感更专业 - README 注明来源、协议、替换说明 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -114,6 +114,8 @@ const METER_OPTIONS = [
|
|||||||
const metronome = useMetronome({
|
const metronome = useMetronome({
|
||||||
initialBpm: 80,
|
initialBpm: 80,
|
||||||
accentEvery: 4,
|
accentEvery: 4,
|
||||||
|
clickSrc: '/static/training/audio/click.mp3',
|
||||||
|
accentSrc: '/static/training/audio/click-wood.mp3',
|
||||||
})
|
})
|
||||||
const {
|
const {
|
||||||
bpm,
|
bpm,
|
||||||
|
|||||||
@@ -65,14 +65,19 @@ node scripts/generate-voice.mjs --force
|
|||||||
|
|
||||||
### 2. 节拍器 click 音
|
### 2. 节拍器 click 音
|
||||||
|
|
||||||
任意金属敲击 / 木鱼短音皆可,要求:
|
**已内置 3 种音色**(来自 [chrono-bump](https://github.com/johnnysn/chrono-bump) MIT 协议项目):
|
||||||
- 时长 30-100ms
|
|
||||||
- 单声道,44.1kHz
|
|
||||||
- 文件 < 10KB
|
|
||||||
|
|
||||||
推荐来源:
|
| 文件 | 用途 | 大小 |
|
||||||
- [freesound.org](https://freesound.org) 搜 "click" / "tick"
|
|------|------|------|
|
||||||
- [pixabay.com/sound-effects](https://pixabay.com/sound-effects/) 搜 "metronome"
|
| `audio/click.mp3` | 默认 click(标准节拍器音) | 3.4 KB |
|
||||||
|
| `audio/click-soft.mp3` | 柔和音色 | 4.2 KB |
|
||||||
|
| `audio/click-wood.mp3` | 木鱼/原木质感(推荐用于重音 accent) | 4.6 KB |
|
||||||
|
|
||||||
|
如果想换更好听的,可以去:
|
||||||
|
- [freesound.org](https://freesound.org) 搜 "click" / "tick"(注意 CC 协议)
|
||||||
|
- [pixabay.com/sound-effects](https://pixabay.com/sound-effects/) 搜 "metronome"(免费可商用)
|
||||||
|
|
||||||
|
替换时保持文件名不变即可,无需改代码。
|
||||||
|
|
||||||
### 3. 背景音乐
|
### 3. 背景音乐
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user