Giter VIP home page Giter VIP logo

pop-to-8bit's Introduction

pop-to-8bit

This is a Python version implementaion of the paper, and you can also see some informations in our website.

Note that this version may generate slightly different result in compare to the original version, and the processing technique in section 2.3 of paper is omitted due to the fact that it can be achieved by tuning the parameter of pYIN plug-in.

The NMF constraint is also not implemented in this version due to its ineffectiveness of improving the conversion result.

Prerequisites

If you use Archlinux, there is an AUR package available.

Installation

You can install the package with

python3 setup.py install

Usage

You can simply convert your audio with:

popto8bit [-h] [-s SAMPLE_RATE] [--block_size BLOCK_SIZE]

                [--step_size STEP_SIZE]

                audio_path output_path

Tuning the step_size and block_size can help reach a more accurate pitch result.

Acknowledgement

  • pYIN vamp plug-in : Matthias Mauch, Dixon, Simon
  • LibROSA: 0.4.1 : Brian McFee; Matt McVicar; Colin Raffel; Dawen Liang; Oriol Nieto; Eric Battenberg; Josh Moore; Dan Ellis; Ryuichi YAMAMOTO; Rachel Bittner; Douglas Repetto; Petr Viktorin; João Felipe Santos; Adrian Holovaty
  • Pypropack : Jake Vanderplas
  • robust-matrix-decomposition : Kyle Kastner
  • RPCA : Alex Pananicolaou

pop-to-8bit's People

Contributors

lemonatsu avatar tallero 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

pop-to-8bit's Issues

Unable to install on Windows 10

Upon running install, I'm having troubles. Log of CMD:

Installing popto8bit-script.py script to C:\Users\redacted\AppData\Local\Programs\Python\Python310\Scripts
Installing popto8bit.exe script to C:\Users\redacted\AppData\Local\Programs\Python\Python310\Scripts

Installed c:\users\redacted\appdata\local\programs\python\python310\lib\site-packages\popto8bit-0.0.1-py3.10.egg
Processing dependencies for popto8bit==0.0.1
Searching for vamp
Reading https://pypi.org/simple/vamp/
Downloading https://files.pythonhosted.org/packages/66/65/a54958777fa667ef881ceec18dd0b423b2ba2c77543060b21aff0e1dbcb6/vamp-1.1.0.tar.gz#sha256=d40e0916e958e2806d37920f903c2518cc46959a4f21e020737b6a48f6e7e82d
Best match: vamp 1.1.0
Processing vamp-1.1.0.tar.gz
Writing C:\Users\redacted\AppData\Local\Temp\easy_install-jwuwuxud\vamp-1.1.0\setup.cfg
Running vamp-1.1.0\setup.py -q bdist_egg --dist-dir C:\Users\redacted\AppData\Local\Temp\easy_install-jwuwuxud\vamp-1.1.0\egg-dist-tmp-q_785ic7
PyPluginObject.cpp
native/PyPluginObject.cpp(220): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data
native/PyPluginObject.cpp(259): error C2065: 'ssize_t': undeclared identifier
native/PyPluginObject.cpp(259): error C2146: syntax error: missing ';' before identifier 'n'
native/PyPluginObject.cpp(259): error C2065: 'n': undeclared identifier
native/PyPluginObject.cpp(262): error C2065: 'n': undeclared identifier
native/PyPluginObject.cpp(289): error C2065: 'n': undeclared identifier
native/PyPluginObject.cpp(289): error C2065: 'n': undeclared identifier
native/PyPluginObject.cpp(290): error C2065: 'n': undeclared identifier
native/PyPluginObject.cpp(290): error C2065: 'n': undeclared identifier
native/PyPluginObject.cpp(318): error C2065: 'ssize_t': undeclared identifier
native/PyPluginObject.cpp(318): error C2146: syntax error: missing ';' before identifier 'method'
native/PyPluginObject.cpp(318): error C2065: 'method': undeclared identifier
native/PyPluginObject.cpp(322): error C2065: 'method': undeclared identifier
native/PyPluginObject.cpp(343): error C2065: 'method': undeclared identifier
native/PyPluginObject.cpp(350): error C2065: 'ssize_t': undeclared identifier
native/PyPluginObject.cpp(350): error C2146: syntax error: missing ';' before identifier 'channels'
native/PyPluginObject.cpp(350): error C2065: 'channels': undeclared identifier
native/PyPluginObject.cpp(350): error C2065: 'blockSize': undeclared identifier
native/PyPluginObject.cpp(350): error C2065: 'stepSize': undeclared identifier
native/PyPluginObject.cpp(353): error C2065: 'channels': undeclared identifier
native/PyPluginObject.cpp(354): error C2065: 'stepSize': undeclared identifier
native/PyPluginObject.cpp(355): error C2065: 'blockSize': undeclared identifier
native/PyPluginObject.cpp(364): error C2065: 'channels': undeclared identifier
native/PyPluginObject.cpp(365): error C2065: 'stepSize': undeclared identifier
native/PyPluginObject.cpp(366): error C2065: 'blockSize': undeclared identifier
native/PyPluginObject.cpp(368): error C2065: 'channels': undeclared identifier
native/PyPluginObject.cpp(368): error C2065: 'stepSize': undeclared identifier
native/PyPluginObject.cpp(368): error C2065: 'blockSize': undeclared identifier
native/PyPluginObject.cpp(369): error C2065: 'channels': undeclared identifier
native/PyPluginObject.cpp(369): error C2065: 'stepSize': undeclared identifier
native/PyPluginObject.cpp(369): error C2065: 'blockSize': undeclared identifier
native/PyPluginObject.cpp(696): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data
native/PyPluginObject.cpp(698): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data
native/PyPluginObject.cpp(734): warning C4267: 'argument': conversion from 'size_t' to 'long', possible loss of data
native/PyPluginObject.cpp(742): warning C4267: 'argument': conversion from 'size_t' to 'long', possible loss of data
native/PyPluginObject.cpp(750): warning C4267: 'argument': conversion from 'size_t' to 'long', possible loss of data
native/PyPluginObject.cpp(758): warning C4267: 'argument': conversion from 'size_t' to 'long', possible loss of data
error: Setup script exited with error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.29.30133\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2

Under what license is this?

I am a little interested in your research, but I want to know the license of your code. No one release code based on yours as it is now.

Example script to run on examples/c1-c4.wav

Would be amazing if you could include an example script to run on the examples folder. I think it'd help guide people on what exactly to enter for sample_rate, and block_size.

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.