Mercurial > hg > ugly-duckling
view 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 source
/** * 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; } }