Edit sample in different file formats