Package aldrin :: Module envelope
[show private | hide private]
[frames | no frames]

Module aldrin.envelope

Provides dialogs, classes and controls to display/load/save envelopes
Classes
ADSRPanel ADSR Panel.
EnvelopeView Envelope viewer.

Function Summary
[(x,y),...] load_envelope(path)
Loads an envelope from a file and returns all points as a list of x,y tuples.
  save_envelope(path, points, sustainindex)
Saves an envelope to a file from a list of points.

Function Details

load_envelope(path)

Loads an envelope from a file and returns all points as a list of x,y tuples.
Parameters:
path - path to envelope.
           (type=str)
Returns:
A list of points and the index of the sustain point (or -1).
           (type=[(x,y),...])

save_envelope(path, points, sustainindex=-1)

Saves an envelope to a file from a list of points.
Parameters:
path - path to envelope.
           (type=str)
points - A list of points.
           (type=[(x,y),...])
sustainindex - Index of the sustain point (-1 for none).
           (type=int)

Generated by Epydoc 2.1 on Sun Feb 4 18:01:15 2007 http://epydoc.sf.net