Beispiel #1
0
 public SmoothStrip(DisplayOpenGL parent, IVisualizer visualizer)
 {
     if (!(visualizer is IContinuous1D))
     {
         Log.Error("SmoothStrip cannot use the provided visualizer, as it does not output 1D continuous data.");
         throw new InvalidOperationException("Incompatible visualizer. Must implement IContinuous1D.");
     }
     this.HostWindow = parent;
     this.DataSource = (IContinuous1D)visualizer;
 }
Beispiel #2
0
 public NoiseField(DisplayOpenGL parent, IVisualizerFormat visualizer, Dictionary <string, object> config)
 {
     if (visualizer is not IContinuous1D)
     {
         Log.Error("NoiseField cannot be used with this visualizer, as it does not output 1D continuous data.");
         throw new InvalidOperationException("Incompatible visualizer. Must implement IContinuous1D.");
     }
     if (ColorChord.NoteFinder is not BaseNoteFinder)
     {
         throw new Exception("NoiseField currently only supports BaseNoteFinder.");
     }
     this.HostWindow = parent;
     this.DataSource = (IContinuous1D)visualizer;
     Configurer.Configure(this, config);
 }