厌倦了工作?那么来吧,让我们弹弹钢琴!是的,你没有看错,根本不需要真的钢琴。我们可以用 PC 键盘在命令行下就能弹钢琴。向你们介绍一下 piano-rs —— 这是一款用 Rust 语言编写的,可以让你用 PC 键盘在终端弹钢琴的简单工具。它自由开源,基于 MIT 协议。你可以在任何支持 Rust 的操作系统中使用它。
Toget started you need Cargo's bin directory ($HOME/.cargo/bin) in your PATH environment variable. Next time you log in this will be done automatically.
To configure your current shell run source $HOME/.cargo/env
piano-rs 0.1.0 Ritiek Malhotra <ritiekmalhotra123@gmail.com> Play piano in the terminal using PC keyboard.
USAGE: piano-rs [OPTIONS]
FLAGS: -h, --help Prints help information -V, --version Prints version information
OPTIONS: -c, --color <COLOR> Color of block to generate when a note is played (Default: "red") -d, --duration <DURATION> Duration to play each note for, where 0 means till the end of note (Default: 0) -s, --sequence <SEQUENCE> Frequency sequence from 0 to 5 to begin with (Default: 2)