-
Notifications
You must be signed in to change notification settings - Fork 3
/
pitch.pro
370 lines (346 loc) · 10.9 KB
/
pitch.pro
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
#Tartini 1.1 QMakefile
#Usage:
#[]$ qmake pitch.pro
#[]$ make
#Set the paths to Qt4, fftw and qwt libraries and includes here.
#for you platform. Note multiple paths can be listed.
#Note the -L before the each library paths, but not include paths.
unix{
macx{ #MacOSX
MY_LIB_PATH += -L/Users/student/usr/local/lib
MY_INCLUDE_PATH += /Users/student/usr/local/include
}else{ #Linux
MY_LIB_PATH += -L/home/inferno/research/pitch/lib
MY_INCLUDE_PATH += /home/inferno/research/pitch/include/Qt /home/inferno/research/pitch/include/qwt /home/inferno/research/pitch/include
}
}
win32{ #Windows
MY_LIB_PATH += -L"C:/home/Qwt/lib" -L"C:/home/fftw"
MY_INCLUDE_PATH += "./" "C:/home/Qwt/include" "C:/home/fftw"
#Note just stick the *.dll files in the executables directory to run
}
TEMPLATE = app
CONFIG += qt thread opengl
CONFIG -= debug
CONFIG += release
CONFIG += warn_on
CONFIG += precompile_header
#CONFIG += profile
#DEFINES += SHARED_DRAWING_BUFFER
DEFINES += SINGLE_DRAWING_BUFFER
LANGUAGE = C++
TARGET = tartini
VERSION = 1.2.0
FORMS += dialogs/settingsdialog.ui
DISTFILES += INSTALL.txt \
LICENSE.txt \
README.txt \
pics/open.xpm \
pics/close32x32.xpm \
pics/beginning32x32.xpm \
pics/rewind32x32.xpm \
pics/stop32x32.xpm \
pics/play32x32.xpm \
pics/fastforward32x32.xpm \
pics/end32x32.xpm \
pics/autofollow32x32.xpm \
pics/shadingon32x32.xpm \
pics/shadingoff32x32.xpm \
pics/chain_open.xpm \
pics/chain_closed.xpm \
pics/record32x32.xpm \
pics/playrecord32x32.xpm \
pics/save32x32.xpm \
pics/background.xpm \
pics/zoomx.xpm \
pics/zoomy.xpm \
pics/zoomxout.xpm \
pics/zoomyout.xpm \
pics/tartinilogo.jpg \
gomacx \
gowindows.bat \
widgets/base/baseview.h \
widgets/base/baseview.cpp \
widgets/base/basewidget.cpp \
widgets/base/basewidget.h \
include/static.h
HEADERS += main.h \
sound/sound_stream.h \
sound/wave_stream.h \
sound/sound_file_stream.h \
sound/audio_thread.h \
general/myio.h \
general/useful.h \
general/mystring.h \
general/settings.h \
general/bspline.h \
include/freqpair.h \
widgets/ledindicator.h \
widgets/drawwidget.h \
widgets/viewwidget.h \
widgets/myscrollbar.h \
widgets/mainwindow/mainwindow.h \
widgets/openfiles/openfiles.h \
widgets/freq/freqdrawwidget.h \
widgets/freq/freqwidgetGL.h \
widgets/freq/freqview.h \
widgets/pitchcompass/pitchcompassview.h \
widgets/pitchcompass/pitchcompassdrawwidget.h \
widgets/summary/summarydrawwidget.h \
widgets/summary/summaryview.h \
widgets/tuner/tunerview.h \
widgets/tuner/tunerwidget.h \
widgets/hblock/hblockview.h \
widgets/hblock/hblockwidget.h \
widgets/hstack/hstackview.h \
widgets/hstack/hstackwidget.h \
widgets/hbubble/hbubbleview.h \
widgets/hbubble/hbubblewidget.h \
widgets/hcircle/hcircleview.h \
widgets/hcircle/hcirclewidget.h \
widgets/wave/waveview.h \
widgets/wave/wavewidget.h \
global/gdata.h \
sound/filters/Filter.h \
sound/filters/IIR_Filter.h \
sound/filters/FixedAveragingFilter.h \
sound/filters/GrowingAveragingFilter.h \
sound/filters/FastSmoothedAveragingFilter.h \
include/array1d.h \
include/array2d.h \
sound/channel.h \
sound/soundfile.h \
global/view.h \
include/myqmutex.h \
general/mytransforms.h \
widgets/timeaxis.h \
sound/analysisdata.h \
widgets/volumemeter/volumemeterview.h \
widgets/volumemeter/volumemeterwidget.h \
include/myassert.h \
sound/zoomlookup.h \
dialogs/savedialog.h \
dialogs/opendialog.h \
general/equalloudness.h \
widgets/piano/pianowidget.h \
widgets/freq/amplitudewidget.h \
widgets/piano/pianoview.h \
widgets/htrack/htrackview.h \
widgets/htrack/htrackwidget.h \
widgets/htrack/piano3d.h \
widgets/correlation/correlationview.h \
widgets/correlation/correlationwidget.h \
widgets/fft/fftwidget.h \
widgets/fft/fftview.h \
widgets/cepstrum/cepstrumwidget.h \
widgets/cepstrum/cepstrumview.h \
sound/notedata.h \
general/large_vector.h \
widgets/mylabel.h \
sound/notesynth.h \
general/fast_smooth.h \
global/conversions.h \
widgets/debugview/debugwidget.h \
widgets/debugview/debugview.h \
widgets/score/scorewidget.h \
widgets/score/scoreview.h \
widgets/score/scoresegmentiterator.h \
dialogs/tartinisettingsdialog.h \
widgets/vibrato/vibratowidget.h \
widgets/vibrato/vibratoview.h \
widgets/vibrato/vibratotunerwidget.h \
widgets/vibrato/vibratotimeaxis.h \
widgets/vibrato/vibratospeedwidget.h \
widgets/vibrato/vibratoperiodwidget.h \
widgets/vibrato/vibratocirclewidget.h \
include/safe_bool.h \
include/SmartPtr.h \
general/prony.h \
general/mymatrix.h \
general/myglfonts.h \
general/mygl.h \
general/myqt.h \
general/musicnotes.h \
general/myalgo.h \
include/RingBuffer.h
SOURCES += main.cpp \
sound/wave_stream.cpp \
sound/audio_thread.cpp \
general/myio.cpp \
sound/filters/IIR_Filter.cpp \
sound/filters/FixedAveragingFilter.cpp \
sound/filters/GrowingAveragingFilter.cpp \
sound/filters/FastSmoothedAveragingFilter.cpp \
sound/channel.cpp \
sound/soundfile.cpp \
general/useful.cpp \
general/mystring.cpp \
general/settings.cpp \
general/bspline.cpp \
widgets/ledindicator.cpp \
widgets/drawwidget.cpp \
widgets/myscrollbar.cpp \
widgets/viewwidget.cpp \
widgets/mainwindow/mainwindow.cpp \
widgets/openfiles/openfiles.cpp \
widgets/freq/freqdrawwidget.cpp \
widgets/freq/freqwidgetGL.cpp \
widgets/freq/freqview.cpp \
widgets/pitchcompass/pitchcompassview.cpp \
widgets/pitchcompass/pitchcompassdrawwidget.cpp \
widgets/summary/summarydrawwidget.cpp \
widgets/summary/summaryview.cpp \
widgets/tuner/tunerview.cpp \
widgets/tuner/tunerwidget.cpp \
widgets/hblock/hblockview.cpp \
widgets/hblock/hblockwidget.cpp \
widgets/hstack/hstackview.cpp \
widgets/hstack/hstackwidget.cpp \
widgets/hbubble/hbubbleview.cpp \
widgets/hbubble/hbubblewidget.cpp \
widgets/hcircle/hcircleview.cpp \
widgets/hcircle/hcirclewidget.cpp \
widgets/wave/waveview.cpp \
widgets/wave/wavewidget.cpp \
global/gdata.cpp \
cleanup.c \
global/view.cpp \
sound/sound_stream.cpp \
general/mytransforms.cpp \
widgets/timeaxis.cpp \
sound/analysisdata.cpp \
widgets/volumemeter/volumemeterview.cpp \
widgets/volumemeter/volumemeterwidget.cpp \
sound/zoomlookup.cpp \
dialogs/savedialog.cpp \
dialogs/opendialog.cpp \
general/equalloudness.cpp \
widgets/piano/pianowidget.cpp \
widgets/freq/amplitudewidget.cpp \
widgets/piano/pianoview.cpp \
widgets/htrack/htrackview.cpp \
widgets/htrack/htrackwidget.cpp \
widgets/htrack/piano3d.cpp \
widgets/correlation/correlationview.cpp \
widgets/correlation/correlationwidget.cpp \
widgets/fft/fftwidget.cpp \
widgets/fft/fftview.cpp \
widgets/cepstrum/cepstrumwidget.cpp \
widgets/cepstrum/cepstrumview.cpp \
sound/notedata.cpp \
widgets/mylabel.cpp \
sound/notesynth.cpp \
general/fast_smooth.cpp \
global/conversions.cpp \
widgets/debugview/debugwidget.cpp \
widgets/debugview/debugview.cpp \
widgets/score/scorewidget.cpp \
widgets/score/scoreview.cpp \
widgets/score/scoresegmentiterator.cpp \
dialogs/tartinisettingsdialog.cpp \
widgets/vibrato/vibratowidget.cpp \
widgets/vibrato/vibratoview.cpp \
widgets/vibrato/vibratotunerwidget.cpp \
widgets/vibrato/vibratotimeaxis.cpp \
widgets/vibrato/vibratospeedwidget.cpp \
widgets/vibrato/vibratoperiodwidget.cpp \
widgets/vibrato/vibratocirclewidget.cpp \
general/prony.cpp \
general/mymatrix.cpp \
general/myglfonts.cpp \
general/myqt.cpp \
general/musicnotes.cpp \
general/myalgo.cpp
RESOURCES += pitch.qrc
PRECOMPILED_HEADER = static.h
MYPATHS = include/ general/ sound/ widgets/ global/ dialogs/
MYPATHS += widgets/mainwindow widgets/freq widgets/summary widgets/pitchcompass widgets/openfiles widgets/volumemeter widgets/tuner widgets/hblock widgets/hstack widgets/wave widgets/piano widgets/htrack widgets/correlation widgets/fft widgets/cepstrum widgets/hbubble widgets/hcircle widgets/debugview widgets/score widgets/vibrato sound/filters
INCLUDEPATH += $$MYPATHS
DEPENDPATH += $$MYPATHS
unix{
debug {
OBJECTS_DIR=.debug_obj
MOC_DIR=.debug_moc
}
release {
OBJECTS_DIR=.obj
MOC_DIR=.moc
}
macx{
#INCLUDEPATH += macx/
#DEPENDPATH += macx/
#HEADERS += macx/audio_stream.h
#SOURCES += macx/audio_stream.cpp
INCLUDEPATH += rtAudio/
DEPENDPATH += rtAudio/
HEADERS += rtAudio/audio_stream.h rtAudio/RtAudio.h rtAudio/RtError.h
SOURCES += rtAudio/audio_stream.cpp rtAudio/rtAudio.cpp
QMAKE_LFLAGS_SONAME = -W1,-install_name,@executable_path/..Frameworks/
INCLUDEPATH += $$MY_INCLUDE_PATH
LIBS += -framework CoreAudio $$MY_LIB_PATH -lfftw3f -lqwt
# -framework CoreFoundation -framework ApplicationServices -framework CoreData -framework System -framework Carbon -framework CoreServices -framework AppKit -framework AGL -framework Quartz -framework Foundation
RC_FILE = icons/pitch.icns
DEFINES += MACX
DEFINES += __MACOSX_CORE__
#CONFIG += link_prl
#CONFIG += static
#REQUIRES = full-config
#QMAKE_CXXFLAGS += -fast -mcpu=7450
#QMAKE_CXXFLAGS_RELEASE -= -Os
QMAKE_CXXFLAGS_RELEASE += -O2
#CONFIG += ppc
}
else{ #linux
#old sound library routines
#INCLUDEPATH += unix/
#DEPENDPATH += unix/
#HEADERS += unix/audio_stream.h
#SOURCES += unix/audio_stream.cpp
#RtAudio sound library routines
INCLUDEPATH += rtAudio/
DEPENDPATH += rtAudio/
HEADERS += rtAudio/audio_stream.h rtAudio/RtAudio.h rtAudio/RtError.h
SOURCES += rtAudio/audio_stream.cpp rtAudio/rtAudio.cpp
DEFINES += __LINUX_OSS__
DEFINES += __LINUX_ALSA__
#DEFINES += __LINUX_JACK__ #Uncomment to use Jack. Note untested.
DEFINES += LINUX
INCLUDEPATH += $$MY_INCLUDE_PATH
LIBS += $$MY_LIB_PATH -lfftw3f -lqwt -lasound
CONFIG += warn_off
QMAKE_CXXFLAGS += -Wall -Wno-non-virtual-dtor
QMAKE_CXXFLAGS -= -g
profile {
QMAKE_CXXFLAGS += -pg
QMAKE_LFLAGS += -pg
}
}
}
win32{
INCLUDEPATH += $$MY_INCLUDE_PATH
#to use windows MM sound libries uncomment the following block
INCLUDEPATH += "./" windows/
DEPENDPATH += windows/
HEADERS += windows/audio_stream.h
SOURCES += windows/audio_stream.cpp
LIBS += -lwinmm
#to use rtAudio uncomment the following block
#INCLUDEPATH += rtAudio/
#DEPENDPATH += rtAudio/
#HEADERS += rtAudio/audio_stream.h rtAudio/RtAudio.h rtAudio/RtError.h
#SOURCES += rtAudio/audio_stream.cpp
##DEFINES += __WINDOWS_DS__ #untested under MinGW
#DEFINES += __WINDOWS_ASIO__ #tested successfully. Note requires ASIO sound drivers
#SOURCES += asio/asio.cpp asio/asiodrivers.cpp asio/asiolist.cpp asio/iasiothiscallresolver.cpp
DEFINES += WINDOWS
REQUIRES += thread
LIBS += $$MY_LIB_PATH -lqwt5 -lfftw3f-3 -lole32
#DEFINES += QT_DLL QT_THREAD_SUPPORT
DEFINES -= UNICODE #I think some things broke without this?
}
debug{
DEFINES += MYDEBUG
}
QT += opengl qt3support
CONFIG += uic
UI_DIR = dialogs