{"repo":"adamstark/Gist","free":true,"listed":false,"github":"https://github.com/adamstark/Gist","clone":"git clone https://github.com/adamstark/Gist.git","description":"A C++ Library for Audio Analysis","language":"C++","stars":400,"topics":["audio-analysis","c-plus-plus","pitch-tracking","mfcc","onset-detection","music","audio","gist","music-information-retrieval","mir"],"license":"GPL-3.0","category":"media-processing","readme_excerpt":"Gist - An Audio Analysis Library ================================== 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 gist (frameSize, sampleRate); Or with double precision: Gist 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 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.","default_branch":null,"files":null,"tree":[],"storefront":"/r/adamstark","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/adamstark/Gist/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}