# Initialize output</span>

    <span class="k">for</span> <span class="n">c</span> <span class="ow">in</span> <span class="nb">range</span><span class="p">(</span><span class="n">num_of_chan</span><span class="p">):</span>  <span class="c1"># loop over channels</span>
        <span class="n">x_c</span> <span class="o">=</span> <span class="n">x</span><span class="p">[:,</span> <span class="n">c</span><span class="p">]</span>

        <span class="c1"># stft</span>
        <span class="n">spec</span><span c