![]() ![]() As both take several seconds it's worth generating json directly. I see you have chosen to run audiowaveform twice (as suggested by wavesurfer docs), but the version I got from Ubuntu 18, v1.3.3 ,and also v1.2.2, support direct generation of the json file from the wave data, no need for a. I would really like to see something that can be patched in cleanly, but I really don't have the JS skills for it.ĭaniel, Super impressed you've achieved so much so quickly!!!Ĭan't test right this moment but have had a look at the patch in detail.ġ. Please engage with me to progress this further. It is not meant as a patch to directly apply, though it might do so, but as a starting point for further work in incorporating it into the module (or making it a less intrusive patch). The code resulting from this is in the attached patch files. This requires the program "audiowaveform", available in your local distro. I also have sample code to create some Drupal code to generate and pass on the peaks files themselves. I know I have also modified the old-JS not ES6 file - again, my skill level. ![]() Sadly, I am not a JS expert and found it very hard/impossible to work within the existing wavesurfer interface (), so I have modified it in-place. This took some time! I have therefore been working on how to use wavesurfer's "peaks file" capability, which radically reduces startup time. I like the wavesurfer look and its extensibility, but to render the wave using the audiofield code required loading and decoding all 130MB. I have been playing with audiofield/wavesurfer for a site which lets (some) users play up to 130MB audio files. ![]()
0 Comments
Leave a Reply. |