Decoding ALS file format

Share your favorite Ableton Live tips, tricks, and techniques.
dr_rock
Posts: 1
Joined: Wed Mar 11, 2009 3:02 am

Re: Decoding ALS file format

Post by dr_rock » Thu Jan 20, 2011 3:50 am

I know I'm pretty late to the discussion here, but I was just playing with ALS files and discovered they are gzipped XML files. To decompress them you'll need a tool that can handle gzip. My suggestion is to copy the ALS file then decompress with your favorite tool. If you don't know what you're doing with gzip you may permanently damage your ALS files. Use at your own risk.

On Mac OS X you could simply open Terminal, cd to the file location, and execute this: gzip -cd MySong.als > MySong.xml

They are pretty large and complex XML files. For instance, the default template is 2,082 lines, and a simple live set of mine was over 43,000 lines of XML - but the format is very readable and clear. Their engineers obviously know how to write solid code. They are German after all. ;)

Here's a snip to give you an idea of what's in there:

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<Ableton MajorVersion="4" MinorVersion="8.1_225">
	<LiveSet>
		<OverwriteProtectionNumber Value="5" />
		<Tracks>
			<AudioTrack Id="0">
				<EnvelopeModePreferred Value="false" />
				<TrackDelay>
					<Value Value="0" />
					<IsValueSampleBased Value="false" />
				</TrackDelay>
				<Name>
					<UserName Value="Guitar 1" />
					<Annotation Value="" />
				</Name>
				<ColorIndex Value="140" />
				<TrackGroupId Value="-1" />
				<SavedPlayingSlot Value="-1" />
				<SavedPlayingOffset Value="0" />
				<MidiFoldIn Value="false" />
				<MidiPrelisten Value="false" />
				<Freeze Value="false" />
				<VelocityDetail Value="0" />
				<NeedArrangerRefreeze Value="true" />
				<PostProcessFreezeClips Value="0" />
				<MidiTargetPrefersFoldOrIsNotUniform Value="false" />
				<DeviceChain> ... </DeviceChain>
Etc. The <DeviceChain> tag is by far the largest, as it contains the ClipSlot values, gobs of info for each plugin including each parameter and some type of serialized buffer content (big blocks of hexadecimal values).

chris_sparks
Posts: 20
Joined: Sun Aug 31, 2008 6:24 pm

Re: Decoding ALS file format

Post by chris_sparks » Thu Jan 20, 2011 6:06 am

Very cool! Thank you.

chris

chris_sparks
Posts: 20
Joined: Sun Aug 31, 2008 6:24 pm

Re: Decoding ALS file format

Post by chris_sparks » Thu Jan 20, 2011 6:13 am

Tried it and it didn't work. gzip claims als file isn't in gzip format.

arachnaut
Posts: 951
Joined: Mon Aug 21, 2006 9:58 pm
Location: Sunnyvale, CA USA
Contact:

Re: Decoding ALS file format

Post by arachnaut » Fri Jan 21, 2011 1:39 am

This is new to some release of Live 8.

Rename the als to als.gz and use a decompressor.

chris_sparks
Posts: 20
Joined: Sun Aug 31, 2008 6:24 pm

Re: Decoding ALS file format

Post by chris_sparks » Sun Jan 23, 2011 6:23 pm

Still didn't work.

arachnaut
Posts: 951
Joined: Mon Aug 21, 2006 9:58 pm
Location: Sunnyvale, CA USA
Contact:

Re: Decoding ALS file format

Post by arachnaut » Mon Jan 24, 2011 9:16 pm

Try using an RAR decompressor (such as UnRAR or WinRAR).

octopod
Posts: 70
Joined: Wed Aug 05, 2009 8:15 pm

Re: Decoding ALS file format

Post by octopod » Tue Jan 25, 2011 11:48 am

Very cool! Works here for me with a set saved in 8.2.1. Renamed it to Template.als.gz and gzip decompressed it.

chris_sparks
Posts: 20
Joined: Sun Aug 31, 2008 6:24 pm

Re: Decoding ALS file format

Post by chris_sparks » Tue Feb 01, 2011 5:27 am

the gzip thing doesn't work. haven't tried the rar thing

chris_sparks
Posts: 20
Joined: Sun Aug 31, 2008 6:24 pm

Re: Decoding ALS file format

Post by chris_sparks » Tue Feb 01, 2011 5:32 am

I got the unrar program for windows and it didn't work either when I tried to extract it.

dentaku
Posts: 615
Joined: Wed May 13, 2009 10:42 am

Re: Decoding ALS file format

Post by dentaku » Tue Feb 01, 2011 10:51 pm

It looks like newer .ALS files (after being renamed .gz) work with Winrar but older .ALS files are different so they can't be extracted that way.
chris_sparks wrote:I got the unrar program for windows and it didn't work either when I tried to extract it.

suite spot
Posts: 13
Joined: Thu Dec 29, 2011 9:56 pm
Location: Sydney
Contact:

Re: Decoding ALS file format

Post by suite spot » Thu Dec 29, 2011 11:08 pm

This is a topic which interests me greatly.

As dr_rock astutely worked out the new als files are indeed compressed xml files.
Unfortunately I only have the latest version of Live but I would be very interested in having a look at examples of these earlier als files

chris_sparks
Posts: 20
Joined: Sun Aug 31, 2008 6:24 pm

Re: Decoding ALS file format

Post by chris_sparks » Thu Dec 29, 2011 11:46 pm

I went ahead and bought upgrade to 8.0. I have checked this out and yes it is an xml file. Very cool. Now I can generate a file from my own program and then gzip it.

chris

marra
Posts: 295
Joined: Sat Jul 31, 2010 7:08 pm

Re: Decoding ALS file format

Post by marra » Wed Jan 04, 2012 3:34 am

Really cool! Had no idea they were already XML.

Been requesting this for some time now:

ABLETON 9 - Pure text (YML) .als, .adg, .amxd etc.

I guess it ain't all that necessary after all..

suite spot
Posts: 13
Joined: Thu Dec 29, 2011 9:56 pm
Location: Sydney
Contact:

Re: Decoding ALS file format

Post by suite spot » Sun Mar 04, 2012 1:57 pm

Spent some time working on this and apart from the usual clip location etc have now finished converting fades, track Automation (volume & pan), bpm, locators/markers/cues.

So the next version of AATranslator will now seamlessly convert to/from Live v8 (ALS) to/from all the usual formats PT, OMF, Reaper, Auditon, Vegas, FCP, etc.

Haven’t tested xfades or clip volume or clip pan – not even sure if Ableton has these - need to check that out
Not sure what else there is worth converting.

ultima9999
Posts: 1
Joined: Tue Sep 18, 2012 6:19 pm

Re: Decoding ALS file format

Post by ultima9999 » Wed Sep 19, 2012 6:41 pm

Hi Guys,

I nearly threw my laptop off the balcony when the track I was working on all day wouldn't open once I closed it! I got a bad token error and I think I know how to fix it: open the ALS into an XML editor and check the line where the issue is stated. However, apparently, ALS files are now gzipped...I have tried to unzip the file in multiple programs and change the extension .gz to no avail. I've even tried to convert it from .ALS > .XML using terminal with no luck!!

Any ideas? Hell i'm willing to pay for help at this stage.

Thanks :)

Post Reply