Some functions to deal with SMPTE code