adapt tower example spectrum generator to recent interface change