# HG changeset patch # User Lucas Thompson # Date 1490353520 0 # Node ID d7e4bba39d20437ae0f0737867f9f9af9fdb3af9 # Parent 3ef1aaa2ebede1eee4bab559665e30b0ba1c889c Moving towards defining an analysis item - it is already doing too much in terms of also describing the root audio. diff -r 3ef1aaa2ebed -r d7e4bba39d20 src/app/analysis-item/analysis-item.component.html --- a/src/app/analysis-item/analysis-item.component.html Fri Mar 24 11:04:11 2017 +0000 +++ b/src/app/analysis-item/analysis-item.component.html Fri Mar 24 11:05:20 2017 +0000 @@ -5,9 +5,12 @@ diff -r 3ef1aaa2ebed -r d7e4bba39d20 src/app/analysis-item/analysis-item.component.ts --- 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; }