Encoding or decoding using time-frequency transformations