biano


Namebiano JSON
Version 0.3.3 PyPI version JSON
download
home_pagehttps://github.com/buildCodeZ/biano
Summarykeyboard piano, just start
upload_time2024-08-31 06:39:50
maintainerNone
docs_urlNone
authorZzz
requires_pythonNone
licenseApache License 2.0
keywords biano
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # biano
```
键盘按键钢琴,监听按键发出声音,可以后台运行
keyboard piano, listen key press to play sound, can run background

注:程序声音是代码生成的,不是自然音,如果声音播放后觉得不舒服就把程序关了,有问题可发邮件联系

Notice: sounds in this program is generated by codes, not natural sound, if feel uncomfortable run this program, stop using it, contacting by email if you has questions.

1, 运行按键模式:
运行简单按键模式:
python -m biano.keys
运行复杂按键模式:(建议先看下hard.js配置,在biano模块文件夹/res目录下):
python -m biano.keys hard.js
运行自定义按键:
python -m biano.keys 按键配置文件.js
程序运行结束自动记录弹奏到当前文件夹下,可以进行重放(如果不打算记录和保存,在biano模块文件夹/res/conf.js里把save_records改成false)

2, 运行演奏乐谱:
演奏默认乐谱:
python -m biano.play
演奏配置乐谱
python -m biano.play 乐谱配置文件.js

3, 重放记录:
python -m biano.replay 记录文件路径

4,主体:
默认(按键模式,默认hard.js)
python -m biano
自定义运行模式(参考biano模块文件夹/res/default_env.js编写):
python -m biano 配置文件.js

程序可以多开,可以开一个play当背景音,再开一个keyboard

PS: 一些配置一直用的固定值,没用试过其他值,修改后可能有问题

按键对应音符:
keys to musical note:

左手(left hand):
 q  w  e  r  t 
 1 #1  2 #2  3
 a  s  d  f
 4 #4  5 #5
 z  x  c
 6 #6  7

右手(right hand):
 y  u  i  o  p
 1 #1  2 #2  3
 h  j  k  l
 4 #4  5 #5
 n  m  ,
 6 #6  7

数字键1,2,3,4,5修改左手基准音调
数字键6,7,8,9,0修改右手基准音调

number keys 1,2,3,4,5 modify base tone of left hand
number keys 6,7,8,9,0 modify base tone of right hand

按键-和=修改数字键音调偏移
keys - and = modify number key tone offset

v0.2.2:
加缓存,原本创建多个声音对象改成使用一个声音对象,用缓存方式进行读写,减少杂音,但会增加延迟
音色有待调整

v0.2.3:
加配置,按键和音调可配置,运行
python -m biano 配置文件.js
配置文件会先从当前目录找(或者输入的是绝对路径,找的就是绝对路径下的文件),找不到会从biano模块文件夹/res目录下找
配置见: biano模块文件夹/res/conf.js(默认配置文件)
程序会先读取默认配置文件,再读取命令行指令配置文件进行更新
噪声有待处理

v0.2.4:
加乐谱演奏模式
python -m biano.play 配置文件.js
噪音有待处理

v0.2.41:
用buildz进行ioc和配置(好处是配置文件用起来方便了,代价是启动变慢)
声波做smooth来去噪,此外加了泛音,感觉噪声少了
音色可配置

v0.3.1:
修改一些配置
提高声音源衰减幅度,但感觉声波能量还是太高了些
低音区还是有噪音,待处理
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/buildCodeZ/biano",
    "name": "biano",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "biano",
    "author": "Zzz",
    "author_email": "1309458652@qq.com",
    "download_url": "https://files.pythonhosted.org/packages/de/90/f5cad898abd62e5f6bd26c12f8a6a934bf8eddd292bec61e58a19ab41607/biano-0.3.3.tar.gz",
    "platform": "any",
    "description": "# biano\r\n```\r\n\u952e\u76d8\u6309\u952e\u94a2\u7434\uff0c\u76d1\u542c\u6309\u952e\u53d1\u51fa\u58f0\u97f3\uff0c\u53ef\u4ee5\u540e\u53f0\u8fd0\u884c\r\nkeyboard piano, listen key press to play sound, can run background\r\n\r\n\u6ce8\uff1a\u7a0b\u5e8f\u58f0\u97f3\u662f\u4ee3\u7801\u751f\u6210\u7684\uff0c\u4e0d\u662f\u81ea\u7136\u97f3\uff0c\u5982\u679c\u58f0\u97f3\u64ad\u653e\u540e\u89c9\u5f97\u4e0d\u8212\u670d\u5c31\u628a\u7a0b\u5e8f\u5173\u4e86\uff0c\u6709\u95ee\u9898\u53ef\u53d1\u90ae\u4ef6\u8054\u7cfb\r\n\r\nNotice: sounds in this program is generated by codes, not natural sound, if feel uncomfortable run this program, stop using it, contacting by email if you has questions.\r\n\r\n1, \u8fd0\u884c\u6309\u952e\u6a21\u5f0f:\r\n\u8fd0\u884c\u7b80\u5355\u6309\u952e\u6a21\u5f0f:\r\npython -m biano.keys\r\n\u8fd0\u884c\u590d\u6742\u6309\u952e\u6a21\u5f0f\uff1a\uff08\u5efa\u8bae\u5148\u770b\u4e0bhard.js\u914d\u7f6e\uff0c\u5728biano\u6a21\u5757\u6587\u4ef6\u5939/res\u76ee\u5f55\u4e0b\uff09:\r\npython -m biano.keys hard.js\r\n\u8fd0\u884c\u81ea\u5b9a\u4e49\u6309\u952e:\r\npython -m biano.keys \u6309\u952e\u914d\u7f6e\u6587\u4ef6.js\r\n\u7a0b\u5e8f\u8fd0\u884c\u7ed3\u675f\u81ea\u52a8\u8bb0\u5f55\u5f39\u594f\u5230\u5f53\u524d\u6587\u4ef6\u5939\u4e0b\uff0c\u53ef\u4ee5\u8fdb\u884c\u91cd\u653e(\u5982\u679c\u4e0d\u6253\u7b97\u8bb0\u5f55\u548c\u4fdd\u5b58\uff0c\u5728biano\u6a21\u5757\u6587\u4ef6\u5939/res/conf.js\u91cc\u628asave_records\u6539\u6210false)\r\n\r\n2, \u8fd0\u884c\u6f14\u594f\u4e50\u8c31\uff1a\r\n\u6f14\u594f\u9ed8\u8ba4\u4e50\u8c31:\r\npython -m biano.play\r\n\u6f14\u594f\u914d\u7f6e\u4e50\u8c31\r\npython -m biano.play \u4e50\u8c31\u914d\u7f6e\u6587\u4ef6.js\r\n\r\n3, \u91cd\u653e\u8bb0\u5f55:\r\npython -m biano.replay \u8bb0\u5f55\u6587\u4ef6\u8def\u5f84\r\n\r\n4\uff0c\u4e3b\u4f53:\r\n\u9ed8\u8ba4(\u6309\u952e\u6a21\u5f0f\uff0c\u9ed8\u8ba4hard.js)\r\npython -m biano\r\n\u81ea\u5b9a\u4e49\u8fd0\u884c\u6a21\u5f0f(\u53c2\u8003biano\u6a21\u5757\u6587\u4ef6\u5939/res/default_env.js\u7f16\u5199)\uff1a\r\npython -m biano \u914d\u7f6e\u6587\u4ef6.js\r\n\r\n\u7a0b\u5e8f\u53ef\u4ee5\u591a\u5f00\uff0c\u53ef\u4ee5\u5f00\u4e00\u4e2aplay\u5f53\u80cc\u666f\u97f3\uff0c\u518d\u5f00\u4e00\u4e2akeyboard\r\n\r\nPS: \u4e00\u4e9b\u914d\u7f6e\u4e00\u76f4\u7528\u7684\u56fa\u5b9a\u503c\uff0c\u6ca1\u7528\u8bd5\u8fc7\u5176\u4ed6\u503c\uff0c\u4fee\u6539\u540e\u53ef\u80fd\u6709\u95ee\u9898\r\n\r\n\u6309\u952e\u5bf9\u5e94\u97f3\u7b26:\r\nkeys to musical note:\r\n\r\n\u5de6\u624b(left hand):\r\n q  w  e  r  t \r\n 1 #1  2 #2  3\r\n a  s  d  f\r\n 4 #4  5 #5\r\n z  x  c\r\n 6 #6  7\r\n\r\n\u53f3\u624b(right hand):\r\n y  u  i  o  p\r\n 1 #1  2 #2  3\r\n h  j  k  l\r\n 4 #4  5 #5\r\n n  m  ,\r\n 6 #6  7\r\n\r\n\u6570\u5b57\u952e1,2,3,4,5\u4fee\u6539\u5de6\u624b\u57fa\u51c6\u97f3\u8c03\r\n\u6570\u5b57\u952e6,7,8,9,0\u4fee\u6539\u53f3\u624b\u57fa\u51c6\u97f3\u8c03\r\n\r\nnumber keys 1,2,3,4,5 modify base tone of left hand\r\nnumber keys 6,7,8,9,0 modify base tone of right hand\r\n\r\n\u6309\u952e-\u548c=\u4fee\u6539\u6570\u5b57\u952e\u97f3\u8c03\u504f\u79fb\r\nkeys - and = modify number key tone offset\r\n\r\nv0.2.2:\r\n\u52a0\u7f13\u5b58\uff0c\u539f\u672c\u521b\u5efa\u591a\u4e2a\u58f0\u97f3\u5bf9\u8c61\u6539\u6210\u4f7f\u7528\u4e00\u4e2a\u58f0\u97f3\u5bf9\u8c61\uff0c\u7528\u7f13\u5b58\u65b9\u5f0f\u8fdb\u884c\u8bfb\u5199\uff0c\u51cf\u5c11\u6742\u97f3\uff0c\u4f46\u4f1a\u589e\u52a0\u5ef6\u8fdf\r\n\u97f3\u8272\u6709\u5f85\u8c03\u6574\r\n\r\nv0.2.3:\r\n\u52a0\u914d\u7f6e\uff0c\u6309\u952e\u548c\u97f3\u8c03\u53ef\u914d\u7f6e\uff0c\u8fd0\u884c\r\npython -m biano \u914d\u7f6e\u6587\u4ef6.js\r\n\u914d\u7f6e\u6587\u4ef6\u4f1a\u5148\u4ece\u5f53\u524d\u76ee\u5f55\u627e\uff08\u6216\u8005\u8f93\u5165\u7684\u662f\u7edd\u5bf9\u8def\u5f84\uff0c\u627e\u7684\u5c31\u662f\u7edd\u5bf9\u8def\u5f84\u4e0b\u7684\u6587\u4ef6\uff09\uff0c\u627e\u4e0d\u5230\u4f1a\u4ecebiano\u6a21\u5757\u6587\u4ef6\u5939/res\u76ee\u5f55\u4e0b\u627e\r\n\u914d\u7f6e\u89c1: biano\u6a21\u5757\u6587\u4ef6\u5939/res/conf.js(\u9ed8\u8ba4\u914d\u7f6e\u6587\u4ef6)\r\n\u7a0b\u5e8f\u4f1a\u5148\u8bfb\u53d6\u9ed8\u8ba4\u914d\u7f6e\u6587\u4ef6\uff0c\u518d\u8bfb\u53d6\u547d\u4ee4\u884c\u6307\u4ee4\u914d\u7f6e\u6587\u4ef6\u8fdb\u884c\u66f4\u65b0\r\n\u566a\u58f0\u6709\u5f85\u5904\u7406\r\n\r\nv0.2.4:\r\n\u52a0\u4e50\u8c31\u6f14\u594f\u6a21\u5f0f\r\npython -m biano.play \u914d\u7f6e\u6587\u4ef6.js\r\n\u566a\u97f3\u6709\u5f85\u5904\u7406\r\n\r\nv0.2.41:\r\n\u7528buildz\u8fdb\u884cioc\u548c\u914d\u7f6e\uff08\u597d\u5904\u662f\u914d\u7f6e\u6587\u4ef6\u7528\u8d77\u6765\u65b9\u4fbf\u4e86\uff0c\u4ee3\u4ef7\u662f\u542f\u52a8\u53d8\u6162\uff09\r\n\u58f0\u6ce2\u505asmooth\u6765\u53bb\u566a\uff0c\u6b64\u5916\u52a0\u4e86\u6cdb\u97f3\uff0c\u611f\u89c9\u566a\u58f0\u5c11\u4e86\r\n\u97f3\u8272\u53ef\u914d\u7f6e\r\n\r\nv0.3.1:\r\n\u4fee\u6539\u4e00\u4e9b\u914d\u7f6e\r\n\u63d0\u9ad8\u58f0\u97f3\u6e90\u8870\u51cf\u5e45\u5ea6\uff0c\u4f46\u611f\u89c9\u58f0\u6ce2\u80fd\u91cf\u8fd8\u662f\u592a\u9ad8\u4e86\u4e9b\r\n\u4f4e\u97f3\u533a\u8fd8\u662f\u6709\u566a\u97f3\uff0c\u5f85\u5904\u7406\r\n```\r\n",
    "bugtrack_url": null,
    "license": "Apache License 2.0",
    "summary": "keyboard piano, just start",
    "version": "0.3.3",
    "project_urls": {
        "Homepage": "https://github.com/buildCodeZ/biano"
    },
    "split_keywords": [
        "biano"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "de90f5cad898abd62e5f6bd26c12f8a6a934bf8eddd292bec61e58a19ab41607",
                "md5": "bb7178434e9b58f47fa52f2a0cfe626d",
                "sha256": "5f4d545e3fdcb7e98cff636c53367a44de86ee89837b70fa0ceef6a914cb4e50"
            },
            "downloads": -1,
            "filename": "biano-0.3.3.tar.gz",
            "has_sig": false,
            "md5_digest": "bb7178434e9b58f47fa52f2a0cfe626d",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 24900,
            "upload_time": "2024-08-31T06:39:50",
            "upload_time_iso_8601": "2024-08-31T06:39:50.116892Z",
            "url": "https://files.pythonhosted.org/packages/de/90/f5cad898abd62e5f6bd26c12f8a6a934bf8eddd292bec61e58a19ab41607/biano-0.3.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-08-31 06:39:50",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "buildCodeZ",
    "github_project": "biano",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "biano"
}
        
Zzz
Elapsed time: 0.51339s