<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def log_magnitude_spectrum(frames):
 """Compute the log of the magnitude spectrum of frames"""

    return N.log(N.abs(N.fft.rfft(frames)).clip(1e-5, N.inf))