Cavern

 Cavern4D

 Cavernize

 Debug

 FilterInterfaces

 Filters

 Format

 Helpers

 QuickEQ

 Remapping

 SpecialSources

 Spoofer

 Utilities

  ArrayExtensions

  CavernAmp

  ChannelExtensions

  ColorUtils

  Complex

  ComplexArray

  FFTCache

  IComparable

  IEquatable

  IEquatable

  Linked

  ListExtensions

  Measurements

  RenderStats

  Resample

  RunningChannelSeparator

  ThreadSafeFFTCache

  Tunneler

  VectorExtensions

  VectorUtils

  WaveformUtils

  Delay(Complex[], float)

  Delay(float[], float)

  Delay(float[], float, FFTCache)

  Delay(float[], int)

  Downmix(float[], float[], int)

  Downmix(float[], int)

  ExtractChannel(float[], float[], int, int)

  Gain(float[], float, int, int)

  Gain(float[], float)

  Gain(float[][], float)

  GetPeak(float[])

  GetPeak(float[], int, int)

  GetPeak(float[], int, int, int)

  GetPeak(float[][])

  GetPeakSigned(float[])

  GetPeakSigned(float[], int, int)

  GetRMS(float[])

  Insert(float[], float[], int, int)

  Insert(float[], float[], float)

  InterlacedToMultichannel(float[], float[][])

  Invert(float[])

  IsMute(this float[])

  IsMute(this float[][])

  Mix(float[], float[])

  Mix(float[], float[], float)

  Mix(float[], float[], int, int, float)

  Mix(float[], int, int, int)

  MultichannelToInterlaced(float[][], long, long)

  Normalize(this float[])

  Normalize(this float[][])

  Split(this float[][], int)

  Subtract(this float[], float[])

  SwapChannels(this float[], int, int, int)

  TrimEnd(ref float[])

  TrimEnd(this float[][])

  TrimStart(ref float[])

  TrimStart(this float[][])

  WindowBase

 Virtualizer

 Atmosphere

 AudioClip3D

 AudioListener3D

 AudioListener3DInspector

 AudioSource3D

 CavernizeRealtime

 Channel

 Clip

 Environments

 Jack

 Listener

 QualityModes

 Rolloffs

 SeatAdaptation

 Source

float GetPeak(float[] target, int from, int to)

Get the peak amplitude in a partial audio signal.
VisibilityPublic
Modifiersstatic
ReturnsPeak amplitude in the given range

Parameters

float[] targetArray reference
int fromRange start sample (inclusive)
int toRange end sample (exclusive)