comparison src/app/analysis-item/analysis-item.component.ts @ 181:7cd274d296a3

Allow for sharing time context amongst some analysis items. This approach may be backed out.
author Lucas Thompson <dev@lucas.im>
date Wed, 22 Mar 2017 11:17:51 +0000
parents 53dd17c06724
children 3f84bd16c1e8
comparison
equal deleted inserted replaced
180:a1983e30cdd7 181:7cd274d296a3
1 /** 1 /**
2 * Created by lucast on 21/03/2017. 2 * Created by lucast on 21/03/2017.
3 */ 3 */
4 import {Component, Input} from "@angular/core"; 4 import {Component, Input} from "@angular/core";
5 import Waves from 'waves-ui';
5 6
6 export interface Analysis { 7 export interface Analysis {
7 audioUri: string; 8 audioUri: string;
8 combinedKey: string; 9 combinedKey: string;
9 } 10 }
13 templateUrl: './analysis-item.component.html', 14 templateUrl: './analysis-item.component.html',
14 styleUrls: ['./analysis-item.component.css'] 15 styleUrls: ['./analysis-item.component.css']
15 }) 16 })
16 export class AnalysisItemComponent { 17 export class AnalysisItemComponent {
17 private _audioBuffer: AudioBuffer; 18 private _audioBuffer: AudioBuffer;
18 19 @Input() timeContext: TimelineTimeContext;
19 20
20 @Input() 21 @Input()
21 set audioBuffer(buffer: AudioBuffer) { 22 set audioBuffer(buffer: AudioBuffer) {
22 this._audioBuffer = buffer || undefined; 23 this._audioBuffer = buffer || undefined;
23 if (this.audioBuffer) { 24 if (this.audioBuffer) {