GithubHelp home page GithubHelp logo

pythonmidi's Introduction

PythonMIDI

Dependencies, Installation, and Usage

This application is coded entirely in python, and uses python version 2.7. Python 2.7 can be downloaded from http://python.org/download/. The three main dependencies for this application are Tkinter, pygame, and midi. Tkinter is included within the python installer so there aren’t any additional steps or downloads to using it. The pygame installer can be downloaded from http://www.pygame.org/download.shtml. The midi library used has a more complicated install than normal. First, you must download and extract the zip from here https://github.com/vishnubob/python-midi/archive/master.zip. Once extracted, you need to open a command prompt on the extracted directory (either cd to it or shift + right click within the directory and click open command window here) and run “python setup.py install”.

Once the dependencies are installed, the application script can be run from within IDLE (default python windows IDE). For some reason, running the script through the command prompt causes a PortMIDI error that was unable to be resolved. Upon running the script it will ask for a track number (this is to allow for different tracks in multiple track midi files to be played), enter 1 and hit enter. It will then ask for the beats per minute desired, feel free to change this number as you wish so you can observe the music and piano at a faster or slower pace. To close the program exit the piano gui window.

This application has only been tested within Windows, so it is unsure if it will work correctly within a Unix environment. For best results, please use a Windows environment.

pythonmidi's People

Contributors

kkraus14 avatar

Watchers

James Cloos avatar

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.