See class Sine for an example.
AddShape( shape )
class Shape:
name
__init__( self, properties, defaults )
properties
a Shape tree, or None.
defaults
list of pairs: (name, value) -- one per parameter
Don't forget to call this from your subclass's constructor
renameProperties( self, properties, renames )
properties
a Shape tree, or None.
renames
dictionary {oldname : newname}
Call this in your constructor if older files may have outdated parameter names.
get( self, prop )
prop
the name of a parameter
Returns the value of a named parameter as a string.
set( self, prop, valstr )
setup( self )
Override in your subclass to pre-compute stuff that would be too time-consuming in evaluate().
duration( self, rep_index )
count( self, t_start, sampling, rep_index )
evalute( self, t, rep_index )
generate( self, first, last, t_start, sampling, rep_index )
generateInto( self, first, last, t_start, sampling, rep_index, node, i_start )