Package aldrin :: Module wavetable :: Class EnvelopeView
[show private | hide private]
[frames | no frames]

Type 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
  __init__(self, *args, **kwds)
Initialization.
  DrawBuffer(self)
Overriding a Canvas method that paints onto an offscreen buffer.
  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_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.
(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 Canvas
  Blit(self, dc)
Performs the blit of the buffer contents on-screen.
  GetBoundingRect(self)
Returns a tuple that contains the co-ordinates of the top-left and bottom-right corners of the canvas.
  MakeNewBuffer(self)
  onEraseBackground(self, event)
  onPaint(self, event)
Renders the off-screen buffer on-screen.
  onPostPaint(self, dc)
  onSize(self, event)
Perform actual redraw to off-screen buffer only when the size of the canvas has changed.
  ReDraw(self, *args, **kargs)
Explicitly tells the canvas to redraw it's contents.
  Refresh(self)
    Inherited from Window
  __repr__(self)
  AcceptsFocus(*args, **kwargs)
AcceptsFocus(self) -> bool
  AcceptsFocusFromKeyboard(*args, **kwargs)
AcceptsFocusFromKeyboard(self) -> bool
  AddChild(*args, **kwargs)
AddChild(self, Window child)
  AssociateHandle(*args, **kwargs)
AssociateHandle(self, long handle)
  CacheBestSize(*args, **kwargs)
CacheBestSize(self, Size size)
  CaptureMouse(*args, **kwargs)
CaptureMouse(self)
  Center(*args, **kwargs)
Center(self, int direction=BOTH)
  CenterOnParent(*args, **kwargs)
CenterOnParent(self, int dir=BOTH)
  CenterOnScreen(*args, **kwargs)
<function CenterOnScreen at 0xb6b83b8c> is deprecated
  Centre(*args, **kwargs)
Center(self, int direction=BOTH)
  CentreOnParent(*args, **kwargs)
CenterOnParent(self, int dir=BOTH)
  CentreOnScreen(*args, **kwargs)
<function CenterOnScreen at 0xb6b83b8c> is deprecated
  ClearBackground(*args, **kwargs)
ClearBackground(self)
  ClientToScreen(*args, **kwargs)
ClientToScreen(self, Point pt) -> Point
  ClientToScreenXY(*args, **kwargs)
ClientToScreenXY(int x, int y) -> (x,y)
  Close(*args, **kwargs)
Close(self, bool force=False) -> bool
  ConvertDialogPointToPixels(*args, **kwargs)
ConvertDialogPointToPixels(self, Point pt) -> Point
  ConvertDialogSizeToPixels(*args, **kwargs)
ConvertDialogSizeToPixels(self, Size sz) -> Size
  ConvertPixelPointToDialog(*args, **kwargs)
ConvertPixelPointToDialog(self, Point pt) -> Point
  ConvertPixelSizeToDialog(*args, **kwargs)
ConvertPixelSizeToDialog(self, Size sz) -> Size
  Create(*args, **kwargs)
Create(self, Window parent, int id=-1, Point pos=DefaultPosition, Size size=DefaultSize, long style=0, String name=PanelNameStr) -> bool Create the GUI part of the Window for 2-phase creation mode.
  Destroy(*args, **kwargs)
Destroy(self) -> bool
  DestroyChildren(*args, **kwargs)
DestroyChildren(self) -> bool
  Disable(*args, **kwargs)
Disable(self) -> bool
  DissociateHandle(*args, **kwargs)
DissociateHandle(self)
  DLG_PNT(*args, **kwargs)
DLG_PNT(self, Point pt) -> Point
  DLG_SZE(*args, **kwargs)
DLG_SZE(self, Size sz) -> Size
  DragAcceptFiles(*args, **kwargs)
DragAcceptFiles(self, bool accept)
  Enable(*args, **kwargs)
Enable(self, bool enable=True) -> bool
  FindFocus(*args, **kwargs)
FindFocus() -> Window (Static method)
  FindWindowById(*args, **kwargs)
FindWindowById(self, long winid) -> Window
  FindWindowByName(*args, **kwargs)
FindWindowByName(self, String name) -> Window
  Fit(*args, **kwargs)
Fit(self)
  FitInside(*args, **kwargs)
FitInside(self)
  Freeze(*args, **kwargs)
Freeze(self)
  GetAcceleratorTable(*args, **kwargs)
GetAcceleratorTable(self) -> AcceleratorTable
  GetAdjustedBestSize(*args, **kwargs)
GetAdjustedBestSize(self) -> Size
  GetAutoLayout(*args, **kwargs)
GetAutoLayout(self) -> bool
  GetBackgroundColour(*args, **kwargs)
GetBackgroundColour(self) -> Colour
  GetBackgroundStyle(*args, **kwargs)
GetBackgroundStyle(self) -> int
  GetBestFittingSize(*args, **kwargs)
GetBestFittingSize(self) -> Size
  GetBestSize(*args, **kwargs)
GetBestSize(self) -> Size
  GetBestSizeTuple(*args, **kwargs)
GetBestSizeTuple() -> (width, height)
  GetBestVirtualSize(*args, **kwargs)
GetBestVirtualSize(self) -> Size
  GetBorder(*args)
GetBorder(self, long flags) -> int GetBorder(self) -> int
  GetCapture(*args, **kwargs)
GetCapture() -> Window (Static method)
  GetCaret(*args, **kwargs)
GetCaret(self) -> Caret
  GetCharHeight(*args, **kwargs)
GetCharHeight(self) -> int
  GetCharWidth(*args, **kwargs)
GetCharWidth(self) -> int
  GetChildren(*args, **kwargs)
GetChildren(self) -> PyObject
  GetClassDefaultAttributes(*args, **kwargs)
GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes (Static method)
  GetClientAreaOrigin(*args, **kwargs)
GetClientAreaOrigin(self) -> Point
  GetClientRect(*args, **kwargs)
GetClientRect(self) -> Rect
  GetClientSize(*args, **kwargs)
GetClientSize(self) -> Size
  GetClientSizeTuple(*args, **kwargs)
GetClientSizeTuple() -> (width, height)
  GetConstraints(*args, **kwargs)
GetConstraints(self) -> LayoutConstraints
  GetContainingSizer(*args, **kwargs)
GetContainingSizer(self) -> Sizer
  GetCursor(*args, **kwargs)
GetCursor(self) -> Cursor
  GetDefaultAttributes(*args, **kwargs)
GetDefaultAttributes(self) -> VisualAttributes
  GetDefaultItem(*args, **kwargs)
GetDefaultItem(self) -> Window
  GetDropTarget(*args, **kwargs)
GetDropTarget(self) -> DropTarget
  GetEventHandler(*args, **kwargs)
GetEventHandler(self) -> EvtHandler
  GetExtraStyle(*args, **kwargs)
GetExtraStyle(self) -> long
  GetFont(*args, **kwargs)
GetFont(self) -> Font
  GetForegroundColour(*args, **kwargs)
GetForegroundColour(self) -> Colour
  GetFullTextExtent(*args, **kwargs)
GetFullTextExtent(String string, Font font=None) -> (width, height, descent, externalLeading) Get the width, height, decent and leading of the text using the current or specified font.
  GetGrandParent(*args, **kwargs)
GetGrandParent(self) -> Window
  GetHandle(*args, **kwargs)
GetHandle(self) -> long
  GetHelpText(*args, **kwargs)
GetHelpText(self) -> String
  GetId(*args, **kwargs)
GetId(self) -> int
  GetLabel(*args, **kwargs)
GetLabel(self) -> String
  GetMaxHeight(*args, **kwargs)
GetMaxHeight(self) -> int
  GetMaxSize(*args, **kwargs)
GetMaxSize(self) -> Size
  GetMaxWidth(*args, **kwargs)
GetMaxWidth(self) -> int
  GetMinHeight(*args, **kwargs)
GetMinHeight(self) -> int
  GetMinSize(*args, **kwargs)
GetMinSize(self) -> Size
  GetMinWidth(*args, **kwargs)
GetMinWidth(self) -> int
  GetName(*args, **kwargs)
GetName(self) -> String
  GetParent(*args, **kwargs)
GetParent(self) -> Window
  GetPosition(*args, **kwargs)
GetPosition(self) -> Point
  GetPositionTuple(*args, **kwargs)
GetPositionTuple() -> (x,y)
  GetRect(*args, **kwargs)
GetRect(self) -> Rect
  GetScrollPos(*args, **kwargs)
GetScrollPos(self, int orientation) -> int
  GetScrollRange(*args, **kwargs)
GetScrollRange(self, int orientation) -> int
  GetScrollThumb(*args, **kwargs)
GetScrollThumb(self, int orientation) -> int
  GetSize(*args, **kwargs)
GetSize(self) -> Size
  GetSizer(*args, **kwargs)
GetSizer(self) -> Sizer
  GetSizeTuple(*args, **kwargs)
GetSizeTuple() -> (width, height)
  GetTextExtent(*args, **kwargs)
GetTextExtent(String string) -> (width, height)
  GetThemeEnabled(*args, **kwargs)
GetThemeEnabled(self) -> bool
  GetTitle(*args, **kwargs)
GetTitle(self) -> String
  GetToolTip(*args, **kwargs)
GetToolTip(self) -> ToolTip
  GetUpdateClientRect(*args, **kwargs)
GetUpdateClientRect(self) -> Rect
  GetUpdateRegion(*args, **kwargs)
GetUpdateRegion(self) -> Region
  GetValidator(*args, **kwargs)
GetValidator(self) -> Validator
  GetVirtualSize(*args, **kwargs)
GetVirtualSize(self) -> Size
  GetVirtualSizeTuple(*args, **kwargs)
GetVirtualSizeTuple() -> (width, height)
  GetWindowStyle(*args, **kwargs)
GetWindowStyleFlag(self) -> long
  GetWindowStyleFlag(*args, **kwargs)
GetWindowStyleFlag(self) -> long
  GetWindowVariant(*args, **kwargs)
GetWindowVariant(self) -> int
  HasCapture(*args, **kwargs)
HasCapture(self) -> bool
  HasFlag(*args, **kwargs)
HasFlag(self, int flag) -> bool
  HasScrollbar(*args, **kwargs)
HasScrollbar(self, int orient) -> bool
  HasTransparentBackground(*args, **kwargs)
HasTransparentBackground(self) -> bool
  Hide(*args, **kwargs)
Hide(self) -> bool
  HitTest(*args, **kwargs)
HitTest(self, Point pt) -> int
  HitTestXY(*args, **kwargs)
HitTestXY(self, int x, int y) -> int
  InheritAttributes(*args, **kwargs)
InheritAttributes(self)
  InheritsBackgroundColour(*args, **kwargs)
InheritsBackgroundColour(self) -> bool
  InitDialog(*args, **kwargs)
InitDialog(self)
  InvalidateBestSize(*args, **kwargs)
InvalidateBestSize(self)
  IsBeingDeleted(*args, **kwargs)
IsBeingDeleted(self) -> bool
  IsEnabled(*args, **kwargs)
IsEnabled(self) -> bool
  IsExposed(*args, **kwargs)
IsExposed(self, int x, int y, int w=1, int h=1) -> bool
  IsExposedPoint(*args, **kwargs)
IsExposedPoint(self, Point pt) -> bool
  IsExposedRect(*args, **kwargs)
IsExposedRect(self, Rect rect) -> bool
  IsRetained(*args, **kwargs)
IsRetained(self) -> bool
  IsShown(*args, **kwargs)
IsShown(self) -> bool
  IsTopLevel(*args, **kwargs)
IsTopLevel(self) -> bool
  Layout(*args, **kwargs)
Layout(self) -> bool
  LineDown(*args, **kwargs)
LineDown(self) -> bool
  LineUp(*args, **kwargs)
LineUp(self) -> bool
  Lower(*args, **kwargs)
Lower(self)
  MakeModal(*args, **kwargs)
MakeModal(self, bool modal=True)
  Move(*args, **kwargs)
Move(self, Point pt, int flags=SIZE_USE_EXISTING)
  MoveAfterInTabOrder(*args, **kwargs)
MoveAfterInTabOrder(self, Window win)
  MoveBeforeInTabOrder(*args, **kwargs)
MoveBeforeInTabOrder(self, Window win)
  MoveXY(*args, **kwargs)
MoveXY(self, int x, int y, int flags=SIZE_USE_EXISTING)
  Navigate(*args, **kwargs)
Navigate(self, int flags=NavigationKeyEvent.IsForward) -> bool
  NewControlId(*args, **kwargs)
NewControlId() -> int (Static method)
  NextControlId(*args, **kwargs)
NextControlId(int winid) -> int (Static method)
  PageDown(*args, **kwargs)
PageDown(self) -> bool
  PageUp(*args, **kwargs)
PageUp(self) -> bool
  PopEventHandler(*args, **kwargs)
PopEventHandler(self, bool deleteHandler=False) -> EvtHandler
  PopupMenu(*args, **kwargs)
PopupMenu(self, Menu menu, Point pos=DefaultPosition) -> bool
  PopupMenuXY(*args, **kwargs)
PopupMenuXY(self, Menu menu, int x=-1, int y=-1) -> bool
  PostCreate(self, pre)
Phase 3 of the 2-phase create <wink!> Call this method after precreating the window with the 2-phase create method.
  PrepareDC(*args, **kwargs)
PrepareDC(self, DC dc)
  PrevControlId(*args, **kwargs)
PrevControlId(int winid) -> int (Static method)
  PushEventHandler(*args, **kwargs)
PushEventHandler(self, EvtHandler handler)
  Raise(*args, **kwargs)
Raise(self)
  RefreshRect(*args, **kwargs)
RefreshRect(self, Rect rect, bool eraseBackground=True)
  RegisterHotKey(*args, **kwargs)
RegisterHotKey(self, int hotkeyId, int modifiers, int keycode) -> bool
  ReleaseMouse(*args, **kwargs)
ReleaseMouse(self)
  RemoveChild(*args, **kwargs)
RemoveChild(self, Window child)
  RemoveEventHandler(*args, **kwargs)
RemoveEventHandler(self, EvtHandler handler) -> bool
  Reparent(*args, **kwargs)
Reparent(self, Window newParent) -> bool
  ScreenToClient(*args, **kwargs)
ScreenToClient(self, Point pt) -> Point
  ScreenToClientXY(*args, **kwargs)
ScreenToClientXY(int x, int y) -> (x,y)
  ScrollLines(*args, **kwargs)
ScrollLines(self, int lines) -> bool
  ScrollPages(*args, **kwargs)
ScrollPages(self, int pages) -> bool
  ScrollWindow(*args, **kwargs)
ScrollWindow(self, int dx, int dy, Rect rect=None)
  SendSizeEvent(self)
  SetAcceleratorTable(*args, **kwargs)
SetAcceleratorTable(self, AcceleratorTable accel)
  SetAutoLayout(*args, **kwargs)
SetAutoLayout(self, bool autoLayout)
  SetBackgroundColour(*args, **kwargs)
SetBackgroundColour(self, Colour colour) -> bool
  SetBackgroundStyle(*args, **kwargs)
SetBackgroundStyle(self, int style) -> bool Returns the background style of the window.
  SetBestFittingSize(*args, **kwargs)
SetBestFittingSize(self, Size size=DefaultSize)
  SetCaret(*args, **kwargs)
SetCaret(self, Caret caret)
  SetClientRect(*args, **kwargs)
SetClientRect(self, Rect rect)
  SetClientSize(*args, **kwargs)
SetClientSize(self, Size size)
  SetClientSizeWH(*args, **kwargs)
SetClientSizeWH(self, int width, int height)
  SetConstraints(*args, **kwargs)
SetConstraints(self, LayoutConstraints constraints)
  SetContainingSizer(*args, **kwargs)
SetContainingSizer(self, Sizer sizer)
  SetCursor(*args, **kwargs)
SetCursor(self, Cursor cursor) -> bool
  SetDefaultItem(*args, **kwargs)
SetDefaultItem(self, Window child) -> Window
  SetDimensions(*args, **kwargs)
SetDimensions(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO) Sets the position and size of the window in pixels.
  SetDropTarget(*args, **kwargs)
SetDropTarget(self, DropTarget dropTarget)
  SetEventHandler(*args, **kwargs)
SetEventHandler(self, EvtHandler handler)
  SetExtraStyle(*args, **kwargs)
SetExtraStyle(self, long exStyle)
  SetFocus(*args, **kwargs)
SetFocus(self)
  SetFocusFromKbd(*args, **kwargs)
SetFocusFromKbd(self)
  SetFont(*args, **kwargs)
SetFont(self, Font font) -> bool
  SetForegroundColour(*args, **kwargs)
SetForegroundColour(self, Colour colour) -> bool
  SetHelpText(*args, **kwargs)
SetHelpText(self, String text)
  SetHelpTextForId(*args, **kwargs)
SetHelpTextForId(self, String text)
  SetId(*args, **kwargs)
SetId(self, int winid)
  SetLabel(*args, **kwargs)
SetLabel(self, String label)
  SetMaxSize(*args, **kwargs)
SetMaxSize(self, Size maxSize)
  SetMinSize(*args, **kwargs)
SetMinSize(self, Size minSize)
  SetName(*args, **kwargs)
SetName(self, String name)
  SetOwnBackgroundColour(*args, **kwargs)
SetOwnBackgroundColour(self, Colour colour)
  SetOwnFont(*args, **kwargs)
SetOwnFont(self, Font font)
  SetOwnForegroundColour(*args, **kwargs)
SetOwnForegroundColour(self, Colour colour)
  SetPosition(*args, **kwargs)
Move(self, Point pt, int flags=SIZE_USE_EXISTING)
  SetRect(*args, **kwargs)
SetRect(self, Rect rect, int sizeFlags=SIZE_AUTO)
  SetScrollbar(*args, **kwargs)
SetScrollbar(self, int orientation, int position, int thumbSize, int range, bool refresh=True) Sets the scrollbar properties of a built-in scrollbar.
  SetScrollPos(*args, **kwargs)
SetScrollPos(self, int orientation, int pos, bool refresh=True)
  SetSize(*args, **kwargs)
SetSize(self, Size size)
  SetSizeHints(*args, **kwargs)
SetSizeHints(self, int minW, int minH, int maxW=-1, int maxH=-1, int incW=-1, int incH=-1) Allows specification of minimum and maximum window sizes, and window size increments.
  SetSizeHintsSz(*args, **kwargs)
SetSizeHintsSz(self, Size minSize, Size maxSize=DefaultSize, Size incSize=DefaultSize)
  SetSizer(*args, **kwargs)
SetSizer(self, Sizer sizer, bool deleteOld=True)
  SetSizerAndFit(*args, **kwargs)
SetSizerAndFit(self, Sizer sizer, bool deleteOld=True)
  SetSizeWH(*args, **kwargs)
SetSizeWH(self, int width, int height)
  SetThemeEnabled(*args, **kwargs)
SetThemeEnabled(self, bool enableTheme) This function tells a window if it should use the system's "theme" code to draw the windows' background instead if its own background drawing code.
  SetTitle(*args, **kwargs)
SetTitle(self, String title)
  SetTmpDefaultItem(*args, **kwargs)
SetTmpDefaultItem(self, Window win)
  SetToolTip(*args, **kwargs)
SetToolTip(self, ToolTip tip)
  SetToolTipString(*args, **kwargs)
SetToolTipString(self, String tip)
  SetValidator(*args, **kwargs)
SetValidator(self, Validator validator)
  SetVirtualSize(*args, **kwargs)
SetVirtualSize(self, Size size)
  SetVirtualSizeHints(*args, **kwargs)
SetVirtualSizeHints(self, int minW, int minH, int maxW=-1, int maxH=-1)
  SetVirtualSizeHintsSz(*args, **kwargs)
SetVirtualSizeHintsSz(self, Size minSize, Size maxSize=DefaultSize)
  SetVirtualSizeWH(*args, **kwargs)
SetVirtualSizeWH(self, int w, int h)
  SetWindowStyle(*args, **kwargs)
SetWindowStyleFlag(self, long style)
  SetWindowStyleFlag(*args, **kwargs)
SetWindowStyleFlag(self, long style)
  SetWindowVariant(*args, **kwargs)
SetWindowVariant(self, int variant)
  ShouldInheritColours(*args, **kwargs)
ShouldInheritColours(self) -> bool
  Show(*args, **kwargs)
Show(self, bool show=True) -> bool
  Thaw(*args, **kwargs)
Thaw(self)
  TransferDataFromWindow(*args, **kwargs)
TransferDataFromWindow(self) -> bool
  TransferDataToWindow(*args, **kwargs)
TransferDataToWindow(self) -> bool
  UnregisterHotKey(*args, **kwargs)
UnregisterHotKey(self, int hotkeyId) -> bool
  Update(*args, **kwargs)
Update(self)
  UpdateWindowUI(*args, **kwargs)
UpdateWindowUI(self, long flags=UPDATE_UI_NONE)
  UseBgCol(*args, **kwargs)
UseBgCol(self) -> bool
  Validate(*args, **kwargs)
Validate(self) -> bool
  WarpPointer(*args, **kwargs)
WarpPointer(self, int x, int y)
    Inherited from EvtHandler
  _setOORInfo(*args, **kwargs)
_setOORInfo(self, PyObject _self, bool incref=True)
  AddPendingEvent(*args, **kwargs)
AddPendingEvent(self, Event event)
  Bind(self, event, handler, source, id, id2)
Bind an event to an event handler.
  Connect(*args, **kwargs)
Connect(self, int id, int lastId, int eventType, PyObject func)
  Disconnect(*args, **kwargs)
Disconnect(self, int id, int lastId=-1, wxEventType eventType=wxEVT_NULL) -> bool
  GetEvtHandlerEnabled(*args, **kwargs)
GetEvtHandlerEnabled(self) -> bool
  GetNextHandler(*args, **kwargs)
GetNextHandler(self) -> EvtHandler
  GetPreviousHandler(*args, **kwargs)
GetPreviousHandler(self) -> EvtHandler
  ProcessEvent(*args, **kwargs)
ProcessEvent(self, Event event) -> bool
  ProcessPendingEvents(*args, **kwargs)
ProcessPendingEvents(self)
  SetEvtHandlerEnabled(*args, **kwargs)
SetEvtHandlerEnabled(self, bool enabled)
  SetNextHandler(*args, **kwargs)
SetNextHandler(self, EvtHandler handler)
  SetPreviousHandler(*args, **kwargs)
SetPreviousHandler(self, EvtHandler handler)
  Unbind(self, event, source, id, id2)
Disconencts the event handler binding for event from self.
    Inherited from Object
  GetClassName(*args, **kwargs)
GetClassName(self) -> String
    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)

Class Variable Summary
int DELETE = 8824                                                                  
int SUSTAIN = 8823                                                                  
    Inherited from Canvas
bool doublebuffered = True

Instance Method Details

__init__(self, *args, **kwds)
(Constructor)

Initialization.
Overrides:
aldrin.canvas.Canvas.__init__

DrawBuffer(self)

Overriding a Canvas method that paints onto an offscreen buffer. Draws the envelope view graphics.
Overrides:
aldrin.canvas.Canvas.DrawBuffer

get_point_at(self, position)

Finds an existing envelope point that matches the given position the best.
Parameters:
position - Pixel coordinate.
           (type=(int, int))
Returns:
(index, match) that represents the index of a point and whether it matches exactly or not (with EXACT and NEXT).
           (type=(int, int))

get_translated_points(self)

Converts the envelope values to a list of pixel values.
Returns:
Pixel values.
           (type=list)

on_context_menu(self, event)

Callback that responds to context menu activation.
Parameters:
event - CommandEvent event
           (type=wx.CommandEvent)

on_delete_point(self, event)

Callback responding to the context menu item that deletes the current point of the envelope.
Parameters:
event - CommandEvent event
           (type=wx.CommandEvent)

on_left_down(self, event)

Callback that responds to left mouse down over the envelope view.
Parameters:
event - MouseEvent event
           (type=wx.MouseEvent)

on_left_up(self, event)

Callback that responds to left mouse up over the envelope view.
Parameters:
event - MouseEvent event
           (type=wx.MouseEvent)

on_motion(self, event)

Callback that responds to mouse motion over the envelope view.
Parameters:
event - MouseEvent event
           (type=wx.MouseEvent)

on_set_sustain(self, event)

Callback responding to the context menu item that sets the current point to sustain mode.
Parameters:
event - CommandEvent event
           (type=wx.CommandEvent)

pixel_to_env(self, position)

Converts a (x,y) pixel coordinate into an envelope point value.
Parameters:
position - Pixel coordinate.
           (type=(int, int))
Returns:
(time, amplitude) point on the envelope.
           (type=(int, int))

update(self)

Updates the envelope view based on the sample selected in the sample list.

Class Variable Details

DELETE

Type:
int
Value:
8824                                                                  

SUSTAIN

Type:
int
Value:
8823                                                                  

Generated by Epydoc 2.1 on Fri Nov 24 13:58:33 2006 http://epydoc.sf.net