#!/usr/bin/env python # -*- coding: utf-8 -*- # # klick2ardour.py - converts a klick tempomap to an ardour session # # Copyright (C) 2008-2014 Dominic Sacré # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # import sys import os.path import math import re import xml.etree.ElementTree as ET class struct: def __init__(self, **kwargs): for k, v in kwargs.items(): setattr(self, k, v) class KlickTempomapReader: regex = re.compile( '^(\s*(?P