Changeset - 6a6ebaa9f992
[Not reviewed]
default
0 1 0
drewp@bigasterisk.com - 20 months ago 2023-06-03 22:46:46
drewp@bigasterisk.com
use a bcf knob to dial grandMaster
1 file changed with 7 insertions and 0 deletions:
0 comments (0 inline, 0 general)
light9/midifade/midifade.py
Show inline comments
 
@@ -98,6 +98,10 @@ def writeHwValueToGraph(graph: SyncedGra
 
    graph.patchObject(ctx, fadeSet, L9['value'], valueLit)
 

	
 

	
 
def changeGrandMaster(graph: SyncedGraph, newValue: float):
 
    graph.patchObject(ctx, L9.grandMaster, L9['value'], decimalLiteral(newValue))
 

	
 

	
 
def onMessage(graph: SyncedGraph, ctx: URIRef, m: Dict):
 
    if m['type'] == 'active_sensing':
 
        return
 
@@ -108,6 +112,9 @@ def onMessage(graph: SyncedGraph, ctx: U
 
        if m['dev'] == 'bcf2000' and m['control'] == 92:
 
            changePage(graph, 1)
 
            return
 
        if m['dev'] == 'bcf2000' and m['control'] == 8:
 
            changeGrandMaster(graph, clamp(m['value'] / 127 * 1.5, 0, 1))
 
            return
 

	
 
        try:
 
            fader = {
0 comments (0 inline, 0 general)