Changeset - 8c82f13a3298
[Not reviewed]
default
2 3 0
drewp@bigasterisk.com - 20 months ago 2023-05-31 06:50:42
drewp@bigasterisk.com
rm or repair dead code (notes could come back)
5 files changed with 8 insertions and 76 deletions:
0 comments (0 inline, 0 general)
light9/effect/sequencer/note.py
Show inline comments
 
@@ -11,7 +11,7 @@ from rdflib import Literal
 

	
 
from light9.effect.settings import BareEffectSettings
 
from light9.namespaces import L9
 
from light9.newtypes import (Curve, EffectAttr, EffectClass, NoteUri, VTUnion)
 
from light9.newtypes import (Curve, EffectAttr, NoteUri, VTUnion)
 

	
 
log = logging.getLogger('sequencer')
 

	
light9/effect/sequencer/note_test.py
Show inline comments
 
@@ -25,14 +25,14 @@ FADER_GRAPH = PREFIXES + '''
 
'''
 

	
 

	
 
class TestUntimedFaderNote:
 
# class TestUntimedFaderNote:
 

	
 
    def test_returnsEffectSettings(self):
 
        g = MockSyncedGraph(FADER_GRAPH)
 
        n = Note(g, NoteUri(L9['fade1']), timed=False)
 
        out, report = n.outputCurrent()
 
        assert report['effectSettings'] == {'http://light9.bigasterisk.com/strength': 0.6}
 
        assert out == BareEffectSettings(s={EffectAttr(L9['strength']): 0.6})
 
#     def test_returnsEffectSettings(self):
 
#         g = MockSyncedGraph(FADER_GRAPH)
 
#         n = Note(g, NoteUri(L9['fade1']), timed=False)
 
#         out, report = n.outputCurrent()
 
#         assert report['effectSettings'] == {'http://light9.bigasterisk.com/strength': 0.6}
 
#         assert out == BareEffectSettings(s={EffectAttr(L9['strength']): 0.6})
 

	
 

	
 
NOTE_GRAPH = PREFIXES + '''
light9/effect/sequencer/sequencer.py
Show inline comments
 
@@ -20,7 +20,6 @@ from light9.ascoltami.musictime_client i
 
from light9.effect import effecteval
 
from light9.effect.sequencer import Note
 
from light9.effect.settings import DeviceSettings
 
from light9.effect.simple_outputs import SimpleOutputs
 
from light9.metrics import metrics
 
from light9.namespaces import L9, RDF
 
from light9.newtypes import NoteUri, Song
light9/effect/simple_outputs.py
Show inline comments
 
deleted file
light9/effect/simple_outputs_test.py
Show inline comments
 
deleted file
0 comments (0 inline, 0 general)