public Launchpad(InputDevice inputDevice, OutputDevice outputDevice, Clock clock) { this.inputDevice = inputDevice; this.outputDevice = outputDevice; this.clock = clock; if (this.inputDevice.IsOpen) { this.inputDevice.Close(); } if (this.outputDevice.IsOpen) { this.outputDevice.Close(); } this.inputDevice.Open(); this.inputDevice.NoteOn += new InputDevice.NoteOnHandler(NoteOn); this.inputDevice.StartReceiving(null); this.outputDevice.Open(); this.ShowColours(); DemoSetup(); }
internal InfoObject(GeneratorFramework generatorFramework, OutputDevice device, Clock clock) { Device = device; Clock = clock; }