Mercurial > hg > ugly-duckling
changeset 171:9556954478f2
Introduce a component representing a feed of analyses on an audio file. A collection of analysis items. Basically a placeholder right now.
author | Lucas Thompson <dev@lucas.im> |
---|---|
date | Tue, 21 Mar 2017 17:10:59 +0000 |
parents | 53dd17c06724 |
children | b15236b03a28 |
files | src/app/notebook-feed/notebook-feed.component.css src/app/notebook-feed/notebook-feed.component.html src/app/notebook-feed/notebook-feed.component.ts |
diffstat | 2 files changed, 32 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/app/notebook-feed/notebook-feed.component.html Tue Mar 21 17:10:59 2017 +0000 @@ -0,0 +1,6 @@ +<ugly-analysis-item + [audioBuffer]="audioBuffer"></ugly-analysis-item> +<ugly-analysis-item + [audioBuffer]="audioBuffer"></ugly-analysis-item> +<ugly-analysis-item + [audioBuffer]="audioBuffer"></ugly-analysis-item>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/app/notebook-feed/notebook-feed.component.ts Tue Mar 21 17:10:59 2017 +0000 @@ -0,0 +1,26 @@ +/** + * Created by lucast on 21/03/2017. + */ +import {Component, Input} from "@angular/core"; + +@Component({ + selector: 'ugly-notebook-feed', + templateUrl: './notebook-feed.component.html', + styleUrls: ['./notebook-feed.component.css'] +}) +export class NotebookFeedComponent { + private _audioBuffer: AudioBuffer; + + + @Input() + set audioBuffer(buffer: AudioBuffer) { + this._audioBuffer = buffer || undefined; + if (this.audioBuffer) { + + } + } + + get audioBuffer(): AudioBuffer { + return this._audioBuffer; + } +}