Changeset - 900c2b2ea956
[Not reviewed]
default
0 1 0
Drew Perttula - 8 years ago 2017-05-24 08:30:12
drewp@bigasterisk.com
cleanup prints
Ignore-this: e8b0368b90ce570a7e3c3eddd7e468e
1 file changed with 0 insertions and 2 deletions:
0 comments (0 inline, 0 general)
light9/effect/edit.py
Show inline comments
 
@@ -68,30 +68,28 @@ def songEffectPatch(graph, dropped, song
 
    returnValue(Patch(addQuads=quads))
 

	
 
@inlineCallbacks
 
def songNotePatch(graph, dropped, song, event, ctx):
 
    """
 
    drop into effectsequencer timeline
 

	
 
    ported from timeline.coffee makeNewNote
 
    """
 
    with graph.currentState(
 
            tripleFilter=(dropped, None, None)) as g:
 
        droppedTypes = list(g.objects(dropped, RDF.type))
 
        droppedLabel = g.label(dropped)
 

	
 
    quads = []
 
    fade = 2 if event == 'default' else 0
 

	
 
    print 'droppedTypes', droppedTypes
 
    if L9['Effect'] in droppedTypes:
 
        musicStatus = yield getMusicStatus()
 
        songTime = musicStatus['t']
 
        note = graph.sequentialUri(song + '/n')
 
        curve = graph.sequentialUri(note + 'c')
 
        quads.extend([
 
            (song, L9['note'], note, ctx),
 
            (note, RDF.type, L9['Note'], ctx),
 
            (note, L9['curve'], curve, ctx),
 
            (note, L9['effectClass'], dropped, ctx),
 
            (note, L9['originTime'], Literal(songTime), ctx),
 
            (curve, RDF.type, L9['Curve'], ctx),
0 comments (0 inline, 0 general)