Genre Based Music Classifier
Follow the below commands to install gmc on your system
$ git clone https://github.com/kapilgarg1996/gmc.git
$ sudo pip install gmc
- install
pip
(Google how to install pip on your system) - install
virtualenv
(Google how to install virtualenv) - Now follow the below commands
$ virtualenv env $ cd env $ source bin/activate $ git clone https://github.com/kapilgarg1996/gmc.git $ cd gmc $ pip install -e .
- You can download the dataset from Here
- Music files are present in au format so you need to convert them to wav format. You can use ffmpeg to convert files (Google out how to install ffmpeg on your system)
GMC has its own test running module. Follow the below test to run the test suite.
$ cd tests
$ python run.py
Its a good practice to write tests before adding a new feature.
- Create a module inside the
tests
module with name starting with test liketest_module
- Create
__init__.py
inside yourtest_module
- Add tests file following the unittest convention
-
Go to the test module which tests the module to which the new feature is added. Eg. if you add a new feature to
Settings
then go totest_settings
module insidetests
-
Write a new method or a new test class or a new test file depending on the size of the feature.
GMC uses sphinx for its documentation. The documentation is present
inside docs/
folder and is in plain text format. Go to the docs/
folder where You can build the documentation using the following
command
Please write documentation for every piece of code you add or modify. Use markdown format and sphinx features. (Its not that hard)
make html
Here html
is the target format. The built documentation will be
present in docs/build/html
. For a complete list of available
formats, visit sphinx build options