GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - alexanderlerch/ACA-Code: Matlab scripts accompanying the book "An Introduction to Audio Content Analysis" (www.AudioContentAnalysis.org)

BranchesTags
Open more actions menu

Latest commit

 

History

134 Commits
134 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
docs
docs
 
 
.gitignore
.gitignore
 
 
ComputeBeatHisto.m
ComputeBeatHisto.m
 
 
ComputeChords.m
ComputeChords.m
 
 
ComputeFeature.m
ComputeFeature.m
 
 
ComputeFingerprint.m
ComputeFingerprint.m
 
 
ComputeKey.m
ComputeKey.m
 
 
ComputeMelSpectrogram.m
ComputeMelSpectrogram.m
 
 
ComputeNoveltyFunction.m
ComputeNoveltyFunction.m
 
 
ComputePitch.m
ComputePitch.m
 
 
ComputeSpectrogram.m
ComputeSpectrogram.m
 
 
ExampleMusicSpeechClassification.m
ExampleMusicSpeechClassification.m
 
 
FeatureSpectralCentroid.m
FeatureSpectralCentroid.m
 
 
FeatureSpectralCrestFactor.m
FeatureSpectralCrestFactor.m
 
 
FeatureSpectralDecrease.m
FeatureSpectralDecrease.m
 
 
FeatureSpectralFlatness.m
FeatureSpectralFlatness.m
 
 
FeatureSpectralFlux.m
FeatureSpectralFlux.m
 
 
FeatureSpectralKurtosis.m
FeatureSpectralKurtosis.m
 
 
FeatureSpectralMfccs.m
FeatureSpectralMfccs.m
 
 
FeatureSpectralPitchChroma.m
FeatureSpectralPitchChroma.m
 
 
FeatureSpectralRolloff.m
FeatureSpectralRolloff.m
 
 
FeatureSpectralSkewness.m
FeatureSpectralSkewness.m
 
 
FeatureSpectralSlope.m
FeatureSpectralSlope.m
 
 
FeatureSpectralSpread.m
FeatureSpectralSpread.m
 
 
FeatureSpectralTonalPowerRatio.m
FeatureSpectralTonalPowerRatio.m
 
 
FeatureTimeAcfCoeff.m
FeatureTimeAcfCoeff.m
 
 
FeatureTimeMaxAcf.m
FeatureTimeMaxAcf.m
 
 
FeatureTimePeakEnvelope.m
FeatureTimePeakEnvelope.m
 
 
FeatureTimeRms.m
FeatureTimeRms.m
 
 
FeatureTimeStd.m
FeatureTimeStd.m
 
 
FeatureTimeZeroCrossingRate.m
FeatureTimeZeroCrossingRate.m
 
 
LICENSE
LICENSE
 
 
NoveltyFlux.m
NoveltyFlux.m
 
 
NoveltyHainsworth.m
NoveltyHainsworth.m
 
 
NoveltyLaroche.m
NoveltyLaroche.m
 
 
PitchSpectralAcf.m
PitchSpectralAcf.m
 
 
PitchSpectralHps.m
PitchSpectralHps.m
 
 
PitchTimeAcf.m
PitchTimeAcf.m
 
 
PitchTimeAmdf.m
PitchTimeAmdf.m
 
 
PitchTimeAuditory.m
PitchTimeAuditory.m
 
 
PitchTimeZeroCrossings.m
PitchTimeZeroCrossings.m
 
 
README.md
README.md
 
 
TestGammaToneFb.m
TestGammaToneFb.m
 
 
ToolBlockAudio.m
ToolBlockAudio.m
 
 
ToolDownmix.m
ToolDownmix.m
 
 
ToolFreq2Bark.m
ToolFreq2Bark.m
 
 
ToolFreq2Mel.m
ToolFreq2Mel.m
 
 
ToolFreq2Midi.m
ToolFreq2Midi.m
 
 
ToolGammatoneFb.m
ToolGammatoneFb.m
 
 
ToolGenerateSineWave.m
ToolGenerateSineWave.m
 
 
ToolGmm.m
ToolGmm.m
 
 
ToolInstFreq.m
ToolInstFreq.m
 
 
ToolLooCrossVal.m
ToolLooCrossVal.m
 
 
ToolMel2Freq.m
ToolMel2Freq.m
 
 
ToolMfccFb.m
ToolMfccFb.m
 
 
ToolMidi2Freq.m
ToolMidi2Freq.m
 
 
ToolNormalizeAudio.m
ToolNormalizeAudio.m
 
 
ToolPca.m
ToolPca.m
 
 
ToolResample.m
ToolResample.m
 
 
ToolSeqFeatureSel.m
ToolSeqFeatureSel.m
 
 
ToolSimpleDtw.m
ToolSimpleDtw.m
 
 
ToolSimpleKmeans.m
ToolSimpleKmeans.m
 
 
ToolSimpleKnn.m
ToolSimpleKnn.m
 
 
ToolSimpleNmf.m
ToolSimpleNmf.m
 
 
ToolViterbi.m
ToolViterbi.m
 
 
citation.cff
citation.cff
 
 

Repository files navigation

View ACA-Code on File Exchange DOI GitHub GitHub top language GitHub issues

ACA-Code

Matlab scripts accompanying the book "An Introduction to Audio Content Analysis" (www.AudioContentAnalysis.org). The source code shows example implementations of basic approaches, features, and algorithms for music audio content analysis.

All implementations are also available in:

  • Python: pyACA
  • C++: libACA

functionality

The top-level functions are (alphabetical):

  • ComputeBeatHisto: calculates a simple beat histogram
  • ComputeChords: simple chord recognition
  • ComputeFeature: calculates instantaneous features
  • ComputeFingerprint: audio fingerprint extraction
  • ComputeKey: calculates a simple key estimate
  • ComputeMelSpectrogram: computes a mel spectrogram
  • ComputeNoveltyFunction: simple onset detection
  • ComputePitch: calculates a fundamental frequency estimate
  • ComputeSpectrogram: computes a magnitude spectrogram

The names of the additional functions follow the following conventions:

  • Feature*: instantaneous features
  • Pitch*: pitch tracking approach
  • Novelty*: novelty function computation
  • Tool*: additional helper functions and basic algorithms such as
    • Blocking of audio into overlapping blocks
    • Conversion (freq2bark, freq2mel, freq2midi, mel2freq, midi2freq)
    • Filterbank (Gammatone)
    • Gaussian Mixture Model
    • Principal Component Analysis
    • Feature Selection
    • Dynamic Time Warping
    • K-Means Clustering
    • K Nearest Neighbor classification
    • Non-Negative Matrix Factorization
    • Viterbi algorithm

The auto-generated documentation can be found here.

design principles

Please note that the provided code examples are only intended to showcase algorithmic principles – they are not entirely suitable for practical usage without parameter optimization and additional algorithmic tuning. Rather, they intend to show how to implement audio analysis solutions and to facilitate algorithmic understanding to enable the reader to design and implement their own analysis approaches.

minimal dependencies

The required dependencies are reduced to a minimum, more specifically to only the signal processing toolbox, for the following reasons:

  • accessibility, i.e., clear algorithmic implementation from scratch without obfuscation by using 3rd party implementations,
  • maintainability through independence of 3rd party code.

readability

Consistent variable naming and formatting, as well as the choice for simple implementations allow for easier parsing. The readability of the source code will sometimes come at the cost of lower performance.

cross-language comparability

All code is matched exactly with Python implementations and the equations in the book. This also means that the code might violate typical style conventions in order to be consistent.

related repositories and links

The source code in this repository is matched with corresponding source code in the Python repository. C++ implementations with identical functionality can be found in the C++ repository.

Other, related repositories are

  • ACA-Slides: slide decks for teaching and learning audio content analysis
  • ACA-Plots: Matlab scripts for generating all plots in the book and slides

The main entry point to all book-related information is AudioContentAnalysis.org

documentation

The documentation can be found at https://alexanderlerch.github.io/ACA-Code/.

getting started

example 1: computation and plot of the Spectral Centroid

% read audio file from cWavePath
[x, f_s] = audioread(cWavePath);

% compute SpectralCentroid
[v_sc, t] = ComputeFeature('SpectralCentroid', x, f_s);

% plot result
plot(t, v_sc), grid on, xlabel('t'), ylabel('v_sc')

About

Matlab scripts accompanying the book "An Introduction to Audio Content Analysis" (www.AudioContentAnalysis.org)

Topics

audio-content-analysisaudio-featuresaudio-processingmusic-informaticsmusic-information-retrievalsignal-processing

Resources

Readme
MIT license
Activity

Stars

88 stars

Watchers

8 watching

Forks

23 forks
Report repository

Releases

Sponsor this project

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.