Closed craigeley closed 4 years ago
Thanks for the file!
The bug that corrupted files like this is solved in version 9.0.2 - the files can be saved and the regions are kept (they are showing up in Reaper). Some of the values are not displaying correctly, still.
This file uses some features that the current version of wavefile do not support, but im working to add support for them in future releases. I included the file in the test suite. Thanks!
Cheers! Rafael
Version 9.1.1 should handle the regions correctly.
Cheers! Rafael
Amazing! Read and write? Is that documented yet?
In version 9.x you can only read and write regions that already existed in the file. In v10.x will be possible to use the setCuePoint method to create both cue points and regions.
Cheers!
Version 10.0 is out; now you can add regions like this:
// create a cue region with a label:
wav.setCuePoint({position: 1500, end: 2500, label: 'some label'});
To create a standard cue point, ommit the 'end' attribute:
// create a cue point with a label:
wav.setCuePoint({position: 1500, label: 'some label'});
// create a cue point with no label:
wav.setCuePoint({position: 1500});
Cheers! Rafael
This is awesome. I have no idea the magic that makes this script work, but I would be interested to know if it can parse files from Pro Tools, which writes "clips" into its files in a way that I have never been able to get another app to read. But that's a different issue for a different day. Thanks again!
Could you provide a file with some clips like that?
Cheers! Rafael
This is a feature request or enhancement, but I'm wondering if it is possible for wavefile to recognize cue markers that have both a start AND end point—markers like this can be created in Adobe Audition, for example. Note the "start" and "end" times in this screenshot:
And here is a link to the file that the screenshot was taken with:
https://www.dropbox.com/transfer/AAAAACWjc7db0I3xtIeZ8l9CdhEH-kgKOCyCfrkJFS1nwrv-vYQ3Nu8
Would love to know your thoughts on if this is possible.