script to get preview times from midi