view 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
line wrap: on
line source
/**
 * Created by lucast on 21/03/2017.
 */
import {Component, Input} from "@angular/core";
import Waves from 'waves-ui';

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() timeContext: TimelineTimeContext;

  @Input()
  set audioBuffer(buffer: AudioBuffer) {
    this._audioBuffer = buffer || undefined;
    if (this.audioBuffer) {

    }
  }

  get audioBuffer(): AudioBuffer {
    return this._audioBuffer;
  }
}