Skip to content

Commit

Permalink
New: Gridic - A note/time grid to create small fragments of music.
Browse files Browse the repository at this point in the history
  • Loading branch information
elvisds committed Dec 20, 2014
1 parent e68250a commit 495ad82
Show file tree
Hide file tree
Showing 34 changed files with 1,254 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .editorconfig
@@ -0,0 +1,21 @@
# http://editorconfig.org

root = true

[*]
indent_style = space
indent_size = 4
trim_trailing_whitespace = true
insert_final_newline = true
charset = utf-8
end_of_line = lf

[*.bat]
indent_style = tab
end_of_line = crlf

[LICENSE]
insert_final_newline = false

[Makefile]
indent_style = tab
43 changes: 43 additions & 0 deletions .gitignore
@@ -0,0 +1,43 @@
*.py[cod]

# C extensions
*.so

# Packages
*.egg
*.egg-info
dist
build
eggs
parts
bin
var
sdist
develop-eggs
.installed.cfg
lib
lib64

# Installer logs
pip-log.txt

# Unit test / coverage reports
.coverage
.tox
nosetests.xml
htmlcov

# Translations
*.mo

# Mr Developer
.mr.developer.cfg
.project
.pydevproject

# Complexity
output/*.html
output/*/index.html

# Sphinx
docs/_build
12 changes: 12 additions & 0 deletions .travis.yml
@@ -0,0 +1,12 @@
# Config file for automatic testing at travis-ci.org

language: python

python:
- "2.7"

# command to install dependencies, e.g. pip install -r requirements.txt --use-mirrors
install: pip install -r requirements.txt

# command to run tests, e.g. python setup.py test
script: python setup.py test
5 changes: 5 additions & 0 deletions AUTHORS.rst
@@ -0,0 +1,5 @@
=======
Credits
=======

* Elvis D'Souza <me@elvis.co.in>
5 changes: 5 additions & 0 deletions CONTRIBUTING.rst
@@ -0,0 +1,5 @@
============
Contributing
============

Contributions are welcome, and they are greatly appreciated!
9 changes: 9 additions & 0 deletions HISTORY.rst
@@ -0,0 +1,9 @@
.. :changelog:
History
-------

0.1.0 (2014-12-20)
---------------------

* First release on PyPI.
12 changes: 12 additions & 0 deletions LICENSE
@@ -0,0 +1,12 @@
Copyright (c) 2014, Elvis D'Souza
All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

* Neither the name of Gridic nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
11 changes: 11 additions & 0 deletions MANIFEST.in
@@ -0,0 +1,11 @@
include AUTHORS.rst
include CONTRIBUTING.rst
include HISTORY.rst
include LICENSE
include README.rst

recursive-include tests *
recursive-exclude * __pycache__
recursive-exclude * *.py[co]

recursive-include docs *.rst conf.py Makefile make.bat
64 changes: 64 additions & 0 deletions Makefile
@@ -0,0 +1,64 @@
.PHONY: clean-pyc clean-build docs clean

help:
@echo "clean - remove all build, test, coverage and Python artifacts"
@echo "clean-build - remove build artifacts"
@echo "clean-pyc - remove Python file artifacts"
@echo "clean-test - remove test and coverage artifacts"
@echo "lint - check style with flake8"
@echo "test - run tests quickly with the default Python"
@echo "test-all - run tests on every Python version with tox"
@echo "coverage - check code coverage quickly with the default Python"
@echo "docs - generate Sphinx HTML documentation, including API docs"
@echo "release - package and upload a release"
@echo "dist - package"

clean: clean-build clean-pyc clean-test

clean-build:
rm -fr build/
rm -fr dist/
rm -fr *.egg-info

clean-pyc:
find . -name '*.pyc' -exec rm -f {} +
find . -name '*.pyo' -exec rm -f {} +
find . -name '*~' -exec rm -f {} +
find . -name '__pycache__' -exec rm -fr {} +

clean-test:
rm -fr .tox/
rm -f .coverage
rm -fr htmlcov/

lint:
flake8 gridic tests

test:
python setup.py test

test-all:
tox

coverage:
coverage run --source gridic setup.py test
coverage report -m
coverage html
open htmlcov/index.html

docs:
rm -f docs/gridic.rst
rm -f docs/modules.rst
sphinx-apidoc -o docs/ gridic
$(MAKE) -C docs clean
$(MAKE) -C docs html
open docs/_build/html/index.html

release: clean
python setup.py sdist upload
python setup.py bdist_wheel upload

dist: clean
python setup.py sdist
python setup.py bdist_wheel
ls -l dist
35 changes: 35 additions & 0 deletions README.rst
@@ -0,0 +1,35 @@
===============================
Gridic
===============================

.. image:: https://badge.fury.io/py/gridic.png
:target: http://badge.fury.io/py/gridic

A note/time grid that helps create small fragments of music.

.. image:: preview.png

How to Install
--------------

* Download and install Fluidsynth from http://www.fluidsynth.org/
* Download a soundfont from `HammerSound <http://www.hammersound.com/cgi-bin/soundlink.pl?action=view_category&category=Piano&ListStart=0&ListLength=15>`_
* Use pip to install Gridic

::

pip install gridic

* Open your python interpreter and run gridic

::

>>> import gridic
>>> gridic.run(SOUNDFONT_FILE=YOUR_SOUNDFONT_LOCATION)

* Alternately, download this package from Github/PyPI and use `python setup.py install`


* Soundfonts, midi mappings and delay is configurable
* Free software: BSD license
* Documentation: https://gridic.readthedocs.org.

0 comments on commit 495ad82

Please sign in to comment.