Bånder

AudioUtils
in package

Utility functions for Essentia processing

Table of Contents

Methods

applyWindow()  : array<string|int, mixed>
Apply windowing function to audio data
bpmToPeriod()  : float
Convert BPM to beat period in seconds
calculateRMS()  : float
Calculate RMS of audio data
findPeaks()  : array<string|int, mixed>
Find peaks in audio data
frequencyToNote()  : string
Convert frequency to musical note
generateWindow()  : array<string|int, mixed>
Generate window function
periodToBpm()  : float
Convert beat period to BPM

Methods

applyWindow()

Apply windowing function to audio data

public static applyWindow(array<string|int, mixed> $data[, string $windowType = 'hann' ]) : array<string|int, mixed>
Parameters
$data : array<string|int, mixed>
$windowType : string = 'hann'
Return values
array<string|int, mixed>

bpmToPeriod()

Convert BPM to beat period in seconds

public static bpmToPeriod(float $bpm) : float
Parameters
$bpm : float
Return values
float

calculateRMS()

Calculate RMS of audio data

public static calculateRMS(array<string|int, mixed> $data) : float
Parameters
$data : array<string|int, mixed>
Return values
float

findPeaks()

Find peaks in audio data

public static findPeaks(array<string|int, mixed> $data[, float $threshold = 0.1 ]) : array<string|int, mixed>
Parameters
$data : array<string|int, mixed>
$threshold : float = 0.1
Return values
array<string|int, mixed>

frequencyToNote()

Convert frequency to musical note

public static frequencyToNote(float $frequency) : string
Parameters
$frequency : float
Return values
string

generateWindow()

Generate window function

public static generateWindow(int $length[, string $type = 'hann' ]) : array<string|int, mixed>
Parameters
$length : int
$type : string = 'hann'
Return values
array<string|int, mixed>

periodToBpm()

Convert beat period to BPM

public static periodToBpm(float $period) : float
Parameters
$period : float
Return values
float

        
On this page

Search results