コード例 #1
0
        private static void Main()
        {
            var kernel = new NinjectKernelHandler().Kernel;
              var waveIn = kernel.Get<WasapiLoopbackCapture>();
              waveIn.StartRecording();

              WriteCaptureSettings(waveIn.WaveFormat);

              var streamRaw = new WaveInProvider(waveIn);

              var streamPitch = new PitchGeneratorProvider(streamRaw, new FftPitchDetector(), new FftPitchDetector(), new FloatDataStereoSplitter(), new PitchResultSummaryWriter());
              var compositeLightSectionBuilder = kernel.Get<FrameBuilder>();
              var notifiationClient = kernel.Get<NotificationClientBase>();
              var streamScene = new SceneGenerator(streamPitch, compositeLightSectionBuilder, notifiationClient);

              var task = new ChromesthesiaTask(streamScene);

              task.Run();
        }
コード例 #2
0
 public ChromesthesiaTask(SceneGenerator sceneGenerator)
 {
     this.sceneGenerator = sceneGenerator;
 }