Mercurial > hg > ugly-duckling
comparison src/app/notebook-feed/notebook-feed.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 | 539dd65d56ea |
children | a50feba0d7f0 |
comparison
equal
deleted
inserted
replaced
180:a1983e30cdd7 | 181:7cd274d296a3 |
---|---|
51 templateUrl: './notebook-feed.component.html', | 51 templateUrl: './notebook-feed.component.html', |
52 styleUrls: ['./notebook-feed.component.css'] | 52 styleUrls: ['./notebook-feed.component.css'] |
53 }) | 53 }) |
54 export class NotebookFeedComponent { | 54 export class NotebookFeedComponent { |
55 private _audioBuffer: AudioBuffer; | 55 private _audioBuffer: AudioBuffer; |
56 sharedTimeContext: TimelineTimeContext; | |
56 | 57 |
57 | 58 |
58 @Input() | 59 @Input() |
59 set audioBuffer(buffer: AudioBuffer) { | 60 set audioBuffer(buffer: AudioBuffer) { |
60 this._audioBuffer = buffer || undefined; | 61 this._audioBuffer = buffer || undefined; |
64 } | 65 } |
65 | 66 |
66 get audioBuffer(): AudioBuffer { | 67 get audioBuffer(): AudioBuffer { |
67 return this._audioBuffer; | 68 return this._audioBuffer; |
68 } | 69 } |
70 | |
71 constructor() { | |
72 this.sharedTimeContext = new NotifyingTimeContext(100, 1000); | |
73 } | |
69 } | 74 } |