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
 
@@ -8,13 +8,13 @@ from light9.typedgraph import typedValue
 

	
 
from rdfdb.syncedgraph.syncedgraph import SyncedGraph
 
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')
 

	
 

	
 
def pyType(n):
 
    ret = n.toPython()
light9/effect/sequencer/note_test.py
Show inline comments
 
@@ -22,20 +22,20 @@ FADER_GRAPH = PREFIXES + '''
 
        :effectClass effect:effect1;
 
        :effectAttr :strength;
 
        :value 0.6 .
 
'''
 

	
 

	
 
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 + '''
 
    :brightness
 
        a :DeviceAttr;
 
        rdfs:label "brightness";
light9/effect/sequencer/sequencer.py
Show inline comments
 
@@ -17,13 +17,12 @@ from twisted.internet.inotify import INo
 
from twisted.python.filepath import FilePath
 

	
 
from light9.ascoltami.musictime_client import MusicTime
 
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
 

	
 
log = logging.getLogger('sequencer')
 

	
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)