Evaluates Audio Expressions
Generate or Modify an audio signal using an expression.
All Expressions can use the following variables:
Variable | Description |
---|---|
ch | channel number of the current expression |
n | number of the evaluated sample, starting from 0 |
s | sample rate |
t | time of the evaluated sample expressed in seconds |
nb_in_channels | |
nb_out_channels | input and output number of channels |
val(CH) | the value of input channel with number CH |
Show-Media -AudioExpression "-2+random(0)" # Play white noise
Show-Media -AudioExpression "0.5*tan(PI*(360-2.5/2)*t)"
New-Media -AudioExpression "0.5*sin(PI*(720-2.5/2)*t)","0.5*cos(2*PI*(360+2.5/2)*t)" -OutputPath .\Test.mp3 -Duration "00:00:15"
Edit-Media -AudioExpression "val(0)","-val(1)" -InputPath .\Test.mp3
The audio expression.
Type | Required | Position | PipelineInput |
---|---|---|---|
[String[]] |
true | 1 | false |
Set the channel layout. The number of channels in the specified layout must be equal to the number of specified expressions.
Type | Required | Position | PipelineInput |
---|---|---|---|
[String[]] |
false | 2 | false |
Set the number of samples per channel per each output frame, default to 1024.
Type | Required | Position | PipelineInput |
---|---|---|---|
[Int32] |
false | 3 | false |
Specify the sample rate, default to 44100.
Type | Required | Position | PipelineInput |
---|---|---|---|
[Int32] |
false | 4 | false |
Extension/AudioExpression.RoughDraft.Extension.ps1 [-AudioExpression] <String[]> [[-AudioExpressionChannelLayout] <String[]>] [[-AudioExpressionSampleCount] <Int32>] [[-AudioExpressionSampleRate] <Int32>] [<CommonParameters>]