Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Uriopass/audio-analysis
/ functions
Functions
103 in github.com/Uriopass/audio-analysis
⨍
Functions
103
◇
Types & classes
25
↓ 9 callers
Method
plot
( float[] samples, final float samplesPerPixel, final Color color )
src/com/badlogic/audio/visualization/Plot.java:138
↓ 7 callers
Method
freqToIndex
Returns the index of the frequency band that contains the requested frequency. @param freq the frequency you want the index for (in Hz) @ret
src/com/badlogic/audio/analysis/FourierTransform.java:428
↓ 6 callers
Method
readSamples
(float[] samples)
src/com/badlogic/audio/io/MP3Decoder.java:50
↓ 6 callers
Method
writeSamples
Writes the given samples to the audio device. The samples have to be sampled at 44100Hz, mono and have to be in the range [-1,1]. @param samples The
src/com/badlogic/audio/io/AudioDevice.java:51
↓ 5 callers
Method
getSpectrum
@return the spectrum of the last FourierTransform.forward() call.
src/com/badlogic/audio/analysis/FourierTransform.java:663
↓ 5 callers
Method
readIntLittleEndian
( )
src/com/badlogic/audio/io/EndianDataInputStream.java:27
↓ 5 callers
Method
readShortLittleEndian
( )
src/com/badlogic/audio/io/EndianDataInputStream.java:20
↓ 5 callers
Method
sin
(int i)
src/com/badlogic/audio/analysis/DFT.java:137
↓ 4 callers
Method
cos
(int i)
src/com/badlogic/audio/analysis/DFT.java:142
↓ 4 callers
Method
forward
(float[] buffer)
src/com/badlogic/audio/analysis/FFT.java:149
↓ 4 callers
Method
nextSpectrum
Returns the next spectrum or null if there's no more data. @return The next spectrum or null.
src/com/badlogic/audio/analysis/SpectrumProvider.java:79
↓ 4 callers
Method
read4ByteString
( )
src/com/badlogic/audio/io/EndianDataInputStream.java:13
↓ 4 callers
Method
readSamples
Reads in samples.length samples from the decoder. Returns the actual number read in. If this number is smaller than samples.length then the end of str
src/com/badlogic/audio/io/Decoder.java:19
↓ 4 callers
Method
readSamples
Tries to read in samples.length samples, merging stereo to a mono channel by averaging and converting non float formats to float 32-bit. Returns the n
src/com/badlogic/audio/io/WaveDecoder.java:90
↓ 3 callers
Method
fft
()
src/com/badlogic/audio/analysis/FFT.java:116
↓ 3 callers
Method
fillSpectrum
()
src/com/badlogic/audio/analysis/FourierTransform.java:193
↓ 3 callers
Method
getBandWidth
Returns the width of each frequency band in the spectrum (in Hz). It should be noted that the bandwidth of the first and last frequency bands is half
src/com/badlogic/audio/analysis/FourierTransform.java:391
↓ 2 callers
Method
bitReverseComplex
()
src/com/badlogic/audio/analysis/FFT.java:228
↓ 2 callers
Method
cos
(int i)
src/com/badlogic/audio/analysis/FFT.java:251
↓ 2 callers
Method
doWindow
(float[] samples)
src/com/badlogic/audio/analysis/FourierTransform.java:329
↓ 2 callers
Method
energy
( float[] signal )
src/com/badlogic/audio/analysis/Signals.java:19
↓ 2 callers
Method
getFFT
@return the FFT instance used
src/com/badlogic/audio/analysis/SpectrumProvider.java:101
↓ 2 callers
Method
setComplex
(float[] r, float[] i)
src/com/badlogic/audio/analysis/FourierTransform.java:177
↓ 2 callers
Method
setMarker
( int x, Color color )
src/com/badlogic/audio/visualization/Plot.java:296
↓ 2 callers
Method
sin
(int i)
src/com/badlogic/audio/analysis/FFT.java:246
↓ 2 callers
Method
window
Sets the window to use on the samples before taking the forward transform. If an invalid window is asked for, an error will be reported and the curren
src/com/badlogic/audio/analysis/FourierTransform.java:317
↓ 1 callers
Method
allocateArrays
()
src/com/badlogic/audio/analysis/FourierTransform.java:175
↓ 1 callers
Method
bitReverseSamples
(float[] samples)
src/com/badlogic/audio/analysis/FFT.java:218
↓ 1 callers
Method
buildReverseTable
()
src/com/badlogic/audio/analysis/FFT.java:204
↓ 1 callers
Method
buildTrigTables
()
src/com/badlogic/audio/analysis/DFT.java:125
↓ 1 callers
Method
buildTrigTables
()
src/com/badlogic/audio/analysis/FFT.java:256
↓ 1 callers
Method
calcAvg
Calculate the average amplitude of the frequency band bounded by <code>lowFreq</code> and <code>hiFreq</code>, inclusive. @param lowFreq the
src/com/badlogic/audio/analysis/FourierTransform.java:588
↓ 1 callers
Method
calculate
Returns the threshold function for a given spectral flux function. @return The threshold function.
src/com/badlogic/audio/analysis/ThresholdFunction.java:41
↓ 1 callers
Method
fillBuffer
( float[] samples )
src/com/badlogic/audio/io/AudioDevice.java:57
↓ 1 callers
Method
forward
(float[] samples)
src/com/badlogic/audio/analysis/DFT.java:77
↓ 1 callers
Method
getBand
Returns the amplitude of the requested frequency band. @param i the index of a frequency band @return the amplitude of the requested frequen
src/com/badlogic/audio/analysis/FourierTransform.java:377
↓ 1 callers
Method
hamming
(float[] samples)
src/com/badlogic/audio/analysis/FourierTransform.java:340
↓ 1 callers
Method
indexToFreq
Returns the middle frequency of the i<sup>th</sup> band. @param i the index of the band you want to middle frequency of
src/com/badlogic/audio/analysis/FourierTransform.java:445
↓ 1 callers
Method
noAverages
Sets the object to not compute averages.
src/com/badlogic/audio/analysis/FourierTransform.java:253
↓ 1 callers
Method
readInAllSamples
( String file )
src/com/badlogic/audio/samples/part4/RealTimePlot.java:58
↓ 1 callers
Method
scaleBand
Scales the amplitude of the <code>i<sup>th</sup></code> frequency band by <code>s</code>. You can use this to shape the spectrum before using <code>in
src/com/badlogic/audio/analysis/FourierTransform.java:418
↓ 1 callers
Method
setBand
Sets the amplitude of the <code>i<sup>th</sup></code> frequency band to <code>a</code>. You can use this to shape the spectrum before using <code>inve
src/com/badlogic/audio/analysis/FourierTransform.java:406
Method
AudioDevice
Constructor, initializes the audio system for 44100Hz 16-bit signed mono output. @throws Exception in case the audio system could not be initialized
src/com/badlogic/audio/io/AudioDevice.java:36
Method
DFT
Constructs a DFT that expects audio buffers of length <code>timeSize</code> that have been recorded with a sample rate of <code>sampleRate</code>. Wil
src/com/badlogic/audio/analysis/DFT.java:48
Method
EndianDataInputStream
(InputStream in)
src/com/badlogic/audio/io/EndianDataInputStream.java:8
Method
FFT
Constructs an FFT that will accept sample buffers that are <code>timeSize</code> long and have been recorded with a sample rate of <code>sampleRate</c
src/com/badlogic/audio/analysis/FFT.java:50
Method
FourierTransform
Construct a FourierTransform that will analyze sample buffers that are <code>ts</code> samples long and contain samples with a <code>sr</code> sample
src/com/badlogic/audio/analysis/FourierTransform.java:161
Method
MP3AudioFileReader
( )
src/com/badlogic/audio/io/MP3Decoder.java:105
Method
MP3Decoder
( InputStream stream )
src/com/badlogic/audio/io/MP3Decoder.java:37
Method
PlaybackVisualizer
Consturctor, plays back the audio form the decoder and sets the marker of the plot accordingly. This will return when the playback is done. @param pl
src/com/badlogic/audio/visualization/PlaybackVisualizer.java:28
Method
Plot
Creates a new Plot with the given title and dimensions. @param title The title. @param width The width of the plot in pixels. @param height The heigh
src/com/badlogic/audio/visualization/Plot.java:60
Method
SpectrumProvider
Constructor, sets the {@link Decoder}, the sample window size and the hop size for the spectra returned. Say the sample window size is 1024 samples. T
src/com/badlogic/audio/analysis/SpectrumProvider.java:48
Method
ThresholdFunction
Consturctor, sets the history size in number of spectra to take into account to calculate the average spectral flux at a specific position. Also sets
src/com/badlogic/audio/analysis/ThresholdFunction.java:29
Method
WaveDecoder
Constructor, sets the input stream to read the Wav file from. @param stream The input stream. @throws Exception in case the input stream couldn't be
src/com/badlogic/audio/io/WaveDecoder.java:41
Method
allocateArrays
()
src/com/badlogic/audio/analysis/DFT.java:56
Method
allocateArrays
()
src/com/badlogic/audio/analysis/FFT.java:60
Method
avgSize
Returns the number of averages currently being calculated. @return the length of the averages array
src/com/badlogic/audio/analysis/FourierTransform.java:556
Method
clear
( )
src/com/badlogic/audio/visualization/Plot.java:123
Method
forward
Performs a forward transform on <code>buffer</code>. @param buffer the buffer to analyze
src/com/badlogic/audio/analysis/FourierTransform.java:607
Method
getAudioFileFormat
(InputStream inputStream, long mediaLength)
src/com/badlogic/audio/io/MP3Decoder.java:109
Method
getAverageCenterFrequency
Returns the center frequency of the i<sup>th</sup> average band. @param i which average band you want the center frequency of.
src/com/badlogic/audio/analysis/FourierTransform.java:471
Method
getAvg
Gets the value of the <code>i<sup>th</sup></code> average. @param i the average you want the value of @return the value of the requested ave
src/com/badlogic/audio/analysis/FourierTransform.java:568
Method
getFreq
Gets the amplitude of the requested frequency in the spectrum. @param freq the frequency in Hz @return the amplitude of the frequency in the
src/com/badlogic/audio/analysis/FourierTransform.java:519
Method
getImaginaryPart
@return the imaginary part of the last FourierTransform.forward() call.
src/com/badlogic/audio/analysis/FourierTransform.java:679
Method
getPreferredSize
()
src/com/badlogic/audio/visualization/Plot.java:103
Method
getRealPart
@return the real part of the last FourierTransform.forward() call.
src/com/badlogic/audio/analysis/FourierTransform.java:671
Method
inverse
Performs an inverse transform of the frequency spectrum and places the result in <code>buffer</code>. @param buffer the buffer to place the
src/com/badlogic/audio/analysis/FourierTransform.java:641
Method
inverse
(float[] buffer)
src/com/badlogic/audio/analysis/DFT.java:98
Method
inverse
(float[] buffer)
src/com/badlogic/audio/analysis/FFT.java:182
Method
linAverages
Sets the number of averages used when computing the spectrum and spaces the averages in a linear manner. In other words, each average band will be <co
src/com/badlogic/audio/analysis/FourierTransform.java:267
Method
logAverages
Sets the number of averages used when computing the spectrum based on the minimum bandwidth for an octave and the number of bands per octave. For exam
src/com/badlogic/audio/analysis/FourierTransform.java:296
Method
main
( String[] argv )
src/com/badlogic/audio/samples/part2/NoteGenerator.java:14
Method
main
( String[] argv )
src/com/badlogic/audio/samples/part2/WaveOutput.java:17
Method
main
( String[] argv )
src/com/badlogic/audio/samples/part3/PlotExample.java:23
Method
main
( String[] argv )
src/com/badlogic/audio/samples/part4/MP3Output.java:17
Method
main
( String[] argv )
src/com/badlogic/audio/samples/part4/RealTimePlot.java:34
Method
main
( String[] argv )
src/com/badlogic/audio/samples/part5/FourierTransformPlot.java:17
Method
main
( String[] argv )
src/com/badlogic/audio/samples/part6/HammingSpectralFlux.java:17
Method
main
( String[] argv )
src/com/badlogic/audio/samples/part6/RectifiedSpectralFlux.java:25
Method
main
( String[] argv )
src/com/badlogic/audio/samples/part6/HoppingSpectralFlux.java:26
Method
main
( String[] argv )
src/com/badlogic/audio/samples/part6/SpectralFlux.java:24
Method
main
( String[] argv )
src/com/badlogic/audio/samples/part7/MultiBandThreshold.java:22
Method
main
( String[] argv )
src/com/badlogic/audio/io/AudioDevice.java:67
Method
main
( String[] args )
src/com/badlogic/audio/io/WaveDecoder.java:116
Method
maximum
( float[] signal )
src/com/badlogic/audio/analysis/Signals.java:45
Method
mean
( float[] signal )
src/com/badlogic/audio/analysis/Signals.java:10
Method
minimum
( float[] signal )
src/com/badlogic/audio/analysis/Signals.java:37
Method
norm
( float[] signal )
src/com/badlogic/audio/analysis/Signals.java:32
Method
paintComponent
( Graphics g )
src/com/badlogic/audio/visualization/Plot.java:81
Method
power
(float[] signal )
src/com/badlogic/audio/analysis/Signals.java:27
Method
readInt24Bit
( )
src/com/badlogic/audio/io/EndianDataInputStream.java:46
Method
readInt24BitLittleEndian
( )
src/com/badlogic/audio/io/EndianDataInputStream.java:36
Method
run
()
src/com/badlogic/audio/visualization/Plot.java:67
Method
scale
( float[] signal, float scale )
src/com/badlogic/audio/analysis/Signals.java:53
Method
scaleBand
Not currently implemented.
src/com/badlogic/audio/analysis/DFT.java:66
Method
scaleBand
(int i, float s)
src/com/badlogic/audio/analysis/FFT.java:67
Method
scaleFreq
Scales the amplitude of the requested frequency by <code>a</code>. @param freq the frequency in Hz @param s the scaling factor
src/com/badlogic/audio/analysis/FourierTransform.java:546
Method
setBand
Not currently implemented.
src/com/badlogic/audio/analysis/DFT.java:73
Method
setBand
(int i, float a)
src/com/badlogic/audio/analysis/FFT.java:88
Method
setFreq
Sets the amplitude of the requested frequency in the spectrum to <code>a</code>. @param freq the frequency in Hz @param a the new a
src/com/badlogic/audio/analysis/FourierTransform.java:533
next →
1–100 of 103, ranked by callers