Package jazzparser :: Package formalisms :: Package music_halfspan :: Module rules :: Class DevelopmentRule
[hide private]
[frames] | no frames]

Class DevelopmentRule

source code

     object --+    
              |    
base.rules.Rule --+
                  |
                 DevelopmentRule

The development rule strings together sequences of resolved cadences.

This used to be called "continuation" and was renamed long ago, but the old name persisted in the keyspan implementation.

Instance Methods [hide private]
 
__init__(self, *args, **kwargs)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
apply_rule(self, cat_list, proc_sems=None)
*** This should be overridden by subclasses.
source code
 
apply_rule_semantics(self, cat_list, *args, **kwargs)
Provides the semantic part of rule application separately from the syntactic part.
source code

Inherited from base.rules.Rule: __str__

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __subclasshook__

Class Variables [hide private]

Inherited from base.rules.Rule: readable_rule

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

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

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

apply_rule(self, cat_list, proc_sems=None)

source code 

*** This should be overridden by subclasses. *** Applies the rule to combine the categories in cat_list.

Note that the returned semantics should always be in beta-normal form.

Returns:
a list of the possible categories resulting from the application if the rule is valid for the given arguments, otherwise None.
Overrides: base.rules.Rule.apply_rule
(inherited documentation)

apply_rule_semantics(self, cat_list, *args, **kwargs)

source code 

Provides the semantic part of rule application separately from the syntactic part.

Returns:
list of the Semantics objects that would be the logical form parts of the results of the rule application.
Decorators:
  • @temporal_rule_apply(semantics_only= True)
Overrides: base.rules.Rule.apply_rule_semantics