Changeset - b98dc72978eb
[Not reviewed]
default
0 1 0
drewp@bigasterisk.com - 20 months ago 2023-06-03 22:21:40
drewp@bigasterisk.com
reformat
1 file changed with 5 insertions and 5 deletions:
0 comments (0 inline, 0 general)
light9/fade/Light9FadeUi.ts
Show inline comments
 
@@ -11,17 +11,17 @@ export { EditChoice } from "../web/EditC
 
export { Light9EffectFader } from "./Light9EffectFader";
 

	
 
debug.enable("*,-autodep");
 
const log = debug("fade");
 

	
 
class FaderConfig {
 
constructor(public uri: NamedNode,public column: number){}
 
  constructor(public uri: NamedNode, public column: number) { }
 
}
 

	
 
class FadePage {
 
  constructor(public uri: NamedNode) {}
 
  constructor(public uri: NamedNode) { }
 
  faders: FaderConfig[] = [];
 
}
 
class FadePages {
 
  pages: FadePage[] = [];
 
}
 

	
 
@@ -91,26 +91,26 @@ export class Light9FadeUi extends LitEle
 
      try {
 
        for (let fader of this.graph.objects(page, U(":fader"))) {
 
          const colLit = this.graph.stringValue(fader, U(':column'))
 
          fp.faders.push(new FaderConfig(fader as NamedNode, parseFloat(colLit)));
 
        }
 
        fp.faders.sort((a, b) => {
 
          return a.column-(b.column);
 
          return a.column - (b.column);
 
        });
 
        fadePages.pages.push(fp);
 
      } catch (e) {}
 
      } catch (e) { }
 
    }
 
    fadePages.pages.sort((a, b) => {
 
      return a.uri.value.localeCompare(b.uri.value);
 
    });
 
    this.fadePages = fadePages;
 
    this.currentHwPage = undefined;
 
    try {
 
      const mc = this.graph.uriValue(U(":midiControl"), U(":map"));
 
      this.currentHwPage = this.graph.uriValue(mc, U(":outputs"));
 
    } catch (e) {}
 
    } catch (e) { }
 
  }
 

	
 
  mapThisToHw(page: NamedNode) {
 
    const U = this.graph.U();
 
    log("map to hw", page);
 
    const mc = this.graph.uriValue(U(":midiControl"), U(":map"));
0 comments (0 inline, 0 general)