>    -------</span>
<span class="sd">    x: np.ndarray [shape=(L,1)], real-valued</span>
<span class="sd">        The time-domain signal.</span>
<span class="sd">    &quot;&quot;&quot;</span>

    <span class="c1"># Pre-calculations</span>
    <span class="n">window</span> <span class="o">=</span> <span class="n">win</span><span class="p">(</span><span class="n">win_length</span><span class="p">,</span> <span class="n">win_beta</span><span class="p">)</span>
    <span class="n">w</span> <span class="o">=</s