Mercurial > hg > ugly-duckling
diff src/app/analysis-item/analysis-item.component.ts @ 170:53dd17c06724
Introduce an item for displaying the results of an individual analysis method. Basically a placeholder right now.
author | Lucas Thompson <dev@lucas.im> |
---|---|
date | Tue, 21 Mar 2017 17:09:56 +0000 |
parents | |
children | 7cd274d296a3 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/app/analysis-item/analysis-item.component.ts Tue Mar 21 17:09:56 2017 +0000 @@ -0,0 +1,31 @@ +/** + * Created by lucast on 21/03/2017. + */ +import {Component, Input} from "@angular/core"; + +export interface Analysis { + audioUri: string; + combinedKey: string; +} + +@Component({ + selector: 'ugly-analysis-item', + templateUrl: './analysis-item.component.html', + styleUrls: ['./analysis-item.component.css'] +}) +export class AnalysisItemComponent { + private _audioBuffer: AudioBuffer; + + + @Input() + set audioBuffer(buffer: AudioBuffer) { + this._audioBuffer = buffer || undefined; + if (this.audioBuffer) { + + } + } + + get audioBuffer(): AudioBuffer { + return this._audioBuffer; + } +}