Permalink
Browse files

Imported Upstream version 0.0.7

  • Loading branch information...
grantma committed Oct 5, 2010
0 parents commit 0b63865728587a0e1bfabf1ecff9b99b4cb44979
Showing with 878 additions and 0 deletions.
  1. +39 −0 COPYING
  2. +8 −0 MANIFEST.in
  3. +15 −0 PKG-INFO
  4. +93 −0 README.txt
  5. +543 −0 pypm.pyx
  6. +80 −0 setup.py
  7. +100 −0 test_pyportmidi.py
39 COPYING
@@ -0,0 +1,39 @@
+
+pyPortMidi: Python bindings for Portable Real-Time MIDI Library
+
+COPYING -- a copy of the pyPortMidi copyright notice and license information
+
+
+Copyright (c) 2005-2009 John Harrison
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files
+(the "Software"), to deal in the Software without restriction,
+including without limitation the rights to use, copy, modify, merge,
+publish, distribute, sublicense, and/or sell copies of the Software,
+and to permit persons to whom the Software is furnished to do so,
+subject to the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR
+ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
+CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+
+
+The text above constitutes the entire pyPortMidi license; however,
+the original developer John Harrison also makes the following
+non-binding requests:
+
+Any person wishing to distribute modifications to the Software is
+requested to send the modifications to the original developer so that
+they can be incorporated into the canonical version. It is also
+requested that these non-binding requests be included along with the
+license above.
+
@@ -0,0 +1,8 @@
+include portmidi.h
+include win32\portmidi.lib
+include win32\porttime.lib
+include porttime.h
+include MANIFEST.in
+include OSX\libportmidi.a
+include linux\libportmidi.a
+
@@ -0,0 +1,15 @@
+Metadata-Version: 1.0
+Name: pyPortMidi
+Version: 0.0.7
+Summary: Python Wrappings for PortMidi
+Home-page: http://bitbucket.org/aalex/pyportmidi
+Author: John Harrison
+Author-email: harrison@media.mit.edu
+License: UNKNOWN
+Description:
+ pyPortMidi: support streaming realtime audio from Python
+ using the cross-platform PortMidi C library
+ The original home page of the project is
+ http://sound.media.mit.edu/~harrison/pyportmidi/
+
+Platform: UNKNOWN
@@ -0,0 +1,93 @@
+0.0.7 (June 2010)
+ Cleaned up in order to create a Debian package.
+
+0.0.6 (Mon, 14 Dec 2009)
+ Debian packaging
+ Removed from scripts files that were not scripts
+
+0.0.5: (June 1st, 2009) From the Pygame project
+ Output no longer calls abort when it deallocates.
+ Added abort and close methods.
+ Need to call Abort() explicityly if you want that to happen.
+
+PyPortMidi v0.03 03/15/05
+Python wrappings for PortMidi
+John Harrison
+harrison@media.mit.edu
+
+PyPortMidi
+----------
+
+PyPortMidi is a Python wrapper for PortMidi. PortMidi is a cross-platform
+C library for realtime MIDI control. Using PyPortMidi, you can send and
+receive MIDI data in realtime from Python.
+
+Besides using PyPortMidi to communicate to synthesizers and the
+like, it is possible to use PyPortMidi as a way to send MIDI messages
+between software packages on the same computer.
+
+PyPortMidi was written in Pyrex, a language for writing Python extension
+modules.
+
+Installing PyPortMidi from its Pyrex source code:
+-------------------------------------------------
+
+1. Linux only: install ALSA if it is not installed:
+ http://www.alsa-project.org/
+
+2. Install Pyrex if it is not installed
+ http://nz.cosc.canterbury.ac.nz/~greg/python/Pyrex/
+
+3. Choose to rebuild the PortMidi C library:
+ a. download and extract PortMidi
+ http://www-2.cs.cmu.edu/~music/portmusic/
+
+ b. Win32: - compile PortMidi with MS VC 6.0 (free download)
+ - use LIB from the MS VC 6.0 package to create
+ porttime.lib and portmidi.lib
+ - copy porttime.lib and portmidi.lib to
+ PyPortmidi's win32 subdirectory
+
+ c. OS X: - change to PortMidi subdirectory pm_mac
+ - compile. Type: xcodebuild -project pm_mac.pbproj
+ - copy newly created libportmidi.a to
+ PyPortMidi's OSX subdirectory
+
+ d. Linux: - type <make> from PortMidi's root directory
+ - copy libportmidi.a
+ from portmidi's pm_linux directory
+ to PyPortMidi's linux directory
+ - copy libporttime.a
+ from portmidi's porttime directory
+ to PyPortMidi's linux directory
+
+4. in PyPortMidi's root directory, type:
+ python setup.py install
+ (make sure you have admin/superuser privileges)
+
+Distribution of PyPortMidi compiled code:
+--------------------------------------------
+
+I have provided a Win32 installer for Python 2.3.x. I would welcome
+a Win32 installer for Python 2.4. I have *not* provided installers for
+OS X or Linux because I suspect these users would rather compile
+from source code. If this is not the case, please tell me.
+
+Update: There is now a Debian package available from http://bitbucket.org/aalex/pyportmidi.
+
+Using PyPortMidi
+----------------
+Running the test_pyportmidi.py sample script and looking at the code is the
+easiest way to start. The classes and functions are mostly documented, or
+seem self-explanatory.
+
+You can also look at the portmidi.h header, which heavily documents all
+of PortMidi's functions.
+
+Bugs, suggestions etc.
+----------------------
+I welcome any bugs you have to report or any suggestions you have about
+how to improve the code and the interface.
+
+-John
+
Oops, something went wrong.

0 comments on commit 0b63865

Please sign in to comment.