diff src/app/analysis-item/analysis-item.component.ts @ 200:d7e4bba39d20

Moving towards defining an analysis item - it is already doing too much in terms of also describing the root audio.
author Lucas Thompson <dev@lucas.im>
date Fri, 24 Mar 2017 11:05:20 +0000
parents a50feba0d7f0
children 1db0bb28688b
line wrap: on
line diff
--- a/src/app/analysis-item/analysis-item.component.ts	Fri Mar 24 11:04:11 2017 +0000
+++ b/src/app/analysis-item/analysis-item.component.ts	Fri Mar 24 11:05:20 2017 +0000
@@ -4,9 +4,13 @@
 import {Component, Input} from "@angular/core";
 import Waves from 'waves-ui';
 
-export interface Analysis {
-  audioUri: string;
-  combinedKey: string;
+export interface AnalysisItem {
+  rootAudioUri: string;
+  hasSharedTimeline: boolean;
+  isRoot: boolean;
+  extractorKey: string;
+  title?: string;
+  description?: string;
 }
 
 @Component({
@@ -15,20 +19,9 @@
   styleUrls: ['./analysis-item.component.css']
 })
 export class AnalysisItemComponent {
-  private _audioBuffer: AudioBuffer;
   @Input() timeline: Timeline;
   @Input() title: string;
   @Input() description: string;
-
-  @Input()
-  set audioBuffer(buffer: AudioBuffer) {
-    this._audioBuffer = buffer || undefined;
-    if (this.audioBuffer) {
-
-    }
-  }
-
-  get audioBuffer(): AudioBuffer {
-    return this._audioBuffer;
-  }
+  @Input() isActive: boolean;
+  @Input() isRoot: boolean;
 }