Exemple #1
0
        private void ImportAndMapBelieve()
        {
            lorBelieve.LoadFromFile(Path.Combine(Exec.ExpanderSharedFiles, "Seq", "Believe - Josh Groban 64 chns.lms"));

            lorBelieve.Progress.Subscribe(x =>
            {
                this.log.Verbose("Believe {0:N0} ms", x);
            });

            //            lorBelieve.Dump();

            lorBelieve.MapDevice("Yard 1", lightNet1);
            lorBelieve.MapDevice("Yard 2", lightNet2);
            lorBelieve.MapDevice("Yard 3", lightNet3);
            lorBelieve.MapDevice("Yard 4", lightNet4);
            lorBelieve.MapDevice("Yard 5", lightNet5);
            lorBelieve.MapDevice("Yard 6", lightNet6);
            lorBelieve.MapDevice("Yard 7", lightNet7);
            lorBelieve.MapDevice("Yard 8", lightNet8);
            lorBelieve.MapDevice("Yard 9", lightHat1);
            lorBelieve.MapDevice("Yard 10", lightHat2);
            lorBelieve.MapDevice("Yard 7", lightHat3);
            lorBelieve.MapDevice("Yard 8", lightHat4);

            lorBelieve.MapDevice("House 1", lightR2D2);
            lorBelieve.MapDevice("House 2", lightOlaf);

            lorBelieve.MapDevice("Wreath W", lightStairs1);
            lorBelieve.MapDevice("Wreath R", lightStairs2);
            lorBelieve.MapDevice("Mega Star", lightXmasTree);

            lorBelieve.MapDevice("Floods B", lightWall1, Utils.Data(Color.Blue));
            lorBelieve.MapDevice("Floods G", lightWall2, Utils.Data(Color.Green));
            lorBelieve.MapDevice("Floods R", lightWall3, Utils.Data(Color.Red));

            lorBelieve.MapDevice("Ferris Wheel 1", lightTopper1);
            lorBelieve.MapDevice("Ferris Wheel 2", lightTopper2);
            lorBelieve.MapDevice("Ferris Wheel 3", lightRail1);
            lorBelieve.MapDevice("Ferris Wheel 4", lightRail2);
            lorBelieve.MapDevice("Ferris Wheel 5", lightReindeer1);
            lorBelieve.MapDevice("Ferris Wheel 6", lightReindeer2);
            lorBelieve.MapDevice("Ferris Wheel 7", lightSanta);
            lorBelieve.MapDevice("Ferris Wheel 8", lightSnowman);

            lorBelieve.MapDevice("NATIVITY", lightVader, Utils.Data(Color.Red));
            lorBelieve.MapDevice("House 3",
                                 new VirtualDevice(b => saberPixels.SetColorRange(Color.Red, b, 0, 32, lorBelieve.Token)));

            lorBelieve.ControlDevice(pixelsMatrix);
            lorBelieve.ControlDevice(saberPixels);
            lorBelieve.MapDevice("Mega Tree 1",
                                 new VirtualDevice(b => pixelsMatrix.SetColorRange(Color.Blue, b, 0, 0, 20, 1, lorBelieve.Token)));
            lorBelieve.MapDevice("Mega Tree 2",
                                 new VirtualDevice(b => pixelsMatrix.SetColorRange(Color.Red, b, 0, 1, 20, 1, lorBelieve.Token)));
            lorBelieve.MapDevice("Mega Tree 3",
                                 new VirtualDevice(b => pixelsMatrix.SetColorRange(Color.Blue, b, 0, 2, 20, 1, lorBelieve.Token)));
            lorBelieve.MapDevice("Mega Tree 4",
                                 new VirtualDevice(b => pixelsMatrix.SetColorRange(Color.Red, b, 0, 3, 20, 1, lorBelieve.Token)));
            lorBelieve.MapDevice("Mega Tree 5",
                                 new VirtualDevice(b => pixelsMatrix.SetColorRange(Color.Blue, b, 0, 4, 20, 1, lorBelieve.Token)));
            lorBelieve.MapDevice("Mega Tree 6",
                                 new VirtualDevice(b => pixelsMatrix.SetColorRange(Color.Red, b, 0, 5, 20, 1, lorBelieve.Token)));
            lorBelieve.MapDevice("Mega Tree 7",
                                 new VirtualDevice(b => pixelsMatrix.SetColorRange(Color.Blue, b, 0, 6, 20, 1, lorBelieve.Token)));
            lorBelieve.MapDevice("Mega Tree 8",
                                 new VirtualDevice(b => pixelsMatrix.SetColorRange(Color.Red, b, 0, 7, 20, 1, lorBelieve.Token)));
            lorBelieve.MapDevice("Mega Tree 9",
                                 new VirtualDevice(b => pixelsMatrix.SetColorRange(Color.Blue, b, 0, 8, 20, 1, lorBelieve.Token)));
            lorBelieve.MapDevice("Mega Tree 10",
                                 new VirtualDevice(b => pixelsMatrix.SetColorRange(Color.Blue, b, 0, 9, 20, 1, lorBelieve.Token)));
            lorBelieve.MapDevice("Mega Star", pixelsRoofEdge, Utils.Data(Color.Red));

            lorBelieve.Prepare();
        }
Exemple #2
0
        private void ImportAndMapFeelTheLight()
        {
            lorFeelTheLight.LoadFromFile(Path.Combine(Exec.ExpanderSharedFiles, "Seq", "Feel The Light, Jennifer Lopez.lms"));

            lorFeelTheLight.Progress.Subscribe(x =>
            {
                this.log.Verbose("Feel the Light {0:N0} ms", x);
            });

            //            lorFeelTheLight.Dump();

            lorFeelTheLight.MapDevice("Unit 01.7 arch 1.7", lightNet8);
            lorFeelTheLight.MapDevice("Unit 01.8 arch 2.1", lightNet7);
            lorFeelTheLight.MapDevice("Unit 01.9 arch 2.2", lightNet6);
            lorFeelTheLight.MapDevice("Unit 01.10 arch 2.3", lightNet5);
            lorFeelTheLight.MapDevice("Unit 01.11 arch 2.4", lightNet4);
            lorFeelTheLight.MapDevice("Unit 01.12 arch 2.5", lightNet3);
            lorFeelTheLight.MapDevice("Unit 01.13arch 2.6", lightNet2);
            lorFeelTheLight.MapDevice("Unit 01.14 arch 2.7", lightNet1);

            lorFeelTheLight.MapDevice("windows 01", lightStairs1);
            lorFeelTheLight.MapDevice("windows 02", lightStairs2);

            lorFeelTheLight.MapDevice("04.01 Sing tree outline", lightHat1);
            lorFeelTheLight.MapDevice("04.09  Sing tree outline", lightHat2);
            lorFeelTheLight.MapDevice("05.01 Sing tree outline", lightHat3);
            lorFeelTheLight.MapDevice("05.09 Sing tree Outline", lightHat4);

            lorFeelTheLight.MapDevice("03.15 candy cane lane", lightTopper1);
            lorFeelTheLight.MapDevice("03.13 deer rudolf", lightTopper2);
            lorFeelTheLight.MapDevice("03.10 house eve 01", lightRail1);
            lorFeelTheLight.MapDevice("03.11 house eve 02", lightRail2);
            lorFeelTheLight.MapDevice("03.12 house eve 03", lightReindeer1);
            lorFeelTheLight.MapDevice("03.14 deer 02", lightReindeer2);

            lorFeelTheLight.MapDevice("03.9 mini tree 08", lightWall1, Utils.Data(Color.Red));
            lorFeelTheLight.MapDevice("03.8 mini tree 07", lightWall2, Utils.Data(Color.Red));
            lorFeelTheLight.MapDevice("03.7 mini tree 06", lightWall3, Utils.Data(Color.Red));
            lorFeelTheLight.MapDevice("03.6 mini tree 05", lightSanta);
            lorFeelTheLight.MapDevice("03.5 mini tree 04", lightSnowman);
            lorFeelTheLight.MapDevice("03.4 mini tree 03", lightVader, Utils.Data(Color.Red));
            lorFeelTheLight.MapDevice("03.3 mini tree 02",
                                      new VirtualDevice(b => saberPixels.SetColorRange(Color.Red, b, 0, 32, lorFeelTheLight.Token)));

            lorFeelTheLight.ControlDevice(pixelsMatrix);
            lorFeelTheLight.ControlDevice(saberPixels);
            lorFeelTheLight.MapDevice("Unit 02.1 Mega tree 1",
                                      new VirtualDevice(b => pixelsMatrix.SetColorRange(Color.Blue, b, 0, 0, 20, 1, lorFeelTheLight.Token)));
            lorFeelTheLight.MapDevice("Unit 02.2 Mega tree 2",
                                      new VirtualDevice(b => pixelsMatrix.SetColorRange(Color.Red, b, 0, 1, 20, 1, lorFeelTheLight.Token)));
            lorFeelTheLight.MapDevice("Unit 02.3 Mege tree 3",
                                      new VirtualDevice(b => pixelsMatrix.SetColorRange(Color.Blue, b, 0, 2, 20, 1, lorFeelTheLight.Token)));
            lorFeelTheLight.MapDevice("Unit 02.4 Mega tree 4",
                                      new VirtualDevice(b => pixelsMatrix.SetColorRange(Color.Red, b, 0, 3, 20, 1, lorFeelTheLight.Token)));
            lorFeelTheLight.MapDevice("Unit 02.9 Mega tree 9",
                                      new VirtualDevice(b => pixelsMatrix.SetColorRange(Color.Blue, b, 0, 4, 20, 1, lorFeelTheLight.Token)));
            lorFeelTheLight.MapDevice("Unit 02.10 Mega tree 10",
                                      new VirtualDevice(b => pixelsMatrix.SetColorRange(Color.Red, b, 0, 5, 20, 1, lorFeelTheLight.Token)));
            lorFeelTheLight.MapDevice("Unit 02.11 Mega tree 11",
                                      new VirtualDevice(b => pixelsMatrix.SetColorRange(Color.Blue, b, 0, 6, 20, 1, lorFeelTheLight.Token)));
            lorFeelTheLight.MapDevice("Unit 02.12 Mega tree 12",
                                      new VirtualDevice(b => pixelsMatrix.SetColorRange(Color.Red, b, 0, 7, 20, 1, lorFeelTheLight.Token)));
            lorFeelTheLight.MapDevice("Unit 02.15 Mega tree 15",
                                      new VirtualDevice(b => pixelsMatrix.SetColorRange(Color.Blue, b, 0, 8, 20, 1, lorFeelTheLight.Token)));
            lorFeelTheLight.MapDevice("Unit 02.16 Mega tree 16",
                                      new VirtualDevice(b => pixelsMatrix.SetColorRange(Color.Blue, b, 0, 9, 20, 1, lorFeelTheLight.Token)));
            lorFeelTheLight.MapDevice("03.1 mega tree topper 01", pixelsRoofEdge, Utils.Data(Color.White));

            lorFeelTheLight.Prepare();
        }