aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/AudioWaveform.tsx
diff options
context:
space:
mode:
authormehekj <mehek.jethani@gmail.com>2021-10-23 21:36:30 -0400
committermehekj <mehek.jethani@gmail.com>2021-10-23 21:36:30 -0400
commit3d76222b8cd41423bcdd7a91e4aee2826f329d9f (patch)
treed5be2838bb8a85dbbeff54048025245acf766162 /src/client/views/AudioWaveform.tsx
parent353e72feb29d3549dcf7ec7875241ddb7a9a99d9 (diff)
audiobox UI update
Diffstat (limited to 'src/client/views/AudioWaveform.tsx')
-rw-r--r--src/client/views/AudioWaveform.tsx3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/client/views/AudioWaveform.tsx b/src/client/views/AudioWaveform.tsx
index 7b9b1aa81..ca1dd6f36 100644
--- a/src/client/views/AudioWaveform.tsx
+++ b/src/client/views/AudioWaveform.tsx
@@ -38,7 +38,6 @@ export class AudioWaveform extends React.Component<AudioWaveformProps> {
this._disposer?.();
}
componentDidMount() {
- console.log("new waveform");
this._disposer = reaction(() => ({ clipStart: this.clipStart, clipEnd: this.clipEnd, fieldKey: this.audioBucketField(this.clipStart, this.clipEnd, this.zoomFactor), zoomFactor: this.props.zoomFactor }),
({ clipStart, clipEnd, fieldKey, zoomFactor }) => {
if (!this.props.layoutDoc[fieldKey]) {
@@ -65,8 +64,6 @@ export class AudioWaveform extends React.Component<AudioWaveformProps> {
const decodedAudioData = rawDecodedAudioData.slice(Math.floor(startInd * rawDecodedAudioData.length), Math.floor(endInd * rawDecodedAudioData.length));
const numBuckets = Math.floor(AudioWaveform.NUMBER_OF_BUCKETS * zoomFactor);
- console.log(numBuckets);
-
const bucketDataSize = Math.floor(
decodedAudioData.length / numBuckets
);