c@315
|
1
|
c@315
|
2 LIBRARY ?= libqm-dsp.a
|
c@315
|
3 CXX ?= g++
|
c@315
|
4 CC ?= gcc
|
c@315
|
5 AR ?= ar
|
c@315
|
6 RANLIB ?= ranlib
|
c@315
|
7
|
c@427
|
8 KISSFFT_CFLAGS := -Iext/kissfft -Iext/kissfft/tools -Dkiss_fft_scalar=double
|
c@427
|
9
|
c@427
|
10 CFLAGS := $(CFLAGS) -I. -DNO_BLAS_WRAP -DADD_ -Iext/clapack/include -Iext/cblas/include $(KISSFFT_CFLAGS)
|
c@427
|
11 CXXFLAGS := $(CXXFLAGS) -I. $(KISSFFT_CFLAGS)
|
c@427
|
12
|
c@427
|
13 CLAPACK_SRC := ext/clapack/src/dgetrf.c \
|
c@427
|
14 ext/clapack/src/dgetri.c \
|
c@427
|
15 ext/clapack/src/dgetf2.c \
|
c@427
|
16 ext/clapack/src/xerbla.c \
|
c@427
|
17 ext/clapack/src/dlaswp.c \
|
c@427
|
18 ext/clapack/src/dtrtri.c \
|
c@427
|
19 ext/clapack/src/ilaenv.c \
|
c@427
|
20 ext/clapack/src/iparmq.c \
|
c@427
|
21 ext/clapack/src/s_cat.c \
|
c@427
|
22 ext/clapack/src/s_copy.c \
|
c@427
|
23 ext/clapack/src/s_cmp.c \
|
c@427
|
24 ext/clapack/src/pow_di.c \
|
c@427
|
25 ext/clapack/src/ieeeck.c \
|
c@427
|
26 ext/clapack/src/i_nint.c \
|
c@427
|
27 ext/clapack/src/dtrti2.c \
|
c@427
|
28 ext/clapack/src/f77_aloc.c \
|
c@427
|
29 ext/clapack/src/exit_.c
|
c@427
|
30
|
c@427
|
31 CBLAS_SRC := ext/cblas/src/dgemm.c \
|
c@427
|
32 ext/cblas/src/ddot.c \
|
c@427
|
33 ext/cblas/src/dgemv.c \
|
c@427
|
34 ext/cblas/src/dswap.c \
|
c@427
|
35 ext/cblas/src/dtrsm.c \
|
c@427
|
36 ext/cblas/src/dger.c \
|
c@427
|
37 ext/cblas/src/idamax.c \
|
c@427
|
38 ext/cblas/src/dscal.c \
|
c@427
|
39 ext/cblas/src/dtrmm.c \
|
c@427
|
40 ext/cblas/src/lsame.c \
|
c@427
|
41 ext/cblas/src/dlamch.c \
|
c@427
|
42 ext/cblas/src/dtrmv.c \
|
c@427
|
43 ext/cblas/src/cblas_globals.c \
|
c@427
|
44 ext/cblas/src/cblas_dgemm.c \
|
c@427
|
45 ext/cblas/src/cblas_ddot.c \
|
c@427
|
46 ext/cblas/src/cblas_xerbla.c
|
c@314
|
47
|
c@314
|
48 HEADERS := base/Pitch.h \
|
c@314
|
49 base/Window.h \
|
c@379
|
50 base/KaiserWindow.h \
|
c@379
|
51 base/SincWindow.h \
|
c@314
|
52 dsp/chromagram/Chromagram.h \
|
c@314
|
53 dsp/chromagram/ConstantQ.h \
|
c@314
|
54 dsp/keydetection/GetKeyMode.h \
|
c@314
|
55 dsp/mfcc/MFCC.h \
|
c@314
|
56 dsp/onsets/DetectionFunction.h \
|
c@314
|
57 dsp/onsets/PeakPicking.h \
|
c@314
|
58 dsp/phasevocoder/PhaseVocoder.h \
|
c@314
|
59 dsp/rateconversion/Decimator.h \
|
c@380
|
60 dsp/rateconversion/DecimatorB.h \
|
c@379
|
61 dsp/rateconversion/Resampler.h \
|
c@314
|
62 dsp/rhythm/BeatSpectrum.h \
|
c@314
|
63 dsp/segmentation/cluster_melt.h \
|
c@314
|
64 dsp/segmentation/ClusterMeltSegmenter.h \
|
c@314
|
65 dsp/segmentation/cluster_segmenter.h \
|
c@314
|
66 dsp/segmentation/Segmenter.h \
|
c@314
|
67 dsp/segmentation/segment.h \
|
c@314
|
68 dsp/signalconditioning/DFProcess.h \
|
c@314
|
69 dsp/signalconditioning/Filter.h \
|
c@314
|
70 dsp/signalconditioning/FiltFilt.h \
|
c@314
|
71 dsp/signalconditioning/Framer.h \
|
c@314
|
72 dsp/tempotracking/DownBeat.h \
|
c@314
|
73 dsp/tempotracking/TempoTrack.h \
|
c@314
|
74 dsp/tempotracking/TempoTrackV2.h \
|
c@314
|
75 dsp/tonal/ChangeDetectionFunction.h \
|
c@314
|
76 dsp/tonal/TCSgram.h \
|
c@314
|
77 dsp/tonal/TonalEstimator.h \
|
c@415
|
78 dsp/transforms/DCT.h \
|
c@314
|
79 dsp/transforms/FFT.h \
|
c@314
|
80 dsp/wavelet/Wavelet.h \
|
c@314
|
81 hmm/hmm.h \
|
c@314
|
82 maths/Correlation.h \
|
c@314
|
83 maths/CosineDistance.h \
|
c@314
|
84 maths/KLDivergence.h \
|
c@314
|
85 maths/MathAliases.h \
|
c@314
|
86 maths/MathUtilities.h \
|
c@389
|
87 maths/MedianFilter.h \
|
c@314
|
88 maths/Polyfit.h \
|
c@314
|
89 maths/pca/pca.h \
|
c@314
|
90 thread/AsynchronousTask.h \
|
c@314
|
91 thread/BlockAllocator.h \
|
c@379
|
92 thread/Thread.h \
|
c@379
|
93 ext/kissfft/kiss_fft.h \
|
c@379
|
94 ext/kissfft/tools/kiss_fftr.h
|
c@314
|
95
|
c@314
|
96 SOURCES := base/Pitch.cpp \
|
c@379
|
97 base/KaiserWindow.cpp \
|
c@379
|
98 base/SincWindow.cpp \
|
c@314
|
99 dsp/chromagram/Chromagram.cpp \
|
c@314
|
100 dsp/chromagram/ConstantQ.cpp \
|
c@314
|
101 dsp/keydetection/GetKeyMode.cpp \
|
c@314
|
102 dsp/mfcc/MFCC.cpp \
|
c@314
|
103 dsp/onsets/DetectionFunction.cpp \
|
c@314
|
104 dsp/onsets/PeakPicking.cpp \
|
c@314
|
105 dsp/phasevocoder/PhaseVocoder.cpp \
|
c@314
|
106 dsp/rateconversion/Decimator.cpp \
|
c@380
|
107 dsp/rateconversion/DecimatorB.cpp \
|
c@379
|
108 dsp/rateconversion/Resampler.cpp \
|
c@314
|
109 dsp/rhythm/BeatSpectrum.cpp \
|
c@314
|
110 dsp/segmentation/cluster_melt.c \
|
c@314
|
111 dsp/segmentation/ClusterMeltSegmenter.cpp \
|
c@314
|
112 dsp/segmentation/cluster_segmenter.c \
|
c@314
|
113 dsp/segmentation/Segmenter.cpp \
|
c@314
|
114 dsp/signalconditioning/DFProcess.cpp \
|
c@314
|
115 dsp/signalconditioning/Filter.cpp \
|
c@314
|
116 dsp/signalconditioning/FiltFilt.cpp \
|
c@314
|
117 dsp/signalconditioning/Framer.cpp \
|
c@314
|
118 dsp/tempotracking/DownBeat.cpp \
|
c@314
|
119 dsp/tempotracking/TempoTrack.cpp \
|
c@314
|
120 dsp/tempotracking/TempoTrackV2.cpp \
|
c@314
|
121 dsp/tonal/ChangeDetectionFunction.cpp \
|
c@314
|
122 dsp/tonal/TCSgram.cpp \
|
c@314
|
123 dsp/tonal/TonalEstimator.cpp \
|
c@415
|
124 dsp/transforms/DCT.cpp \
|
c@314
|
125 dsp/transforms/FFT.cpp \
|
c@314
|
126 dsp/wavelet/Wavelet.cpp \
|
c@314
|
127 hmm/hmm.c \
|
c@314
|
128 maths/Correlation.cpp \
|
c@314
|
129 maths/CosineDistance.cpp \
|
c@314
|
130 maths/KLDivergence.cpp \
|
c@314
|
131 maths/MathUtilities.cpp \
|
c@314
|
132 maths/pca/pca.c \
|
c@379
|
133 thread/Thread.cpp \
|
c@379
|
134 ext/kissfft/kiss_fft.c \
|
c@427
|
135 ext/kissfft/tools/kiss_fftr.c \
|
c@427
|
136 $(CLAPACK_SRC) \
|
c@427
|
137 $(CBLAS_SRC)
|
c@314
|
138
|
c@314
|
139 OBJECTS := $(SOURCES:.cpp=.o)
|
c@314
|
140 OBJECTS := $(OBJECTS:.c=.o)
|
c@314
|
141
|
c@315
|
142 $(LIBRARY): $(OBJECTS)
|
c@405
|
143 rm -f $@
|
c@315
|
144 $(AR) cr $@ $^
|
c@315
|
145 $(RANLIB) $@
|
c@315
|
146
|
c@451
|
147 test: $(LIBRARY)
|
c@451
|
148 $(MAKE) -C tests
|
c@451
|
149
|
c@383
|
150 depend:
|
c@383
|
151 makedepend -fbuild/general/Makefile.inc -Y -- $(CFLAGS) -- $(SOURCES)
|
c@383
|
152
|
c@315
|
153 clean:
|
c@379
|
154 rm -f $(OBJECTS)
|
c@315
|
155
|
c@315
|
156 distclean: clean
|
c@379
|
157 rm -f $(LIBRARY)
|
c@383
|
158
|
c@383
|
159
|
c@383
|
160 # DO NOT DELETE
|
c@383
|
161
|
c@383
|
162 base/Pitch.o: base/Pitch.h
|
c@383
|
163 base/KaiserWindow.o: base/KaiserWindow.h maths/MathUtilities.h
|
c@383
|
164 base/KaiserWindow.o: maths/nan-inf.h
|
c@383
|
165 base/SincWindow.o: base/SincWindow.h
|
c@383
|
166 dsp/chromagram/Chromagram.o: maths/MathUtilities.h maths/nan-inf.h
|
c@383
|
167 dsp/chromagram/Chromagram.o: dsp/chromagram/Chromagram.h dsp/transforms/FFT.h
|
c@383
|
168 dsp/chromagram/Chromagram.o: base/Window.h dsp/chromagram/ConstantQ.h
|
c@383
|
169 dsp/chromagram/Chromagram.o: maths/MathAliases.h
|
c@383
|
170 dsp/chromagram/ConstantQ.o: dsp/chromagram/ConstantQ.h maths/MathAliases.h
|
c@383
|
171 dsp/chromagram/ConstantQ.o: maths/MathUtilities.h maths/nan-inf.h
|
c@383
|
172 dsp/chromagram/ConstantQ.o: dsp/transforms/FFT.h
|
c@383
|
173 dsp/keydetection/GetKeyMode.o: dsp/keydetection/GetKeyMode.h
|
c@383
|
174 dsp/keydetection/GetKeyMode.o: dsp/rateconversion/Decimator.h
|
c@383
|
175 dsp/keydetection/GetKeyMode.o: dsp/chromagram/Chromagram.h
|
c@383
|
176 dsp/keydetection/GetKeyMode.o: dsp/transforms/FFT.h base/Window.h
|
c@383
|
177 dsp/keydetection/GetKeyMode.o: dsp/chromagram/ConstantQ.h maths/MathAliases.h
|
c@383
|
178 dsp/keydetection/GetKeyMode.o: maths/MathUtilities.h maths/nan-inf.h
|
c@383
|
179 dsp/keydetection/GetKeyMode.o: base/Pitch.h
|
c@383
|
180 dsp/mfcc/MFCC.o: dsp/mfcc/MFCC.h base/Window.h dsp/transforms/FFT.h
|
c@383
|
181 dsp/onsets/DetectionFunction.o: dsp/onsets/DetectionFunction.h
|
c@383
|
182 dsp/onsets/DetectionFunction.o: maths/MathUtilities.h maths/nan-inf.h
|
c@383
|
183 dsp/onsets/DetectionFunction.o: maths/MathAliases.h
|
c@383
|
184 dsp/onsets/DetectionFunction.o: dsp/phasevocoder/PhaseVocoder.h base/Window.h
|
c@383
|
185 dsp/onsets/PeakPicking.o: dsp/onsets/PeakPicking.h maths/MathUtilities.h
|
c@383
|
186 dsp/onsets/PeakPicking.o: maths/nan-inf.h maths/MathAliases.h
|
c@383
|
187 dsp/onsets/PeakPicking.o: dsp/signalconditioning/DFProcess.h
|
c@383
|
188 dsp/onsets/PeakPicking.o: dsp/signalconditioning/FiltFilt.h
|
c@383
|
189 dsp/onsets/PeakPicking.o: dsp/signalconditioning/Filter.h maths/Polyfit.h
|
c@383
|
190 dsp/phasevocoder/PhaseVocoder.o: dsp/phasevocoder/PhaseVocoder.h
|
c@383
|
191 dsp/phasevocoder/PhaseVocoder.o: dsp/transforms/FFT.h maths/MathUtilities.h
|
c@383
|
192 dsp/phasevocoder/PhaseVocoder.o: maths/nan-inf.h
|
c@383
|
193 dsp/rateconversion/Decimator.o: dsp/rateconversion/Decimator.h
|
c@383
|
194 dsp/rateconversion/DecimatorB.o: dsp/rateconversion/DecimatorB.h
|
c@383
|
195 dsp/rateconversion/DecimatorB.o: maths/MathUtilities.h maths/nan-inf.h
|
c@383
|
196 dsp/rateconversion/Resampler.o: dsp/rateconversion/Resampler.h
|
c@383
|
197 dsp/rateconversion/Resampler.o: maths/MathUtilities.h maths/nan-inf.h
|
c@383
|
198 dsp/rateconversion/Resampler.o: base/KaiserWindow.h base/SincWindow.h
|
c@383
|
199 dsp/rateconversion/Resampler.o: thread/Thread.h
|
c@383
|
200 dsp/rhythm/BeatSpectrum.o: dsp/rhythm/BeatSpectrum.h maths/CosineDistance.h
|
c@383
|
201 dsp/segmentation/cluster_melt.o: dsp/segmentation/cluster_melt.h
|
c@383
|
202 dsp/segmentation/ClusterMeltSegmenter.o: dsp/segmentation/ClusterMeltSegmenter.h
|
c@383
|
203 dsp/segmentation/ClusterMeltSegmenter.o: dsp/segmentation/segment.h
|
c@383
|
204 dsp/segmentation/ClusterMeltSegmenter.o: dsp/segmentation/Segmenter.h
|
c@383
|
205 dsp/segmentation/ClusterMeltSegmenter.o: hmm/hmm.h base/Window.h
|
c@383
|
206 dsp/segmentation/ClusterMeltSegmenter.o: dsp/segmentation/cluster_segmenter.h
|
c@383
|
207 dsp/segmentation/ClusterMeltSegmenter.o: dsp/segmentation/cluster_melt.h
|
c@383
|
208 dsp/segmentation/ClusterMeltSegmenter.o: maths/pca/pca.h dsp/transforms/FFT.h
|
c@383
|
209 dsp/segmentation/ClusterMeltSegmenter.o: dsp/chromagram/ConstantQ.h
|
c@383
|
210 dsp/segmentation/ClusterMeltSegmenter.o: maths/MathAliases.h
|
c@383
|
211 dsp/segmentation/ClusterMeltSegmenter.o: maths/MathUtilities.h
|
c@383
|
212 dsp/segmentation/ClusterMeltSegmenter.o: maths/nan-inf.h
|
c@383
|
213 dsp/segmentation/ClusterMeltSegmenter.o: dsp/rateconversion/Decimator.h
|
c@383
|
214 dsp/segmentation/ClusterMeltSegmenter.o: dsp/mfcc/MFCC.h
|
c@383
|
215 dsp/segmentation/cluster_segmenter.o: dsp/segmentation/cluster_segmenter.h
|
c@383
|
216 dsp/segmentation/cluster_segmenter.o: dsp/segmentation/segment.h
|
c@383
|
217 dsp/segmentation/cluster_segmenter.o: dsp/segmentation/cluster_melt.h
|
c@383
|
218 dsp/segmentation/cluster_segmenter.o: hmm/hmm.h maths/pca/pca.h
|
c@383
|
219 dsp/segmentation/Segmenter.o: dsp/segmentation/Segmenter.h
|
c@383
|
220 dsp/signalconditioning/DFProcess.o: dsp/signalconditioning/DFProcess.h
|
c@383
|
221 dsp/signalconditioning/DFProcess.o: dsp/signalconditioning/FiltFilt.h
|
c@383
|
222 dsp/signalconditioning/DFProcess.o: dsp/signalconditioning/Filter.h
|
c@383
|
223 dsp/signalconditioning/DFProcess.o: maths/MathUtilities.h maths/nan-inf.h
|
c@383
|
224 dsp/signalconditioning/Filter.o: dsp/signalconditioning/Filter.h
|
c@383
|
225 dsp/signalconditioning/FiltFilt.o: dsp/signalconditioning/FiltFilt.h
|
c@383
|
226 dsp/signalconditioning/FiltFilt.o: dsp/signalconditioning/Filter.h
|
c@383
|
227 dsp/signalconditioning/Framer.o: dsp/signalconditioning/Framer.h
|
c@383
|
228 dsp/tempotracking/DownBeat.o: dsp/tempotracking/DownBeat.h
|
c@383
|
229 dsp/tempotracking/DownBeat.o: dsp/rateconversion/Decimator.h
|
c@383
|
230 dsp/tempotracking/DownBeat.o: maths/MathAliases.h maths/MathUtilities.h
|
c@383
|
231 dsp/tempotracking/DownBeat.o: maths/nan-inf.h maths/KLDivergence.h
|
c@383
|
232 dsp/tempotracking/DownBeat.o: dsp/transforms/FFT.h
|
c@383
|
233 dsp/tempotracking/TempoTrack.o: dsp/tempotracking/TempoTrack.h
|
c@383
|
234 dsp/tempotracking/TempoTrack.o: dsp/signalconditioning/DFProcess.h
|
c@383
|
235 dsp/tempotracking/TempoTrack.o: dsp/signalconditioning/FiltFilt.h
|
c@383
|
236 dsp/tempotracking/TempoTrack.o: dsp/signalconditioning/Filter.h
|
c@383
|
237 dsp/tempotracking/TempoTrack.o: maths/Correlation.h
|
c@383
|
238 dsp/tempotracking/TempoTrack.o: dsp/signalconditioning/Framer.h
|
c@383
|
239 dsp/tempotracking/TempoTrack.o: maths/MathAliases.h maths/MathUtilities.h
|
c@383
|
240 dsp/tempotracking/TempoTrack.o: maths/nan-inf.h
|
c@383
|
241 dsp/tempotracking/TempoTrackV2.o: dsp/tempotracking/TempoTrackV2.h
|
c@383
|
242 dsp/tempotracking/TempoTrackV2.o: maths/MathUtilities.h maths/nan-inf.h
|
c@383
|
243 dsp/tonal/ChangeDetectionFunction.o: dsp/tonal/ChangeDetectionFunction.h
|
c@383
|
244 dsp/tonal/ChangeDetectionFunction.o: dsp/tonal/TCSgram.h
|
c@383
|
245 dsp/tonal/ChangeDetectionFunction.o: dsp/tonal/TonalEstimator.h
|
c@383
|
246 dsp/tonal/TCSgram.o: dsp/tonal/TCSgram.h dsp/tonal/TonalEstimator.h
|
c@383
|
247 dsp/tonal/TCSgram.o: maths/MathUtilities.h maths/nan-inf.h
|
c@383
|
248 dsp/tonal/TonalEstimator.o: dsp/tonal/TonalEstimator.h
|
c@383
|
249 dsp/transforms/FFT.o: dsp/transforms/FFT.h maths/MathUtilities.h
|
c@383
|
250 dsp/transforms/FFT.o: maths/nan-inf.h ext/kissfft/kiss_fft.h
|
c@383
|
251 dsp/transforms/FFT.o: ext/kissfft/tools/kiss_fftr.h
|
c@383
|
252 dsp/wavelet/Wavelet.o: dsp/wavelet/Wavelet.h
|
c@427
|
253 hmm/hmm.o: maths/nan-inf.h hmm/hmm.h
|
c@383
|
254 maths/Correlation.o: maths/Correlation.h
|
c@383
|
255 maths/CosineDistance.o: maths/CosineDistance.h
|
c@383
|
256 maths/KLDivergence.o: maths/KLDivergence.h
|
c@383
|
257 maths/MathUtilities.o: maths/MathUtilities.h maths/nan-inf.h
|
c@383
|
258 maths/pca/pca.o: maths/pca/pca.h
|
c@383
|
259 thread/Thread.o: thread/Thread.h
|
c@383
|
260 ext/kissfft/kiss_fft.o: ext/kissfft/_kiss_fft_guts.h ext/kissfft/kiss_fft.h
|
c@383
|
261 ext/kissfft/tools/kiss_fftr.o: ext/kissfft/tools/kiss_fftr.h
|
c@383
|
262 ext/kissfft/tools/kiss_fftr.o: ext/kissfft/kiss_fft.h
|
c@383
|
263 ext/kissfft/tools/kiss_fftr.o: ext/kissfft/_kiss_fft_guts.h
|