diff src/app/waveform/waveform.component.ts @ 264:4470c94b470e

Embark on vertical scale
author Chris Cannam <cannam@all-day-breakfast.com>
date Fri, 28 Apr 2017 16:04:17 +0100
parents 3018e8531840
children 4cfd6258b958
line wrap: on
line diff
--- a/src/app/waveform/waveform.component.ts	Fri Apr 28 14:31:24 2017 +0100
+++ b/src/app/waveform/waveform.component.ts	Fri Apr 28 16:04:17 2017 +0100
@@ -648,6 +648,16 @@
           waveTrack,
           this.timeline.timeContext
         );
+        const scaleLayer = new wavesUI.helpers.ScaleLayer(plotData, {
+          color: colour,
+          height: height,
+          yDomain: [ min, max ]
+        });
+        this.addLayer(
+          scaleLayer,
+          waveTrack,
+          this.timeline.timeContext
+        );
         this.highlightLayer = new wavesUI.helpers.HighlightLayer(lineLayer, {
           opacity: 0.7,
           height: height,