Create blue_velvet.py

Branch version of blender_velvet, for the development of the ::blue_velvet:: addon (integration between Blender and Ardour audio timelines).
Update blue_velvet.py

::blue_velvet:: now:
- creates skeletal .ardour XML,
- just track, no audio,
- saves to file.
Update blue_velvet.py

blue_velvet now generates a 1-track XML. TODO: check on how to read info from an audio file instead of using arbitrary parameters.
Update blue_velvet.py

studies in xml attributes and ids - also: cannot update ids if attributes declared as dictionaries (attributes must be declared by functions or else).
Update blue_velvet.py

dictionaries were made into functions so they can read the variables accordingly (if they are just declared, the variables won't change). code is cleaner and the ID attribution is solved, but this causes a problem in calling function insertAudioTrack() because now I have to pass the idCounter var to it and everything else - solve by declaring global variable? or inserting declaration of attributes inside insertAudioTrack function?
Update blue_velvet.py

Solved idCounter issue using global variable and renaming function parameter.
Separating creation of XML sections into functions

To separate the creation of the XML sections into different functions allows for a better relationship between the way blender and ardour read files. The separation is not functional yet, but is the foundation for creating XMLs from dynamic content.
Updated Options attributes

Option attributes now considers sync with video and project's FPS.
Cleaning and reviewing code for dynamic content

Overall revision of the code, with cleaning. Preparing to receive dynamic content, which means part of the code will come back as soon as the dynamic parts are corrected. Current errors are that .001 files should not have entries at XML Sources and .001 files at XML Regions should reference their original source at XML Sources.
Corrected Sources creation

Corrected creation of Sources, now must correct ID reference in Regions.
Renamed 2 functions for readability
Corrected sourceID in Regions

Must review the way ids are created, though.
XML from dynamic content created succesfully

Corrected errors from Sources and Regions. Found out Regions are not necessary and are now commented in the code. Sources and Playlists are now being generated with success with dynamic audio content - must adapt code for video files.
First full working version for dynamic content

Finally solved the deal with the creation of Playlist Regions vs Tracks and Sources. IDs are being attributed accordingly and internal XML references are in order. The script also creates tracks only for the channels in use, so it simplifies Blender's timeline for Ardour work.
Corrected reference to sourceID in repeated audios

corrected reference to master-source-0 and source-0 in repeated audios + code cleaning. Also changed the order tracks are created in Ardour: now Ardour tracks visually reflect Blender channels instead of being upside down.
Fixed tracks order for >10 channels projects and added video extensions to validExts variable
Major update - createXML is now a function and created class ExportArdour for meny entry

To create a menu entry for the addon, Blender requires a class. To create this class, the core of the script had to be transformed into a function. Had to update all functions due to the loss of Global variables as a result to that. Also, corrected minor bug in function toSamples, using ar instead of audioRate as variable.
Major update - finished creating class and described script's functions

Now ExportArdour() is a proper class. Global variables that were outside of it and would not get read by execute() now are inside of it in a functional script. Also, now the functions along the script have been described, making it more readable.
Half-major update - ffmpeg implemented as long as addon preferences set

The FFMPEG is implemented here, as long as the addon preferences are set in the environment. TODO: incorporate function createXML() into class to exclude global variables. Transform blue_velvet into an addon with bl_info etc.
Major update - blue_velvet is now a functional addon

Finished transforming blue_velvet into an addon, with preferences pointing to ffmpeg path.