diff src/app/spectrogram/Spectrogram.ts @ 497:c39df81c4dae

Upgrade to released piper version, which had a lot of breaking changes due to shifting modules around and renaming.
author Lucas Thompson <dev@lucas.im>
date Sun, 13 Aug 2017 19:44:07 +0100
parents 6a83df5029fe
children
line wrap: on
line diff
--- a/src/app/spectrogram/Spectrogram.ts	Fri Jul 21 14:29:02 2017 +0100
+++ b/src/app/spectrogram/Spectrogram.ts	Sun Aug 13 19:44:07 2017 +0100
@@ -1,9 +1,9 @@
 /**
  * Created by lucast on 16/03/2017.
  */
-import {RealFft, KissRealFft} from 'piper/fft/RealFft';
-import {hann} from 'piper/FftUtilities';
-import {Framing} from 'piper';
+import {RealFft, KissRealFft, hann} from 'piper-js/fft';
+import {KissFft} from 'piper-js/fft/KissFftModule';
+import {Framing} from 'piper-js/core';
 import Waves from 'waves-ui-piper';
 
 class SpectrogramEntity extends Waves.utils.MatrixEntity {
@@ -25,7 +25,7 @@
     this.real = new Float32Array(this.framing.blockSize);
     this.nCols = Math.floor(this.samples.length / this.framing.stepSize); // !!! not correct
     this.columnHeight = Math.round(this.framing.blockSize / 2) + 1;
-    this.fft = new KissRealFft(this.framing.blockSize);
+    this.fft = new KissRealFft(this.framing.blockSize, KissFft);
     this.window = hann(this.framing.blockSize);
   }