    <span class="k">for</span> <span class="n">i</span> <span class="ow">in</span> <span class="nb">range</span><span class="p">(</span><span class="n">num_of_frames</span><span class="p">):</span>
        <span class="n">curr_spec</span> <span class="o">=</span> <span class="n">X</span><span class="p">[:,</span> <span class="n">i</span><span class="p">]</span>

        <span class="c1"># add the conjugate complex symmetric upper half of the spectrum</span>
        <span class="n">Xi</span> <span class="o">