public HueSolidColorVisualizer( Configuration config, HueOutput hue ) { this.config = config; this.hue = hue; this.hue.RegisterVisualizer(this); }
public Operator(Configuration config) { this.config = config; this.stopwatch = new Stopwatch(); this.stopwatch.Start(); this.inputs = new List<Input>(); var audio = new AudioInput(config); this.inputs.Add(audio); var midi = new MidiInput(config); this.inputs.Add(midi); this.outputs = new List<Output>(); var hue = new HueOutput(config); this.outputs.Add(hue); var board = new CartesianTeensyOutput(config); this.outputs.Add(board); var dome = new LEDDomeOutput(config); this.outputs.Add(dome); var whyFire = new WhyFireOutput(config); this.outputs.Add(whyFire); this.visualizers = new List<Visualizer>(); this.visualizers.Add(new HueAudioVisualizer( this.config, audio, hue )); this.visualizers.Add(new LEDPanelVolumeVisualizer( this.config, audio, board )); this.visualizers.Add(new HueSolidColorVisualizer( this.config, hue )); this.visualizers.Add(new HueSilentVisualizer( this.config, audio, hue )); this.visualizers.Add(new LEDPanelMidiVisualizer( this.config, midi, board )); this.visualizers.Add(new LEDDomeMidiTestVisualizer( this.config, midi, dome )); this.visualizers.Add(new LEDDomeStrandTestVisualizer( this.config, dome )); this.visualizers.Add(new LEDDomeVolumeVisualizer( this.config, audio, dome )); this.visualizers.Add(new LEDDomeFlashVisualizer( this.config, audio, midi, dome )); this.visualizers.Add(new WhyFireMidiVisualizer( this.config, midi, whyFire )); }