Documentation for .adv/.adg XML schema

Share your favorite Ableton Live tips, tricks, and techniques.
Post Reply
acb_
Posts: 1
Joined: Tue Sep 10, 2013 2:02 pm
Location: London, UK
Contact:

Documentation for .adv/.adg XML schema

Post by acb_ » Tue Sep 10, 2013 2:27 pm

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

Mattijs
Posts: 36
Joined: Fri Mar 20, 2009 3:16 pm

Re: Documentation for .adv/.adg XML schema

Post by Mattijs » Fri Feb 05, 2016 4:27 pm

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!

LoopInfinitum
Posts: 4
Joined: Mon Apr 08, 2024 8:33 pm

Re: Documentation for .adv/.adg XML schema

Post by LoopInfinitum » Mon Apr 08, 2024 8:34 pm

Just came up with a hack for this:
https://www.youtube.com/watch?v=mulwc2U11o8

Post Reply