播放简单的音符或MIDI文件
MyPiano的Python项目详细描述
我的钢琴
一种简单的基于终端的钢琴,用于演奏音符和MIDI文件。不是tui/gui 可用。
安装
pip install mypiano --user
如何使用
要查看帮助消息,
usage: mypiano [-h] [--midifile MIDIFILE] [--note NOTE] [--duration DURATION]
MyPiano
optional arguments:
-h, --help show this help message and exit
--midifile MIDIFILE, -m MIDIFILE
Midi file to play
--note NOTE, -n NOTE A note to play
--duration DURATION, -d DURATION
Note duration (use it with --note)
当没有指定选项时mypiano
只需播放注释A1
。