n.__init__ : module documentation

Part of numm

Numerical arts library.
Function sound2np Load audio data from a file.
Function np2sound Save audio data to a file.
Function image2np Load an image file into an array.
Function np2image Save an image array to a file.
Function video2np Load video data from a file.
Function np2video Save video data to a file.
Class Run Asynchronous looping interface.
Function run Asynchronous looping interface.
def sound2np(filepath, start=0, n_frames=-1, sample_rate=44100):
Load audio data from a file.
def np2sound(np, filepath):
Save audio data to a file.

Currently, audio is always saved as WAV data.

def image2np(path):
Load an image file into an array.
def np2image(np, path):
Save an image array to a file.
def video2np(path, width=None, height=96, fps=30, start=0, n_frames=-1):
Load video data from a file.
def np2video(np, path):
Save video data to a file.

Currently, the video data is written as JPEG images in a Matroska container.

def run(**kw):
Asynchronous looping interface.

This function is a shorthand for instantiating Run and calling run on the instance; it takes the same arguments as Run.

API Documentation for numm, generated by pydoctor at 2012-04-04 22:10:45.