signal

module of dascore.utils source

Windows, ramps, and tile tapers, built one way.

A window is a whole array of weights, the thing a spectral transform multiplies a tile by. A ramp is the rising edge of one, which an edge taper multiplies the first samples of a patch by. A taper is a tile of ones with ramps down every edge, which overlapping tiles are blended with. All three come from one place, so a name means the same shape wherever it is used, and a ramp can be made complementary – adjacent ramps summing to one – when a blend has to invert exactly.

Functions

Name Description
get_dual_taper Return an analysis window and the synthesis window which inverts it.
get_ramp Return the rising edge of a window: length samples climbing towards one.
get_taper Return a tile of ones with complementary ramps of overlap down every edge.
get_window Return a window of size samples.
get_window_edges Return a window along each axis of a tile, as float64 arrays.
get_window_nd Return a window along every axis of a tile: the outer product of its edges.