Skip to content

Commit c689360

Browse files
author
global_name
committed
Update Piano Visualizer article
1 parent 33c52e6 commit c689360

1 file changed

Lines changed: 4 additions & 44 deletions

File tree

_posts/2026-04-16-piano-visualizer.md

Lines changed: 4 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -34,55 +34,15 @@ A Synthesia-like piano keyboard visualization software with MIDI playback, audio
3434
- Help overlay (F1) / 帮助覆盖层(F1)
3535
- Synchronized playback / 同步播放
3636

37-
## Dependencies / 依赖项
37+
## 键盘映射
3838

39-
```bash
40-
# Install dependencies (Ubuntu/Debian) / 安装依赖(Ubuntu/Debian)
41-
sudo apt-get install libsdl2-dev libsdl2-image-dev libsdl2-ttf-dev librtmidi-dev poppler-utils
4239
```
43-
44-
## Building / 编译
45-
46-
```bash
47-
mkdir build && cd build
48-
cmake ..
49-
make
50-
```
51-
52-
## Usage / 使用方法
53-
54-
```bash
55-
# Play MIDI with falling notes visualization / 播放 MIDI 并显示下落音符
56-
./piano_visualizer song.mid
57-
58-
# Play MIDI with PDF sheet music / 播放 MIDI 并显示 PDF 乐谱
59-
./piano_visualizer song.mid sheet.pdf
60-
61-
# View PDF only and play manually with keyboard / 仅查看 PDF 并用键盘手动演奏
62-
./piano_visualizer sheet.pdf
40+
Black / 黑键: S D G H J 2 3 5 6 7
41+
White / 白键: Z X C V B N M Q W E R T Y U I
6342
```
6443

65-
## Controls / 控制键
66-
67-
### MIDI Playback (when MIDI file is loaded) / MIDI 播放(加载 MIDI 文件时)
68-
- **Space / 空格键**: Play/Pause MIDI / 播放/暂停 MIDI
69-
- **Backspace / 退格键**: Stop MIDI / 停止 MIDI
70-
71-
### Manual Piano Playing / 手动钢琴演奏
72-
You can play the piano manually using your computer keyboard:
73-
74-
您可以使用电脑键盘手动演奏钢琴:
75-
76-
**Lower octave (C3-C4) / 低八度(C3-C4):**
77-
- White keys / 白键: `Z X C V B N M`
78-
- Black keys / 黑键: `S D G H J`
79-
80-
**Middle octave (C4-C5) / 中八度(C4-C5):**
81-
- White keys / 白键: `Q W E R T Y U I`
82-
- Black keys / 黑键: `2 3 5 6 7`
83-
8444
## Source Code / 源代码
8545

8646
- GitHub: [https://github.com/iOSDevLog/AI_Piano](https://github.com/iOSDevLog/AI_Piano)
8747

88-
---
48+
---

0 commit comments

Comments
 (0)