# HG changeset patch # User Chris Cannam # Date 1500303739 -3600 # Node ID 6bd90426715dedb2b263ccc28a2cf0c53f116df2 # Parent 1e6940e42972fa64f4dba4d3cc2590c7ba7232da Add Tuning Difference plugin diff -r 1e6940e42972 -r 6bd90426715d tuning-difference/Makefile --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tuning-difference/Makefile Mon Jul 17 16:02:19 2017 +0100 @@ -0,0 +1,37 @@ + +PIPER_VAMP_JS_DIR := ../ext/piper-vamp-js + +PLUGIN_DIR := ../ext/tuning-difference + +SRC_DIR := $(PLUGIN_DIR)/src +CQ_DIR := $(PLUGIN_DIR)/constant-q-cpp +CQS_DIR := $(CQ_DIR)/src + +MODULE_NAME := TuningDifference +MODULE_SOURCE := tuning-difference.cpp + +PLUGIN_SOURCES := \ + $(SRC_DIR)/TuningDifference.cpp \ + $(CQS_DIR)/CQKernel.cpp \ + $(CQS_DIR)/ConstantQ.cpp \ + $(CQS_DIR)/CQSpectrogram.cpp \ + $(CQS_DIR)/CQInverse.cpp \ + $(CQS_DIR)/Chromagram.cpp \ + $(CQS_DIR)/Pitch.cpp \ + $(CQS_DIR)/dsp/FFT.cpp \ + $(CQS_DIR)/dsp/KaiserWindow.cpp \ + $(CQS_DIR)/dsp/MathUtilities.cpp \ + $(CQS_DIR)/dsp/Resampler.cpp \ + $(CQS_DIR)/dsp/SincWindow.cpp + +PLUGIN_C_SOURCES := \ + $(CQS_DIR)/ext/kissfft/kiss_fft.c \ + $(CQS_DIR)/ext/kissfft/tools/kiss_fftr.c + +EMFLAGS := -s TOTAL_MEMORY=134217728 + +DEFINES := -Dkiss_fft_scalar=double + +INCLUDES := -I$(SRC_DIR) -I$(CQ_DIR) -I$(CQ_DIR)/cq -I$(CQS_DIR) -I$(CQS_DIR)/ext/kissfft -I$(CQS_DIR)/ext/kissfft/tools + +include $(PIPER_VAMP_JS_DIR)/Makefile.inc diff -r 1e6940e42972 -r 6bd90426715d tuning-difference/tuning-difference.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tuning-difference/tuning-difference.cpp Mon Jul 17 16:02:19 2017 +0100 @@ -0,0 +1,38 @@ + +#include "PiperExport.h" +#include "TuningDifference.h" + +using piper_vamp_js::PiperAdapter; +using piper_vamp_js::PiperPluginLibrary; + +static std::string libname("tuning-difference"); + +static PiperAdapter +tuningDifferenceAdapter( + libname, + { "Key and Tonality" }, + { + { "cents", + { "" } + }, + { "tuningfreq", + { "" } + }, + { "reffeature", + { "" } + }, + { "otherfeature", + { "" } + }, + { "rotfeature", + { "" } + } + } + ); + +static PiperPluginLibrary library({ + &tuningDifferenceAdapter +}); + +PIPER_EXPORT_LIBRARY(library); + diff -r 1e6940e42972 -r 6bd90426715d vext-lock.json --- a/vext-lock.json Wed Jun 28 13:27:12 2017 +0100 +++ b/vext-lock.json Mon Jul 17 16:02:19 2017 +0100 @@ -41,6 +41,9 @@ }, "tipic": { "pin": "cbebb8a657ea" + }, + "tuning-difference": { + "pin": "aaf8fa1cde19" } } } diff -r 1e6940e42972 -r 6bd90426715d vext-project.json --- a/vext-project.json Wed Jun 28 13:27:12 2017 +0100 +++ b/vext-project.json Mon Jul 17 16:02:19 2017 +0100 @@ -69,6 +69,10 @@ "tipic": { "vcs": "hg", "service": "soundsoftware" + }, + "tuning-difference": { + "vcs": "hg", + "service": "soundsoftware" } } }