Apply expressions to audio frequencies
Apply arbitrary expressions to samples in frequency domain.
Edit-Media .\a.mp3 -FrequencyExpression -FrequencyExpressionReal "hypot(re,im)*sin(0)" -FrequencyExpressionImaginary "hypot(re,im)*cos(0)" -FrequencyExpressionWindowSize 512 -FrequencyExpressionOverlap 0.75
Apply arbitrary expressions to samples in frequency domain.
Type | Required | Position | PipelineInput |
---|---|---|---|
[Switch] |
true | named | false |
Set channels real expressions.
Each expression in real and imag can contain the following constants and functions:
Value | Description |
---|---|
sr | sample rate |
b | current frequency bin number |
nb | number of available bins |
ch | channel number of the current expression |
chs | number of channels |
pts | current frame pts |
re | current real part of frequency bin of current channel |
im | current imaginary part of frequency bin of current channel |
real(b, ch) | Return the value of real part of frequency bin at location (bin,channel) |
imag(b, ch) | Return the value of imaginary part of frequency bin at location (bin,channel) |
Type | Required | Position | PipelineInput | Aliases |
---|---|---|---|---|
[String[]] |
false | 1 | false | afftfilt_real |
Set channels imaginary expressions.
Each expression in real and imag can contain the following constants and functions:
Value | Description |
---|---|
sr | sample rate |
b | current frequency bin number |
nb | number of available bins |
ch | channel number of the current expression |
chs | number of channels |
pts | current frame pts |
re | current real part of frequency bin of current channel |
im | current imaginary part of frequency bin of current channel |
real(b, ch) | Return the value of real part of frequency bin at location (bin,channel) |
imag(b, ch) | Return the value of imaginary part of frequency bin at location (bin,channel) |
Type | Required | Position | PipelineInput | Aliases |
---|---|---|---|---|
[String[]] |
false | 2 | false | afftfilt_imag |
set window size
Type | Required | Position | PipelineInput | Aliases |
---|---|---|---|---|
[Int32] |
false | 3 | false | afftfilt_win_size |
set window function
Valid Values:
Type | Required | Position | PipelineInput | Aliases |
---|---|---|---|---|
[Object] |
false | 4 | false | afftfilt_win_func |
set window overlap
Type | Required | Position | PipelineInput | Aliases |
---|---|---|---|---|
[Single] |
false | 5 | false | afftfilt_overlap |
Extension/AudioFrequencyExpression.RoughDraft.Extension.ps1 -FrequencyExpression [[-FrequencyExpressionReal] <String[]>] [[-FrequencyExpressionImaginary] <String[]>] [[-FrequencyExpressionWindowSize] <Int32>] [[-FrequencyExpressionWindowFunction] <Object>] [[-FrequencyExpressionOverlap] <Single>] [<CommonParameters>]