Mercurial > hg > ugly-duckling
comparison src/app/waveform/waveform.component.ts @ 221:f3ff5ee994a1
With card layout, these can be full-height again
author | Chris Cannam <cannam@all-day-breakfast.com> |
---|---|
date | Thu, 30 Mar 2017 16:46:48 +0100 |
parents | e72e74453581 |
children | 990b0fc68653 0833ddde6a83 |
comparison
equal
deleted
inserted
replaced
220:4f0e5032a240 | 221:f3ff5ee994a1 |
---|---|
538 renderSpectrogram(buffer: AudioBuffer): void { | 538 renderSpectrogram(buffer: AudioBuffer): void { |
539 const height: number = this.trackDiv.nativeElement.getBoundingClientRect().height / 2; | 539 const height: number = this.trackDiv.nativeElement.getBoundingClientRect().height / 2; |
540 const gridTrack = this.timeline.getTrackById(`grid-${this.trackIdPrefix}`); | 540 const gridTrack = this.timeline.getTrackById(`grid-${this.trackIdPrefix}`); |
541 | 541 |
542 const spectrogramLayer = new WavesSpectrogramLayer(buffer, { | 542 const spectrogramLayer = new WavesSpectrogramLayer(buffer, { |
543 top: height * 0.05, | 543 top: 0, |
544 height: height * 0.9, | 544 height: height, |
545 stepSize: 512, | 545 stepSize: 512, |
546 blockSize: 1024, | 546 blockSize: 1024, |
547 normalise: 'none', | 547 normalise: 'none', |
548 mapper: this.sunsetMapper() | 548 mapper: this.sunsetMapper() |
549 }); | 549 }); |
715 new wavesUI.utils.PrefilledMatrixEntity(matrixData, | 715 new wavesUI.utils.PrefilledMatrixEntity(matrixData, |
716 0, // startTime | 716 0, // startTime |
717 stepDuration); | 717 stepDuration); |
718 let matrixLayer = new wavesUI.helpers.MatrixLayer(matrixEntity, { | 718 let matrixLayer = new wavesUI.helpers.MatrixLayer(matrixEntity, { |
719 gain, | 719 gain, |
720 height: height * 0.9, | 720 top: 0, |
721 top: height * 0.05, | 721 height: height, |
722 normalise: 'none', | 722 normalise: 'none', |
723 mapper: this.iceMapper() | 723 mapper: this.iceMapper() |
724 }); | 724 }); |
725 this.addLayer( | 725 this.addLayer( |
726 matrixLayer, | 726 matrixLayer, |