Page 1 of 1

Documentation for .adv/.adg XML schema

Posted: Tue Sep 10, 2013 2:27 pm
by acb_
Hello;

Is there any documentation anywhere for the XML schema of the Ableton Live instrument preset (.adg/.adv) format? The files are gzipped XML, which looks mostly self-evident, though a few items see somewhat cryptic. In particular:

- in a FileRef section, what are the allowable values for RelativePathType?
- What does the Type element in a FileRef signify?
- What are the contents of the Data element in a FileRef? In a Simpler sample file specification, it's a string of hexadecimal data, roughly proportional in length to the size of the WAV/AIFF file; is it a downsampled preview of an audio file?

I'm trying to write some Python scripts for generating Drum Rack presets from samples, and information on the XML schema used would be invaluable.

Thanks,
Andrew

Re: Documentation for .adv/.adg XML schema

Posted: Fri Feb 05, 2016 4:27 pm
by Mattijs
acb_ wrote: - in a FileRef section, what are the allowable values for RelativePathType?
I just found this: https://github.com/tommcc/alsample/blob ... lsample.py

It helped me find out what the RelativePathType values are:

Code: Select all

PATH_TYPE_LABELS = [
    'Missing',
    'External',
    'Library',
    'Current Project'
]
I can now change a Max For Live preset to look for a corresponding device without the preset file needing to be inside a project folder with the max for live device buried in a Presets/Audio Effects/Max Audio Effect/Imported folder (by using <RelativePathType Value="1" /> inside the <PatchSlot> node, where value is 1 instead of the default 3.

Nice, now I can distribute presets separately from the patches!

Re: Documentation for .adv/.adg XML schema

Posted: Mon Apr 08, 2024 8:34 pm
by LoopInfinitum
Just came up with a hack for this:
https://www.youtube.com/watch?v=mulwc2U11o8