in realbook/layers/signal.py [0:0]
def padded_window(window_length: int, dtype: tf.dtypes.DType = tf.float32) -> tf.Tensor:
# This is a trick to match librosa's way of handling window lengths < their fft_lengths
# In that case the window is 0 padded such that the window is centered around 0s
# In the Tensorflow case, the window is computed, multiplied against the frame and then
# Right padded with 0's.
return tf.pad(window_fn(unpadded_window_length, dtype=dtype), [[lpad, rpad]]) # type: ignore