HISE Docs

Buffer


Class methods

detectPitch

Detects the pitch of the given buffer.

Buffer.detectPitch(double sampleRate, int startSample, int numSamples)



fromBase64

Loads the content from the Base64 string (and resizes the buffer if necessary).

Buffer.fromBase64(String b64String)



getMagnitude

Returns the magnitude in the given range.

Buffer.getMagnitude(int startSample, int numSamples)



getPeakRange

Returns an array with the min and max value in the given range.

Buffer.getPeakRange(int startSample, int numSamples)



getRMSLevel

Returns the RMS value in the given range.

Buffer.getRMSLevel(int startSample, int numSamples)



indexOfPeak

Returns the sample index with the highest peak.

Buffer.indexOfPeak(int startSample, int numSamples)



normalise

Normalises the buffer to the given decibel value.

Buffer.normalise(float gainInDecibels)



toBase64

Converts a buffer with up to 44100 samples to a Base64 string.

Buffer.toBase64()



toCharString

Returns a char from 0 to 255 with the given length and input range.

Buffer.toCharString(int numChars, var range)



trim

Trims a buffer at the start and end and returns a copy of it.

Buffer.trim(int trimFromStart, int trimFromEnd)