Changeset - 5d8009daea51
[Not reviewed]
default
0 1 0
Drew Perttula - 8 years ago 2017-05-19 07:49:22
drewp@bigasterisk.com
effecteval ok to run with no output (?)
Ignore-this: 1d5068ddbf40adcd4f1329363f1bc616
1 file changed with 3 insertions and 2 deletions:
0 comments (0 inline, 0 general)
bin/effecteval
Show inline comments
 
@@ -292,26 +292,27 @@ class App(object):
 
        self.graph.initiallySynced.addCallback(self.launch).addErrback(log.error)
 

	
 
        self.stats = scales.collection('/',
 
                                       scales.PmfStat('sendLevels'),
 
                                       scales.PmfStat('getMusic'),
 
                                       scales.PmfStat('evals'),
 
                                       scales.PmfStat('sendOutput'),
 
                                       scales.IntStat('errors'),
 
                                       )
 

	
 
    def launch(self, *args):
 
        log.info('launch')
 
        self.loop = makeEffectLoop(self.graph, self.stats, self.outputWhere)
 
        self.loop.startLoop()
 
        if self.outputWhere:
 
            self.loop = makeEffectLoop(self.graph, self.stats, self.outputWhere)
 
            self.loop.startLoop()
 
        
 
        SFH = cyclone.web.StaticFileHandler
 
        self.cycloneApp = cyclone.web.Application(handlers=[
 
            (r'/()', SFH,
 
             {'path': 'light9/effecteval', 'default_filename': 'index.html'}),
 
            (r'/effect', EffectEdit),
 
            (r'/effect\.js', StaticCoffee, {'src': 'light9/effecteval/effect.coffee'}),
 
            (r'/(effect-components\.html)', SFH, {'path': 'light9/effecteval'}),
 
            (r'/effectUpdates', EffectUpdates),
 
            (r'/code', Code),
 
            (r'/songEffectsUpdates', SongEffectsUpdates),
 
            (r'/effect/eval', EffectEval),
0 comments (0 inline, 0 general)