Tuning automata