works for Ableton als project files >= version 8.0
clone:
git clone https://github.com/my5t3ry/als-parser.git
install to local repository:
cd als-parser
mvn clean install
add dependency:
<dependency>
<groupId>de.my5t3ry</groupId>
<artifactId>als-parser</artifactId>
<version>0.1-SNAPSHOT</version>
</dependency>
usage:
final AbletonProjectParser alsParser = new AbletonProjectParser();
final AbletonProject result = alsParser.parse(new File("foo.als"));
System.out.println(result.getTotalTracks());
//or
final List<AbletonProject> listResult = alsParser.parseDirectory(new File("/projects/path"));
listResult.foreach(p -> System.out.println(p.getTotalTracks()));