{ "info": { "author": "Adafruit Industries", "author_email": "circuitpython@adafruit.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Topic :: Software Development :: Libraries", "Topic :: System :: Hardware" ], "description": "Introduction\n============\n\n.. image:: https://readthedocs.org/projects/adafruit-circuitpython-midi/badge/?version=latest\n :target: https://circuitpython.readthedocs.io/projects/midi/en/latest/\n :alt: Documentation Status\n\n.. image:: https://img.shields.io/discord/327254708534116352.svg\n :target: https://discord.gg/nBQh6qu\n :alt: Discord\n\n.. image:: https://travis-ci.com/adafruit/Adafruit_CircuitPython_MIDI.svg?branch=master\n :target: https://travis-ci.com/adafruit/Adafruit_CircuitPython_MIDI\n :alt: Build Status\n\nA CircuitPython helper for encoding/decoding MIDI packets over a MIDI or UART connection.\n\n\nDependencies\n=============\nThis driver depends on:\n\n* `Adafruit CircuitPython `_\n\nPlease ensure all dependencies are available on the CircuitPython filesystem.\nThis is easily achieved by downloading\n`the Adafruit library and driver bundle `_.\n\nInstalling from PyPI\n--------------------\n\nOn supported GNU/Linux systems like the Raspberry Pi, you can install the driver locally `from\nPyPI `_. To install for current user:\n\n.. code-block:: shell\n\n pip3 install adafruit-circuitpython-midi\n\nTo install system-wide (this may be required in some cases):\n\n.. code-block:: shell\n\n sudo pip3 install adafruit-circuitpython-midi\n\nTo install in a virtual environment in your current project:\n\n.. code-block:: shell\n\n mkdir project-name && cd project-name\n python3 -m venv .env\n source .env/bin/activate\n pip3 install adafruit-circuitpython-midi\n\nUsage Example\n=============\n\n.. code-block:: python\n\n import time\n import random\n import usb_midi\n import adafruit_midi\n\n midi = adafruit_midi.MIDI(midi_out=usb_midi.ports[1], out_channel=0)\n\n print(\"Midi test\")\n\n print(\"Default output MIDI channel:\", midi.out_channel + 1)\n\n while True:\n midi.note_on(44, 120)\n midi.note_off(44, 120)\n midi.control_change(3, 44)\n midi.pitch_bend(random.randint(0,16383))\n time.sleep(1)\n\n\nContributing\n============\n\nContributions are welcome! Please read our `Code of Conduct\n`_\nbefore contributing to help this project stay welcoming.\n\nBuilding locally\n================\n\nZip release files\n-----------------\n\nTo build this library locally you'll need to install the\n`circuitpython-build-tools `_ package.\n\n.. code-block:: shell\n\n python3 -m venv .env\n source .env/bin/activate\n pip install circuitpython-build-tools\n\nOnce installed, make sure you are in the virtual environment:\n\n.. code-block:: shell\n\n source .env/bin/activate\n\nThen run the build:\n\n.. code-block:: shell\n\n circuitpython-build-bundles --filename_prefix adafruit-circuitpython-midi --library_location .\n\nSphinx documentation\n-----------------------\n\nSphinx is used to build the documentation based on rST files and comments in the code. First,\ninstall dependencies (feel free to reuse the virtual environment from above):\n\n.. code-block:: shell\n\n python3 -m venv .env\n source .env/bin/activate\n pip install Sphinx sphinx-rtd-theme\n\nNow, once you have the virtual environment activated:\n\n.. code-block:: shell\n\n cd docs\n sphinx-build -E -W -b html . _build/html\n\nThis will output the documentation to ``docs/_build/html``. Open the index.html in your browser to\nview them. It will also (due to -W) error out on any warning like Travis will. This is a good way to\nlocally verify it will pass.", "description_content_type": "text/x-rst", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/adafruit/Adafruit_CircuitPython_MIDI", "keywords": "adafruit blinka circuitpython micropython midi uart encoding decoding", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "adafruit-circuitpython-midi", "package_url": "https://pypi.org/project/adafruit-circuitpython-midi/", "platform": "", "project_url": "https://pypi.org/project/adafruit-circuitpython-midi/", "project_urls": { "Homepage": "https://github.com/adafruit/Adafruit_CircuitPython_MIDI" }, "release_url": "https://pypi.org/project/adafruit-circuitpython-midi/1.1.0/", "requires_dist": null, "requires_python": "", "summary": "A CircuitPython helper for encoding/decoding MIDI packets over a MIDI or UART connection.", "version": "1.1.0" }, "last_serial": 5165659, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "f79f3dd4d4d4170782ed3207d071b543", "sha256": "fca07c59d4a942e2decef47b31a2491064e15662bb745a504aa086faf564baa6" }, "downloads": -1, "filename": "adafruit-circuitpython-midi-1.0.0.tar.gz", "has_sig": false, "md5_digest": "f79f3dd4d4d4170782ed3207d071b543", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18955, "upload_time": "2019-01-25T19:15:59", "url": "https://files.pythonhosted.org/packages/91/24/61a2f8dc3982e022a9f1cf199bd269fe74bb7aefc3404d6f314e3c48d598/adafruit-circuitpython-midi-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "07a7241287a219b29faa4705348e2e8f", "sha256": "9dfa539572ee196c8b40952d71ecbe800907e5e2cb63540e2d78822941129505" }, "downloads": -1, "filename": "adafruit-circuitpython-midi-1.0.1.tar.gz", "has_sig": false, "md5_digest": "07a7241287a219b29faa4705348e2e8f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18954, "upload_time": "2019-03-09T21:22:47", "url": "https://files.pythonhosted.org/packages/52/66/36d5bc586ef18510d675bc1dbb64d4e5361d5a60dd6aa03f90a15eccf439/adafruit-circuitpython-midi-1.0.1.tar.gz" } ], "1.1.0": [ { "comment_text": "", "digests": { "md5": "98cbf357df9a93619d9ee38a3d3fa1fc", "sha256": "f7d0ebfe77ffa4e4818a5f4da7874682109f6f932d0b75bd31bd3a09e14fcbee" }, "downloads": -1, "filename": "adafruit-circuitpython-midi-1.1.0.tar.gz", "has_sig": false, "md5_digest": "98cbf357df9a93619d9ee38a3d3fa1fc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 33058, "upload_time": "2019-04-19T18:01:28", "url": "https://files.pythonhosted.org/packages/3e/d6/a0ce8b1384b98bdbbd3cf7be2fe5955ea1435854bc00377f37fd49908c3f/adafruit-circuitpython-midi-1.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "98cbf357df9a93619d9ee38a3d3fa1fc", "sha256": "f7d0ebfe77ffa4e4818a5f4da7874682109f6f932d0b75bd31bd3a09e14fcbee" }, "downloads": -1, "filename": "adafruit-circuitpython-midi-1.1.0.tar.gz", "has_sig": false, "md5_digest": "98cbf357df9a93619d9ee38a3d3fa1fc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 33058, "upload_time": "2019-04-19T18:01:28", "url": "https://files.pythonhosted.org/packages/3e/d6/a0ce8b1384b98bdbbd3cf7be2fe5955ea1435854bc00377f37fd49908c3f/adafruit-circuitpython-midi-1.1.0.tar.gz" } ] }