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

Type WavetablePanel

object --+                
         |                
    Object --+            
             |            
    EvtHandler --+        
                 |        
            Window --+    
                     |    
                 Panel --+
                         |
                        WavetablePanel


Wavetable editor.

Contains a list of samples loaded in the song and a file list showing wave files in the file system. It contains controls to transfer files between the song and the file system, and components that facilitate sample editing for example loops and envelopes.
Method Summary
  __init__(self, rootwindow, *args, **kwds)
Initialization.
  get_filelist_selection(self)
yields the filelist selection.
  get_sample_selection(self)
Returns a list with currently selected sample indices.
  get_wavetable_paths(self)
Returns a list of wavetable paths
  goto_subfolder(self)
Enters subfolder, if selected.
  load_samples(self, samplepaths)
Loads a list of samples into the sample list of the song.
  on_check_envdisabled(self, event)
Callback of checkbox that enables or disables the envelope for the selected sample.
  on_check_loop(self, event)
Callback of checkbox that enables or disables looping for the selected sample.
  on_check_pingpong(self, event)
Callback of checkbox that enables or disables bidirectional looping for the selected sample.
  on_clear(self, event)
Callback of a button that clears the selected sample in the sample list.
  on_filelist_char(self, event)
Callback that responds to key stroke in the file list.
  on_filelist_dclick(self, event)
Callback that responds to double click in the file list.
  on_filelist_key_down(self, event)
Callback that responds to key stroke in the file list.
  on_fit_loop(self, event)
Fits the current samplerate so that the sample fits the loop.
  on_load_sample(self, event)
Callback that responds to clicking the load sample button.
  on_loop_end_apply(self, event)
Callback that responds to changes in the loop-end edit field.
  on_loop_start_apply(self, event)
Callback that responds to changes in the loop-start edit field.
  on_mousewheel(self, event)
Sent when the mousewheel is used on the volume slider.
  on_parent_click(self, event)
Callback that responds to clicking the parent button.
  on_play_wave(self, event)
Callback of a button that plays the currently selected sample in the sample list.
  on_refresh(self, event)
Callback of a button that refreshes the file list.
  on_samplelist_dclick(self, event)
Callback that responds to double click in the sample list.
  on_samplelist_key_down(self, event)
Callback that responds to key stroke in the sample list.
  on_samplelist_select(self, event)
Callback that responds to left click on sample list.
  on_samplerate_apply(self, event)
Callback that responds to changes in the sample rate edit field.
  on_save_sample(self, event)
Callback that responds to clicking the save sample button.
  on_scroll_changed(self, event)
Callback that responds to change in the wave volume slider.
  on_show_adsr(self, event)
Called when the ADSR button is clicked.
  on_size(self, event)
Called when the panel is being resized.
  on_stop_wave(self, event)
Callback of a button that stops playback of a wave file that is currently playing.
  preview_filelist_sample(self)
Plays a preview of the selected file in the file list.
  preview_sample(self, path)
Previews a sample from the filesystem.
  update_all(self)
Updates all the components in the wave table.
  update_filelist(self)
Updates the file list to display the files in the current working directory.
  update_samplelist(self)
Updates the sample list that displays all the samples loaded in the file.
  update_sampleprops(self)
Updates the sample property checkboxes and sample editing fields.
  update_subsamplelist(self)
Updates the subsample list, containing specifics about the wave length, rate and loop range.
  update_wave_amp(self)
Updates the wave players current amplitude from the config.
    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
list allowed_extensions = ['.wav', '.mp3', '.flac', '.aif']

Instance Method Details

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

Initialization.
Overrides:
wx._windows.Panel.__init__

get_filelist_selection(self)

yields the filelist selection.
Returns:
a generator

get_sample_selection(self)

Returns a list with currently selected sample indices.

get_wavetable_paths(self)

Returns a list of wavetable paths

goto_subfolder(self)

Enters subfolder, if selected.

load_samples(self, samplepaths)

Loads a list of samples into the sample list of the song.

on_check_envdisabled(self, event)

Callback of checkbox that enables or disables the envelope for the selected sample.
Parameters:
event - CommandEvent event
           (type=wx.CommandEvent)

on_check_loop(self, event)

Callback of checkbox that enables or disables looping for the selected sample.
Parameters:
event - CommandEvent event
           (type=wx.CommandEvent)

on_check_pingpong(self, event)

Callback of checkbox that enables or disables bidirectional looping for the selected sample.
Parameters:
event - CommandEvent event
           (type=wx.CommandEvent)

on_clear(self, event)

Callback of a button that clears the selected sample in the sample list.
Parameters:
event - CommandEvent event
           (type=wx.CommandEvent)

on_filelist_char(self, event)

Callback that responds to key stroke in the file list.
Parameters:
event - Key event
           (type=wx.KeyEvent)

on_filelist_dclick(self, event)

Callback that responds to double click in the file list. Plays a preview of the selected file.
Parameters:
event - MouseEvent event
           (type=wx.MouseEvent)

on_filelist_key_down(self, event)

Callback that responds to key stroke in the file list.
Parameters:
event - Key event
           (type=wx.KeyEvent)

on_fit_loop(self, event)

Fits the current samplerate so that the sample fits the loop.

on_load_sample(self, event)

Callback that responds to clicking the load sample button. Loads a sample from the file list into the sample list of the song.
Parameters:
event - CommandEvent event
           (type=wx.CommandEvent)

on_loop_end_apply(self, event)

Callback that responds to changes in the loop-end edit field.
Parameters:
event - CommandEvent event
           (type=wx.CommandEvent)

on_loop_start_apply(self, event)

Callback that responds to changes in the loop-start edit field.
Parameters:
event - CommandEvent event
           (type=wx.CommandEvent)

on_mousewheel(self, event)

Sent when the mousewheel is used on the volume slider.
Parameters:
event - A mouse event.
           (type=wx.MouseEvent)

on_parent_click(self, event)

Callback that responds to clicking the parent button. Moves up in the directory hierarchy.
Parameters:
event - CommandEvent event
           (type=wx.CommandEvent)

on_play_wave(self, event)

Callback of a button that plays the currently selected sample in the sample list.
Parameters:
event - CommandEvent event
           (type=wx.CommandEvent)

on_refresh(self, event)

Callback of a button that refreshes the file list.
Parameters:
event - CommandEvent event
           (type=wx.CommandEvent)

on_samplelist_dclick(self, event)

Callback that responds to double click in the sample list. Plays the selected file.
Parameters:
event - MouseEvent event
           (type=wx.MouseEvent)

on_samplelist_key_down(self, event)

Callback that responds to key stroke in the sample list.
Parameters:
event - Key event
           (type=wx.KeyEvent)

on_samplelist_select(self, event)

Callback that responds to left click on sample list. Updates the sample properties, the subsample list and the envelope.
Parameters:
event - Command event
           (type=wx.CommandEvent)

on_samplerate_apply(self, event)

Callback that responds to changes in the sample rate edit field.
Parameters:
event - CommandEvent event
           (type=wx.CommandEvent)

on_save_sample(self, event)

Callback that responds to clicking the save sample button. Saves a sample to disk.
Parameters:
event - Command event
           (type=wx.CommandEvent)

on_scroll_changed(self, event)

Callback that responds to change in the wave volume slider.
Parameters:
event - CommandEvent event
           (type=wx.CommandEvent)

on_show_adsr(self, event)

Called when the ADSR button is clicked. Shows the ADSR Dialog.

on_size(self, event)

Called when the panel is being resized.

on_stop_wave(self, event)

Callback of a button that stops playback of a wave file that is currently playing.
Parameters:
event - CommandEvent event
           (type=wx.CommandEvent)

preview_filelist_sample(self)

Plays a preview of the selected file in the file list.

preview_sample(self, path)

Previews a sample from the filesystem.

update_all(self)

Updates all the components in the wave table.

update_filelist(self)

Updates the file list to display the files in the current working directory.

update_samplelist(self)

Updates the sample list that displays all the samples loaded in the file.

update_sampleprops(self)

Updates the sample property checkboxes and sample editing fields. Includes volume slider and looping properties.

update_subsamplelist(self)

Updates the subsample list, containing specifics about the wave length, rate and loop range.

update_wave_amp(self)

Updates the wave players current amplitude from the config.

Class Variable Details

allowed_extensions

Type:
list
Value:
['.wav', '.mp3', '.flac', '.aif']                                      

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