public Nutcracker3Scene(IEnumerable<string> args)
{
candyLight = new StrobeColorDimmer("Candy Light");
testButton = new DigitalInput("Test");
allPixels1 = new VirtualPixel1D(256);
allPixels2 = new VirtualPixel1D(256);
allPixels1.SetAll(Color.White, 0);
allPixels2.SetAll(Color.White, 0);
var lorImport = new Import.LorImport(@"C:\Users\HLindestaf\Downloads\coke_song\Coke-Cola Christmas.lms");
var channelNames = lorImport.GetChannels.Select(x => lorImport.GetChannelName(x)).ToList();
channelNames.ForEach(x => Console.WriteLine(x));
int pixelPosition = 0;
var circuits = lorImport.GetChannels.GetEnumerator();
while (true)
{
// Controller.IChannelIdentity channelR, channelG, channelB;
Controller.IChannelIdentity channel;
if (!circuits.MoveNext())
break;
channel = circuits.Current;
VirtualPixel1D pixel1d;
int pixelNum;
if (pixelPosition < 256)
{
pixel1d = allPixels1;
pixelNum = pixelPosition;
}
else
{
pixel1d = allPixels2;
pixelNum = pixelPosition - 256;
}
var pixel = lorImport.MapDevice(
channel,
name => new SinglePixel(name, pixel1d, pixelNum));
log.Debug("Mapping channel [{0}] to pixel {1} [{2}]",
channel,
pixelPosition,
pixel.Name);
pixelPosition++;
}
lorTimeline = lorImport.CreateTimeline(1);
}