Changeset - b0f56292fdae
[Not reviewed]
default
0 1 0
drewp@bigasterisk.com - 20 months ago 2023-06-04 00:52:29
drewp@bigasterisk.com
reformat
1 file changed with 2 insertions and 4 deletions:
0 comments (0 inline, 0 general)
light9/effect/sequencer/eval_faders.py
Show inline comments
 
@@ -18,12 +18,13 @@ from light9.typedgraph import typedValue
 

	
 
log = logging.getLogger('seq.fader')
 

	
 
COMPILE = Summary('compile_graph_fader', 'compile')
 
COMPUTE_ALL_FADERS = Summary('compute_all_faders', 'compile')
 

	
 

	
 
@dataclass
 
class Fader:
 
    graph: SyncedGraph
 
    lib: EffectFunctionLibrary
 
    uri: URIRef
 
    effect: EffectUri
 
@@ -77,16 +78,13 @@ class FaderEval:
 
        setting = typedValue(Node, self.graph, fader, L9['setting'])
 
        setAttr = typedValue(EffectAttr, self.graph, setting, L9['effectAttr'])
 
        return Fader(self.graph, self.lib, cast(URIRef, fader), effect, setAttr)
 

	
 
    def _compileGm(self):
 
        try:
 
            self.grandMaster = typedValue(float, self.graph,
 
                                          L9.grandMaster,
 
                                          L9.value)
 
            print('got gm', self.grandMaster)
 
            self.grandMaster = typedValue(float, self.graph, L9.grandMaster, L9.value)
 
        except ValueError:
 
            return
 
        
 
    @COMPUTE_ALL_FADERS.time()
 
    def computeOutput(self) -> DeviceSettings:
 
        faderEffectOutputs: List[DeviceSettings] = []
0 comments (0 inline, 0 general)