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,75 @@
|
|
|
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 Schmitt trigger
|
|
24
|
+
|
|
25
|
+
This pitch extraction method implements a Schmitt trigger to estimate the
|
|
26
|
+
period of a signal.
|
|
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-pitchschmitt.c
|
|
34
|
+
|
|
35
|
+
*/
|
|
36
|
+
|
|
37
|
+
#ifndef AUBIO_PITCHSCHMITT_H
|
|
38
|
+
#define AUBIO_PITCHSCHMITT_H
|
|
39
|
+
|
|
40
|
+
#ifdef __cplusplus
|
|
41
|
+
extern "C" {
|
|
42
|
+
#endif
|
|
43
|
+
|
|
44
|
+
/** pitch detection object */
|
|
45
|
+
typedef struct _aubio_pitchschmitt_t aubio_pitchschmitt_t;
|
|
46
|
+
|
|
47
|
+
/** execute pitch detection on an input buffer
|
|
48
|
+
|
|
49
|
+
\param p pitch detection object as returned by new_aubio_pitchschmitt
|
|
50
|
+
\param samples_in input signal vector (length as specified at creation time)
|
|
51
|
+
\param cands_out pitch period estimates, in samples
|
|
52
|
+
|
|
53
|
+
*/
|
|
54
|
+
void aubio_pitchschmitt_do (aubio_pitchschmitt_t * p, const fvec_t * samples_in,
|
|
55
|
+
fvec_t * cands_out);
|
|
56
|
+
|
|
57
|
+
/** creation of the pitch detection object
|
|
58
|
+
|
|
59
|
+
\param buf_size size of the input buffer to analyse
|
|
60
|
+
|
|
61
|
+
*/
|
|
62
|
+
aubio_pitchschmitt_t *new_aubio_pitchschmitt (uint_t buf_size);
|
|
63
|
+
|
|
64
|
+
/** deletion of the pitch detection object
|
|
65
|
+
|
|
66
|
+
\param p pitch detection object as returned by new_aubio_pitchschmitt
|
|
67
|
+
|
|
68
|
+
*/
|
|
69
|
+
void del_aubio_pitchschmitt (aubio_pitchschmitt_t * p);
|
|
70
|
+
|
|
71
|
+
#ifdef __cplusplus
|
|
72
|
+
}
|
|
73
|
+
#endif
|
|
74
|
+
|
|
75
|
+
#endif /* AUBIO_PITCHSCHMITT_H */
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright (C) 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 spectral auto correlation
|
|
24
|
+
|
|
25
|
+
This algorithm implements pitch detection by computing the autocorrelation
|
|
26
|
+
function as the cosine transform of the square spectral magnitudes.
|
|
27
|
+
|
|
28
|
+
Anssi Klapuri. Qualitative and quantitative aspects in the design of
|
|
29
|
+
periodicity esti- mation algorithms. In Proceedings of the European Signal
|
|
30
|
+
Processing Conference (EUSIPCO), 2000.
|
|
31
|
+
|
|
32
|
+
Paul Brossier, [Automatic annotation of musical audio for interactive
|
|
33
|
+
systems](http://aubio.org/phd/), Chapter 3, Pitch Analysis, Autocorrelation,
|
|
34
|
+
pp. 75-77, PhD thesis, Centre for Digital music, Queen Mary University of
|
|
35
|
+
London, London, UK, 2006.
|
|
36
|
+
|
|
37
|
+
\example pitch/test-pitchspecacf.c
|
|
38
|
+
|
|
39
|
+
*/
|
|
40
|
+
|
|
41
|
+
#ifndef AUBIO_PITCHSPECACF_H
|
|
42
|
+
#define AUBIO_PITCHSPECACF_H
|
|
43
|
+
|
|
44
|
+
#ifdef __cplusplus
|
|
45
|
+
extern "C" {
|
|
46
|
+
#endif
|
|
47
|
+
|
|
48
|
+
/** pitch detection object */
|
|
49
|
+
typedef struct _aubio_pitchspecacf_t aubio_pitchspecacf_t;
|
|
50
|
+
|
|
51
|
+
/** execute pitch detection on an input buffer
|
|
52
|
+
|
|
53
|
+
\param o pitch detection object as returned by new_aubio_pitchspecacf
|
|
54
|
+
\param samples_in input signal vector (length as specified at creation time)
|
|
55
|
+
\param cands_out pitch period candidates, in samples
|
|
56
|
+
|
|
57
|
+
*/
|
|
58
|
+
void aubio_pitchspecacf_do (aubio_pitchspecacf_t * o, const fvec_t * samples_in, fvec_t * cands_out);
|
|
59
|
+
/** creation of the pitch detection object
|
|
60
|
+
|
|
61
|
+
\param buf_size size of the input buffer to analyse
|
|
62
|
+
|
|
63
|
+
*/
|
|
64
|
+
aubio_pitchspecacf_t *new_aubio_pitchspecacf (uint_t buf_size);
|
|
65
|
+
/** deletion of the pitch detection object
|
|
66
|
+
|
|
67
|
+
\param o pitch detection object as returned by new_aubio_pitchspecacf()
|
|
68
|
+
|
|
69
|
+
*/
|
|
70
|
+
void del_aubio_pitchspecacf (aubio_pitchspecacf_t * o);
|
|
71
|
+
|
|
72
|
+
/** get tolerance parameter for `specacf` pitch detection object
|
|
73
|
+
|
|
74
|
+
\param o pitch detection object
|
|
75
|
+
|
|
76
|
+
\return tolerance parameter for minima selection [default 1.]
|
|
77
|
+
|
|
78
|
+
*/
|
|
79
|
+
smpl_t aubio_pitchspecacf_get_tolerance (const aubio_pitchspecacf_t * o);
|
|
80
|
+
|
|
81
|
+
/** set tolerance parameter for `specacf` pitch detection object
|
|
82
|
+
|
|
83
|
+
\param o pitch detection object
|
|
84
|
+
\param tol tolerance parameter for minima selection [default 1.]
|
|
85
|
+
|
|
86
|
+
\return `1` on error, `0` on success
|
|
87
|
+
|
|
88
|
+
*/
|
|
89
|
+
uint_t aubio_pitchspecacf_set_tolerance (aubio_pitchspecacf_t * o, smpl_t tol);
|
|
90
|
+
|
|
91
|
+
/** get currenct confidence for `specacf` pitch detection object
|
|
92
|
+
|
|
93
|
+
\param o pitch detection object
|
|
94
|
+
\return confidence parameter
|
|
95
|
+
|
|
96
|
+
*/
|
|
97
|
+
smpl_t aubio_pitchspecacf_get_confidence (const aubio_pitchspecacf_t * o);
|
|
98
|
+
|
|
99
|
+
#ifdef __cplusplus
|
|
100
|
+
}
|
|
101
|
+
#endif
|
|
102
|
+
|
|
103
|
+
#endif /* AUBIO_PITCHSPECACF_H */
|
|
@@ -0,0 +1,100 @@
|
|
|
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 the YIN algorithm
|
|
24
|
+
|
|
25
|
+
This algorithm was developed by A. de Cheveigne and H. Kawahara and
|
|
26
|
+
published in:
|
|
27
|
+
|
|
28
|
+
De Cheveigné, A., Kawahara, H. (2002) "YIN, a fundamental frequency
|
|
29
|
+
estimator for speech and music", J. Acoust. Soc. Am. 111, 1917-1930.
|
|
30
|
+
|
|
31
|
+
see http://recherche.ircam.fr/equipes/pcm/pub/people/cheveign.html
|
|
32
|
+
http://recherche.ircam.fr/equipes/pcm/cheveign/ps/2002_JASA_YIN_proof.pdf
|
|
33
|
+
|
|
34
|
+
\example pitch/test-pitchyin.c
|
|
35
|
+
|
|
36
|
+
*/
|
|
37
|
+
|
|
38
|
+
#ifndef AUBIO_PITCHYIN_H
|
|
39
|
+
#define AUBIO_PITCHYIN_H
|
|
40
|
+
|
|
41
|
+
#ifdef __cplusplus
|
|
42
|
+
extern "C" {
|
|
43
|
+
#endif
|
|
44
|
+
|
|
45
|
+
/** pitch detection object */
|
|
46
|
+
typedef struct _aubio_pitchyin_t aubio_pitchyin_t;
|
|
47
|
+
|
|
48
|
+
/** creation of the pitch detection object
|
|
49
|
+
|
|
50
|
+
\param buf_size size of the input buffer to analyse
|
|
51
|
+
|
|
52
|
+
*/
|
|
53
|
+
aubio_pitchyin_t *new_aubio_pitchyin (uint_t buf_size);
|
|
54
|
+
|
|
55
|
+
/** deletion of the pitch detection object
|
|
56
|
+
|
|
57
|
+
\param o pitch detection object as returned by new_aubio_pitchyin()
|
|
58
|
+
|
|
59
|
+
*/
|
|
60
|
+
void del_aubio_pitchyin (aubio_pitchyin_t * o);
|
|
61
|
+
|
|
62
|
+
/** execute pitch detection an input buffer
|
|
63
|
+
|
|
64
|
+
\param o pitch detection object as returned by new_aubio_pitchyin()
|
|
65
|
+
\param samples_in input signal vector (length as specified at creation time)
|
|
66
|
+
\param cands_out pitch period candidates, in samples
|
|
67
|
+
|
|
68
|
+
*/
|
|
69
|
+
void aubio_pitchyin_do (aubio_pitchyin_t * o, const fvec_t * samples_in, fvec_t * cands_out);
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
/** set tolerance parameter for YIN algorithm
|
|
73
|
+
|
|
74
|
+
\param o YIN pitch detection object
|
|
75
|
+
\param tol tolerance parameter for minima selection [default 0.15]
|
|
76
|
+
|
|
77
|
+
*/
|
|
78
|
+
uint_t aubio_pitchyin_set_tolerance (aubio_pitchyin_t * o, smpl_t tol);
|
|
79
|
+
|
|
80
|
+
/** get tolerance parameter for YIN algorithm
|
|
81
|
+
|
|
82
|
+
\param o YIN pitch detection object
|
|
83
|
+
\return tolerance parameter for minima selection [default 0.15]
|
|
84
|
+
|
|
85
|
+
*/
|
|
86
|
+
smpl_t aubio_pitchyin_get_tolerance (aubio_pitchyin_t * o);
|
|
87
|
+
|
|
88
|
+
/** get current confidence of YIN algorithm
|
|
89
|
+
|
|
90
|
+
\param o YIN pitch detection object
|
|
91
|
+
\return confidence parameter
|
|
92
|
+
|
|
93
|
+
*/
|
|
94
|
+
smpl_t aubio_pitchyin_get_confidence (aubio_pitchyin_t * o);
|
|
95
|
+
|
|
96
|
+
#ifdef __cplusplus
|
|
97
|
+
}
|
|
98
|
+
#endif
|
|
99
|
+
|
|
100
|
+
#endif /* AUBIO_PITCHYIN_H */
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright (C) 2003-2017 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 YIN algorithm (fast implementation)
|
|
24
|
+
|
|
25
|
+
This algorithm was developed by A. de Cheveigne and H. Kawahara and
|
|
26
|
+
published in:
|
|
27
|
+
|
|
28
|
+
De Cheveigné, A., Kawahara, H. (2002) "YIN, a fundamental frequency
|
|
29
|
+
estimator for speech and music", J. Acoust. Soc. Am. 111, 1917-1930.
|
|
30
|
+
|
|
31
|
+
This implementation compute the autocorrelation function using time domain
|
|
32
|
+
convolution computed in the spectral domain.
|
|
33
|
+
|
|
34
|
+
see http://recherche.ircam.fr/equipes/pcm/pub/people/cheveign.html
|
|
35
|
+
http://recherche.ircam.fr/equipes/pcm/cheveign/ps/2002_JASA_YIN_proof.pdf
|
|
36
|
+
|
|
37
|
+
*/
|
|
38
|
+
|
|
39
|
+
#ifndef AUBIO_PITCHYINFAST_H
|
|
40
|
+
#define AUBIO_PITCHYINFAST_H
|
|
41
|
+
|
|
42
|
+
#ifdef __cplusplus
|
|
43
|
+
extern "C" {
|
|
44
|
+
#endif
|
|
45
|
+
|
|
46
|
+
/** pitch detection object */
|
|
47
|
+
typedef struct _aubio_pitchyinfast_t aubio_pitchyinfast_t;
|
|
48
|
+
|
|
49
|
+
/** creation of the pitch detection object
|
|
50
|
+
|
|
51
|
+
\param buf_size size of the input buffer to analyse
|
|
52
|
+
|
|
53
|
+
*/
|
|
54
|
+
aubio_pitchyinfast_t *new_aubio_pitchyinfast (uint_t buf_size);
|
|
55
|
+
|
|
56
|
+
/** deletion of the pitch detection object
|
|
57
|
+
|
|
58
|
+
\param o pitch detection object as returned by new_aubio_pitchyin()
|
|
59
|
+
|
|
60
|
+
*/
|
|
61
|
+
void del_aubio_pitchyinfast (aubio_pitchyinfast_t * o);
|
|
62
|
+
|
|
63
|
+
/** execute pitch detection an input buffer
|
|
64
|
+
|
|
65
|
+
\param o pitch detection object as returned by new_aubio_pitchyin()
|
|
66
|
+
\param samples_in input signal vector (length as specified at creation time)
|
|
67
|
+
\param cands_out pitch period candidates, in samples
|
|
68
|
+
|
|
69
|
+
*/
|
|
70
|
+
void aubio_pitchyinfast_do (aubio_pitchyinfast_t * o, const fvec_t * samples_in, fvec_t * cands_out);
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
/** set tolerance parameter for YIN algorithm
|
|
74
|
+
|
|
75
|
+
\param o YIN pitch detection object
|
|
76
|
+
\param tol tolerance parameter for minima selection [default 0.15]
|
|
77
|
+
|
|
78
|
+
*/
|
|
79
|
+
uint_t aubio_pitchyinfast_set_tolerance (aubio_pitchyinfast_t * o, smpl_t tol);
|
|
80
|
+
|
|
81
|
+
/** get tolerance parameter for YIN algorithm
|
|
82
|
+
|
|
83
|
+
\param o YIN pitch detection object
|
|
84
|
+
\return tolerance parameter for minima selection [default 0.15]
|
|
85
|
+
|
|
86
|
+
*/
|
|
87
|
+
smpl_t aubio_pitchyinfast_get_tolerance (aubio_pitchyinfast_t * o);
|
|
88
|
+
|
|
89
|
+
/** get current confidence of YIN algorithm
|
|
90
|
+
|
|
91
|
+
\param o YIN pitch detection object
|
|
92
|
+
\return confidence parameter
|
|
93
|
+
|
|
94
|
+
*/
|
|
95
|
+
smpl_t aubio_pitchyinfast_get_confidence (aubio_pitchyinfast_t * o);
|
|
96
|
+
|
|
97
|
+
#ifdef __cplusplus
|
|
98
|
+
}
|
|
99
|
+
#endif
|
|
100
|
+
|
|
101
|
+
#endif /* AUBIO_PITCHYINFAST_H */
|
|
102
|
+
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright (C) 2003-2015 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 spectral implementation of the YIN algorithm
|
|
24
|
+
|
|
25
|
+
This algorithm was derived from the YIN algorithm. In this implementation, a
|
|
26
|
+
Fourier transform is used to compute a tapered square difference function,
|
|
27
|
+
which allows spectral weighting. Because the difference function is tapered,
|
|
28
|
+
the selection of the period is simplified.
|
|
29
|
+
|
|
30
|
+
Paul Brossier, [Automatic annotation of musical audio for interactive
|
|
31
|
+
systems](http://aubio.org/phd/), Chapter 3, Pitch Analysis, PhD thesis,
|
|
32
|
+
Centre for Digital music, Queen Mary University of London, London, UK, 2006.
|
|
33
|
+
|
|
34
|
+
\example pitch/test-pitchyinfft.c
|
|
35
|
+
|
|
36
|
+
*/
|
|
37
|
+
|
|
38
|
+
#ifndef AUBIO_PITCHYINFFT_H
|
|
39
|
+
#define AUBIO_PITCHYINFFT_H
|
|
40
|
+
|
|
41
|
+
#ifdef __cplusplus
|
|
42
|
+
extern "C" {
|
|
43
|
+
#endif
|
|
44
|
+
|
|
45
|
+
/** pitch detection object */
|
|
46
|
+
typedef struct _aubio_pitchyinfft_t aubio_pitchyinfft_t;
|
|
47
|
+
|
|
48
|
+
/** execute pitch detection on an input buffer
|
|
49
|
+
|
|
50
|
+
\param o pitch detection object as returned by new_aubio_pitchyinfft
|
|
51
|
+
\param samples_in input signal vector (length as specified at creation time)
|
|
52
|
+
\param cands_out pitch period candidates, in samples
|
|
53
|
+
|
|
54
|
+
*/
|
|
55
|
+
void aubio_pitchyinfft_do (aubio_pitchyinfft_t * o, const fvec_t * samples_in, fvec_t * cands_out);
|
|
56
|
+
/** creation of the pitch detection object
|
|
57
|
+
|
|
58
|
+
\param samplerate samplerate of the input signal
|
|
59
|
+
\param buf_size size of the input buffer to analyse
|
|
60
|
+
|
|
61
|
+
*/
|
|
62
|
+
aubio_pitchyinfft_t *new_aubio_pitchyinfft (uint_t samplerate, uint_t buf_size);
|
|
63
|
+
/** deletion of the pitch detection object
|
|
64
|
+
|
|
65
|
+
\param o pitch detection object as returned by new_aubio_pitchyinfft()
|
|
66
|
+
|
|
67
|
+
*/
|
|
68
|
+
void del_aubio_pitchyinfft (aubio_pitchyinfft_t * o);
|
|
69
|
+
|
|
70
|
+
/** get tolerance parameter for YIN algorithm
|
|
71
|
+
|
|
72
|
+
\param o YIN pitch detection object
|
|
73
|
+
|
|
74
|
+
\return tolerance parameter for minima selection [default 0.15]
|
|
75
|
+
|
|
76
|
+
*/
|
|
77
|
+
smpl_t aubio_pitchyinfft_get_tolerance (aubio_pitchyinfft_t * o);
|
|
78
|
+
|
|
79
|
+
/** set tolerance parameter for YIN algorithm
|
|
80
|
+
|
|
81
|
+
\param o YIN pitch detection object
|
|
82
|
+
\param tol tolerance parameter for minima selection [default 0.15]
|
|
83
|
+
|
|
84
|
+
*/
|
|
85
|
+
uint_t aubio_pitchyinfft_set_tolerance (aubio_pitchyinfft_t * o, smpl_t tol);
|
|
86
|
+
|
|
87
|
+
/** get current confidence of YIN algorithm
|
|
88
|
+
|
|
89
|
+
\param o YIN pitch detection object
|
|
90
|
+
\return confidence parameter
|
|
91
|
+
|
|
92
|
+
*/
|
|
93
|
+
smpl_t aubio_pitchyinfft_get_confidence (aubio_pitchyinfft_t * o);
|
|
94
|
+
|
|
95
|
+
#ifdef __cplusplus
|
|
96
|
+
}
|
|
97
|
+
#endif
|
|
98
|
+
|
|
99
|
+
#endif /* AUBIO_PITCHYINFFT_H */
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright (C) 2003-2015 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_RESAMPLER_H
|
|
22
|
+
#define AUBIO_RESAMPLER_H
|
|
23
|
+
|
|
24
|
+
/** \file
|
|
25
|
+
|
|
26
|
+
Resampling object
|
|
27
|
+
|
|
28
|
+
This object resamples an input vector into an output vector using
|
|
29
|
+
libsamplerate. See http://www.mega-nerd.com/SRC/
|
|
30
|
+
|
|
31
|
+
*/
|
|
32
|
+
|
|
33
|
+
#ifdef __cplusplus
|
|
34
|
+
extern "C" {
|
|
35
|
+
#endif
|
|
36
|
+
|
|
37
|
+
/** resampler object */
|
|
38
|
+
typedef struct _aubio_resampler_t aubio_resampler_t;
|
|
39
|
+
|
|
40
|
+
/** create resampler object
|
|
41
|
+
|
|
42
|
+
\param ratio output_sample_rate / input_sample_rate
|
|
43
|
+
\param type libsamplerate resampling type, see http://www.mega-nerd.com/SRC/api_misc.html#Converters
|
|
44
|
+
|
|
45
|
+
*/
|
|
46
|
+
aubio_resampler_t *new_aubio_resampler (smpl_t ratio, uint_t type);
|
|
47
|
+
|
|
48
|
+
/** delete resampler object */
|
|
49
|
+
void del_aubio_resampler (aubio_resampler_t * s);
|
|
50
|
+
|
|
51
|
+
/** resample input in output
|
|
52
|
+
|
|
53
|
+
\param s resampler object
|
|
54
|
+
\param input input buffer of size N
|
|
55
|
+
\param output output buffer of size N*ratio
|
|
56
|
+
|
|
57
|
+
*/
|
|
58
|
+
void aubio_resampler_do (aubio_resampler_t * s, const fvec_t * input,
|
|
59
|
+
fvec_t * output);
|
|
60
|
+
|
|
61
|
+
#ifdef __cplusplus
|
|
62
|
+
}
|
|
63
|
+
#endif
|
|
64
|
+
|
|
65
|
+
#endif /* AUBIO_RESAMPLER_H */
|
|
@@ -0,0 +1,140 @@
|
|
|
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_SAMPLER_H
|
|
22
|
+
#define AUBIO_SAMPLER_H
|
|
23
|
+
|
|
24
|
+
/** \file
|
|
25
|
+
|
|
26
|
+
Load and play sound files.
|
|
27
|
+
|
|
28
|
+
This file loads a sample and gets ready to play it.
|
|
29
|
+
|
|
30
|
+
The `_do` function adds the new samples to the input, and write the result as
|
|
31
|
+
the output.
|
|
32
|
+
|
|
33
|
+
\example synth/test-sampler.c
|
|
34
|
+
|
|
35
|
+
*/
|
|
36
|
+
|
|
37
|
+
#ifdef __cplusplus
|
|
38
|
+
extern "C" {
|
|
39
|
+
#endif
|
|
40
|
+
|
|
41
|
+
/** sampler object */
|
|
42
|
+
typedef struct _aubio_sampler_t aubio_sampler_t;
|
|
43
|
+
|
|
44
|
+
/** create new sampler object
|
|
45
|
+
|
|
46
|
+
\param samplerate the sampling rate of the new sampler
|
|
47
|
+
\param hop_size the block size of the new sampler
|
|
48
|
+
|
|
49
|
+
\return the newly created ::aubio_sampler_t
|
|
50
|
+
|
|
51
|
+
*/
|
|
52
|
+
aubio_sampler_t * new_aubio_sampler(uint_t samplerate, uint_t hop_size);
|
|
53
|
+
|
|
54
|
+
/** load source in sampler
|
|
55
|
+
|
|
56
|
+
\param o sampler, created by new_aubio_sampler()
|
|
57
|
+
\param uri the uri of the source to load
|
|
58
|
+
|
|
59
|
+
\return 0 if successful, non-zero otherwise
|
|
60
|
+
|
|
61
|
+
*/
|
|
62
|
+
uint_t aubio_sampler_load( aubio_sampler_t * o, const char_t * uri );
|
|
63
|
+
|
|
64
|
+
/** process sampler function
|
|
65
|
+
|
|
66
|
+
\param o sampler, created by new_aubio_sampler()
|
|
67
|
+
\param input input of the sampler, to be added to the output
|
|
68
|
+
\param output output of the sampler
|
|
69
|
+
|
|
70
|
+
This function adds the new samples from the playing source to the output.
|
|
71
|
+
|
|
72
|
+
If `input` is not NULL and different from `output`, then the samples from `input`
|
|
73
|
+
are added to the output.
|
|
74
|
+
|
|
75
|
+
*/
|
|
76
|
+
void aubio_sampler_do ( aubio_sampler_t * o, const fvec_t * input, fvec_t * output);
|
|
77
|
+
|
|
78
|
+
/** process sampler function, multiple channels
|
|
79
|
+
|
|
80
|
+
\param o sampler, created by new_aubio_sampler()
|
|
81
|
+
\param input input of the sampler, to be added to the output
|
|
82
|
+
\param output output of the sampler
|
|
83
|
+
|
|
84
|
+
This function adds the new samples from the playing source to the output.
|
|
85
|
+
|
|
86
|
+
If `input` is not NULL and different from `output`, then the samples from `input`
|
|
87
|
+
are added to the output.
|
|
88
|
+
|
|
89
|
+
*/
|
|
90
|
+
void aubio_sampler_do_multi ( aubio_sampler_t * o, const fmat_t * input, fmat_t * output);
|
|
91
|
+
|
|
92
|
+
/** get current playing state
|
|
93
|
+
|
|
94
|
+
\param o sampler, created by new_aubio_sampler()
|
|
95
|
+
|
|
96
|
+
\return 0 if not playing, 1 if playing
|
|
97
|
+
|
|
98
|
+
*/
|
|
99
|
+
uint_t aubio_sampler_get_playing ( const aubio_sampler_t * o );
|
|
100
|
+
|
|
101
|
+
/** set current playing state
|
|
102
|
+
|
|
103
|
+
\param o sampler, created by new_aubio_sampler()
|
|
104
|
+
\param playing 0 for not playing, 1 for playing
|
|
105
|
+
|
|
106
|
+
\return 0 if successful, 1 otherwise
|
|
107
|
+
|
|
108
|
+
*/
|
|
109
|
+
uint_t aubio_sampler_set_playing ( aubio_sampler_t * o, uint_t playing );
|
|
110
|
+
|
|
111
|
+
/** play sample from start
|
|
112
|
+
|
|
113
|
+
\param o sampler, created by new_aubio_sampler()
|
|
114
|
+
|
|
115
|
+
\return 0 if successful, 1 otherwise
|
|
116
|
+
|
|
117
|
+
*/
|
|
118
|
+
uint_t aubio_sampler_play ( aubio_sampler_t * o );
|
|
119
|
+
|
|
120
|
+
/** stop sample
|
|
121
|
+
|
|
122
|
+
\param o sampler, created by new_aubio_sampler()
|
|
123
|
+
|
|
124
|
+
\return 0 if successful, 1 otherwise
|
|
125
|
+
|
|
126
|
+
*/
|
|
127
|
+
uint_t aubio_sampler_stop ( aubio_sampler_t * o );
|
|
128
|
+
|
|
129
|
+
/** destroy ::aubio_sampler_t object
|
|
130
|
+
|
|
131
|
+
\param o sampler, created by new_aubio_sampler()
|
|
132
|
+
|
|
133
|
+
*/
|
|
134
|
+
void del_aubio_sampler( aubio_sampler_t * o );
|
|
135
|
+
|
|
136
|
+
#ifdef __cplusplus
|
|
137
|
+
}
|
|
138
|
+
#endif
|
|
139
|
+
|
|
140
|
+
#endif /* AUBIO_SAMPLER_H */
|