This commit is contained in:
Fabian Stamm 2017-06-20 16:52:38 +02:00
parent 6faa845098
commit dcbb81ddd3
3 changed files with 5 additions and 11 deletions

View File

@ -111,7 +111,7 @@ class Timecode {
if (e.time.milliseconds <= d) {
console.log("v", e);
ios.emit("artnet", e.art);
artnet.set(Number(e.art.subnet), Number(e.art.value));
artnet.set(universe, Number(e.art.subnet), Number(e.art.value));
var i = this.toTrigger.indexOf(e);
this.toTrigger.splice(i, 1);
}
@ -128,7 +128,7 @@ class Timecode {
if (e.time.milliseconds <= d) {
console.log("u", e);
ios.emit("artnet", e.art);
artnet.set(Number(e.art.subnet), Number(e.art.value));
artnet.set(universe, Number(e.art.subnet), Number(e.art.value));
var i = this.toTrigger.indexOf(e);
this.toTrigger.splice(i, 1);
}
@ -141,9 +141,6 @@ class Timecode {
}
loadTrack(trackid) {
this.playing = false;
/*for(var i = 0; i < 512; i++){
artnet.set(universe, i, 0);
}*/
var track = db.get(trackid).value();
var tr = [];
track.triggers.forEach(t => {

File diff suppressed because one or more lines are too long

View File

@ -131,7 +131,7 @@ class Timecode {
if(e.time.milliseconds <= d) {
console.log("v",e);
ios.emit("artnet", e.art);
artnet.set(Number(e.art.subnet), Number(e.art.value));
artnet.set(universe, Number(e.art.subnet), Number(e.art.value));
var i = this.toTrigger.indexOf(e);
this.toTrigger.splice(i, 1);
}
@ -149,7 +149,7 @@ class Timecode {
if(e.time.milliseconds <= d) {
console.log("u", e);
ios.emit("artnet", e.art);
artnet.set(Number(e.art.subnet), Number(e.art.value));
artnet.set(universe, Number(e.art.subnet), Number(e.art.value));
var i = this.toTrigger.indexOf(e);
this.toTrigger.splice(i, 1);
}
@ -163,9 +163,6 @@ class Timecode {
loadTrack(trackid:string) {
this.playing = false;
/*for(var i = 0; i < 512; i++){
artnet.set(universe, i, 0);
}*/
var track =<Track>db.get(trackid).value();
var tr = [];
track.triggers.forEach(t=>{