键盘弹钢琴,keyboard to play piano
Project description
musicz_pygm
声明: 禁止将本项目代码用于ai训练 declaration: Codes of this project are not allowed to be used for AI training or any other form of machine learning processes.
键盘按键弹钢琴的小程序
安装:
pip install musicz_pygm
程序运行:
python -m musicz_pygm 可选参数
参数如下:
[-f/--fp=]额外配置文件(没啥用)
[-t/--default=]主要配置文件(默认预制的play.js)
[-h/--help]
[-b/--background] 添加背景音乐
[-r/--record] 添加背景音乐(从save生成的记录文件读取)
--save=0/1 是否把当前运行的弹奏记录生成记录文件,是的话,生成到当前目录下,文件名为*.json
[-w/--width] 窗口宽度
[-h/--height] 窗口高度
--noframe=0/1 是否隐藏窗口边框
示例:
最简单运行:
python -m musicz_pygm
修改窗口大小:
python -m musicz_pygm -w 600 -h 300
运行结束保存弹奏记录:
python -m musicz_pygm -w 600 -h 300 --save=1
运行时加载背景音乐(假设背景音乐是20263123123.json):
python -m musicz_pygm -w 600 -h 300 -r 20263123123.json
默认配置文件(musicz_pygm/conf目录下):
通用配置:
shift和ctrl调整基调,方向键调整音量,esc和~退出,空格切音
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
musicz_pygm-0.1.3.tar.gz
(20.8 kB
view details)
File details
Details for the file musicz_pygm-0.1.3.tar.gz.
File metadata
- Download URL: musicz_pygm-0.1.3.tar.gz
- Upload date:
- Size: 20.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4b84fdf9a9a7665a7802cb2fdcc5122e3e693dec3a6b5f13f9468ff38ac5fe82
|
|
| MD5 |
3ee1329464bb2cf6508603f771329804
|
|
| BLAKE2b-256 |
8156a0188aaf5985e1186f9f0bb1fcf3d4b38695106374bade8d96ffbbd3cbee
|