react-native-tuner-engine 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +20 -0
- package/README.md +188 -0
- package/TunerEngine.podspec +32 -0
- package/android/build.gradle +86 -0
- package/android/src/main/AndroidManifest.xml +3 -0
- package/android/src/main/cpp/CMakeLists.txt +31 -0
- package/android/src/main/cpp/OboeAudioSource.cpp +101 -0
- package/android/src/main/cpp/OboeAudioSource.h +41 -0
- package/android/src/main/cpp/TunerEngineJni.cpp +220 -0
- package/android/src/main/java/com/tunerengine/TunerEngineModule.kt +183 -0
- package/android/src/main/java/com/tunerengine/TunerEnginePackage.kt +31 -0
- package/cpp/CMakeLists.txt +25 -0
- package/cpp/build/CMakeCache.txt +347 -0
- package/cpp/build/CMakeFiles/4.3.2/CMakeCXXCompiler.cmake +102 -0
- package/cpp/build/CMakeFiles/4.3.2/CMakeDetermineCompilerABI_CXX.bin +0 -0
- package/cpp/build/CMakeFiles/4.3.2/CMakeSystem.cmake +15 -0
- package/cpp/build/CMakeFiles/4.3.2/CompilerIdCXX/CMakeCXXCompilerId.cpp +949 -0
- package/cpp/build/CMakeFiles/4.3.2/CompilerIdCXX/a.out +0 -0
- package/cpp/build/CMakeFiles/4.3.2/CompilerIdCXX/apple-sdk.cpp +1 -0
- package/cpp/build/CMakeFiles/CMakeConfigureLog.yaml +1619 -0
- package/cpp/build/CMakeFiles/CMakeDirectoryInformation.cmake +16 -0
- package/cpp/build/CMakeFiles/InstallScripts.json +7 -0
- package/cpp/build/CMakeFiles/Makefile.cmake +118 -0
- package/cpp/build/CMakeFiles/Makefile2 +122 -0
- package/cpp/build/CMakeFiles/TargetDirectories.txt +3 -0
- package/cpp/build/CMakeFiles/cmake.check_cache +1 -0
- package/cpp/build/CMakeFiles/progress.marks +1 -0
- package/cpp/build/CMakeFiles/tuner_engine_core.dir/DependInfo.cmake +36 -0
- package/cpp/build/CMakeFiles/tuner_engine_core.dir/build.make +322 -0
- package/cpp/build/CMakeFiles/tuner_engine_core.dir/cmake_clean.cmake +37 -0
- package/cpp/build/CMakeFiles/tuner_engine_core.dir/cmake_clean_target.cmake +3 -0
- package/cpp/build/CMakeFiles/tuner_engine_core.dir/compiler_depend.make +2 -0
- package/cpp/build/CMakeFiles/tuner_engine_core.dir/compiler_depend.ts +2 -0
- package/cpp/build/CMakeFiles/tuner_engine_core.dir/depend.make +2 -0
- package/cpp/build/CMakeFiles/tuner_engine_core.dir/flags.make +12 -0
- package/cpp/build/CMakeFiles/tuner_engine_core.dir/link.txt +2 -0
- package/cpp/build/CMakeFiles/tuner_engine_core.dir/progress.make +16 -0
- package/cpp/build/CMakeFiles/tuner_engine_core.dir/src/AudioFrameDispatcher.cpp.o +0 -0
- package/cpp/build/CMakeFiles/tuner_engine_core.dir/src/AudioFrameDispatcher.cpp.o.d +814 -0
- package/cpp/build/CMakeFiles/tuner_engine_core.dir/src/BiquadHpf.cpp.o +0 -0
- package/cpp/build/CMakeFiles/tuner_engine_core.dir/src/BiquadHpf.cpp.o.d +206 -0
- package/cpp/build/CMakeFiles/tuner_engine_core.dir/src/CepstrumPitchDetector.cpp.o +0 -0
- package/cpp/build/CMakeFiles/tuner_engine_core.dir/src/CepstrumPitchDetector.cpp.o.d +797 -0
- package/cpp/build/CMakeFiles/tuner_engine_core.dir/src/EnsembleSelector.cpp.o +0 -0
- package/cpp/build/CMakeFiles/tuner_engine_core.dir/src/EnsembleSelector.cpp.o.d +755 -0
- package/cpp/build/CMakeFiles/tuner_engine_core.dir/src/NoteMapper.cpp.o +0 -0
- package/cpp/build/CMakeFiles/tuner_engine_core.dir/src/NoteMapper.cpp.o.d +669 -0
- package/cpp/build/CMakeFiles/tuner_engine_core.dir/src/OnsetDetector.cpp.o +0 -0
- package/cpp/build/CMakeFiles/tuner_engine_core.dir/src/OnsetDetector.cpp.o.d +648 -0
- package/cpp/build/CMakeFiles/tuner_engine_core.dir/src/Pipeline.cpp.o +0 -0
- package/cpp/build/CMakeFiles/tuner_engine_core.dir/src/Pipeline.cpp.o.d +765 -0
- package/cpp/build/CMakeFiles/tuner_engine_core.dir/src/PostProcessor.cpp.o +0 -0
- package/cpp/build/CMakeFiles/tuner_engine_core.dir/src/PostProcessor.cpp.o.d +648 -0
- package/cpp/build/CMakeFiles/tuner_engine_core.dir/src/PyinPitchDetector.cpp.o +0 -0
- package/cpp/build/CMakeFiles/tuner_engine_core.dir/src/PyinPitchDetector.cpp.o.d +755 -0
- package/cpp/build/CMakeFiles/tuner_engine_core.dir/src/SnrEstimator.cpp.o +0 -0
- package/cpp/build/CMakeFiles/tuner_engine_core.dir/src/SnrEstimator.cpp.o.d +648 -0
- package/cpp/build/CMakeFiles/tuner_engine_core.dir/src/StringMatcher.cpp.o +0 -0
- package/cpp/build/CMakeFiles/tuner_engine_core.dir/src/StringMatcher.cpp.o.d +665 -0
- package/cpp/build/CMakeFiles/tuner_engine_core.dir/src/TunerEngine.cpp.o +0 -0
- package/cpp/build/CMakeFiles/tuner_engine_core.dir/src/TunerEngine.cpp.o.d +811 -0
- package/cpp/build/CMakeFiles/tuner_engine_core.dir/src/Window.cpp.o +0 -0
- package/cpp/build/CMakeFiles/tuner_engine_core.dir/src/Window.cpp.o.d +754 -0
- package/cpp/build/CMakeFiles/tuner_engine_core.dir/src/YinPitchDetector.cpp.o +0 -0
- package/cpp/build/CMakeFiles/tuner_engine_core.dir/src/YinPitchDetector.cpp.o.d +755 -0
- package/cpp/build/Makefile +532 -0
- package/cpp/build/cmake_install.cmake +61 -0
- package/cpp/build/libtuner_engine_core.a +0 -0
- package/cpp/include/AudioFrameDispatcher.hpp +87 -0
- package/cpp/include/BiquadHpf.hpp +22 -0
- package/cpp/include/CepstrumPitchDetector.hpp +33 -0
- package/cpp/include/EnsembleSelector.hpp +25 -0
- package/cpp/include/Fft.hpp +44 -0
- package/cpp/include/IPitchDetector.hpp +21 -0
- package/cpp/include/InstrumentPresets.hpp +33 -0
- package/cpp/include/NoteMapper.hpp +15 -0
- package/cpp/include/OnsetDetector.hpp +37 -0
- package/cpp/include/Pipeline.hpp +55 -0
- package/cpp/include/PitchResult.hpp +24 -0
- package/cpp/include/PostProcessor.hpp +51 -0
- package/cpp/include/PyinPitchDetector.hpp +35 -0
- package/cpp/include/RingBuffer.hpp +72 -0
- package/cpp/include/SnrEstimator.hpp +21 -0
- package/cpp/include/StringMatcher.hpp +27 -0
- package/cpp/include/TunerEngine.hpp +32 -0
- package/cpp/include/TuningPresets.hpp +103 -0
- package/cpp/include/Window.hpp +13 -0
- package/cpp/include/YinPitchDetector.hpp +37 -0
- package/cpp/src/AudioFrameDispatcher.cpp +180 -0
- package/cpp/src/BiquadHpf.cpp +35 -0
- package/cpp/src/CepstrumPitchDetector.cpp +116 -0
- package/cpp/src/EnsembleSelector.cpp +91 -0
- package/cpp/src/NoteMapper.cpp +47 -0
- package/cpp/src/OnsetDetector.cpp +39 -0
- package/cpp/src/Pipeline.cpp +133 -0
- package/cpp/src/PostProcessor.cpp +111 -0
- package/cpp/src/PyinPitchDetector.cpp +134 -0
- package/cpp/src/SnrEstimator.cpp +33 -0
- package/cpp/src/StringMatcher.cpp +37 -0
- package/cpp/src/TunerEngine.cpp +67 -0
- package/cpp/src/Window.cpp +21 -0
- package/cpp/src/YinPitchDetector.cpp +118 -0
- package/cpp/tests/CMakeLists.txt +23 -0
- package/cpp/tests/bench.cpp +160 -0
- package/cpp/tests/build/CMakeCache.txt +356 -0
- package/cpp/tests/build/CMakeFiles/4.3.2/CMakeCXXCompiler.cmake +102 -0
- package/cpp/tests/build/CMakeFiles/4.3.2/CMakeDetermineCompilerABI_CXX.bin +0 -0
- package/cpp/tests/build/CMakeFiles/4.3.2/CMakeSystem.cmake +15 -0
- package/cpp/tests/build/CMakeFiles/4.3.2/CompilerIdCXX/CMakeCXXCompilerId.cpp +949 -0
- package/cpp/tests/build/CMakeFiles/4.3.2/CompilerIdCXX/a.out +0 -0
- package/cpp/tests/build/CMakeFiles/4.3.2/CompilerIdCXX/apple-sdk.cpp +1 -0
- package/cpp/tests/build/CMakeFiles/CMakeConfigureLog.yaml +1619 -0
- package/cpp/tests/build/CMakeFiles/CMakeDirectoryInformation.cmake +16 -0
- package/cpp/tests/build/CMakeFiles/InstallScripts.json +8 -0
- package/cpp/tests/build/CMakeFiles/Makefile.cmake +122 -0
- package/cpp/tests/build/CMakeFiles/Makefile2 +211 -0
- package/cpp/tests/build/CMakeFiles/TargetDirectories.txt +9 -0
- package/cpp/tests/build/CMakeFiles/cmake.check_cache +1 -0
- package/cpp/tests/build/CMakeFiles/progress.marks +1 -0
- package/cpp/tests/build/CMakeFiles/tuner_engine_bench.dir/DependInfo.cmake +23 -0
- package/cpp/tests/build/CMakeFiles/tuner_engine_bench.dir/bench.cpp.o +0 -0
- package/cpp/tests/build/CMakeFiles/tuner_engine_bench.dir/bench.cpp.o.d +813 -0
- package/cpp/tests/build/CMakeFiles/tuner_engine_bench.dir/build.make +114 -0
- package/cpp/tests/build/CMakeFiles/tuner_engine_bench.dir/cmake_clean.cmake +11 -0
- package/cpp/tests/build/CMakeFiles/tuner_engine_bench.dir/compiler_depend.make +2 -0
- package/cpp/tests/build/CMakeFiles/tuner_engine_bench.dir/compiler_depend.ts +2 -0
- package/cpp/tests/build/CMakeFiles/tuner_engine_bench.dir/depend.make +2 -0
- package/cpp/tests/build/CMakeFiles/tuner_engine_bench.dir/flags.make +12 -0
- package/cpp/tests/build/CMakeFiles/tuner_engine_bench.dir/link.txt +1 -0
- package/cpp/tests/build/CMakeFiles/tuner_engine_bench.dir/progress.make +3 -0
- package/cpp/tests/build/CMakeFiles/tuner_engine_tests.dir/DependInfo.cmake +23 -0
- package/cpp/tests/build/CMakeFiles/tuner_engine_tests.dir/build.make +114 -0
- package/cpp/tests/build/CMakeFiles/tuner_engine_tests.dir/cmake_clean.cmake +11 -0
- package/cpp/tests/build/CMakeFiles/tuner_engine_tests.dir/compiler_depend.make +2 -0
- package/cpp/tests/build/CMakeFiles/tuner_engine_tests.dir/compiler_depend.ts +2 -0
- package/cpp/tests/build/CMakeFiles/tuner_engine_tests.dir/depend.make +2 -0
- package/cpp/tests/build/CMakeFiles/tuner_engine_tests.dir/flags.make +12 -0
- package/cpp/tests/build/CMakeFiles/tuner_engine_tests.dir/link.txt +1 -0
- package/cpp/tests/build/CMakeFiles/tuner_engine_tests.dir/main.cpp.o +0 -0
- package/cpp/tests/build/CMakeFiles/tuner_engine_tests.dir/main.cpp.o.d +823 -0
- package/cpp/tests/build/CMakeFiles/tuner_engine_tests.dir/progress.make +3 -0
- package/cpp/tests/build/CTestTestfile.cmake +9 -0
- package/cpp/tests/build/Makefile +247 -0
- package/cpp/tests/build/cmake_install.cmake +66 -0
- package/cpp/tests/build/tuner_engine_bench +0 -0
- package/cpp/tests/build/tuner_engine_core/CMakeFiles/CMakeDirectoryInformation.cmake +16 -0
- package/cpp/tests/build/tuner_engine_core/CMakeFiles/progress.marks +1 -0
- package/cpp/tests/build/tuner_engine_core/CMakeFiles/tuner_engine_core.dir/DependInfo.cmake +36 -0
- package/cpp/tests/build/tuner_engine_core/CMakeFiles/tuner_engine_core.dir/build.make +322 -0
- package/cpp/tests/build/tuner_engine_core/CMakeFiles/tuner_engine_core.dir/cmake_clean.cmake +37 -0
- package/cpp/tests/build/tuner_engine_core/CMakeFiles/tuner_engine_core.dir/cmake_clean_target.cmake +3 -0
- package/cpp/tests/build/tuner_engine_core/CMakeFiles/tuner_engine_core.dir/compiler_depend.make +2 -0
- package/cpp/tests/build/tuner_engine_core/CMakeFiles/tuner_engine_core.dir/compiler_depend.ts +2 -0
- package/cpp/tests/build/tuner_engine_core/CMakeFiles/tuner_engine_core.dir/depend.make +2 -0
- package/cpp/tests/build/tuner_engine_core/CMakeFiles/tuner_engine_core.dir/flags.make +12 -0
- package/cpp/tests/build/tuner_engine_core/CMakeFiles/tuner_engine_core.dir/link.txt +2 -0
- package/cpp/tests/build/tuner_engine_core/CMakeFiles/tuner_engine_core.dir/progress.make +16 -0
- package/cpp/tests/build/tuner_engine_core/CMakeFiles/tuner_engine_core.dir/src/AudioFrameDispatcher.cpp.o +0 -0
- package/cpp/tests/build/tuner_engine_core/CMakeFiles/tuner_engine_core.dir/src/AudioFrameDispatcher.cpp.o.d +814 -0
- package/cpp/tests/build/tuner_engine_core/CMakeFiles/tuner_engine_core.dir/src/BiquadHpf.cpp.o +0 -0
- package/cpp/tests/build/tuner_engine_core/CMakeFiles/tuner_engine_core.dir/src/BiquadHpf.cpp.o.d +206 -0
- package/cpp/tests/build/tuner_engine_core/CMakeFiles/tuner_engine_core.dir/src/CepstrumPitchDetector.cpp.o +0 -0
- package/cpp/tests/build/tuner_engine_core/CMakeFiles/tuner_engine_core.dir/src/CepstrumPitchDetector.cpp.o.d +797 -0
- package/cpp/tests/build/tuner_engine_core/CMakeFiles/tuner_engine_core.dir/src/EnsembleSelector.cpp.o +0 -0
- package/cpp/tests/build/tuner_engine_core/CMakeFiles/tuner_engine_core.dir/src/EnsembleSelector.cpp.o.d +755 -0
- package/cpp/tests/build/tuner_engine_core/CMakeFiles/tuner_engine_core.dir/src/NoteMapper.cpp.o +0 -0
- package/cpp/tests/build/tuner_engine_core/CMakeFiles/tuner_engine_core.dir/src/NoteMapper.cpp.o.d +669 -0
- package/cpp/tests/build/tuner_engine_core/CMakeFiles/tuner_engine_core.dir/src/OnsetDetector.cpp.o +0 -0
- package/cpp/tests/build/tuner_engine_core/CMakeFiles/tuner_engine_core.dir/src/OnsetDetector.cpp.o.d +648 -0
- package/cpp/tests/build/tuner_engine_core/CMakeFiles/tuner_engine_core.dir/src/Pipeline.cpp.o +0 -0
- package/cpp/tests/build/tuner_engine_core/CMakeFiles/tuner_engine_core.dir/src/Pipeline.cpp.o.d +765 -0
- package/cpp/tests/build/tuner_engine_core/CMakeFiles/tuner_engine_core.dir/src/PostProcessor.cpp.o +0 -0
- package/cpp/tests/build/tuner_engine_core/CMakeFiles/tuner_engine_core.dir/src/PostProcessor.cpp.o.d +648 -0
- package/cpp/tests/build/tuner_engine_core/CMakeFiles/tuner_engine_core.dir/src/PyinPitchDetector.cpp.o +0 -0
- package/cpp/tests/build/tuner_engine_core/CMakeFiles/tuner_engine_core.dir/src/PyinPitchDetector.cpp.o.d +755 -0
- package/cpp/tests/build/tuner_engine_core/CMakeFiles/tuner_engine_core.dir/src/SnrEstimator.cpp.o +0 -0
- package/cpp/tests/build/tuner_engine_core/CMakeFiles/tuner_engine_core.dir/src/SnrEstimator.cpp.o.d +648 -0
- package/cpp/tests/build/tuner_engine_core/CMakeFiles/tuner_engine_core.dir/src/StringMatcher.cpp.o +0 -0
- package/cpp/tests/build/tuner_engine_core/CMakeFiles/tuner_engine_core.dir/src/StringMatcher.cpp.o.d +665 -0
- package/cpp/tests/build/tuner_engine_core/CMakeFiles/tuner_engine_core.dir/src/TunerEngine.cpp.o +0 -0
- package/cpp/tests/build/tuner_engine_core/CMakeFiles/tuner_engine_core.dir/src/TunerEngine.cpp.o.d +811 -0
- package/cpp/tests/build/tuner_engine_core/CMakeFiles/tuner_engine_core.dir/src/Window.cpp.o +0 -0
- package/cpp/tests/build/tuner_engine_core/CMakeFiles/tuner_engine_core.dir/src/Window.cpp.o.d +754 -0
- package/cpp/tests/build/tuner_engine_core/CMakeFiles/tuner_engine_core.dir/src/YinPitchDetector.cpp.o +0 -0
- package/cpp/tests/build/tuner_engine_core/CMakeFiles/tuner_engine_core.dir/src/YinPitchDetector.cpp.o.d +755 -0
- package/cpp/tests/build/tuner_engine_core/Makefile +544 -0
- package/cpp/tests/build/tuner_engine_core/cmake_install.cmake +45 -0
- package/cpp/tests/build/tuner_engine_core/libtuner_engine_core.a +0 -0
- package/cpp/tests/build/tuner_engine_tests +0 -0
- package/cpp/tests/main.cpp +624 -0
- package/ios/IosAudioSource.h +23 -0
- package/ios/IosAudioSource.mm +174 -0
- package/ios/TunerBridge.h +24 -0
- package/ios/TunerBridge.mm +136 -0
- package/ios/TunerEngine.h +6 -0
- package/ios/TunerEngine.mm +144 -0
- package/lib/module/NativeTunerEngine.js +5 -0
- package/lib/module/NativeTunerEngine.js.map +1 -0
- package/lib/module/TunerEngine.js +43 -0
- package/lib/module/TunerEngine.js.map +1 -0
- package/lib/module/index.js +5 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/package.json +1 -0
- package/lib/module/types.js +2 -0
- package/lib/module/types.js.map +1 -0
- package/lib/module/useTuner.js +55 -0
- package/lib/module/useTuner.js.map +1 -0
- package/lib/typescript/package.json +1 -0
- package/lib/typescript/src/NativeTunerEngine.d.ts +17 -0
- package/lib/typescript/src/NativeTunerEngine.d.ts.map +1 -0
- package/lib/typescript/src/TunerEngine.d.ts +18 -0
- package/lib/typescript/src/TunerEngine.d.ts.map +1 -0
- package/lib/typescript/src/index.d.ts +4 -0
- package/lib/typescript/src/index.d.ts.map +1 -0
- package/lib/typescript/src/types.d.ts +86 -0
- package/lib/typescript/src/types.d.ts.map +1 -0
- package/lib/typescript/src/useTuner.d.ts +15 -0
- package/lib/typescript/src/useTuner.d.ts.map +1 -0
- package/package.json +141 -0
- package/src/NativeTunerEngine.ts +17 -0
- package/src/TunerEngine.ts +62 -0
- package/src/index.tsx +11 -0
- package/src/types.ts +109 -0
- package/src/useTuner.ts +67 -0
|
@@ -0,0 +1,532 @@
|
|
|
1
|
+
# CMAKE generated file: DO NOT EDIT!
|
|
2
|
+
# Generated by "Unix Makefiles" Generator, CMake Version 4.3
|
|
3
|
+
|
|
4
|
+
# Default target executed when no arguments are given to make.
|
|
5
|
+
default_target: all
|
|
6
|
+
.PHONY : default_target
|
|
7
|
+
|
|
8
|
+
# Allow only one "make -f Makefile2" at a time, but pass parallelism.
|
|
9
|
+
.NOTPARALLEL:
|
|
10
|
+
|
|
11
|
+
#=============================================================================
|
|
12
|
+
# Special targets provided by cmake.
|
|
13
|
+
|
|
14
|
+
# Disable implicit rules so canonical targets will work.
|
|
15
|
+
.SUFFIXES:
|
|
16
|
+
|
|
17
|
+
# Disable VCS-based implicit rules.
|
|
18
|
+
% : %,v
|
|
19
|
+
|
|
20
|
+
# Disable VCS-based implicit rules.
|
|
21
|
+
% : RCS/%
|
|
22
|
+
|
|
23
|
+
# Disable VCS-based implicit rules.
|
|
24
|
+
% : RCS/%,v
|
|
25
|
+
|
|
26
|
+
# Disable VCS-based implicit rules.
|
|
27
|
+
% : SCCS/s.%
|
|
28
|
+
|
|
29
|
+
# Disable VCS-based implicit rules.
|
|
30
|
+
% : s.%
|
|
31
|
+
|
|
32
|
+
.SUFFIXES: .hpux_make_needs_suffix_list
|
|
33
|
+
|
|
34
|
+
# Command-line flag to silence nested $(MAKE).
|
|
35
|
+
$(VERBOSE)MAKESILENT = -s
|
|
36
|
+
|
|
37
|
+
#Suppress display of executed commands.
|
|
38
|
+
$(VERBOSE).SILENT:
|
|
39
|
+
|
|
40
|
+
# A target that is always out of date.
|
|
41
|
+
cmake_force:
|
|
42
|
+
.PHONY : cmake_force
|
|
43
|
+
|
|
44
|
+
#=============================================================================
|
|
45
|
+
# Set environment variables for the build.
|
|
46
|
+
|
|
47
|
+
# The shell in which to execute make rules.
|
|
48
|
+
SHELL = /bin/sh
|
|
49
|
+
|
|
50
|
+
# The CMake executable.
|
|
51
|
+
CMAKE_COMMAND = /opt/homebrew/bin/cmake
|
|
52
|
+
|
|
53
|
+
# The command to remove a file.
|
|
54
|
+
RM = /opt/homebrew/bin/cmake -E rm -f
|
|
55
|
+
|
|
56
|
+
# Escaping for special characters.
|
|
57
|
+
EQUALS = =
|
|
58
|
+
|
|
59
|
+
# The top-level source directory on which CMake was run.
|
|
60
|
+
CMAKE_SOURCE_DIR = /Users/deniz.yesilirmak/Documents/personal/react-native-tuner-engine/cpp
|
|
61
|
+
|
|
62
|
+
# The top-level build directory on which CMake was run.
|
|
63
|
+
CMAKE_BINARY_DIR = /Users/deniz.yesilirmak/Documents/personal/react-native-tuner-engine/cpp/build
|
|
64
|
+
|
|
65
|
+
#=============================================================================
|
|
66
|
+
# Targets provided globally by CMake.
|
|
67
|
+
|
|
68
|
+
# Special rule for the target edit_cache
|
|
69
|
+
edit_cache:
|
|
70
|
+
@$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Running CMake cache editor..."
|
|
71
|
+
/opt/homebrew/bin/ccmake -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR)
|
|
72
|
+
.PHONY : edit_cache
|
|
73
|
+
|
|
74
|
+
# Special rule for the target edit_cache
|
|
75
|
+
edit_cache/fast: edit_cache
|
|
76
|
+
.PHONY : edit_cache/fast
|
|
77
|
+
|
|
78
|
+
# Special rule for the target rebuild_cache
|
|
79
|
+
rebuild_cache:
|
|
80
|
+
@$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Running CMake to regenerate build system..."
|
|
81
|
+
/opt/homebrew/bin/cmake --regenerate-during-build -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR)
|
|
82
|
+
.PHONY : rebuild_cache
|
|
83
|
+
|
|
84
|
+
# Special rule for the target rebuild_cache
|
|
85
|
+
rebuild_cache/fast: rebuild_cache
|
|
86
|
+
.PHONY : rebuild_cache/fast
|
|
87
|
+
|
|
88
|
+
# The main all target
|
|
89
|
+
all: cmake_check_build_system
|
|
90
|
+
$(CMAKE_COMMAND) -E cmake_progress_start /Users/deniz.yesilirmak/Documents/personal/react-native-tuner-engine/cpp/build/CMakeFiles /Users/deniz.yesilirmak/Documents/personal/react-native-tuner-engine/cpp/build//CMakeFiles/progress.marks
|
|
91
|
+
$(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 all
|
|
92
|
+
$(CMAKE_COMMAND) -E cmake_progress_start /Users/deniz.yesilirmak/Documents/personal/react-native-tuner-engine/cpp/build/CMakeFiles 0
|
|
93
|
+
.PHONY : all
|
|
94
|
+
|
|
95
|
+
# The main clean target
|
|
96
|
+
clean:
|
|
97
|
+
$(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 clean
|
|
98
|
+
.PHONY : clean
|
|
99
|
+
|
|
100
|
+
# The main clean target
|
|
101
|
+
clean/fast: clean
|
|
102
|
+
.PHONY : clean/fast
|
|
103
|
+
|
|
104
|
+
# Prepare targets for installation.
|
|
105
|
+
preinstall: all
|
|
106
|
+
$(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 preinstall
|
|
107
|
+
.PHONY : preinstall
|
|
108
|
+
|
|
109
|
+
# Prepare targets for installation.
|
|
110
|
+
preinstall/fast:
|
|
111
|
+
$(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 preinstall
|
|
112
|
+
.PHONY : preinstall/fast
|
|
113
|
+
|
|
114
|
+
# clear depends
|
|
115
|
+
depend:
|
|
116
|
+
$(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1
|
|
117
|
+
.PHONY : depend
|
|
118
|
+
|
|
119
|
+
#=============================================================================
|
|
120
|
+
# Target rules for targets named tuner_engine_core
|
|
121
|
+
|
|
122
|
+
# Build rule for target.
|
|
123
|
+
tuner_engine_core: cmake_check_build_system
|
|
124
|
+
$(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 tuner_engine_core
|
|
125
|
+
.PHONY : tuner_engine_core
|
|
126
|
+
|
|
127
|
+
# fast build rule for target.
|
|
128
|
+
tuner_engine_core/fast:
|
|
129
|
+
$(MAKE) $(MAKESILENT) -f CMakeFiles/tuner_engine_core.dir/build.make CMakeFiles/tuner_engine_core.dir/build
|
|
130
|
+
.PHONY : tuner_engine_core/fast
|
|
131
|
+
|
|
132
|
+
src/AudioFrameDispatcher.o: src/AudioFrameDispatcher.cpp.o
|
|
133
|
+
.PHONY : src/AudioFrameDispatcher.o
|
|
134
|
+
|
|
135
|
+
# target to build an object file
|
|
136
|
+
src/AudioFrameDispatcher.cpp.o:
|
|
137
|
+
$(MAKE) $(MAKESILENT) -f CMakeFiles/tuner_engine_core.dir/build.make CMakeFiles/tuner_engine_core.dir/src/AudioFrameDispatcher.cpp.o
|
|
138
|
+
.PHONY : src/AudioFrameDispatcher.cpp.o
|
|
139
|
+
|
|
140
|
+
src/AudioFrameDispatcher.i: src/AudioFrameDispatcher.cpp.i
|
|
141
|
+
.PHONY : src/AudioFrameDispatcher.i
|
|
142
|
+
|
|
143
|
+
# target to preprocess a source file
|
|
144
|
+
src/AudioFrameDispatcher.cpp.i:
|
|
145
|
+
$(MAKE) $(MAKESILENT) -f CMakeFiles/tuner_engine_core.dir/build.make CMakeFiles/tuner_engine_core.dir/src/AudioFrameDispatcher.cpp.i
|
|
146
|
+
.PHONY : src/AudioFrameDispatcher.cpp.i
|
|
147
|
+
|
|
148
|
+
src/AudioFrameDispatcher.s: src/AudioFrameDispatcher.cpp.s
|
|
149
|
+
.PHONY : src/AudioFrameDispatcher.s
|
|
150
|
+
|
|
151
|
+
# target to generate assembly for a file
|
|
152
|
+
src/AudioFrameDispatcher.cpp.s:
|
|
153
|
+
$(MAKE) $(MAKESILENT) -f CMakeFiles/tuner_engine_core.dir/build.make CMakeFiles/tuner_engine_core.dir/src/AudioFrameDispatcher.cpp.s
|
|
154
|
+
.PHONY : src/AudioFrameDispatcher.cpp.s
|
|
155
|
+
|
|
156
|
+
src/BiquadHpf.o: src/BiquadHpf.cpp.o
|
|
157
|
+
.PHONY : src/BiquadHpf.o
|
|
158
|
+
|
|
159
|
+
# target to build an object file
|
|
160
|
+
src/BiquadHpf.cpp.o:
|
|
161
|
+
$(MAKE) $(MAKESILENT) -f CMakeFiles/tuner_engine_core.dir/build.make CMakeFiles/tuner_engine_core.dir/src/BiquadHpf.cpp.o
|
|
162
|
+
.PHONY : src/BiquadHpf.cpp.o
|
|
163
|
+
|
|
164
|
+
src/BiquadHpf.i: src/BiquadHpf.cpp.i
|
|
165
|
+
.PHONY : src/BiquadHpf.i
|
|
166
|
+
|
|
167
|
+
# target to preprocess a source file
|
|
168
|
+
src/BiquadHpf.cpp.i:
|
|
169
|
+
$(MAKE) $(MAKESILENT) -f CMakeFiles/tuner_engine_core.dir/build.make CMakeFiles/tuner_engine_core.dir/src/BiquadHpf.cpp.i
|
|
170
|
+
.PHONY : src/BiquadHpf.cpp.i
|
|
171
|
+
|
|
172
|
+
src/BiquadHpf.s: src/BiquadHpf.cpp.s
|
|
173
|
+
.PHONY : src/BiquadHpf.s
|
|
174
|
+
|
|
175
|
+
# target to generate assembly for a file
|
|
176
|
+
src/BiquadHpf.cpp.s:
|
|
177
|
+
$(MAKE) $(MAKESILENT) -f CMakeFiles/tuner_engine_core.dir/build.make CMakeFiles/tuner_engine_core.dir/src/BiquadHpf.cpp.s
|
|
178
|
+
.PHONY : src/BiquadHpf.cpp.s
|
|
179
|
+
|
|
180
|
+
src/CepstrumPitchDetector.o: src/CepstrumPitchDetector.cpp.o
|
|
181
|
+
.PHONY : src/CepstrumPitchDetector.o
|
|
182
|
+
|
|
183
|
+
# target to build an object file
|
|
184
|
+
src/CepstrumPitchDetector.cpp.o:
|
|
185
|
+
$(MAKE) $(MAKESILENT) -f CMakeFiles/tuner_engine_core.dir/build.make CMakeFiles/tuner_engine_core.dir/src/CepstrumPitchDetector.cpp.o
|
|
186
|
+
.PHONY : src/CepstrumPitchDetector.cpp.o
|
|
187
|
+
|
|
188
|
+
src/CepstrumPitchDetector.i: src/CepstrumPitchDetector.cpp.i
|
|
189
|
+
.PHONY : src/CepstrumPitchDetector.i
|
|
190
|
+
|
|
191
|
+
# target to preprocess a source file
|
|
192
|
+
src/CepstrumPitchDetector.cpp.i:
|
|
193
|
+
$(MAKE) $(MAKESILENT) -f CMakeFiles/tuner_engine_core.dir/build.make CMakeFiles/tuner_engine_core.dir/src/CepstrumPitchDetector.cpp.i
|
|
194
|
+
.PHONY : src/CepstrumPitchDetector.cpp.i
|
|
195
|
+
|
|
196
|
+
src/CepstrumPitchDetector.s: src/CepstrumPitchDetector.cpp.s
|
|
197
|
+
.PHONY : src/CepstrumPitchDetector.s
|
|
198
|
+
|
|
199
|
+
# target to generate assembly for a file
|
|
200
|
+
src/CepstrumPitchDetector.cpp.s:
|
|
201
|
+
$(MAKE) $(MAKESILENT) -f CMakeFiles/tuner_engine_core.dir/build.make CMakeFiles/tuner_engine_core.dir/src/CepstrumPitchDetector.cpp.s
|
|
202
|
+
.PHONY : src/CepstrumPitchDetector.cpp.s
|
|
203
|
+
|
|
204
|
+
src/EnsembleSelector.o: src/EnsembleSelector.cpp.o
|
|
205
|
+
.PHONY : src/EnsembleSelector.o
|
|
206
|
+
|
|
207
|
+
# target to build an object file
|
|
208
|
+
src/EnsembleSelector.cpp.o:
|
|
209
|
+
$(MAKE) $(MAKESILENT) -f CMakeFiles/tuner_engine_core.dir/build.make CMakeFiles/tuner_engine_core.dir/src/EnsembleSelector.cpp.o
|
|
210
|
+
.PHONY : src/EnsembleSelector.cpp.o
|
|
211
|
+
|
|
212
|
+
src/EnsembleSelector.i: src/EnsembleSelector.cpp.i
|
|
213
|
+
.PHONY : src/EnsembleSelector.i
|
|
214
|
+
|
|
215
|
+
# target to preprocess a source file
|
|
216
|
+
src/EnsembleSelector.cpp.i:
|
|
217
|
+
$(MAKE) $(MAKESILENT) -f CMakeFiles/tuner_engine_core.dir/build.make CMakeFiles/tuner_engine_core.dir/src/EnsembleSelector.cpp.i
|
|
218
|
+
.PHONY : src/EnsembleSelector.cpp.i
|
|
219
|
+
|
|
220
|
+
src/EnsembleSelector.s: src/EnsembleSelector.cpp.s
|
|
221
|
+
.PHONY : src/EnsembleSelector.s
|
|
222
|
+
|
|
223
|
+
# target to generate assembly for a file
|
|
224
|
+
src/EnsembleSelector.cpp.s:
|
|
225
|
+
$(MAKE) $(MAKESILENT) -f CMakeFiles/tuner_engine_core.dir/build.make CMakeFiles/tuner_engine_core.dir/src/EnsembleSelector.cpp.s
|
|
226
|
+
.PHONY : src/EnsembleSelector.cpp.s
|
|
227
|
+
|
|
228
|
+
src/NoteMapper.o: src/NoteMapper.cpp.o
|
|
229
|
+
.PHONY : src/NoteMapper.o
|
|
230
|
+
|
|
231
|
+
# target to build an object file
|
|
232
|
+
src/NoteMapper.cpp.o:
|
|
233
|
+
$(MAKE) $(MAKESILENT) -f CMakeFiles/tuner_engine_core.dir/build.make CMakeFiles/tuner_engine_core.dir/src/NoteMapper.cpp.o
|
|
234
|
+
.PHONY : src/NoteMapper.cpp.o
|
|
235
|
+
|
|
236
|
+
src/NoteMapper.i: src/NoteMapper.cpp.i
|
|
237
|
+
.PHONY : src/NoteMapper.i
|
|
238
|
+
|
|
239
|
+
# target to preprocess a source file
|
|
240
|
+
src/NoteMapper.cpp.i:
|
|
241
|
+
$(MAKE) $(MAKESILENT) -f CMakeFiles/tuner_engine_core.dir/build.make CMakeFiles/tuner_engine_core.dir/src/NoteMapper.cpp.i
|
|
242
|
+
.PHONY : src/NoteMapper.cpp.i
|
|
243
|
+
|
|
244
|
+
src/NoteMapper.s: src/NoteMapper.cpp.s
|
|
245
|
+
.PHONY : src/NoteMapper.s
|
|
246
|
+
|
|
247
|
+
# target to generate assembly for a file
|
|
248
|
+
src/NoteMapper.cpp.s:
|
|
249
|
+
$(MAKE) $(MAKESILENT) -f CMakeFiles/tuner_engine_core.dir/build.make CMakeFiles/tuner_engine_core.dir/src/NoteMapper.cpp.s
|
|
250
|
+
.PHONY : src/NoteMapper.cpp.s
|
|
251
|
+
|
|
252
|
+
src/OnsetDetector.o: src/OnsetDetector.cpp.o
|
|
253
|
+
.PHONY : src/OnsetDetector.o
|
|
254
|
+
|
|
255
|
+
# target to build an object file
|
|
256
|
+
src/OnsetDetector.cpp.o:
|
|
257
|
+
$(MAKE) $(MAKESILENT) -f CMakeFiles/tuner_engine_core.dir/build.make CMakeFiles/tuner_engine_core.dir/src/OnsetDetector.cpp.o
|
|
258
|
+
.PHONY : src/OnsetDetector.cpp.o
|
|
259
|
+
|
|
260
|
+
src/OnsetDetector.i: src/OnsetDetector.cpp.i
|
|
261
|
+
.PHONY : src/OnsetDetector.i
|
|
262
|
+
|
|
263
|
+
# target to preprocess a source file
|
|
264
|
+
src/OnsetDetector.cpp.i:
|
|
265
|
+
$(MAKE) $(MAKESILENT) -f CMakeFiles/tuner_engine_core.dir/build.make CMakeFiles/tuner_engine_core.dir/src/OnsetDetector.cpp.i
|
|
266
|
+
.PHONY : src/OnsetDetector.cpp.i
|
|
267
|
+
|
|
268
|
+
src/OnsetDetector.s: src/OnsetDetector.cpp.s
|
|
269
|
+
.PHONY : src/OnsetDetector.s
|
|
270
|
+
|
|
271
|
+
# target to generate assembly for a file
|
|
272
|
+
src/OnsetDetector.cpp.s:
|
|
273
|
+
$(MAKE) $(MAKESILENT) -f CMakeFiles/tuner_engine_core.dir/build.make CMakeFiles/tuner_engine_core.dir/src/OnsetDetector.cpp.s
|
|
274
|
+
.PHONY : src/OnsetDetector.cpp.s
|
|
275
|
+
|
|
276
|
+
src/Pipeline.o: src/Pipeline.cpp.o
|
|
277
|
+
.PHONY : src/Pipeline.o
|
|
278
|
+
|
|
279
|
+
# target to build an object file
|
|
280
|
+
src/Pipeline.cpp.o:
|
|
281
|
+
$(MAKE) $(MAKESILENT) -f CMakeFiles/tuner_engine_core.dir/build.make CMakeFiles/tuner_engine_core.dir/src/Pipeline.cpp.o
|
|
282
|
+
.PHONY : src/Pipeline.cpp.o
|
|
283
|
+
|
|
284
|
+
src/Pipeline.i: src/Pipeline.cpp.i
|
|
285
|
+
.PHONY : src/Pipeline.i
|
|
286
|
+
|
|
287
|
+
# target to preprocess a source file
|
|
288
|
+
src/Pipeline.cpp.i:
|
|
289
|
+
$(MAKE) $(MAKESILENT) -f CMakeFiles/tuner_engine_core.dir/build.make CMakeFiles/tuner_engine_core.dir/src/Pipeline.cpp.i
|
|
290
|
+
.PHONY : src/Pipeline.cpp.i
|
|
291
|
+
|
|
292
|
+
src/Pipeline.s: src/Pipeline.cpp.s
|
|
293
|
+
.PHONY : src/Pipeline.s
|
|
294
|
+
|
|
295
|
+
# target to generate assembly for a file
|
|
296
|
+
src/Pipeline.cpp.s:
|
|
297
|
+
$(MAKE) $(MAKESILENT) -f CMakeFiles/tuner_engine_core.dir/build.make CMakeFiles/tuner_engine_core.dir/src/Pipeline.cpp.s
|
|
298
|
+
.PHONY : src/Pipeline.cpp.s
|
|
299
|
+
|
|
300
|
+
src/PostProcessor.o: src/PostProcessor.cpp.o
|
|
301
|
+
.PHONY : src/PostProcessor.o
|
|
302
|
+
|
|
303
|
+
# target to build an object file
|
|
304
|
+
src/PostProcessor.cpp.o:
|
|
305
|
+
$(MAKE) $(MAKESILENT) -f CMakeFiles/tuner_engine_core.dir/build.make CMakeFiles/tuner_engine_core.dir/src/PostProcessor.cpp.o
|
|
306
|
+
.PHONY : src/PostProcessor.cpp.o
|
|
307
|
+
|
|
308
|
+
src/PostProcessor.i: src/PostProcessor.cpp.i
|
|
309
|
+
.PHONY : src/PostProcessor.i
|
|
310
|
+
|
|
311
|
+
# target to preprocess a source file
|
|
312
|
+
src/PostProcessor.cpp.i:
|
|
313
|
+
$(MAKE) $(MAKESILENT) -f CMakeFiles/tuner_engine_core.dir/build.make CMakeFiles/tuner_engine_core.dir/src/PostProcessor.cpp.i
|
|
314
|
+
.PHONY : src/PostProcessor.cpp.i
|
|
315
|
+
|
|
316
|
+
src/PostProcessor.s: src/PostProcessor.cpp.s
|
|
317
|
+
.PHONY : src/PostProcessor.s
|
|
318
|
+
|
|
319
|
+
# target to generate assembly for a file
|
|
320
|
+
src/PostProcessor.cpp.s:
|
|
321
|
+
$(MAKE) $(MAKESILENT) -f CMakeFiles/tuner_engine_core.dir/build.make CMakeFiles/tuner_engine_core.dir/src/PostProcessor.cpp.s
|
|
322
|
+
.PHONY : src/PostProcessor.cpp.s
|
|
323
|
+
|
|
324
|
+
src/PyinPitchDetector.o: src/PyinPitchDetector.cpp.o
|
|
325
|
+
.PHONY : src/PyinPitchDetector.o
|
|
326
|
+
|
|
327
|
+
# target to build an object file
|
|
328
|
+
src/PyinPitchDetector.cpp.o:
|
|
329
|
+
$(MAKE) $(MAKESILENT) -f CMakeFiles/tuner_engine_core.dir/build.make CMakeFiles/tuner_engine_core.dir/src/PyinPitchDetector.cpp.o
|
|
330
|
+
.PHONY : src/PyinPitchDetector.cpp.o
|
|
331
|
+
|
|
332
|
+
src/PyinPitchDetector.i: src/PyinPitchDetector.cpp.i
|
|
333
|
+
.PHONY : src/PyinPitchDetector.i
|
|
334
|
+
|
|
335
|
+
# target to preprocess a source file
|
|
336
|
+
src/PyinPitchDetector.cpp.i:
|
|
337
|
+
$(MAKE) $(MAKESILENT) -f CMakeFiles/tuner_engine_core.dir/build.make CMakeFiles/tuner_engine_core.dir/src/PyinPitchDetector.cpp.i
|
|
338
|
+
.PHONY : src/PyinPitchDetector.cpp.i
|
|
339
|
+
|
|
340
|
+
src/PyinPitchDetector.s: src/PyinPitchDetector.cpp.s
|
|
341
|
+
.PHONY : src/PyinPitchDetector.s
|
|
342
|
+
|
|
343
|
+
# target to generate assembly for a file
|
|
344
|
+
src/PyinPitchDetector.cpp.s:
|
|
345
|
+
$(MAKE) $(MAKESILENT) -f CMakeFiles/tuner_engine_core.dir/build.make CMakeFiles/tuner_engine_core.dir/src/PyinPitchDetector.cpp.s
|
|
346
|
+
.PHONY : src/PyinPitchDetector.cpp.s
|
|
347
|
+
|
|
348
|
+
src/SnrEstimator.o: src/SnrEstimator.cpp.o
|
|
349
|
+
.PHONY : src/SnrEstimator.o
|
|
350
|
+
|
|
351
|
+
# target to build an object file
|
|
352
|
+
src/SnrEstimator.cpp.o:
|
|
353
|
+
$(MAKE) $(MAKESILENT) -f CMakeFiles/tuner_engine_core.dir/build.make CMakeFiles/tuner_engine_core.dir/src/SnrEstimator.cpp.o
|
|
354
|
+
.PHONY : src/SnrEstimator.cpp.o
|
|
355
|
+
|
|
356
|
+
src/SnrEstimator.i: src/SnrEstimator.cpp.i
|
|
357
|
+
.PHONY : src/SnrEstimator.i
|
|
358
|
+
|
|
359
|
+
# target to preprocess a source file
|
|
360
|
+
src/SnrEstimator.cpp.i:
|
|
361
|
+
$(MAKE) $(MAKESILENT) -f CMakeFiles/tuner_engine_core.dir/build.make CMakeFiles/tuner_engine_core.dir/src/SnrEstimator.cpp.i
|
|
362
|
+
.PHONY : src/SnrEstimator.cpp.i
|
|
363
|
+
|
|
364
|
+
src/SnrEstimator.s: src/SnrEstimator.cpp.s
|
|
365
|
+
.PHONY : src/SnrEstimator.s
|
|
366
|
+
|
|
367
|
+
# target to generate assembly for a file
|
|
368
|
+
src/SnrEstimator.cpp.s:
|
|
369
|
+
$(MAKE) $(MAKESILENT) -f CMakeFiles/tuner_engine_core.dir/build.make CMakeFiles/tuner_engine_core.dir/src/SnrEstimator.cpp.s
|
|
370
|
+
.PHONY : src/SnrEstimator.cpp.s
|
|
371
|
+
|
|
372
|
+
src/StringMatcher.o: src/StringMatcher.cpp.o
|
|
373
|
+
.PHONY : src/StringMatcher.o
|
|
374
|
+
|
|
375
|
+
# target to build an object file
|
|
376
|
+
src/StringMatcher.cpp.o:
|
|
377
|
+
$(MAKE) $(MAKESILENT) -f CMakeFiles/tuner_engine_core.dir/build.make CMakeFiles/tuner_engine_core.dir/src/StringMatcher.cpp.o
|
|
378
|
+
.PHONY : src/StringMatcher.cpp.o
|
|
379
|
+
|
|
380
|
+
src/StringMatcher.i: src/StringMatcher.cpp.i
|
|
381
|
+
.PHONY : src/StringMatcher.i
|
|
382
|
+
|
|
383
|
+
# target to preprocess a source file
|
|
384
|
+
src/StringMatcher.cpp.i:
|
|
385
|
+
$(MAKE) $(MAKESILENT) -f CMakeFiles/tuner_engine_core.dir/build.make CMakeFiles/tuner_engine_core.dir/src/StringMatcher.cpp.i
|
|
386
|
+
.PHONY : src/StringMatcher.cpp.i
|
|
387
|
+
|
|
388
|
+
src/StringMatcher.s: src/StringMatcher.cpp.s
|
|
389
|
+
.PHONY : src/StringMatcher.s
|
|
390
|
+
|
|
391
|
+
# target to generate assembly for a file
|
|
392
|
+
src/StringMatcher.cpp.s:
|
|
393
|
+
$(MAKE) $(MAKESILENT) -f CMakeFiles/tuner_engine_core.dir/build.make CMakeFiles/tuner_engine_core.dir/src/StringMatcher.cpp.s
|
|
394
|
+
.PHONY : src/StringMatcher.cpp.s
|
|
395
|
+
|
|
396
|
+
src/TunerEngine.o: src/TunerEngine.cpp.o
|
|
397
|
+
.PHONY : src/TunerEngine.o
|
|
398
|
+
|
|
399
|
+
# target to build an object file
|
|
400
|
+
src/TunerEngine.cpp.o:
|
|
401
|
+
$(MAKE) $(MAKESILENT) -f CMakeFiles/tuner_engine_core.dir/build.make CMakeFiles/tuner_engine_core.dir/src/TunerEngine.cpp.o
|
|
402
|
+
.PHONY : src/TunerEngine.cpp.o
|
|
403
|
+
|
|
404
|
+
src/TunerEngine.i: src/TunerEngine.cpp.i
|
|
405
|
+
.PHONY : src/TunerEngine.i
|
|
406
|
+
|
|
407
|
+
# target to preprocess a source file
|
|
408
|
+
src/TunerEngine.cpp.i:
|
|
409
|
+
$(MAKE) $(MAKESILENT) -f CMakeFiles/tuner_engine_core.dir/build.make CMakeFiles/tuner_engine_core.dir/src/TunerEngine.cpp.i
|
|
410
|
+
.PHONY : src/TunerEngine.cpp.i
|
|
411
|
+
|
|
412
|
+
src/TunerEngine.s: src/TunerEngine.cpp.s
|
|
413
|
+
.PHONY : src/TunerEngine.s
|
|
414
|
+
|
|
415
|
+
# target to generate assembly for a file
|
|
416
|
+
src/TunerEngine.cpp.s:
|
|
417
|
+
$(MAKE) $(MAKESILENT) -f CMakeFiles/tuner_engine_core.dir/build.make CMakeFiles/tuner_engine_core.dir/src/TunerEngine.cpp.s
|
|
418
|
+
.PHONY : src/TunerEngine.cpp.s
|
|
419
|
+
|
|
420
|
+
src/Window.o: src/Window.cpp.o
|
|
421
|
+
.PHONY : src/Window.o
|
|
422
|
+
|
|
423
|
+
# target to build an object file
|
|
424
|
+
src/Window.cpp.o:
|
|
425
|
+
$(MAKE) $(MAKESILENT) -f CMakeFiles/tuner_engine_core.dir/build.make CMakeFiles/tuner_engine_core.dir/src/Window.cpp.o
|
|
426
|
+
.PHONY : src/Window.cpp.o
|
|
427
|
+
|
|
428
|
+
src/Window.i: src/Window.cpp.i
|
|
429
|
+
.PHONY : src/Window.i
|
|
430
|
+
|
|
431
|
+
# target to preprocess a source file
|
|
432
|
+
src/Window.cpp.i:
|
|
433
|
+
$(MAKE) $(MAKESILENT) -f CMakeFiles/tuner_engine_core.dir/build.make CMakeFiles/tuner_engine_core.dir/src/Window.cpp.i
|
|
434
|
+
.PHONY : src/Window.cpp.i
|
|
435
|
+
|
|
436
|
+
src/Window.s: src/Window.cpp.s
|
|
437
|
+
.PHONY : src/Window.s
|
|
438
|
+
|
|
439
|
+
# target to generate assembly for a file
|
|
440
|
+
src/Window.cpp.s:
|
|
441
|
+
$(MAKE) $(MAKESILENT) -f CMakeFiles/tuner_engine_core.dir/build.make CMakeFiles/tuner_engine_core.dir/src/Window.cpp.s
|
|
442
|
+
.PHONY : src/Window.cpp.s
|
|
443
|
+
|
|
444
|
+
src/YinPitchDetector.o: src/YinPitchDetector.cpp.o
|
|
445
|
+
.PHONY : src/YinPitchDetector.o
|
|
446
|
+
|
|
447
|
+
# target to build an object file
|
|
448
|
+
src/YinPitchDetector.cpp.o:
|
|
449
|
+
$(MAKE) $(MAKESILENT) -f CMakeFiles/tuner_engine_core.dir/build.make CMakeFiles/tuner_engine_core.dir/src/YinPitchDetector.cpp.o
|
|
450
|
+
.PHONY : src/YinPitchDetector.cpp.o
|
|
451
|
+
|
|
452
|
+
src/YinPitchDetector.i: src/YinPitchDetector.cpp.i
|
|
453
|
+
.PHONY : src/YinPitchDetector.i
|
|
454
|
+
|
|
455
|
+
# target to preprocess a source file
|
|
456
|
+
src/YinPitchDetector.cpp.i:
|
|
457
|
+
$(MAKE) $(MAKESILENT) -f CMakeFiles/tuner_engine_core.dir/build.make CMakeFiles/tuner_engine_core.dir/src/YinPitchDetector.cpp.i
|
|
458
|
+
.PHONY : src/YinPitchDetector.cpp.i
|
|
459
|
+
|
|
460
|
+
src/YinPitchDetector.s: src/YinPitchDetector.cpp.s
|
|
461
|
+
.PHONY : src/YinPitchDetector.s
|
|
462
|
+
|
|
463
|
+
# target to generate assembly for a file
|
|
464
|
+
src/YinPitchDetector.cpp.s:
|
|
465
|
+
$(MAKE) $(MAKESILENT) -f CMakeFiles/tuner_engine_core.dir/build.make CMakeFiles/tuner_engine_core.dir/src/YinPitchDetector.cpp.s
|
|
466
|
+
.PHONY : src/YinPitchDetector.cpp.s
|
|
467
|
+
|
|
468
|
+
# Help Target
|
|
469
|
+
help:
|
|
470
|
+
@echo "The following are some of the valid targets for this Makefile:"
|
|
471
|
+
@echo "... all (the default if no target is provided)"
|
|
472
|
+
@echo "... clean"
|
|
473
|
+
@echo "... depend"
|
|
474
|
+
@echo "... edit_cache"
|
|
475
|
+
@echo "... rebuild_cache"
|
|
476
|
+
@echo "... tuner_engine_core"
|
|
477
|
+
@echo "... src/AudioFrameDispatcher.o"
|
|
478
|
+
@echo "... src/AudioFrameDispatcher.i"
|
|
479
|
+
@echo "... src/AudioFrameDispatcher.s"
|
|
480
|
+
@echo "... src/BiquadHpf.o"
|
|
481
|
+
@echo "... src/BiquadHpf.i"
|
|
482
|
+
@echo "... src/BiquadHpf.s"
|
|
483
|
+
@echo "... src/CepstrumPitchDetector.o"
|
|
484
|
+
@echo "... src/CepstrumPitchDetector.i"
|
|
485
|
+
@echo "... src/CepstrumPitchDetector.s"
|
|
486
|
+
@echo "... src/EnsembleSelector.o"
|
|
487
|
+
@echo "... src/EnsembleSelector.i"
|
|
488
|
+
@echo "... src/EnsembleSelector.s"
|
|
489
|
+
@echo "... src/NoteMapper.o"
|
|
490
|
+
@echo "... src/NoteMapper.i"
|
|
491
|
+
@echo "... src/NoteMapper.s"
|
|
492
|
+
@echo "... src/OnsetDetector.o"
|
|
493
|
+
@echo "... src/OnsetDetector.i"
|
|
494
|
+
@echo "... src/OnsetDetector.s"
|
|
495
|
+
@echo "... src/Pipeline.o"
|
|
496
|
+
@echo "... src/Pipeline.i"
|
|
497
|
+
@echo "... src/Pipeline.s"
|
|
498
|
+
@echo "... src/PostProcessor.o"
|
|
499
|
+
@echo "... src/PostProcessor.i"
|
|
500
|
+
@echo "... src/PostProcessor.s"
|
|
501
|
+
@echo "... src/PyinPitchDetector.o"
|
|
502
|
+
@echo "... src/PyinPitchDetector.i"
|
|
503
|
+
@echo "... src/PyinPitchDetector.s"
|
|
504
|
+
@echo "... src/SnrEstimator.o"
|
|
505
|
+
@echo "... src/SnrEstimator.i"
|
|
506
|
+
@echo "... src/SnrEstimator.s"
|
|
507
|
+
@echo "... src/StringMatcher.o"
|
|
508
|
+
@echo "... src/StringMatcher.i"
|
|
509
|
+
@echo "... src/StringMatcher.s"
|
|
510
|
+
@echo "... src/TunerEngine.o"
|
|
511
|
+
@echo "... src/TunerEngine.i"
|
|
512
|
+
@echo "... src/TunerEngine.s"
|
|
513
|
+
@echo "... src/Window.o"
|
|
514
|
+
@echo "... src/Window.i"
|
|
515
|
+
@echo "... src/Window.s"
|
|
516
|
+
@echo "... src/YinPitchDetector.o"
|
|
517
|
+
@echo "... src/YinPitchDetector.i"
|
|
518
|
+
@echo "... src/YinPitchDetector.s"
|
|
519
|
+
.PHONY : help
|
|
520
|
+
|
|
521
|
+
|
|
522
|
+
|
|
523
|
+
#=============================================================================
|
|
524
|
+
# Special targets to cleanup operation of make.
|
|
525
|
+
|
|
526
|
+
# Special rule to run CMake to check the build system integrity.
|
|
527
|
+
# No rule that depends on this can have commands that come from listfiles
|
|
528
|
+
# because they might be regenerated.
|
|
529
|
+
cmake_check_build_system:
|
|
530
|
+
$(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0
|
|
531
|
+
.PHONY : cmake_check_build_system
|
|
532
|
+
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
# Install script for directory: /Users/deniz.yesilirmak/Documents/personal/react-native-tuner-engine/cpp
|
|
2
|
+
|
|
3
|
+
# Set the install prefix
|
|
4
|
+
if(NOT DEFINED CMAKE_INSTALL_PREFIX)
|
|
5
|
+
set(CMAKE_INSTALL_PREFIX "/usr/local")
|
|
6
|
+
endif()
|
|
7
|
+
string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}")
|
|
8
|
+
|
|
9
|
+
# Set the install configuration name.
|
|
10
|
+
if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME)
|
|
11
|
+
if(BUILD_TYPE)
|
|
12
|
+
string(REGEX REPLACE "^[^A-Za-z0-9_]+" ""
|
|
13
|
+
CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}")
|
|
14
|
+
else()
|
|
15
|
+
set(CMAKE_INSTALL_CONFIG_NAME "Release")
|
|
16
|
+
endif()
|
|
17
|
+
message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"")
|
|
18
|
+
endif()
|
|
19
|
+
|
|
20
|
+
# Set the component getting installed.
|
|
21
|
+
if(NOT CMAKE_INSTALL_COMPONENT)
|
|
22
|
+
if(COMPONENT)
|
|
23
|
+
message(STATUS "Install component: \"${COMPONENT}\"")
|
|
24
|
+
set(CMAKE_INSTALL_COMPONENT "${COMPONENT}")
|
|
25
|
+
else()
|
|
26
|
+
set(CMAKE_INSTALL_COMPONENT)
|
|
27
|
+
endif()
|
|
28
|
+
endif()
|
|
29
|
+
|
|
30
|
+
# Is this installation the result of a crosscompile?
|
|
31
|
+
if(NOT DEFINED CMAKE_CROSSCOMPILING)
|
|
32
|
+
set(CMAKE_CROSSCOMPILING "FALSE")
|
|
33
|
+
endif()
|
|
34
|
+
|
|
35
|
+
# Set path to fallback-tool for dependency-resolution.
|
|
36
|
+
if(NOT DEFINED CMAKE_OBJDUMP)
|
|
37
|
+
set(CMAKE_OBJDUMP "/usr/bin/objdump")
|
|
38
|
+
endif()
|
|
39
|
+
|
|
40
|
+
string(REPLACE ";" "\n" CMAKE_INSTALL_MANIFEST_CONTENT
|
|
41
|
+
"${CMAKE_INSTALL_MANIFEST_FILES}")
|
|
42
|
+
if(CMAKE_INSTALL_LOCAL_ONLY)
|
|
43
|
+
file(WRITE "/Users/deniz.yesilirmak/Documents/personal/react-native-tuner-engine/cpp/build/install_local_manifest.txt"
|
|
44
|
+
"${CMAKE_INSTALL_MANIFEST_CONTENT}")
|
|
45
|
+
endif()
|
|
46
|
+
if(CMAKE_INSTALL_COMPONENT)
|
|
47
|
+
if(CMAKE_INSTALL_COMPONENT MATCHES "^[a-zA-Z0-9_.+-]+$")
|
|
48
|
+
set(CMAKE_INSTALL_MANIFEST "install_manifest_${CMAKE_INSTALL_COMPONENT}.txt")
|
|
49
|
+
else()
|
|
50
|
+
string(MD5 CMAKE_INST_COMP_HASH "${CMAKE_INSTALL_COMPONENT}")
|
|
51
|
+
set(CMAKE_INSTALL_MANIFEST "install_manifest_${CMAKE_INST_COMP_HASH}.txt")
|
|
52
|
+
unset(CMAKE_INST_COMP_HASH)
|
|
53
|
+
endif()
|
|
54
|
+
else()
|
|
55
|
+
set(CMAKE_INSTALL_MANIFEST "install_manifest.txt")
|
|
56
|
+
endif()
|
|
57
|
+
|
|
58
|
+
if(NOT CMAKE_INSTALL_LOCAL_ONLY)
|
|
59
|
+
file(WRITE "/Users/deniz.yesilirmak/Documents/personal/react-native-tuner-engine/cpp/build/${CMAKE_INSTALL_MANIFEST}"
|
|
60
|
+
"${CMAKE_INSTALL_MANIFEST_CONTENT}")
|
|
61
|
+
endif()
|
|
Binary file
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
#pragma once
|
|
2
|
+
|
|
3
|
+
#include "PitchResult.hpp"
|
|
4
|
+
#include "PostProcessor.hpp"
|
|
5
|
+
#include "RingBuffer.hpp"
|
|
6
|
+
#include "TunerEngine.hpp"
|
|
7
|
+
|
|
8
|
+
#include <algorithm>
|
|
9
|
+
#include <atomic>
|
|
10
|
+
#include <cmath>
|
|
11
|
+
#include <functional>
|
|
12
|
+
#include <memory>
|
|
13
|
+
#include <mutex>
|
|
14
|
+
#include <thread>
|
|
15
|
+
#include <vector>
|
|
16
|
+
|
|
17
|
+
// Bridges the real-time audio thread and the pitch-detection worker thread.
|
|
18
|
+
//
|
|
19
|
+
// The audio thread calls push() with raw PCM chunks — no locks, no allocation.
|
|
20
|
+
// An internal worker thread drains the ring into fixed-size frames (with optional
|
|
21
|
+
// overlap via a sliding window), runs TunerEngine::process(), and delivers each
|
|
22
|
+
// PitchResult via the callback.
|
|
23
|
+
class AudioFrameDispatcher {
|
|
24
|
+
public:
|
|
25
|
+
using PitchCallback = std::function<void(const PitchResult&)>;
|
|
26
|
+
|
|
27
|
+
// frameSize: samples per processing frame (e.g. 2048)
|
|
28
|
+
// sampleRate: initial sample rate — can change via setSampleRate()
|
|
29
|
+
// callback: invoked from the worker thread; must be thread-safe w.r.t. the caller
|
|
30
|
+
// overlapRatio: fraction of frame that overlaps with previous (0.0–0.75). Default: 0.0
|
|
31
|
+
AudioFrameDispatcher(int frameSize, float sampleRate, PitchCallback callback,
|
|
32
|
+
float overlapRatio = 0.0f);
|
|
33
|
+
~AudioFrameDispatcher();
|
|
34
|
+
|
|
35
|
+
AudioFrameDispatcher(const AudioFrameDispatcher&) = delete;
|
|
36
|
+
AudioFrameDispatcher& operator=(const AudioFrameDispatcher&) = delete;
|
|
37
|
+
|
|
38
|
+
void start();
|
|
39
|
+
void stop();
|
|
40
|
+
|
|
41
|
+
// Push PCM samples from the audio thread. No blocking, no allocation.
|
|
42
|
+
void push(const float* samples, int count);
|
|
43
|
+
|
|
44
|
+
void setSampleRate(float sampleRate);
|
|
45
|
+
void setA4(float hz);
|
|
46
|
+
void setNoiseGateDb(float db);
|
|
47
|
+
void setConfidenceThreshold(float value);
|
|
48
|
+
void setFrequencyRange(float minHz, float maxHz);
|
|
49
|
+
void setInstrument(const std::string& name);
|
|
50
|
+
void setTuning(const std::string& name);
|
|
51
|
+
void setPostProcessorConfig(PostProcessor::Config cfg);
|
|
52
|
+
void setHpfCutoff(float hz);
|
|
53
|
+
void setOnsetDetectionEnabled(bool enabled);
|
|
54
|
+
void setOnsetConfig(OnsetDetector::Config cfg);
|
|
55
|
+
|
|
56
|
+
// Set overlap ratio (0.0–0.75). Recomputes hop size. Thread-safe.
|
|
57
|
+
void setOverlapRatio(float ratio);
|
|
58
|
+
|
|
59
|
+
// Reconfigure frame size and/or sample rate. Stops/restarts the worker thread,
|
|
60
|
+
// reallocates internal buffers. Call from the JS/main thread only.
|
|
61
|
+
void reconfigure(int newFrameSize, float sampleRate);
|
|
62
|
+
|
|
63
|
+
int frameSize() const { return frameSize_; }
|
|
64
|
+
int hopSize() const { return hopSize_; }
|
|
65
|
+
|
|
66
|
+
private:
|
|
67
|
+
void workerLoop();
|
|
68
|
+
void recomputeHopSize();
|
|
69
|
+
|
|
70
|
+
static constexpr unsigned kRingCapacity = 32768u; // ~680ms at 48kHz — plenty of headroom
|
|
71
|
+
|
|
72
|
+
int frameSize_;
|
|
73
|
+
int hopSize_;
|
|
74
|
+
float overlapRatio_;
|
|
75
|
+
float sampleRate_;
|
|
76
|
+
PitchCallback callback_;
|
|
77
|
+
|
|
78
|
+
FloatRingBuffer<kRingCapacity> ring_;
|
|
79
|
+
std::vector<float> frameBuffer_;
|
|
80
|
+
bool firstFrame_{true}; // cold-start: fill entire frame before first process
|
|
81
|
+
|
|
82
|
+
mutable std::mutex engineMutex_; // protects engine_ access across threads
|
|
83
|
+
std::unique_ptr<TunerEngine> engine_;
|
|
84
|
+
|
|
85
|
+
std::thread workerThread_;
|
|
86
|
+
std::atomic<bool> running_{false};
|
|
87
|
+
};
|