This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

# numm

For programmers familiar with python or matlab who are interested in toying with the sounds and images around them; for artists, designers, and composers seeking a deeper understanding of the numerical systems that underlie modern media production.

numm is a minimalist media library that translates popular sound, image, and video formats to and from numpy arrays. By coercing inputs into common modes (eg. sample rate, bit depth), combining and mutating these numpy arrays is greatly simplified.

The general strategy for these functions is to make any assumptions necessary such that a single array of numbers provides sufficient information with which to reconstruct a media file, without any additional metadata. For example, width and height are contained in the dimensions of an array, so they may be different image to image, but framerate, samplerate, &c is not inherent to the data, so it should be made uniform unless explicitly specified.

In the transition from an image to an array, the primary considerations are resolution (wxh) and mode (RGB, RGBA, 8bit, 16bit, &c). We choose not to provide any special API for resampling an Image–this can be done with numpy if desired–and always return 8bit RGB buffers.

image2np(path) np2image(np, path)

In the case of audio, we choose to force all input to 44100Hz stereo.

sound2np(path) np2sound(np, path)

Video is an array of wxhx3 arrays 30frames per second. Square pixels are assumed.

video2np(path) np2video(np, path)

Note that in particular in the case of video, these numpy buffers will require a considerable amount of memory; preprocess accordingly (eg in ffmpeg). We should also raise a NotEnoughMemory exception when RAM will not hold our buffer.

The live interface is provided by numpy.run.run(), a function with just a few input-output controls, communicated through function passing.

## Requirements

  • PyGst
  • PIL

Recommended:

  • OpenCV

## Licence

Copyright (C) 2011, Dafydd Harries <daf@numm.org> Copyright (C) 2011, Robert Ochshorn <rmo@numm.org>

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

Release History

Release History

0.3

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.1

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
numm-0.3.tar.gz (34.3 kB) Copy SHA256 Checksum SHA256 Source Apr 4, 2012

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting