changeset 228:23db7139085a

rename, as a piper service is an implementation detail of the feature extraction service.
author Lucas Thompson <dev@lucas.im>
date Fri, 21 Apr 2017 13:06:56 +0100
parents ac513d535be9
children efa23f33393b
files src/app/app.component.ts
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/app/app.component.ts	Fri Apr 21 13:00:24 2017 +0100
+++ b/src/app/app.component.ts	Fri Apr 21 13:06:56 2017 +0100
@@ -26,7 +26,7 @@
   private rootAudioUri: string;
 
   constructor(private audioService: AudioPlayerService,
-              private piperService: FeatureExtractionService,
+              private featureService: FeatureExtractionService,
               private iconRegistry: MdIconRegistry,
               private sanitizer: DomSanitizer) {
     this.analyses = [];
@@ -53,7 +53,7 @@
         }
       }
     );
-    this.onProgressUpdated = this.piperService.progressUpdated$.subscribe(
+    this.onProgressUpdated = this.featureService.progressUpdated$.subscribe(
       progress => {
         const index = this.analyses.findIndex(val => val.id === progress.id);
         if (index === -1) return;
@@ -107,7 +107,7 @@
       progress: 0
     });
 
-    this.piperService.extract(`${this.countingId}`, {
+    this.featureService.extract(`${this.countingId}`, {
       audioData: [...Array(this.audioBuffer.numberOfChannels).keys()]
         .map(i => this.audioBuffer.getChannelData(i)),
       audioFormat: {