A Swift library for reading and writing common import/export file formats between popular DAW and video editing applications with the ability to convert between formats.
Format | Read | Write |
---|---|---|
Cubase: Track Archive XML | yes† | yes† |
Pro Tools: Session Info text file | yes | n/a |
Standard MIDI File | planned | yes |
Logic Pro X‡ | future? | future? |
Final Cut Pro XML (FCPXML) | yes | yes |
Adobe Premiere XML | future? | future? |
† Full read/write support for Cubase Track Archive XML files is implemented for tracks with absolute timebase, as well as tracks with musical timebase where the tempo track uses only 'Jump' tempo events and there are no 'Ramp' tempo events.
‡ Research is needed for Logic Pro X to determine what file formats are common and the viability of their implementation.
- TimecodeKit to represent timecode values
- MIDIKit to read/write Standard MIDI Files
No formal documentation yet.
Core unit tests implemented. More exhaustive tests can be added in future.
- Ascertaining the absolute time position of events on tracks that are in musical timebase when the tempo track contains 'Ramp' tempo event(s) is currently not possible. The internal curve function that Cubase uses to calculate tempo ramps is not intuitive (ie: not linear or any obvious known curve function), and it may be a proprietary function. So this may never be possible with this library. The workaround is to not use 'Ramp' tempo events in a session, or if that is unavoidable, move/copy events to a track that is using absolute timebase which can be interpreted reliably with this library.
- Basic support is implemented. More complete support may come in a future library update.
The author(s) have no affiliation with Apple, Avid, Steinberg, or any other company relating to the software packages that are mentioned in this library. This library is built based on open file data format such as text, XML and MIDI. No reverse-engineering of software was involved in implementation of this library. The goal is to promote easier interoperability for developers with these common and useful data file formats.
The library is provided as-is with no warranties. See the LICENSE for more details.
Coded by a bunch of 🐹 hamsters in a trenchcoat that calls itself @orchetect.
Licensed under the MIT license. See LICENSE for details.
Contributions are welcome. Feel free to post an Issue to discuss.