question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Accuracy of saved waveform

See original GitHub issue

Hello,

I’m saving the peaks as JSON -


wavesurfer.on('waveform-ready', function () {
            container.children('.loader').css('width', '0%');
            container.css('background-image', 'none');

            // cache Waveform
            var length = 500;
            var start = 0;
            var end = 500;

            // save Peaks if not exist
            if (!peaks) {

              // save Peaks
              // savePeaks(fileId, wavesurfer.backend.getPeaks(length, start, end));

              // PCM
              var pcmData = wavesurfer.exportPCM(length, 4000, true, start);
              savePeaks(fileId, JSON.parse(pcmData));

            }

          });

Unfortunately the saved waveform is not as accurate as the one which is generated on the fly - look here:

https://imgur.com/a/RyBVtsS

How ca this be fixed ? There seems to be no parameter ?

Please make sure you provide the following information (if applicable):

Wavesurfer.js version(s):

wavesurfer.js 2.0.5

Browser version(s):

all

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:19 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
Pkmmtecommented, Apr 7, 2021

Year 2021 here. Still looking for a solution…

1reaction
webaschtlcommented, Mar 15, 2020

Hmm, having the same problem – in the year 2020 😉

image

Therefore exportPCM still works not as it should be?! Or do you found a solution, @peerfischer?

Thanks a lot – two years after…

Read more comments on GitHub >

github_iconTop Results From Across the Web

Understanding Voltage Measurement Accuracy for ...
Single cursor accuracy represents the accuracy of saved waveform data and single cursor measurements, such as Max Voltage. Dual cursor accuracy represents the ......
Read more >
Overall accuracy of the models for Waveform dataset
In this paper, we propose a design method of bearing fault diagnosis model based on granular computing: Convolutional Neural Networks-Granular Computing (CNN-GC) ...
Read more >
Precision and accuracy in oscilloscopes
An alternative sampling mode, known as peak detect, saves highest and lowest peaks from adjacent waveforms, preserving them in the waveform ...
Read more >
Improved waveform reconstruction and parameter accuracy ...
Abstract. In this paper, we aim to provide a solution for choosing an optimized digitization frequency for full-waveform reconstruction of narrow FWHM laser ......
Read more >
EEVblog #1226 - Get Better Accuracy On Your Oscilloscope
How to get better waveform measurement accuracy on your oscilloscope.Two advantages of the oscilloscope vernier control.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found