| Home | Trees | Index | Help |
|
|---|
| Package aldrin :: Module wavetable :: Class EnvelopeView |
|
object--+ |Object--+ |EvtHandler--+ |Window--+ |Canvas--+ | EnvelopeView
Envelope viewer.
A drawing surface where you can specify how the volume of a sample changes over time.| Method Summary | |
|---|---|
Initialization. | |
Overriding a Canvas method that paints onto an offscreen
buffer. | |
env_to_pixel(self,
x,
y)
| |
| (int, int) |
Finds an existing envelope point that matches the given position the best. |
| list |
Converts the envelope values to a list of pixel values. |
Callback that responds to context menu activation. | |
Callback responding to the context menu item that deletes the current point of the envelope. | |
Callback that responds to left mouse down over the envelope view. | |
Callback that responds to left mouse up over the envelope view. | |
Callback that responds to mouse motion over the envelope view. | |
Callback responding to the context menu item that sets the current point to sustain mode. | |
| (int, int) |
Converts a (x,y) pixel coordinate into an envelope point value. |
Updates the envelope view based on the sample selected in the sample list. | |
| Inherited from Canvas | |
Performs the blit of the buffer contents on-screen. | |
Returns a tuple that contains the co-ordinates of the top-left and bottom-right corners of the canvas. | |
| |
| |
Renders the off-screen buffer on-screen. | |
| |
Perform actual redraw to off-screen buffer only when the size of the canvas has changed. | |
Explicitly tells the canvas to redraw it's contents. | |
| |
| Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
x.__hash__() <==> hash(x) | |
T.__new__(S, ...) -> a new object with type S, a subtype of T | |
helper for pickle | |
helper for pickle | |
x.__setattr__('name', value) <==> x.name = value | |
x.__str__() <==> str(x) | |
| Class Variable Summary | |
|---|---|
int |
DELETE = 8824 |
int |
SUSTAIN = 8823 |
| Inherited from Canvas | |
bool |
doublebuffered = True
|
| Instance Method Details |
|---|
__init__(self,
*args,
**kwds)
Initialization.
|
DrawBuffer(self)Overriding aCanvas method that paints onto an
offscreen buffer. Draws the envelope view graphics.
|
get_point_at(self, position)Finds an existing envelope point that matches the given position the best.
|
get_translated_points(self)Converts the envelope values to a list of pixel values.
|
on_context_menu(self, event)Callback that responds to context menu activation.
|
on_delete_point(self, event)Callback responding to the context menu item that deletes the current point of the envelope.
|
on_left_down(self, event)Callback that responds to left mouse down over the envelope view.
|
on_left_up(self, event)Callback that responds to left mouse up over the envelope view.
|
on_motion(self, event)Callback that responds to mouse motion over the envelope view.
|
on_set_sustain(self, event)Callback responding to the context menu item that sets the current point to sustain mode.
|
pixel_to_env(self, position)Converts a (x,y) pixel coordinate into an envelope point value.
|
update(self)Updates the envelope view based on the sample selected in the sample list. |
| Class Variable Details |
|---|
DELETE
|
SUSTAIN
|
| Home | Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.1 on Fri Nov 24 13:58:33 2006 | http://epydoc.sf.net |