Devices for determining or controlling patterns; Programme-control arrangements