Envelope viewer.
A drawing surface where you can specify how the volume of a sample
changes over time.
Method Summary |
|
__init__ (self,
wavetable,
*args,
**kwds)
Initialization. |
|
DrawBuffer (self)
Overriding a Canvas method that paints onto an offscreen
buffer. |
|
Enable(self,
enable)
|
|
env_to_pixel(self,
x,
y)
|
(int, int)
|
get_point_at (self,
position)
Finds an existing envelope point that matches the given position the
best. |
list
|
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_enter (self,
event)
Called when the mouse enters the envelope editor. |
|
on_leave (self,
event)
Called when the mouse leaves the envelope editor. |
|
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_load (self,
event)
Callback responding to the "load" context menu item. |
|
on_motion (self,
event)
Callback that responds to mouse motion over the envelope view. |
|
on_reset (self,
event)
Callback responding to the "reset" context menu item. |
|
on_save (self,
event)
Callback responding to the "save" context menu item. |
|
on_set_sustain (self,
event)
Callback responding to the context menu item that sets the current
point to sustain mode. |
(int, int)
|
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. |
Inherited from object |
|
__delattr__ (...)
x.__delattr__('name') <==> del x.name |
|
__getattribute__ (...)
x.__getattribute__('name') <==> x.name |
|
__hash__ (x)
x.__hash__() <==> hash(x) |
|
__new__ (T,
S,
...)
T.__new__(S, ...) -> a new object with type S, a subtype of T |
|
__reduce__ (...)
helper for pickle |
|
__reduce_ex__ (...)
helper for pickle |
|
__setattr__ (...)
x.__setattr__('name', value) <==> x.name = value |
|
__str__ (x)
x.__str__() <==> str(x) |