-
Hi! First of all I have to say thanks to this beautiful library that wavesurfer is.. And I would love to sponsor/donate once my project start off.. Currently im trying to do some complex things that i dont know if they are doable or somehow achievable... For example (On track loaded by user) Show placeholder initially Current Behavior: The code creates a waveform visualization using WaveSurfer.js (And having much problems with the signal.destroy) Used the version:
Any pointing on the right direction would be greatly appreciated.. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
To get low-res peaks, you're already using the right method (exportPeaks), just pass You can also use the |
Beta Was this translation helpful? Give feedback.
To get low-res peaks, you're already using the right method (exportPeaks), just pass
{ maxLength: 400, precision: 1000, channels: 1 }
or similar to limit how many peaks it returns.You can also use the
useWavesurfer
hook from wavesurfer-react for convenience. Just make sure to memoize all the props you pass to it to avoid re-renderings. In your current code, the metadata callback isn't memoized, for example.