AsymmetricWindowSelector
AsymmetricWindowSelector(scheme, analysis_segment_size, hop_size, synthesis_segment_size)
Designs an asymmetric Hann window pair based on the given parameters.
This function retrieves a window function based on the window type, applies
an adaptation based on scheme, and returns the corresponding Window object.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
scheme
|
str
|
The adaptation scheme to use. Supported values:
[
|
required |
analysis_segment_size
|
int
|
The size of the segment / analysis_window. |
required |
hop_size
|
int
|
The hop size used for segmentation. |
required |
synthesis_segment_size
|
int
|
The non-zero size of the systhesis_window. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
Window |
Window
|
A |
Raises:
| Type | Description |
|---|---|
ValueError
|
If an unknown window type or scheme is provided. |
Source code in src/libsegmenter/AsymmetricWindowSelector.py
28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 | |