get_ramp
get_ramp(
window: Any ,
length: int ,
complementary: bool = False,
)-> ‘np.ndarray’
Return the rising edge of a window: length samples climbing towards one.
The ramp is the first length samples of a symmetric window of 2 * length + 1, so its peak, which the window holds at the middle, is the sample just past the ramp.
Parameters
| Parameter | Description |
|---|---|
| window |
The window whose edge this is; see get_window.
|
| length | How many samples the ramp has. |
| complementary |
If True, scale the ramp so that it and its reverse sum to one at every sample. Two tiles whose ramps overlap then blend to exactly the signal between them, whatever the window’s shape. |