Mercurial > hg > audio-features-catalogue
view rdfn3/af-jMIR.n3 @ 18:d5012016bf64 tip
added rdfpy and rdfonto directories
author | nothing@tehis.net |
---|---|
date | Tue, 23 Apr 2013 11:49:20 +0100 |
parents | 62d2c72e4223 |
children |
line wrap: on
line source
@prefix dc: <http://purl.org/dc/elements/1.1/> . @prefix jMIR: <file:///Users/alo/MusicOntology/features/rdf/> . @prefix local: <http://sovarr.c4dm.eecs.qmul.ac.uk/features/> . @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . jMIR:AreaMoments a rdfs:Resource ; dc:description "2D statistical method of moments" ; local:name "Area Method of Moments" . jMIR:AreaMomentsConstantQMFCC a rdfs:Resource ; dc:description "2D statistical method of moments of ConstantQ-based MFCCs" ; local:name "Area Method of Moments of ConstantQ-based MFCCs" . jMIR:AreaMomentsLogConstantQ a rdfs:Resource ; dc:description "2D statistical method of moments of the log of the ConstantQ transform" ; local:name "Area Method of Moments of Log of ConstantQ transform" . jMIR:AreaMomentsMFCC a rdfs:Resource ; dc:description "2D statistical method of moments of MFCCs" ; local:name "Area Method of Moments of MFCCs" . jMIR:AreaPolynomialApproximation a rdfs:Resource ; dc:description "coeffecients of 2D polynomial best describing the input matrtix." ; local:name "2D Polynomial Approximation" . jMIR:AreaPolynomialApproximationConstantQMFCC a rdfs:Resource ; dc:description "coeffecients of 2D polynomial best describing the input matrtix." ; local:name "2D Polynomial Approximation ConstantQ MFCC" . jMIR:AreaPolynomialApproximationLogConstantQ a rdfs:Resource ; dc:description "coeffecients of 2D polynomial best describing the input matrix." ; local:name "2D Polynomial Approximation of Log of ConstantQ" . jMIR:BeatHistogram a rdfs:Resource ; dc:description "A histogram showing the relative strength of different rhythmic periodicities (tempi) in a signal. Found by calculating the auto-correlation of the RMS." ; local:name "Beat Histogram" . jMIR:BeatHistogramLabels a rdfs:Resource ; dc:description "The bin label, in beats per minute, of each beat histogram bin. Not useful as a feature in itself, but useful for calculating other features from the beat histogram." ; local:name "Beat Histogram Bin Labels" . jMIR:BeatSum a rdfs:Resource ; dc:description "The sum of all entries in the beat histogram. This is a good measure of the importance of regular beats in a signal." ; local:name "Beat Sum" . jMIR:Compactness a rdfs:Resource ; dc:description "A measure of the noisiness of a signal. Found by comparing the components of a window's magnitude spectrum with the magnitude spectrum of its neighbouring windows." ; local:name "Compactness" . jMIR:ConstantQ a rdfs:Resource ; dc:description "signal to frequency transform using exponential-spaced frequency bins." ; local:name "ConstantQ" . jMIR:ConstantQMFCC a rdfs:Resource ; dc:description "MFCCs directly caluclated from ConstantQ exponential bins" ; local:name "ConstantQ derived MFCCs" . jMIR:FFTBinFrequencies a rdfs:Resource ; dc:description "The bin label, in Hz, of each power spectrum or magnitude spectrum bin. Not useful as a feature in itself, but useful for calculating other features from the magnitude spectrum and power spectrum." ; local:name "FFT Bin Frequency Labels" . jMIR:FractionOfLowEnergyWindows a rdfs:Resource ; dc:description "The fraction of the last 100 windows that has an RMS less than the mean RMS in the last 100 windows. This can indicate how much of a signal is quiet relative to the rest of the signal." ; local:name "Fraction Of Low Energy Windows" . jMIR:HarmonicSpectralCentroid a rdfs:Resource ; dc:description "Spectral Centroid calculated based on the center of mass of partials instead of center of mass of bins." ; local:name "Partial Based Spectral Centroid" . jMIR:HarmonicSpectralFlux a rdfs:Resource ; dc:description "Cacluate the correlation bettween adjacent frames based peaks instead of spectral bins. Peak tracking is primitive - whe the number of bins changes, the bottom bins are matched sequentially and the extra unmatched bins are ignored.) definition = new FeatureDefinition(name, description, true, 1) dependencies = new String[] { Peak Detection, Peak Detection } offsets = new int[] { 0, -1 } } /** * Extract the peak based spectral flux from the window. * @param samples * The samples to extract the feature from. * @param sampling_rate * The sampling rate that the samples are encoded with. * @param other_feature_values * The values of other features that are needed to calculate this * value. The order and offsets of these features must be the * same as those returned by this class's getDependencies and * getDependencyOffsets methods respectively. The first indice * indicates the feature/window and the second indicates the * value. * @return The extracted feature value(s). * @throws Exception * Throws an informative exception if the feature cannot be * calculated. * @see jAudioFeatureExtractor.AudioFeatures.FeatureExtractor#extractFeature(double[], * double, double[][]) */ public double[] extractFeature(double[] samples, double sampling_rate, double[][] other_feature_values) { double[] result = new double[1] double[] old = other_feature_values[1] double[] now = other_feature_values[0] double x, y, xy, x2, y2 x = y = xy = x2 = y2 = 0.0 int peakCount = Math.min(old.length, now.length) for (int i = 0 i < peakCount i) { x = old[i] y = now[i] xy = old[i] * now[i] x2 = old[i] * old[i] y2 = now[i] * now[i] } double top = xy - (x * y) / peakCount double bottom = Math.sqrt(Math.abs((x2 - ((x * x) / peakCount)) * (y2 - ((y * y) / peakCount)))) result[0] = top / bottom return result } /** * Proviede a complete copy of this feature. Used to implement the prottype * pattern */ public Object clone() { return new HarmonicSpectralFlux() } }" ; local:name "Partial Based Spectral Flux" . jMIR:HarmonicSpectralSmoothness a rdfs:Resource ; dc:description "Peak Based Spectral Smoothness is calculated from partials, not frequency bins. It is implemented accortding to McAdams 99 System.getProperty(line.separator) System.getProperty(line.separator) McAdams, S. 1999." ; local:name "Peak Based Spectral Smoothness" . jMIR:LPC a rdfs:Resource ; dc:description "Linear Prediction Coeffecients calculated using autocorrelation and Levinson-Durbin recursion." ; local:name "LPC" . jMIR:LogConstantQ a rdfs:Resource ; dc:description "logarithm of each bin of exponentially-spaced frequency bins." ; local:name "Log of ConstantQ" . jMIR:MFCC a rdfs:Resource ; dc:description "MFCC calculations based upon Orange Cow code" ; local:name "MFCC" . jMIR:MagnitudeSpectrum a rdfs:Resource ; dc:description "A measure of the strength of different frequency components." ; local:name "Magnitude Spectrum" . jMIR:Moments a rdfs:Resource ; dc:description "Statistical Method of Moments of the Magnitude Spectrum." ; local:name "Method of Moments" . jMIR:PeakFinder a rdfs:Resource ; dc:description "All peaks that are within an order of magnitude of the highest point" ; local:name "Peak Detection" . jMIR:PowerSpectrum a rdfs:Resource ; dc:description "A measure of the power of different frequency components." ; local:name "Power Spectrum" . jMIR:RMS a rdfs:Resource ; dc:description "A measure of the power of a signal." ; local:name "Root Mean Square" . jMIR:RelativeDifferenceFunction a rdfs:Resource ; dc:description "Relative Difference Function" ; local:name "Relative Difference Function" . jMIR:SpectralCentroid a rdfs:Resource ; dc:description "The centre of mass of the power spectrum." ; local:name "Spectral Centroid" . jMIR:SpectralFlux a rdfs:Resource ; dc:description "A measure of the amount of spectral change in a signal. //\\n Found by calculating the change in the magnitude spectrum //\\n from frame to frame." ; local:name "Spectral Flux" . jMIR:SpectralRolloffPoint a rdfs:Resource ; dc:description "The fraction of bins in the power spectrum at which 85% // System.getProperty(line.separator) of the power is at lower frequencies. This is a measure // System.getProperty(line.separator) // of the right-skewedness of the power spectrum." ; local:name "Spectral Rolloff Point" . jMIR:SpectralVariability a rdfs:Resource ; dc:description "The standard deviation of the magnitude spectrum. This is a measure of the variance of a signal's magnitude spectrum." ; local:name "Spectral Variability" . jMIR:StrengthOfStrongestBeat a rdfs:Resource ; dc:description "How strong the strongest beat in the beat histogram is compared to other potential beats." ; local:name "Strength Of Strongest Beat" . jMIR:StrongestBeat a rdfs:Resource ; dc:description "The strongest beat in a signal, in beats per minute, found by finding the strongest bin in the beat histogram." ; local:name "Strongest Beat" . jMIR:StrongestFrequencyViaFFTMax a rdfs:Resource ; dc:description "The strongest frequency component of a signal, in Hz, found via finding the FFT bin with the highest power." ; local:name "Strongest Frequency Via FFT Maximum" . jMIR:StrongestFrequencyViaSpectralCentroid a rdfs:Resource ; dc:description "The strongest frequency component of a signal, in Hz, found via the spectral centroid." ; local:name "Strongest Frequency Via Spectral Centroid" . jMIR:StrongestFrequencyViaZeroCrossings a rdfs:Resource ; dc:description "The strongest frequency component of a signal, in Hz, found via the number of zero-crossings." ; local:name "Strongest Frequency Via Zero Crossings" . jMIR:ZeroCrossings a rdfs:Resource ; dc:description "The number of times the waveform changed sign. An indication of frequency as well as noisiness." ; local:name "Zero Crossings" .