Replies: 1 comment 5 replies
-
Because the top half of the waveform is the left channel and the bottom part is the right channel. It takes the maximum value per sample for both. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The code is here https://github.com/katspaugh/wavesurfer.js/blob/main/src/renderer.ts#L287.
I'm curious why the barHeight isn't the sum of the minimum and maximum values of topChannel[0], but the sum of the maximum value of Math.abs(topChannel[i]) and Math.abs(bottomChannel[i])
Beta Was this translation helpful? Give feedback.
All reactions