EffectPresets
index
/home/laszlo/Dev/joko-gtk-builder/Jokosher/EffectPresets.py

#       THIS FILE IS PART OF THE JOKOSHER PROJECT AND LICENSED UNDER THE GPL. SEE
#       THE 'COPYING' FILE FOR DETAILS
#
#       EffectPresets.py
#       
#       This module implements support for effects presets. These presets are used
#       to store settings for single effects and multiple effects strung together
#       (called a 'chain').
#
#       The way this works is that we have a LADSPA_FACTORY_REGISTRY filled with
#       the system's LADSPA effects, LADSPA_NAME_MAP which amps LADSPA element
#       factory names (Such as ladspa-delay-5s) to the effect name (such as
#       Simple Delay) and self.effectpresetsregistry which contains a generated
#       dictionary of effects. This dictionary is search with list comprehensions
#       to get the relavent presets out.
#
#-------------------------------------------------------------------------------

 
Modules
       
Globals
glob
gobject
gst
gtk
math
os
pygst
string
sys
webbrowser
xml.dom.minidom

 
Classes
       
gobject._gobject.GObject(__builtin__.object)
EffectPresets

 
class EffectPresets(gobject._gobject.GObject)
    This class implements support for effects presets. These presets are used
to store settings for single effects and multiple effects strung together
(called a 'chain').
 
Signals:
        "single-preset" -- The waveform date for this event has changed.
        "chain-preset" -- The starting position of this event has changed.
 
 
Method resolution order:
EffectPresets
gobject._gobject.GObject
__builtin__.object

Methods defined here:
DeleteEffectChain(self, presetName, instrType)
Removes an effect chain preset.
 
Parameters:
        presetName -- name of the preset to be removed.
        instrType -- type of the Instrument the preset belongs to.
DeleteSingleEffect(self, presetName, effectName)
Removes a single effect preset.
 
Parameters:
        presetName -- name of the preset to be removed.
        effectName -- ladspa unique name of the effect the preset 
                                        belongs to.
FillEffectsPresetsRegistry(self)
Load all chain/effect presets into the main presets registry.
FillLADSPARegistry(self)
Fill Globals.LADSPA_FACTORY_REGISTRY with effects on the system. This
is to ensure that only presets with effects on the current system are listed.
LoadEffectChain(self, presetName, instrType)
Load settings from the preset file for an Instrument's effects chain.
 
Parameters:
        presetName -- name of the preset to be loaded.
        
Returns:
        a settings dictionary with the loaded settings for the effects.
LoadEffectChainList(self)
TODO -- This method is not yet implemented.
LoadSingleEffect(self, presetName, effectelement)
Load effect settings from a preset file for a single effect.
 
Parameters:
        presetName -- the name of the preset to be loaded.
        effectelement -- the effect element to be loaded.
        
Returns:
        a settings dictionary with the loaded settings for the effect or
        False if the preset file doesn't exist.
LoadSingleEffectList(self)
TODO -- This method is not yet implemented.
SaveEffectChain(self, label, effectlist, instrumenttype)
Write an effect chain to a preset file.
 
Parameters:
        label -- the name of the effect.
        effectlist -- the list of effects.
        instrumenttype -- the type of instrument currently being used.
SaveSingleEffect(self, label, effectdict, effectelement, effecttype)
This method will write a single effect preset to a preset file.
 
Parameters:
        label --the name of the effect.
        effectdict -- the effect dictionary.
        effectelement -- the effect that the user selected.
        effecttype -- the type of the effect the user selected.
__init__(self)
Creates a new instance of EffectsPresets. If needed, it populates the
LADSPA and effect presets registries.

Data and other attributes defined here:
__gtype__ = <GType EffectPresets+EffectPresets (36035104)>

Methods inherited from gobject._gobject.GObject:
__cmp__(...)
x.__cmp__(y) <==> cmp(x,y)
__copy__(...)
__deepcopy__(...)
__delattr__(...)
x.__delattr__('name') <==> del x.name
__gobject_init__(...)
__hash__(...)
x.__hash__() <==> hash(x)
__repr__(...)
x.__repr__() <==> repr(x)
__setattr__(...)
x.__setattr__('name', value) <==> x.name = value
chain(...)
connect(...)
connect_after(...)
connect_object(...)
connect_object_after(...)
disconnect(...)
disconnect_by_func(...)
emit(...)
emit_stop_by_name(...)
freeze_notify(...)
get_data(...)
get_properties(...)
get_property(...)
handler_block(...)
handler_block_by_func(...)
handler_disconnect(...)
handler_is_connected(...)
handler_unblock(...)
handler_unblock_by_func(...)
notify(...)
set_data(...)
set_properties(...)
set_property(...)
stop_emission(...)
thaw_notify(...)
weak_ref(...)

Data descriptors inherited from gobject._gobject.GObject:
__dict__
__grefcount__

Data and other attributes inherited from gobject._gobject.GObject:
__gdoc__ = 'Object EffectPresets+EffectPresets\n\n\n\tThis class...set ()\n\nSignals from GObject:\n notify (GParam)\n\n'
__new__ = <built-in method __new__ of GObjectMeta object>
T.__new__(S, ...) -> a new object with type S, a subtype of T
props = <gobject.GProps object>

 
Data
        DECIBEL_RANGE = 80
NANO_TO_MILLI_DIVISOR = 1000000
have_pbutils = True