react-native-gizwits-sdk-v5 1.5.5-thirdbluetooth → 1.5.6-thirdbluetooth
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/android/libs/sdk-bluetooth-release.aar +0 -0
- package/ios/GizwitsiOSSDK.framework/GizwitsiOSSDK +0 -0
- package/ios/GizwitsiOSSDK.framework/Headers/CocoaAsyncSocket.h +18 -0
- package/ios/GizwitsiOSSDK.framework/Headers/DDASLLogger.h +41 -0
- package/ios/GizwitsiOSSDK.framework/Headers/DDAbstractDatabaseLogger.h +102 -0
- package/ios/GizwitsiOSSDK.framework/Headers/DDContextFilterLogFormatter.h +63 -0
- package/ios/GizwitsiOSSDK.framework/Headers/DDDispatchQueueLogFormatter.h +128 -0
- package/ios/GizwitsiOSSDK.framework/Headers/DDFileLogger.h +340 -0
- package/ios/GizwitsiOSSDK.framework/Headers/DDLog+LOGV.h +99 -0
- package/ios/GizwitsiOSSDK.framework/Headers/DDLog.h +632 -0
- package/ios/GizwitsiOSSDK.framework/Headers/DDMultiFormatter.h +30 -0
- package/ios/GizwitsiOSSDK.framework/Headers/DDTTYLogger.h +171 -0
- package/ios/GizwitsiOSSDK.framework/Headers/ESPAES.h +19 -0
- package/ios/GizwitsiOSSDK.framework/Headers/ESPDataCode.h +44 -0
- package/ios/GizwitsiOSSDK.framework/Headers/ESPDatumCode.h +38 -0
- package/ios/GizwitsiOSSDK.framework/Headers/ESPGuideCode.h +15 -0
- package/ios/GizwitsiOSSDK.framework/Headers/ESPTools.h +22 -0
- package/ios/GizwitsiOSSDK.framework/Headers/ESPTouch.h +36 -0
- package/ios/GizwitsiOSSDK.framework/Headers/ESPTouchDelegate.h +24 -0
- package/ios/GizwitsiOSSDK.framework/Headers/ESPTouchGenerator.h +46 -0
- package/ios/GizwitsiOSSDK.framework/Headers/ESPTouchResult.h +36 -0
- package/ios/GizwitsiOSSDK.framework/Headers/ESPTouchTask.h +124 -0
- package/ios/GizwitsiOSSDK.framework/Headers/ESPTouchTaskParameter.h +173 -0
- package/ios/GizwitsiOSSDK.framework/Headers/ESPUDPSocketClient.h +50 -0
- package/ios/GizwitsiOSSDK.framework/Headers/ESPUDPSocketServer.h +49 -0
- package/ios/GizwitsiOSSDK.framework/Headers/ESP_ByteUtil.h +128 -0
- package/ios/GizwitsiOSSDK.framework/Headers/ESP_CRC8.h +61 -0
- package/ios/GizwitsiOSSDK.framework/Headers/ESP_NetUtil.h +82 -0
- package/ios/GizwitsiOSSDK.framework/Headers/ESP_WifiUtil.h +33 -0
- package/ios/GizwitsiOSSDK.framework/Headers/ForegroundReconnection.h +23 -0
- package/ios/GizwitsiOSSDK.framework/Headers/GCDTimer.h +19 -0
- package/ios/GizwitsiOSSDK.framework/Headers/GizwitsiOSSDK-Swift.h +338 -0
- package/ios/GizwitsiOSSDK.framework/Headers/GizwitsiOSSDK.h +24 -0
- package/ios/GizwitsiOSSDK.framework/Headers/MQTTClient.h +39 -0
- package/ios/GizwitsiOSSDK.framework/Headers/MQTTInMemoryPersistence.h +16 -0
- package/ios/GizwitsiOSSDK.framework/Headers/MQTTSSLSecurityPolicyDecoder.h +19 -0
- package/ios/GizwitsiOSSDK.framework/Headers/MQTTSSLSecurityPolicyEncoder.h +18 -0
- package/ios/GizwitsiOSSDK.framework/Headers/MQTTSessionLegacy.h +112 -0
- package/ios/GizwitsiOSSDK.framework/Headers/MQTTSessionSynchron.h +194 -0
- package/ios/GizwitsiOSSDK.framework/Headers/MQTTStrict.h +33 -0
- package/ios/GizwitsiOSSDK.framework/Headers/MQTTUntil.h +14 -0
- package/ios/GizwitsiOSSDK.framework/Headers/ReconnectTimer.h +21 -0
- package/ios/GizwitsiOSSDK.framework/Headers/_GCDAsyncSocket.h +1226 -0
- package/ios/GizwitsiOSSDK.framework/Headers/_GCDAsyncUdpSocket.h +1036 -0
- package/ios/GizwitsiOSSDK.framework/Headers/_GizwitsParser.h +61 -0
- package/ios/GizwitsiOSSDK.framework/Headers/_MQTTCFSocketDecoder.h +39 -0
- package/ios/GizwitsiOSSDK.framework/Headers/_MQTTCFSocketEncoder.h +38 -0
- package/ios/GizwitsiOSSDK.framework/Headers/_MQTTCFSocketTransport.h +79 -0
- package/ios/GizwitsiOSSDK.framework/Headers/_MQTTCoreDataPersistence.h +21 -0
- package/ios/GizwitsiOSSDK.framework/Headers/_MQTTDecoder.h +66 -0
- package/ios/GizwitsiOSSDK.framework/Headers/_MQTTLog.h +123 -0
- package/ios/GizwitsiOSSDK.framework/Headers/_MQTTMessage.h +233 -0
- package/ios/GizwitsiOSSDK.framework/Headers/_MQTTPersistence.h +124 -0
- package/ios/GizwitsiOSSDK.framework/Headers/_MQTTProperties.h +76 -0
- package/ios/GizwitsiOSSDK.framework/Headers/_MQTTSSLSecurityPolicy.h +158 -0
- package/ios/GizwitsiOSSDK.framework/Headers/_MQTTSSLSecurityPolicyTransport.h +30 -0
- package/ios/GizwitsiOSSDK.framework/Headers/_MQTTSession.h +886 -0
- package/ios/GizwitsiOSSDK.framework/Headers/_MQTTSessionManager.h +237 -0
- package/ios/GizwitsiOSSDK.framework/Headers/_MQTTTransport.h +114 -0
- package/ios/GizwitsiOSSDK.framework/Headers/_SSZipArchive.h +178 -0
- package/ios/GizwitsiOSSDK.framework/Headers/_SSZipCommon.h +71 -0
- package/ios/GizwitsiOSSDK.framework/Headers/_ZipArchive.h +26 -0
- package/ios/GizwitsiOSSDK.framework/Headers/a_weighting.h +88 -0
- package/ios/GizwitsiOSSDK.framework/Headers/aubio.h +231 -0
- package/ios/GizwitsiOSSDK.framework/Headers/audio_unit.h +61 -0
- package/ios/GizwitsiOSSDK.framework/Headers/awhitening.h +125 -0
- package/ios/GizwitsiOSSDK.framework/Headers/beattracking.h +121 -0
- package/ios/GizwitsiOSSDK.framework/Headers/biquad.h +75 -0
- package/ios/GizwitsiOSSDK.framework/Headers/c_weighting.h +88 -0
- package/ios/GizwitsiOSSDK.framework/Headers/common.h +104 -0
- package/ios/GizwitsiOSSDK.framework/Headers/cvec.h +247 -0
- package/ios/GizwitsiOSSDK.framework/Headers/dct.h +85 -0
- package/ios/GizwitsiOSSDK.framework/Headers/fft.h +144 -0
- package/ios/GizwitsiOSSDK.framework/Headers/filter.h +176 -0
- package/ios/GizwitsiOSSDK.framework/Headers/filterbank.h +90 -0
- package/ios/GizwitsiOSSDK.framework/Headers/filterbank_mel.h +72 -0
- package/ios/GizwitsiOSSDK.framework/Headers/fmat.h +172 -0
- package/ios/GizwitsiOSSDK.framework/Headers/fvec.h +178 -0
- package/ios/GizwitsiOSSDK.framework/Headers/hist.h +63 -0
- package/ios/GizwitsiOSSDK.framework/Headers/ioutils.h +60 -0
- package/ios/GizwitsiOSSDK.framework/Headers/log.h +99 -0
- package/ios/GizwitsiOSSDK.framework/Headers/lvec.h +118 -0
- package/ios/GizwitsiOSSDK.framework/Headers/mathutils.h +330 -0
- package/ios/GizwitsiOSSDK.framework/Headers/mfcc.h +79 -0
- package/ios/GizwitsiOSSDK.framework/Headers/musicutils.h +171 -0
- package/ios/GizwitsiOSSDK.framework/Headers/notes.h +113 -0
- package/ios/GizwitsiOSSDK.framework/Headers/onset.h +347 -0
- package/ios/GizwitsiOSSDK.framework/Headers/parameter.h +159 -0
- package/ios/GizwitsiOSSDK.framework/Headers/peakpicker.h +57 -0
- package/ios/GizwitsiOSSDK.framework/Headers/phasevoc.h +112 -0
- package/ios/GizwitsiOSSDK.framework/Headers/pitch.h +197 -0
- package/ios/GizwitsiOSSDK.framework/Headers/pitchfcomb.h +76 -0
- package/ios/GizwitsiOSSDK.framework/Headers/pitchmcomb.h +77 -0
- package/ios/GizwitsiOSSDK.framework/Headers/pitchschmitt.h +75 -0
- package/ios/GizwitsiOSSDK.framework/Headers/pitchspecacf.h +103 -0
- package/ios/GizwitsiOSSDK.framework/Headers/pitchyin.h +100 -0
- package/ios/GizwitsiOSSDK.framework/Headers/pitchyinfast.h +102 -0
- package/ios/GizwitsiOSSDK.framework/Headers/pitchyinfft.h +99 -0
- package/ios/GizwitsiOSSDK.framework/Headers/resampler.h +65 -0
- package/ios/GizwitsiOSSDK.framework/Headers/sampler.h +140 -0
- package/ios/GizwitsiOSSDK.framework/Headers/scale.h +80 -0
- package/ios/GizwitsiOSSDK.framework/Headers/sink.h +181 -0
- package/ios/GizwitsiOSSDK.framework/Headers/sink_apple_audio.h +163 -0
- package/ios/GizwitsiOSSDK.framework/Headers/sink_sndfile.h +162 -0
- package/ios/GizwitsiOSSDK.framework/Headers/sink_wavwrite.h +162 -0
- package/ios/GizwitsiOSSDK.framework/Headers/source.h +184 -0
- package/ios/GizwitsiOSSDK.framework/Headers/source_apple_audio.h +156 -0
- package/ios/GizwitsiOSSDK.framework/Headers/source_avcodec.h +155 -0
- package/ios/GizwitsiOSSDK.framework/Headers/source_sndfile.h +155 -0
- package/ios/GizwitsiOSSDK.framework/Headers/source_wavread.h +160 -0
- package/ios/GizwitsiOSSDK.framework/Headers/specdesc.h +204 -0
- package/ios/GizwitsiOSSDK.framework/Headers/tempo.h +255 -0
- package/ios/GizwitsiOSSDK.framework/Headers/tss.h +103 -0
- package/ios/GizwitsiOSSDK.framework/Headers/types.h +70 -0
- package/ios/GizwitsiOSSDK.framework/Headers/vecutils.h +116 -0
- package/ios/GizwitsiOSSDK.framework/Headers/wavetable.h +178 -0
- package/ios/GizwitsiOSSDK.framework/Info.plist +0 -0
- package/ios/GizwitsiOSSDK.framework/LICENSE +17 -0
- package/ios/GizwitsiOSSDK.framework/Modules/GizwitsiOSSDK.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo +0 -0
- package/ios/GizwitsiOSSDK.framework/Modules/GizwitsiOSSDK.swiftmodule/arm64-apple-ios.abi.json +57489 -0
- package/ios/GizwitsiOSSDK.framework/Modules/GizwitsiOSSDK.swiftmodule/arm64-apple-ios.private.swiftinterface +1752 -0
- package/ios/GizwitsiOSSDK.framework/Modules/GizwitsiOSSDK.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/ios/GizwitsiOSSDK.framework/Modules/GizwitsiOSSDK.swiftmodule/arm64-apple-ios.swiftinterface +1752 -0
- package/ios/GizwitsiOSSDK.framework/Modules/GizwitsiOSSDK.swiftmodule/arm64-apple-ios.swiftmodule +0 -0
- package/ios/GizwitsiOSSDK.framework/Modules/module.modulemap +11 -0
- package/ios/GizwitsiOSSDK.framework/PrivacyInfo.xcprivacy +23 -0
- package/ios/GizwitsiOSSDK.framework/README.md +31 -0
- package/package.json +1 -1
- package/react-native-gizwits-sdk-v5.podspec +2 -2
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright (C) 2003-2013 Paul Brossier <piem@aubio.org>
|
|
3
|
+
|
|
4
|
+
This file is part of aubio.
|
|
5
|
+
|
|
6
|
+
aubio is free software: you can redistribute it and/or modify
|
|
7
|
+
it under the terms of the GNU General Public License as published by
|
|
8
|
+
the Free Software Foundation, either version 3 of the License, or
|
|
9
|
+
(at your option) any later version.
|
|
10
|
+
|
|
11
|
+
aubio is distributed in the hope that it will be useful,
|
|
12
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
13
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
14
|
+
GNU General Public License for more details.
|
|
15
|
+
|
|
16
|
+
You should have received a copy of the GNU General Public License
|
|
17
|
+
along with aubio. If not, see <http://www.gnu.org/licenses/>.
|
|
18
|
+
|
|
19
|
+
*/
|
|
20
|
+
|
|
21
|
+
#ifndef AUBIO_PARAMETER_H
|
|
22
|
+
#define AUBIO_PARAMETER_H
|
|
23
|
+
|
|
24
|
+
/** \file
|
|
25
|
+
|
|
26
|
+
Parameter with linear interpolation
|
|
27
|
+
|
|
28
|
+
This object manages a parameter, with minimum and maximum values, and a
|
|
29
|
+
number of steps to compute linear interpolation between two values.
|
|
30
|
+
|
|
31
|
+
\example utils/test-parameter.c
|
|
32
|
+
|
|
33
|
+
*/
|
|
34
|
+
|
|
35
|
+
#ifdef __cplusplus
|
|
36
|
+
extern "C" {
|
|
37
|
+
#endif
|
|
38
|
+
|
|
39
|
+
/** parameter object */
|
|
40
|
+
typedef struct _aubio_parameter_t aubio_parameter_t;
|
|
41
|
+
|
|
42
|
+
/** create new parameter object
|
|
43
|
+
|
|
44
|
+
\param min_value the minimum value of the new parameter
|
|
45
|
+
\param max_value the maximum value of the new parameter
|
|
46
|
+
\param steps the number of steps to interpolate from the old value to the target value
|
|
47
|
+
|
|
48
|
+
\return the newly created ::aubio_parameter_t
|
|
49
|
+
|
|
50
|
+
*/
|
|
51
|
+
aubio_parameter_t * new_aubio_parameter(smpl_t min_value, smpl_t max_value, uint_t steps);
|
|
52
|
+
|
|
53
|
+
/** set target value of the parameter
|
|
54
|
+
|
|
55
|
+
\param param parameter, created by ::new_aubio_parameter
|
|
56
|
+
\param value new target value
|
|
57
|
+
|
|
58
|
+
\return 0 if successful, 1 otherwise
|
|
59
|
+
|
|
60
|
+
*/
|
|
61
|
+
uint_t aubio_parameter_set_target_value ( aubio_parameter_t * param, smpl_t value );
|
|
62
|
+
|
|
63
|
+
/** get next parameter
|
|
64
|
+
|
|
65
|
+
\param param parameter, created by ::new_aubio_parameter
|
|
66
|
+
|
|
67
|
+
\return new interpolated parameter value
|
|
68
|
+
|
|
69
|
+
*/
|
|
70
|
+
smpl_t aubio_parameter_get_next_value ( aubio_parameter_t * param );
|
|
71
|
+
|
|
72
|
+
/** get current parameter value, without interpolation
|
|
73
|
+
|
|
74
|
+
\param param parameter, created by ::new_aubio_parameter
|
|
75
|
+
|
|
76
|
+
\return current value
|
|
77
|
+
|
|
78
|
+
*/
|
|
79
|
+
smpl_t aubio_parameter_get_current_value ( const aubio_parameter_t * param );
|
|
80
|
+
|
|
81
|
+
/** set current parameter value, skipping interpolation
|
|
82
|
+
|
|
83
|
+
\param param parameter, created by ::new_aubio_parameter
|
|
84
|
+
\param value new parameter value
|
|
85
|
+
|
|
86
|
+
\return 0 if successful, 1 otherwise
|
|
87
|
+
|
|
88
|
+
*/
|
|
89
|
+
uint_t aubio_parameter_set_current_value ( aubio_parameter_t * param, smpl_t value );
|
|
90
|
+
|
|
91
|
+
/** set number of steps used for interpolation
|
|
92
|
+
|
|
93
|
+
\param param parameter, created by ::new_aubio_parameter
|
|
94
|
+
\param steps new number of steps
|
|
95
|
+
|
|
96
|
+
\return 0 if successful, 1 otherwise
|
|
97
|
+
|
|
98
|
+
*/
|
|
99
|
+
uint_t aubio_parameter_set_steps ( aubio_parameter_t * param, uint_t steps );
|
|
100
|
+
|
|
101
|
+
/** get number of steps of this parameter
|
|
102
|
+
|
|
103
|
+
\param param parameter, created by ::new_aubio_parameter
|
|
104
|
+
|
|
105
|
+
\return number of steps
|
|
106
|
+
|
|
107
|
+
*/
|
|
108
|
+
uint_t aubio_parameter_get_steps ( const aubio_parameter_t * param);
|
|
109
|
+
|
|
110
|
+
/** set minimum value of this parameter
|
|
111
|
+
|
|
112
|
+
\param param parameter, created by ::new_aubio_parameter
|
|
113
|
+
\param min_value new minimum value
|
|
114
|
+
|
|
115
|
+
\return 0 if successful, 1 otherwise
|
|
116
|
+
|
|
117
|
+
*/
|
|
118
|
+
uint_t aubio_parameter_set_min_value ( aubio_parameter_t * param, smpl_t min_value );
|
|
119
|
+
|
|
120
|
+
/** get minimum value of this parameter
|
|
121
|
+
|
|
122
|
+
\param param parameter, created by ::new_aubio_parameter
|
|
123
|
+
|
|
124
|
+
\return minimum value
|
|
125
|
+
|
|
126
|
+
*/
|
|
127
|
+
smpl_t aubio_parameter_get_min_value ( const aubio_parameter_t * param );
|
|
128
|
+
|
|
129
|
+
/** set maximum value of this parameter
|
|
130
|
+
|
|
131
|
+
\param param parameter, created by ::new_aubio_parameter
|
|
132
|
+
\param max_value new maximum value
|
|
133
|
+
|
|
134
|
+
\return 0 if successful, 1 otherwise
|
|
135
|
+
|
|
136
|
+
*/
|
|
137
|
+
uint_t aubio_parameter_set_max_value ( aubio_parameter_t * param, smpl_t max_value );
|
|
138
|
+
|
|
139
|
+
/** get maximum value of this parameter
|
|
140
|
+
|
|
141
|
+
\param param parameter, created by ::new_aubio_parameter
|
|
142
|
+
|
|
143
|
+
\return maximum value
|
|
144
|
+
|
|
145
|
+
*/
|
|
146
|
+
smpl_t aubio_parameter_get_max_value ( const aubio_parameter_t * param );
|
|
147
|
+
|
|
148
|
+
/** destroy ::aubio_parameter_t object
|
|
149
|
+
|
|
150
|
+
\param param parameter, created by ::new_aubio_parameter
|
|
151
|
+
|
|
152
|
+
*/
|
|
153
|
+
void del_aubio_parameter( aubio_parameter_t * param );
|
|
154
|
+
|
|
155
|
+
#ifdef __cplusplus
|
|
156
|
+
}
|
|
157
|
+
#endif
|
|
158
|
+
|
|
159
|
+
#endif /* AUBIO_PARAMETER_H */
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright (C) 2003-2013 Paul Brossier <piem@aubio.org>
|
|
3
|
+
|
|
4
|
+
This file is part of aubio.
|
|
5
|
+
|
|
6
|
+
aubio is free software: you can redistribute it and/or modify
|
|
7
|
+
it under the terms of the GNU General Public License as published by
|
|
8
|
+
the Free Software Foundation, either version 3 of the License, or
|
|
9
|
+
(at your option) any later version.
|
|
10
|
+
|
|
11
|
+
aubio is distributed in the hope that it will be useful,
|
|
12
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
13
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
14
|
+
GNU General Public License for more details.
|
|
15
|
+
|
|
16
|
+
You should have received a copy of the GNU General Public License
|
|
17
|
+
along with aubio. If not, see <http://www.gnu.org/licenses/>.
|
|
18
|
+
|
|
19
|
+
*/
|
|
20
|
+
|
|
21
|
+
/** \file
|
|
22
|
+
|
|
23
|
+
Peak picking utilities function
|
|
24
|
+
|
|
25
|
+
\example onset/test-peakpicker.c
|
|
26
|
+
|
|
27
|
+
*/
|
|
28
|
+
|
|
29
|
+
#ifndef AUBIO_PEAKPICK_H
|
|
30
|
+
#define AUBIO_PEAKPICK_H
|
|
31
|
+
|
|
32
|
+
#ifdef __cplusplus
|
|
33
|
+
extern "C" {
|
|
34
|
+
#endif
|
|
35
|
+
|
|
36
|
+
/** peak-picker structure */
|
|
37
|
+
typedef struct _aubio_peakpicker_t aubio_peakpicker_t;
|
|
38
|
+
|
|
39
|
+
/** peak-picker creation function */
|
|
40
|
+
aubio_peakpicker_t * new_aubio_peakpicker(void);
|
|
41
|
+
/** real time peak picking function */
|
|
42
|
+
void aubio_peakpicker_do(aubio_peakpicker_t * p, fvec_t * in, fvec_t * out);
|
|
43
|
+
/** destroy peak picker structure */
|
|
44
|
+
void del_aubio_peakpicker(aubio_peakpicker_t * p);
|
|
45
|
+
|
|
46
|
+
/** get current peak value */
|
|
47
|
+
fvec_t *aubio_peakpicker_get_thresholded_input (aubio_peakpicker_t * p);
|
|
48
|
+
/** set peak picking threshold */
|
|
49
|
+
uint_t aubio_peakpicker_set_threshold(aubio_peakpicker_t * p, smpl_t threshold);
|
|
50
|
+
/** get peak picking threshold */
|
|
51
|
+
smpl_t aubio_peakpicker_get_threshold(aubio_peakpicker_t * p);
|
|
52
|
+
|
|
53
|
+
#ifdef __cplusplus
|
|
54
|
+
}
|
|
55
|
+
#endif
|
|
56
|
+
|
|
57
|
+
#endif /* AUBIO_PEAKPICK_H */
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright (C) 2003-2013 Paul Brossier <piem@aubio.org>
|
|
3
|
+
|
|
4
|
+
This file is part of aubio.
|
|
5
|
+
|
|
6
|
+
aubio is free software: you can redistribute it and/or modify
|
|
7
|
+
it under the terms of the GNU General Public License as published by
|
|
8
|
+
the Free Software Foundation, either version 3 of the License, or
|
|
9
|
+
(at your option) any later version.
|
|
10
|
+
|
|
11
|
+
aubio is distributed in the hope that it will be useful,
|
|
12
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
13
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
14
|
+
GNU General Public License for more details.
|
|
15
|
+
|
|
16
|
+
You should have received a copy of the GNU General Public License
|
|
17
|
+
along with aubio. If not, see <http://www.gnu.org/licenses/>.
|
|
18
|
+
|
|
19
|
+
*/
|
|
20
|
+
|
|
21
|
+
/** \file
|
|
22
|
+
|
|
23
|
+
Phase vocoder object
|
|
24
|
+
|
|
25
|
+
This object implements a phase vocoder. The spectral frames are computed
|
|
26
|
+
using a HanningZ window and a swapped version of the signal to simplify the
|
|
27
|
+
phase relationships across frames. The window sizes and overlap are specified
|
|
28
|
+
at creation time.
|
|
29
|
+
|
|
30
|
+
\example spectral/test-phasevoc.c
|
|
31
|
+
|
|
32
|
+
*/
|
|
33
|
+
|
|
34
|
+
#ifndef AUBIO_PHASEVOC_H
|
|
35
|
+
#define AUBIO_PHASEVOC_H
|
|
36
|
+
|
|
37
|
+
#ifdef __cplusplus
|
|
38
|
+
extern "C" {
|
|
39
|
+
#endif
|
|
40
|
+
|
|
41
|
+
/** phasevocoder object */
|
|
42
|
+
typedef struct _aubio_pvoc_t aubio_pvoc_t;
|
|
43
|
+
|
|
44
|
+
/** create phase vocoder object
|
|
45
|
+
|
|
46
|
+
\param win_s size of analysis buffer (and length the FFT transform)
|
|
47
|
+
\param hop_s step size between two consecutive analysis
|
|
48
|
+
|
|
49
|
+
*/
|
|
50
|
+
aubio_pvoc_t * new_aubio_pvoc (uint_t win_s, uint_t hop_s);
|
|
51
|
+
/** delete phase vocoder object
|
|
52
|
+
|
|
53
|
+
\param pv phase vocoder object as returned by new_aubio_pvoc
|
|
54
|
+
|
|
55
|
+
*/
|
|
56
|
+
void del_aubio_pvoc(aubio_pvoc_t *pv);
|
|
57
|
+
|
|
58
|
+
/** compute spectral frame
|
|
59
|
+
|
|
60
|
+
This function accepts an input vector of size [hop_s]. The
|
|
61
|
+
analysis buffer is rotated and filled with the new data. After windowing of
|
|
62
|
+
this signal window, the Fourier transform is computed and returned in
|
|
63
|
+
fftgrain as two vectors, magnitude and phase.
|
|
64
|
+
|
|
65
|
+
\param pv phase vocoder object as returned by new_aubio_pvoc
|
|
66
|
+
\param in new input signal (hop_s long)
|
|
67
|
+
\param fftgrain output spectral frame
|
|
68
|
+
|
|
69
|
+
*/
|
|
70
|
+
void aubio_pvoc_do(aubio_pvoc_t *pv, const fvec_t *in, cvec_t * fftgrain);
|
|
71
|
+
/** compute signal from spectral frame
|
|
72
|
+
|
|
73
|
+
This function takes an input spectral frame fftgrain of size
|
|
74
|
+
[buf_s] and computes its inverse Fourier transform. Overlap-add
|
|
75
|
+
synthesis is then computed using the previously synthetised frames, and the
|
|
76
|
+
output stored in out.
|
|
77
|
+
|
|
78
|
+
\param pv phase vocoder object as returned by new_aubio_pvoc
|
|
79
|
+
\param fftgrain input spectral frame
|
|
80
|
+
\param out output signal (hop_s long)
|
|
81
|
+
|
|
82
|
+
*/
|
|
83
|
+
void aubio_pvoc_rdo(aubio_pvoc_t *pv, cvec_t * fftgrain, fvec_t *out);
|
|
84
|
+
|
|
85
|
+
/** get window size
|
|
86
|
+
|
|
87
|
+
\param pv phase vocoder to get the window size from
|
|
88
|
+
|
|
89
|
+
*/
|
|
90
|
+
uint_t aubio_pvoc_get_win(aubio_pvoc_t* pv);
|
|
91
|
+
/** get hop size
|
|
92
|
+
|
|
93
|
+
\param pv phase vocoder to get the hop size from
|
|
94
|
+
|
|
95
|
+
*/
|
|
96
|
+
uint_t aubio_pvoc_get_hop(aubio_pvoc_t* pv);
|
|
97
|
+
|
|
98
|
+
/** set window type
|
|
99
|
+
|
|
100
|
+
\param pv phase vocoder to set the window type
|
|
101
|
+
\param window_type a string representing a window
|
|
102
|
+
|
|
103
|
+
\return 0 if successful, non-zero otherwise
|
|
104
|
+
|
|
105
|
+
*/
|
|
106
|
+
uint_t aubio_pvoc_set_window(aubio_pvoc_t *pv, const char_t *window_type);
|
|
107
|
+
|
|
108
|
+
#ifdef __cplusplus
|
|
109
|
+
}
|
|
110
|
+
#endif
|
|
111
|
+
|
|
112
|
+
#endif /* AUBIO_PHASEVOC_H */
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright (C) 2003-2013 Paul Brossier <piem@aubio.org>
|
|
3
|
+
|
|
4
|
+
This file is part of aubio.
|
|
5
|
+
|
|
6
|
+
aubio is free software: you can redistribute it and/or modify
|
|
7
|
+
it under the terms of the GNU General Public License as published by
|
|
8
|
+
the Free Software Foundation, either version 3 of the License, or
|
|
9
|
+
(at your option) any later version.
|
|
10
|
+
|
|
11
|
+
aubio is distributed in the hope that it will be useful,
|
|
12
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
13
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
14
|
+
GNU General Public License for more details.
|
|
15
|
+
|
|
16
|
+
You should have received a copy of the GNU General Public License
|
|
17
|
+
along with aubio. If not, see <http://www.gnu.org/licenses/>.
|
|
18
|
+
|
|
19
|
+
*/
|
|
20
|
+
|
|
21
|
+
#ifndef AUBIO_PITCH_H
|
|
22
|
+
#define AUBIO_PITCH_H
|
|
23
|
+
|
|
24
|
+
#ifdef __cplusplus
|
|
25
|
+
extern "C" {
|
|
26
|
+
#endif
|
|
27
|
+
|
|
28
|
+
/** \file
|
|
29
|
+
|
|
30
|
+
Pitch detection object
|
|
31
|
+
|
|
32
|
+
This file creates the objects required for the computation of the selected
|
|
33
|
+
pitch detection algorithm and output the results, in midi note or Hz.
|
|
34
|
+
|
|
35
|
+
\section pitch Pitch detection methods
|
|
36
|
+
|
|
37
|
+
A list of the pitch detection methods currently available follows.
|
|
38
|
+
|
|
39
|
+
\b \p default : use the default method
|
|
40
|
+
|
|
41
|
+
Currently, the default method is set to \p yinfft .
|
|
42
|
+
|
|
43
|
+
\b \p schmitt : Schmitt trigger
|
|
44
|
+
|
|
45
|
+
This pitch extraction method implements a Schmitt trigger to estimate the
|
|
46
|
+
period of a signal.
|
|
47
|
+
|
|
48
|
+
This file was derived from the tuneit project, written by Mario Lang to
|
|
49
|
+
detect the fundamental frequency of a sound.
|
|
50
|
+
|
|
51
|
+
See http://delysid.org/tuneit.html
|
|
52
|
+
|
|
53
|
+
\b \p fcomb : a fast harmonic comb filter
|
|
54
|
+
|
|
55
|
+
This pitch extraction method implements a fast harmonic comb filter to
|
|
56
|
+
determine the fundamental frequency of a harmonic sound.
|
|
57
|
+
|
|
58
|
+
This file was derived from the tuneit project, written by Mario Lang to
|
|
59
|
+
detect the fundamental frequency of a sound.
|
|
60
|
+
|
|
61
|
+
See http://delysid.org/tuneit.html
|
|
62
|
+
|
|
63
|
+
\b \p mcomb : multiple-comb filter
|
|
64
|
+
|
|
65
|
+
This fundamental frequency estimation algorithm implements spectral
|
|
66
|
+
flattening, multi-comb filtering and peak histogramming.
|
|
67
|
+
|
|
68
|
+
This method was designed by Juan P. Bello and described in:
|
|
69
|
+
|
|
70
|
+
Juan-Pablo Bello. ``Towards the Automated Analysis of Simple Polyphonic
|
|
71
|
+
Music''. PhD thesis, Centre for Digital Music, Queen Mary University of
|
|
72
|
+
London, London, UK, 2003.
|
|
73
|
+
|
|
74
|
+
\b \p yin : YIN algorithm
|
|
75
|
+
|
|
76
|
+
This algorithm was developed by A. de Cheveigne and H. Kawahara and
|
|
77
|
+
published in:
|
|
78
|
+
|
|
79
|
+
De Cheveigné, A., Kawahara, H. (2002) "YIN, a fundamental frequency
|
|
80
|
+
estimator for speech and music", J. Acoust. Soc. Am. 111, 1917-1930.
|
|
81
|
+
|
|
82
|
+
see http://recherche.ircam.fr/equipes/pcm/pub/people/cheveign.html
|
|
83
|
+
|
|
84
|
+
\b \p yinfast : Yinfast algorithm
|
|
85
|
+
|
|
86
|
+
This algorithm is equivalent to the YIN algorithm, but computed in the
|
|
87
|
+
spectral domain for efficiency. See also `python/demos/demo_yin_compare.py`.
|
|
88
|
+
|
|
89
|
+
\b \p yinfft : Yinfft algorithm
|
|
90
|
+
|
|
91
|
+
This algorithm was derived from the YIN algorithm. In this implementation, a
|
|
92
|
+
Fourier transform is used to compute a tapered square difference function,
|
|
93
|
+
which allows spectral weighting. Because the difference function is tapered,
|
|
94
|
+
the selection of the period is simplified.
|
|
95
|
+
|
|
96
|
+
Paul Brossier, [Automatic annotation of musical audio for interactive
|
|
97
|
+
systems](http://aubio.org/phd/), Chapter 3, Pitch Analysis, PhD thesis,
|
|
98
|
+
Centre for Digital music, Queen Mary University of London, London, UK, 2006.
|
|
99
|
+
|
|
100
|
+
\example pitch/test-pitch.c
|
|
101
|
+
\example examples/aubiopitch.c
|
|
102
|
+
|
|
103
|
+
*/
|
|
104
|
+
|
|
105
|
+
/** pitch detection object */
|
|
106
|
+
typedef struct _aubio_pitch_t aubio_pitch_t;
|
|
107
|
+
|
|
108
|
+
/** execute pitch detection on an input signal frame
|
|
109
|
+
|
|
110
|
+
\param o pitch detection object as returned by new_aubio_pitch()
|
|
111
|
+
\param in input signal of size [hop_size]
|
|
112
|
+
\param out output pitch candidates of size [1]
|
|
113
|
+
|
|
114
|
+
*/
|
|
115
|
+
void aubio_pitch_do (aubio_pitch_t * o, const fvec_t * in, fvec_t * out);
|
|
116
|
+
|
|
117
|
+
/** change yin or yinfft tolerance threshold
|
|
118
|
+
|
|
119
|
+
\param o pitch detection object as returned by new_aubio_pitch()
|
|
120
|
+
\param tol tolerance default is 0.15 for yin and 0.85 for yinfft
|
|
121
|
+
|
|
122
|
+
*/
|
|
123
|
+
uint_t aubio_pitch_set_tolerance (aubio_pitch_t * o, smpl_t tol);
|
|
124
|
+
|
|
125
|
+
/** get yin or yinfft tolerance threshold
|
|
126
|
+
|
|
127
|
+
\param o pitch detection object as returned by new_aubio_pitch()
|
|
128
|
+
\return tolerance (default is 0.15 for yin and 0.85 for yinfft)
|
|
129
|
+
|
|
130
|
+
*/
|
|
131
|
+
smpl_t aubio_pitch_get_tolerance (aubio_pitch_t * o);
|
|
132
|
+
|
|
133
|
+
/** deletion of the pitch detection object
|
|
134
|
+
|
|
135
|
+
\param o pitch detection object as returned by new_aubio_pitch()
|
|
136
|
+
|
|
137
|
+
*/
|
|
138
|
+
void del_aubio_pitch (aubio_pitch_t * o);
|
|
139
|
+
|
|
140
|
+
/** creation of the pitch detection object
|
|
141
|
+
|
|
142
|
+
\param method set pitch detection algorithm
|
|
143
|
+
\param buf_size size of the input buffer to analyse
|
|
144
|
+
\param hop_size step size between two consecutive analysis instant
|
|
145
|
+
\param samplerate sampling rate of the signal
|
|
146
|
+
|
|
147
|
+
\return newly created ::aubio_pitch_t
|
|
148
|
+
|
|
149
|
+
*/
|
|
150
|
+
aubio_pitch_t *new_aubio_pitch (const char_t * method,
|
|
151
|
+
uint_t buf_size, uint_t hop_size, uint_t samplerate);
|
|
152
|
+
|
|
153
|
+
/** set the output unit of the pitch detection object
|
|
154
|
+
|
|
155
|
+
\param o pitch detection object as returned by new_aubio_pitch()
|
|
156
|
+
\param mode set pitch units for output
|
|
157
|
+
|
|
158
|
+
mode can be one of "Hz", "midi", "cent", or "bin". Defaults to "Hz".
|
|
159
|
+
|
|
160
|
+
\return 0 if successfull, non-zero otherwise
|
|
161
|
+
|
|
162
|
+
*/
|
|
163
|
+
uint_t aubio_pitch_set_unit (aubio_pitch_t * o, const char_t * mode);
|
|
164
|
+
|
|
165
|
+
/** set the silence threshold of the pitch detection object
|
|
166
|
+
|
|
167
|
+
\param o pitch detection object as returned by new_aubio_pitch()
|
|
168
|
+
\param silence level threshold under which pitch should be ignored, in dB
|
|
169
|
+
|
|
170
|
+
\return 0 if successfull, non-zero otherwise
|
|
171
|
+
|
|
172
|
+
*/
|
|
173
|
+
uint_t aubio_pitch_set_silence (aubio_pitch_t * o, smpl_t silence);
|
|
174
|
+
|
|
175
|
+
/** set the silence threshold of the pitch detection object
|
|
176
|
+
|
|
177
|
+
\param o pitch detection object as returned by ::new_aubio_pitch()
|
|
178
|
+
|
|
179
|
+
\return level threshold under which pitch should be ignored, in dB
|
|
180
|
+
|
|
181
|
+
*/
|
|
182
|
+
smpl_t aubio_pitch_get_silence (aubio_pitch_t * o);
|
|
183
|
+
|
|
184
|
+
/** get the current confidence
|
|
185
|
+
|
|
186
|
+
\param o pitch detection object as returned by new_aubio_pitch()
|
|
187
|
+
|
|
188
|
+
\return the current confidence of the pitch algorithm
|
|
189
|
+
|
|
190
|
+
*/
|
|
191
|
+
smpl_t aubio_pitch_get_confidence (aubio_pitch_t * o);
|
|
192
|
+
|
|
193
|
+
#ifdef __cplusplus
|
|
194
|
+
}
|
|
195
|
+
#endif
|
|
196
|
+
|
|
197
|
+
#endif /* AUBIO_PITCH_H */
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright (C) 2003-2013 Paul Brossier <piem@aubio.org>
|
|
3
|
+
|
|
4
|
+
This file is part of aubio.
|
|
5
|
+
|
|
6
|
+
aubio is free software: you can redistribute it and/or modify
|
|
7
|
+
it under the terms of the GNU General Public License as published by
|
|
8
|
+
the Free Software Foundation, either version 3 of the License, or
|
|
9
|
+
(at your option) any later version.
|
|
10
|
+
|
|
11
|
+
aubio is distributed in the hope that it will be useful,
|
|
12
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
13
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
14
|
+
GNU General Public License for more details.
|
|
15
|
+
|
|
16
|
+
You should have received a copy of the GNU General Public License
|
|
17
|
+
along with aubio. If not, see <http://www.gnu.org/licenses/>.
|
|
18
|
+
|
|
19
|
+
*/
|
|
20
|
+
|
|
21
|
+
/** \file
|
|
22
|
+
|
|
23
|
+
Pitch detection using a fast harmonic comb filter
|
|
24
|
+
|
|
25
|
+
This pitch extraction method implements a fast harmonic comb filter to
|
|
26
|
+
determine the fundamental frequency of a harmonic sound.
|
|
27
|
+
|
|
28
|
+
This file was derived from the tuneit project, written by Mario Lang to
|
|
29
|
+
detect the fundamental frequency of a sound.
|
|
30
|
+
|
|
31
|
+
See http://delysid.org/tuneit.html
|
|
32
|
+
|
|
33
|
+
\example pitch/test-pitchfcomb.c
|
|
34
|
+
|
|
35
|
+
*/
|
|
36
|
+
|
|
37
|
+
#ifndef AUBIO_PITCHFCOMB_H
|
|
38
|
+
#define AUBIO_PITCHFCOMB_H
|
|
39
|
+
|
|
40
|
+
#ifdef __cplusplus
|
|
41
|
+
extern "C" {
|
|
42
|
+
#endif
|
|
43
|
+
|
|
44
|
+
/** pitch detection object */
|
|
45
|
+
typedef struct _aubio_pitchfcomb_t aubio_pitchfcomb_t;
|
|
46
|
+
|
|
47
|
+
/** execute pitch detection on an input buffer
|
|
48
|
+
|
|
49
|
+
\param p pitch detection object as returned by new_aubio_pitchfcomb
|
|
50
|
+
\param input input signal window (length as specified at creation time)
|
|
51
|
+
\param output pitch candidates in bins
|
|
52
|
+
|
|
53
|
+
*/
|
|
54
|
+
void aubio_pitchfcomb_do (aubio_pitchfcomb_t * p, const fvec_t * input,
|
|
55
|
+
fvec_t * output);
|
|
56
|
+
|
|
57
|
+
/** creation of the pitch detection object
|
|
58
|
+
|
|
59
|
+
\param buf_size size of the input buffer to analyse
|
|
60
|
+
\param hop_size step size between two consecutive analysis instant
|
|
61
|
+
|
|
62
|
+
*/
|
|
63
|
+
aubio_pitchfcomb_t *new_aubio_pitchfcomb (uint_t buf_size, uint_t hop_size);
|
|
64
|
+
|
|
65
|
+
/** deletion of the pitch detection object
|
|
66
|
+
|
|
67
|
+
\param p pitch detection object as returned by new_aubio_pitchfcomb
|
|
68
|
+
|
|
69
|
+
*/
|
|
70
|
+
void del_aubio_pitchfcomb (aubio_pitchfcomb_t * p);
|
|
71
|
+
|
|
72
|
+
#ifdef __cplusplus
|
|
73
|
+
}
|
|
74
|
+
#endif
|
|
75
|
+
|
|
76
|
+
#endif /* AUBIO_PITCHFCOMB_H */
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright (C) 2003-2013 Paul Brossier <piem@aubio.org>
|
|
3
|
+
|
|
4
|
+
This file is part of aubio.
|
|
5
|
+
|
|
6
|
+
aubio is free software: you can redistribute it and/or modify
|
|
7
|
+
it under the terms of the GNU General Public License as published by
|
|
8
|
+
the Free Software Foundation, either version 3 of the License, or
|
|
9
|
+
(at your option) any later version.
|
|
10
|
+
|
|
11
|
+
aubio is distributed in the hope that it will be useful,
|
|
12
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
13
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
14
|
+
GNU General Public License for more details.
|
|
15
|
+
|
|
16
|
+
You should have received a copy of the GNU General Public License
|
|
17
|
+
along with aubio. If not, see <http://www.gnu.org/licenses/>.
|
|
18
|
+
|
|
19
|
+
*/
|
|
20
|
+
|
|
21
|
+
/** \file
|
|
22
|
+
|
|
23
|
+
Pitch detection using multiple-comb filter
|
|
24
|
+
|
|
25
|
+
This fundamental frequency estimation algorithm implements spectral
|
|
26
|
+
flattening, multi-comb filtering and peak histogramming.
|
|
27
|
+
|
|
28
|
+
This method was designed by Juan P. Bello and described in:
|
|
29
|
+
|
|
30
|
+
Juan-Pablo Bello. ``Towards the Automated Analysis of Simple Polyphonic
|
|
31
|
+
Music''. PhD thesis, Centre for Digital Music, Queen Mary University of
|
|
32
|
+
London, London, UK, 2003.
|
|
33
|
+
|
|
34
|
+
\example pitch/test-pitchmcomb.c
|
|
35
|
+
|
|
36
|
+
*/
|
|
37
|
+
|
|
38
|
+
#ifndef AUBIO_PITCHMCOMB_H
|
|
39
|
+
#define AUBIO_PITCHMCOMB_H
|
|
40
|
+
|
|
41
|
+
#ifdef __cplusplus
|
|
42
|
+
extern "C" {
|
|
43
|
+
#endif
|
|
44
|
+
|
|
45
|
+
/** pitch detection object */
|
|
46
|
+
typedef struct _aubio_pitchmcomb_t aubio_pitchmcomb_t;
|
|
47
|
+
|
|
48
|
+
/** execute pitch detection on an input spectral frame
|
|
49
|
+
|
|
50
|
+
\param p pitch detection object as returned by new_aubio_pitchmcomb
|
|
51
|
+
\param in_fftgrain input signal spectrum as computed by aubio_pvoc_do
|
|
52
|
+
\param out_cands pitch candidate frequenciess, in bins
|
|
53
|
+
|
|
54
|
+
*/
|
|
55
|
+
void aubio_pitchmcomb_do (aubio_pitchmcomb_t * p, const cvec_t * in_fftgrain,
|
|
56
|
+
fvec_t * out_cands);
|
|
57
|
+
|
|
58
|
+
/** creation of the pitch detection object
|
|
59
|
+
|
|
60
|
+
\param buf_size size of the input buffer to analyse
|
|
61
|
+
\param hop_size step size between two consecutive analysis instant
|
|
62
|
+
|
|
63
|
+
*/
|
|
64
|
+
aubio_pitchmcomb_t *new_aubio_pitchmcomb (uint_t buf_size, uint_t hop_size);
|
|
65
|
+
|
|
66
|
+
/** deletion of the pitch detection object
|
|
67
|
+
|
|
68
|
+
\param p pitch detection object as returned by new_aubio_pitchfcomb
|
|
69
|
+
|
|
70
|
+
*/
|
|
71
|
+
void del_aubio_pitchmcomb (aubio_pitchmcomb_t * p);
|
|
72
|
+
|
|
73
|
+
#ifdef __cplusplus
|
|
74
|
+
}
|
|
75
|
+
#endif
|
|
76
|
+
|
|
77
|
+
#endif /* AUBIO_PITCHMCOMB_H */
|