You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
James Brundage edited this page Oct 23, 2026
·
1 revision
get_MaximumVolume
Gets Maximum Volume
Gets the Maximum Volume from a wave.
Notes
This is the delta between the maximum and minimum sample
View Source
<#.SYNOPSIS Gets Maximum Volume.DESCRIPTION Gets the Maximum Volume from a wave..NOTES This is the delta between the maximum and minimum sample#>param()
# Get our samples as a `[double[]]`
[double[]]$samples=$this.Samples# If we did not have any samples,# the maximum volume is obviously zero.if (-not$samples) { return0 }
# Otherwise, find the delta between max and minreturn [Linq.Enumerable]::Max($samples) - [Linq.Enumerable]::Min($samples)