Mercurial > hg > ugly-duckling
changeset 342:b5f2ee789fb3
Merge branch 'master' of github.com:piper-audio/ugly-duckling
author | Lucas Thompson <dev@lucas.im> |
---|---|
date | Tue, 23 May 2017 10:25:54 +0100 |
parents | 684619d3fad5 (current diff) 46435d5208e9 (diff) |
children | 8bfd9586c78a |
files | src/app/waveform/waveform.component.ts |
diffstat | 1 files changed, 14 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/app/waveform/waveform.component.ts Fri May 19 16:18:34 2017 +0100 +++ b/src/app/waveform/waveform.component.ts Tue May 23 10:25:54 2017 +0100 @@ -686,6 +686,18 @@ return lineLayer; }); + this.addScaleAndHighlight(waveTrack, lineLayers, unit, colour, min, max); + } + + private addScaleAndHighlight(waveTrack, + lineLayers, + unit: string, + colour: Colour, + min: number, + max: number) { + + const height = this.trackDiv.nativeElement.getBoundingClientRect().height; + // And a single scale layer at left // !!! todo: unit in scale layer const scaleLayer = new wavesUI.helpers.ScaleLayer({ @@ -817,6 +829,8 @@ this.waveTrack, this.timeline.timeContext ); + this.addScaleAndHighlight(waveTrack, [pianoRollLayer], "", + colour, min, max); break; } } catch (e) {