Giter Site home page Giter Site logo

mewnojs / singingpiano Goto Github PK

View Code? Open in Web Editor NEW

This project forked from greyelaina/singingpiano

39.0 3.0 2.0 2.65 MB

A simple tool to convert waveforms(16-bit int.) into MIDI files using Python and STFT(Matplotlib)

License: GNU General Public License v3.0

Batchfile 0.07% Python 20.43% QML 76.10% C++ 3.41%

singingpiano's Introduction

SingingPiano

中文版

Tutorials

Supported Platform

  • Windows 10 (64 bit version)
  • Linux (64 bit version) [UNCHECKED]
  • Android [PARTIAL]
  • OS X [UNCHECKED]

Installation

  1. Obtain Python;
  2. Use pip install -r requirements.txt to install all the requirements for this tool;
  3. For non-windows users: Manually build the native module, here is the command: (under the source directory)python3 setup.py build, and put the binary module file into the libs directory;
  4. Run SingingpianoQt.pyw and enjoy!

Troubleshooting

Unable to open "SingingpianoQt.pyw"

  • Make sure that you have done the former installation steps successfully;
  • Use QTDEBUG.BAT(windows user) or python3 SingingpianoQt.pyw(in "terminal" window) to start the tool, if any error occured, come up with a new issue here.

Playing generated MIDI files

  • PFA is recommended as it provides a simple choice to customize track colors;
  • A MIDI Driver such as OmniMIDI is needed in order to apply the specified soundfont before playing;

Suggested Track Color: (Color #4 is a color close to the background color the most)

Track # Color
0 Color #4
1 Color #3
2 Color #2
3 Color #1
4 Color #1
5 Color #2
6 Color #3
7 Color #4

See also PFA Configuration File.

singingpiano's People

Contributors

mewnojs avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

singingpiano's Issues

无法启动SingingPianoQt.pyw

Traceback (most recent call last): File "D:\Win\Downloads\SingingPiano-master\singingpianoqt.pyw", line 13, in <module> from singingpiano import * File "D:\Users\fluttershy\AppData\Local\Programs\Python\Python39\Lib\site-packages\shiboken2\files.dir\shibokensupport\__feature__.py", line 142, in _import return original_import(name, *args, **kwargs) File "D:\Win\Downloads\SingingPiano-master\singingpiano.py", line 20, in <module> from tap import Tap File "D:\Users\fluttershy\AppData\Local\Programs\Python\Python39\Lib\site-packages\shiboken2\files.dir\shibokensupport\__feature__.py", line 142, in _import return original_import(name, *args, **kwargs) File "D:\Users\fluttershy\AppData\Local\Programs\Python\Python39\lib\site-packages\tap.py", line 6, in <module> from mc_bin_client import mc_bin_client, memcacheConstants as Constants File "D:\Users\fluttershy\AppData\Local\Programs\Python\Python39\Lib\site-packages\shiboken2\files.dir\shibokensupport\__feature__.py", line 142, in _import return original_import(name, *args, **kwargs) File "D:\Users\fluttershy\AppData\Local\Programs\Python\Python39\lib\site-packages\mc_bin_client\mc_bin_client.py", line 278 except MemcachedError, e: ^ SyntaxError: invalid syntax

CLI Version 命令行版本

首先,衷心祝贺此项目在 GitHub 上线,这也是我许久的愿望。
回到主题,此工具设计的很好,Qt GUI 设计的十分美观实用。
但这引申到一个问题:我并不能在所有条件下都使用 Qt GUI
版本,例如说我没有加载桌面环境,或者 PyQt 损坏无法使用
等。
我虽然在项目根目录下找到了一个名为“singingpiano.py"的文件,
但我不知道怎么去使用。况且这种交互式执行很影响自动化执行,
并且这个文件看起来似乎已被弃置多年,不再维护。
综上所述,希望开发团队能设计一个 CLI+交互式 的 Python 脚本文件,
以方便无法使用 GUI 的用户以及自动化执行脚本。

关于启动SingingPianoQt.pyw后无法正常运行的问题

C:\Users\xxx\Desktop\SingingPiano-master>python SingingpianoQt.pyw
zh_CN
i18npath:['languages']
qt.qpa.plugin: Could not load the Qt platform plugin "windows" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: direct2d, minimal, offscreen, windows.

运行SingingPianoQt.pyw后出现以上信息如何解决?

详细文档

我至今还不知道MELA文件是啥,ETU文件又是啥。
那一堆批处理文件都是干什么用的?
还有,requirements里对Pyaudio只字未提。
此外,这一堆东西不应该零零散散,而是总结为几个py文件,亦或者模块化。
项目里的所有东西最终都是给用户用的,只不过不同用户用的不同。
这个项目很好,但是却败在了文档这一方面。源代码也十分混乱,多出来的一堆换行符也不知道有什么用途。
这个项目最终不是只给程序员和开源社区工作者使用的,而是面向大众。
当然,现在做这些还不着急

pip没有-r

C:\Users\Administrator\Desktop\SingingPiano-master>pip -r requirments.txt

Usage:
pip [options]

no such option: -r

error

#QTDEBUG

zh_CN
Traceback (most recent call last):
File "SingingpianoQt.pyw", line 200, in
i18n.set('locale',locale.getdefaultlocale()[0])
AttributeError: module 'i18n' has no attribute 'set'
请按任意键继续. . .

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.