All Projects → adamstark → Gist

adamstark / Gist

Licence: gpl-3.0
A C++ Library for Audio Analysis

Projects that are alternatives of or similar to Gist

Essentia
C++ library for audio and music analysis, description and synthesis, including Python bindings
Stars: ✭ 1,985 (+713.52%)
Mutual labels:  music-information-retrieval, audio, music, audio-analysis
Audioowl
Fast and simple music and audio analysis using RNN in Python 🕵️‍♀️ 🥁
Stars: ✭ 151 (-38.11%)
Mutual labels:  music-information-retrieval, audio, music
Bpm
Library and tool for dealing with beats per second detection
Stars: ✭ 57 (-76.64%)
Mutual labels:  audio, music, audio-analysis
Music Synthesis With Python
Music Synthesis with Python talk, originally given at PyGotham 2017.
Stars: ✭ 48 (-80.33%)
Mutual labels:  music-information-retrieval, music, audio-analysis
Fountain Of Colors
Music visualizer for Rainmeter
Stars: ✭ 65 (-73.36%)
Mutual labels:  fft, audio, music
Muspy
A toolkit for symbolic music generation
Stars: ✭ 151 (-38.11%)
Mutual labels:  music-information-retrieval, audio, music
Awesome Deep Learning Music
List of articles related to deep learning applied to music
Stars: ✭ 2,195 (+799.59%)
Mutual labels:  music-information-retrieval, audio, music
Youtag
iOS music player app that downloads music from the internet, even YouTube
Stars: ✭ 193 (-20.9%)
Mutual labels:  audio, music
Javascriptmusic
Live coding music and synthesis in Javascript / AssemblyScript (WebAssembly)
Stars: ✭ 193 (-20.9%)
Mutual labels:  audio, music
Godot Mixing Desk
A complete audio solution for Godot 3.2.x, making procedural sound and adaptive/procedural music possible with a few nodes and a couple lines of code.
Stars: ✭ 240 (-1.64%)
Mutual labels:  audio, music
Otto
Sampler, Sequencer, Multi-engine synth and effects - in a box! [WIP]
Stars: ✭ 2,390 (+879.51%)
Mutual labels:  audio, music
Devicehive Audio Analysis
Stars: ✭ 189 (-22.54%)
Mutual labels:  audio, audio-analysis
Supysonic
Supysonic is a Python implementation of the Subsonic server API.
Stars: ✭ 187 (-23.36%)
Mutual labels:  audio, music
Waveform analysis
Functions and scripts for analyzing waveforms, primarily audio. This is currently somewhat disorganized and unfinished.
Stars: ✭ 193 (-20.9%)
Mutual labels:  audio, audio-analysis
Fradioplayer
A simple radio player framework for iOS, macOS, tvOS.
Stars: ✭ 183 (-25%)
Mutual labels:  audio, music
Ableton Live Tools
A collection of useful additions to @Ableton Live, including better @Git integration.
Stars: ✭ 198 (-18.85%)
Mutual labels:  audio, music
Mixxx
Mixxx is Free DJ software that gives you everything you need to perform live mixes.
Stars: ✭ 2,510 (+928.69%)
Mutual labels:  audio, music
Playx
Search and play any song from terminal
Stars: ✭ 194 (-20.49%)
Mutual labels:  audio, music
Discorddj
Discord DJ Bot. Play music in your server. Inspired by PlugDJ
Stars: ✭ 204 (-16.39%)
Mutual labels:  audio, music
Tutorial
Tutorial covering Open Source tools for Source Separation.
Stars: ✭ 223 (-8.61%)
Mutual labels:  music-information-retrieval, music

Gist - An Audio Analysis Library

Version License Language

Gist is a C++ based audio analysis library

Author

Gist is written and maintained by Adam Stark.

http://www.adamstark.co.uk

Usage

Firstly, import the Gist header file:

#include "Gist.h"
Instantiation

Gist is a template class, so instantiate it with floating point precision:

int frameSize = 512;
int sampleRate = 44100;

Gist<float> gist (frameSize, sampleRate);

Or with double precision:

Gist<double> gist (frameSize, sampleRate);

We proceed with the documentation as if we were using floating point precision.

Process Audio Frames

Once you have an audio frame, pass it to the Gist object. You can do this either as a STL vector:

std::vector<float> audioFrame;

// !
// fill audio frame with samples here
// !

gist.processAudioFrame (audioFrame);

Or, as an array:

float audioFrame[512];

// !
// fill audio frame with samples here
// !

gist.processAudioFrame (audioFrame, 512);

Now we can retrieve some audio features.

Core Time Domain Features
// Root Mean Square (RMS)
float rms = gist.rootMeanSquare();

// Peak Energy
float peakEnergy = gist.peakEnergy();

// Zero Crossing rate
float zcr = gist.zeroCrossingRate();
Core Frequency Domain Features
// Spectral Centroid
float specCent = gist.spectralCentroid();

// Spectral Crest
float specCrest = gist.spectralCrest();

// Spectral Flatness
float specFlat = gist.spectralFlatness();

// Spectral Rolloff
float specRolloff = gist.spectralRolloff();

// Spectral Kurtosis
float specKurtosis = gist.spectralKurtosis();
Onset Detection Functions
// Energy difference
float ed = gist.energyDifference();

// Spectral difference
float sd = gist.spectralDifference();

// Spectral difference (half-wave rectified)
float sd_hwr = gist.spectralDifferenceHWR();

// Complex Spectral Difference
float csd = gist.complexSpectralDifference();

// High Frequency Content
float hfc = gist.highFrequencyContent();
FFT Magnitude Spectrum
// FFT Magnitude Spectrum
const std::vector<float>& magSpec = gist.getMagnitudeSpectrum();
Pitch
// Pitch Estimation
float pitch = gist.pitch();
Mel-frequency Representations
// Mel-frequency Spectrum
const std::vector<float>& melSpec = gist.getMelFrequencySpectrum();

// MFCCs
const std::vector<float>& mfcc = gist.getMelFrequencyCepstralCoefficients();

Version History

=== 1.0.6 === (21st October 2020)

  • CMake support
  • Python module moved to Python 3

=== 1.0.5 === (29th February 2020)

  • Fix for compilation error on Windows
  • Fixed lots of warnings
  • Update to code style

=== 1.0.4 === (22nd January 2017)

  • Small changes to the interface for MFCCs and Mel Spectrum
  • Many internal improvements
  • Added window functions

=== 1.0.3 === (17th June 2016)

  • Added a Python module
  • Added ability to set and get sampling frequency
  • Bug fixes and implementation improvements

=== 1.0.2 === (24th April 2016)

  • Added the option of using Apple Accelerate FFT
  • Added two new features: Spectral Rolloff and Spectral Kurtosis
  • Small usability and code style tweaks

=== 1.0.1 === (26th June 2014)

  • Added the option of using Kiss FFT instead of FFTW

=== 1.0.0 === (22nd June 2014)

  • The first version of Gist

Dependencies

The Gist library depends on one of the following FFT libraries:

You will need to install this yourself, link projects using -lfftw3 and use the flag -DUSE_FFTW

This is included with the project. To use Kiss FFT, add the flag -DUSE_KISS_FFT

To use Accelerate FFT, add the flag -DUSE_ACCELERATE_FFT

License

Copyright (c) 2014 Adam Stark

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].