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.
Files changed (129) hide show
  1. package/android/libs/sdk-bluetooth-release.aar +0 -0
  2. package/ios/GizwitsiOSSDK.framework/GizwitsiOSSDK +0 -0
  3. package/ios/GizwitsiOSSDK.framework/Headers/CocoaAsyncSocket.h +18 -0
  4. package/ios/GizwitsiOSSDK.framework/Headers/DDASLLogger.h +41 -0
  5. package/ios/GizwitsiOSSDK.framework/Headers/DDAbstractDatabaseLogger.h +102 -0
  6. package/ios/GizwitsiOSSDK.framework/Headers/DDContextFilterLogFormatter.h +63 -0
  7. package/ios/GizwitsiOSSDK.framework/Headers/DDDispatchQueueLogFormatter.h +128 -0
  8. package/ios/GizwitsiOSSDK.framework/Headers/DDFileLogger.h +340 -0
  9. package/ios/GizwitsiOSSDK.framework/Headers/DDLog+LOGV.h +99 -0
  10. package/ios/GizwitsiOSSDK.framework/Headers/DDLog.h +632 -0
  11. package/ios/GizwitsiOSSDK.framework/Headers/DDMultiFormatter.h +30 -0
  12. package/ios/GizwitsiOSSDK.framework/Headers/DDTTYLogger.h +171 -0
  13. package/ios/GizwitsiOSSDK.framework/Headers/ESPAES.h +19 -0
  14. package/ios/GizwitsiOSSDK.framework/Headers/ESPDataCode.h +44 -0
  15. package/ios/GizwitsiOSSDK.framework/Headers/ESPDatumCode.h +38 -0
  16. package/ios/GizwitsiOSSDK.framework/Headers/ESPGuideCode.h +15 -0
  17. package/ios/GizwitsiOSSDK.framework/Headers/ESPTools.h +22 -0
  18. package/ios/GizwitsiOSSDK.framework/Headers/ESPTouch.h +36 -0
  19. package/ios/GizwitsiOSSDK.framework/Headers/ESPTouchDelegate.h +24 -0
  20. package/ios/GizwitsiOSSDK.framework/Headers/ESPTouchGenerator.h +46 -0
  21. package/ios/GizwitsiOSSDK.framework/Headers/ESPTouchResult.h +36 -0
  22. package/ios/GizwitsiOSSDK.framework/Headers/ESPTouchTask.h +124 -0
  23. package/ios/GizwitsiOSSDK.framework/Headers/ESPTouchTaskParameter.h +173 -0
  24. package/ios/GizwitsiOSSDK.framework/Headers/ESPUDPSocketClient.h +50 -0
  25. package/ios/GizwitsiOSSDK.framework/Headers/ESPUDPSocketServer.h +49 -0
  26. package/ios/GizwitsiOSSDK.framework/Headers/ESP_ByteUtil.h +128 -0
  27. package/ios/GizwitsiOSSDK.framework/Headers/ESP_CRC8.h +61 -0
  28. package/ios/GizwitsiOSSDK.framework/Headers/ESP_NetUtil.h +82 -0
  29. package/ios/GizwitsiOSSDK.framework/Headers/ESP_WifiUtil.h +33 -0
  30. package/ios/GizwitsiOSSDK.framework/Headers/ForegroundReconnection.h +23 -0
  31. package/ios/GizwitsiOSSDK.framework/Headers/GCDTimer.h +19 -0
  32. package/ios/GizwitsiOSSDK.framework/Headers/GizwitsiOSSDK-Swift.h +338 -0
  33. package/ios/GizwitsiOSSDK.framework/Headers/GizwitsiOSSDK.h +24 -0
  34. package/ios/GizwitsiOSSDK.framework/Headers/MQTTClient.h +39 -0
  35. package/ios/GizwitsiOSSDK.framework/Headers/MQTTInMemoryPersistence.h +16 -0
  36. package/ios/GizwitsiOSSDK.framework/Headers/MQTTSSLSecurityPolicyDecoder.h +19 -0
  37. package/ios/GizwitsiOSSDK.framework/Headers/MQTTSSLSecurityPolicyEncoder.h +18 -0
  38. package/ios/GizwitsiOSSDK.framework/Headers/MQTTSessionLegacy.h +112 -0
  39. package/ios/GizwitsiOSSDK.framework/Headers/MQTTSessionSynchron.h +194 -0
  40. package/ios/GizwitsiOSSDK.framework/Headers/MQTTStrict.h +33 -0
  41. package/ios/GizwitsiOSSDK.framework/Headers/MQTTUntil.h +14 -0
  42. package/ios/GizwitsiOSSDK.framework/Headers/ReconnectTimer.h +21 -0
  43. package/ios/GizwitsiOSSDK.framework/Headers/_GCDAsyncSocket.h +1226 -0
  44. package/ios/GizwitsiOSSDK.framework/Headers/_GCDAsyncUdpSocket.h +1036 -0
  45. package/ios/GizwitsiOSSDK.framework/Headers/_GizwitsParser.h +61 -0
  46. package/ios/GizwitsiOSSDK.framework/Headers/_MQTTCFSocketDecoder.h +39 -0
  47. package/ios/GizwitsiOSSDK.framework/Headers/_MQTTCFSocketEncoder.h +38 -0
  48. package/ios/GizwitsiOSSDK.framework/Headers/_MQTTCFSocketTransport.h +79 -0
  49. package/ios/GizwitsiOSSDK.framework/Headers/_MQTTCoreDataPersistence.h +21 -0
  50. package/ios/GizwitsiOSSDK.framework/Headers/_MQTTDecoder.h +66 -0
  51. package/ios/GizwitsiOSSDK.framework/Headers/_MQTTLog.h +123 -0
  52. package/ios/GizwitsiOSSDK.framework/Headers/_MQTTMessage.h +233 -0
  53. package/ios/GizwitsiOSSDK.framework/Headers/_MQTTPersistence.h +124 -0
  54. package/ios/GizwitsiOSSDK.framework/Headers/_MQTTProperties.h +76 -0
  55. package/ios/GizwitsiOSSDK.framework/Headers/_MQTTSSLSecurityPolicy.h +158 -0
  56. package/ios/GizwitsiOSSDK.framework/Headers/_MQTTSSLSecurityPolicyTransport.h +30 -0
  57. package/ios/GizwitsiOSSDK.framework/Headers/_MQTTSession.h +886 -0
  58. package/ios/GizwitsiOSSDK.framework/Headers/_MQTTSessionManager.h +237 -0
  59. package/ios/GizwitsiOSSDK.framework/Headers/_MQTTTransport.h +114 -0
  60. package/ios/GizwitsiOSSDK.framework/Headers/_SSZipArchive.h +178 -0
  61. package/ios/GizwitsiOSSDK.framework/Headers/_SSZipCommon.h +71 -0
  62. package/ios/GizwitsiOSSDK.framework/Headers/_ZipArchive.h +26 -0
  63. package/ios/GizwitsiOSSDK.framework/Headers/a_weighting.h +88 -0
  64. package/ios/GizwitsiOSSDK.framework/Headers/aubio.h +231 -0
  65. package/ios/GizwitsiOSSDK.framework/Headers/audio_unit.h +61 -0
  66. package/ios/GizwitsiOSSDK.framework/Headers/awhitening.h +125 -0
  67. package/ios/GizwitsiOSSDK.framework/Headers/beattracking.h +121 -0
  68. package/ios/GizwitsiOSSDK.framework/Headers/biquad.h +75 -0
  69. package/ios/GizwitsiOSSDK.framework/Headers/c_weighting.h +88 -0
  70. package/ios/GizwitsiOSSDK.framework/Headers/common.h +104 -0
  71. package/ios/GizwitsiOSSDK.framework/Headers/cvec.h +247 -0
  72. package/ios/GizwitsiOSSDK.framework/Headers/dct.h +85 -0
  73. package/ios/GizwitsiOSSDK.framework/Headers/fft.h +144 -0
  74. package/ios/GizwitsiOSSDK.framework/Headers/filter.h +176 -0
  75. package/ios/GizwitsiOSSDK.framework/Headers/filterbank.h +90 -0
  76. package/ios/GizwitsiOSSDK.framework/Headers/filterbank_mel.h +72 -0
  77. package/ios/GizwitsiOSSDK.framework/Headers/fmat.h +172 -0
  78. package/ios/GizwitsiOSSDK.framework/Headers/fvec.h +178 -0
  79. package/ios/GizwitsiOSSDK.framework/Headers/hist.h +63 -0
  80. package/ios/GizwitsiOSSDK.framework/Headers/ioutils.h +60 -0
  81. package/ios/GizwitsiOSSDK.framework/Headers/log.h +99 -0
  82. package/ios/GizwitsiOSSDK.framework/Headers/lvec.h +118 -0
  83. package/ios/GizwitsiOSSDK.framework/Headers/mathutils.h +330 -0
  84. package/ios/GizwitsiOSSDK.framework/Headers/mfcc.h +79 -0
  85. package/ios/GizwitsiOSSDK.framework/Headers/musicutils.h +171 -0
  86. package/ios/GizwitsiOSSDK.framework/Headers/notes.h +113 -0
  87. package/ios/GizwitsiOSSDK.framework/Headers/onset.h +347 -0
  88. package/ios/GizwitsiOSSDK.framework/Headers/parameter.h +159 -0
  89. package/ios/GizwitsiOSSDK.framework/Headers/peakpicker.h +57 -0
  90. package/ios/GizwitsiOSSDK.framework/Headers/phasevoc.h +112 -0
  91. package/ios/GizwitsiOSSDK.framework/Headers/pitch.h +197 -0
  92. package/ios/GizwitsiOSSDK.framework/Headers/pitchfcomb.h +76 -0
  93. package/ios/GizwitsiOSSDK.framework/Headers/pitchmcomb.h +77 -0
  94. package/ios/GizwitsiOSSDK.framework/Headers/pitchschmitt.h +75 -0
  95. package/ios/GizwitsiOSSDK.framework/Headers/pitchspecacf.h +103 -0
  96. package/ios/GizwitsiOSSDK.framework/Headers/pitchyin.h +100 -0
  97. package/ios/GizwitsiOSSDK.framework/Headers/pitchyinfast.h +102 -0
  98. package/ios/GizwitsiOSSDK.framework/Headers/pitchyinfft.h +99 -0
  99. package/ios/GizwitsiOSSDK.framework/Headers/resampler.h +65 -0
  100. package/ios/GizwitsiOSSDK.framework/Headers/sampler.h +140 -0
  101. package/ios/GizwitsiOSSDK.framework/Headers/scale.h +80 -0
  102. package/ios/GizwitsiOSSDK.framework/Headers/sink.h +181 -0
  103. package/ios/GizwitsiOSSDK.framework/Headers/sink_apple_audio.h +163 -0
  104. package/ios/GizwitsiOSSDK.framework/Headers/sink_sndfile.h +162 -0
  105. package/ios/GizwitsiOSSDK.framework/Headers/sink_wavwrite.h +162 -0
  106. package/ios/GizwitsiOSSDK.framework/Headers/source.h +184 -0
  107. package/ios/GizwitsiOSSDK.framework/Headers/source_apple_audio.h +156 -0
  108. package/ios/GizwitsiOSSDK.framework/Headers/source_avcodec.h +155 -0
  109. package/ios/GizwitsiOSSDK.framework/Headers/source_sndfile.h +155 -0
  110. package/ios/GizwitsiOSSDK.framework/Headers/source_wavread.h +160 -0
  111. package/ios/GizwitsiOSSDK.framework/Headers/specdesc.h +204 -0
  112. package/ios/GizwitsiOSSDK.framework/Headers/tempo.h +255 -0
  113. package/ios/GizwitsiOSSDK.framework/Headers/tss.h +103 -0
  114. package/ios/GizwitsiOSSDK.framework/Headers/types.h +70 -0
  115. package/ios/GizwitsiOSSDK.framework/Headers/vecutils.h +116 -0
  116. package/ios/GizwitsiOSSDK.framework/Headers/wavetable.h +178 -0
  117. package/ios/GizwitsiOSSDK.framework/Info.plist +0 -0
  118. package/ios/GizwitsiOSSDK.framework/LICENSE +17 -0
  119. package/ios/GizwitsiOSSDK.framework/Modules/GizwitsiOSSDK.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo +0 -0
  120. package/ios/GizwitsiOSSDK.framework/Modules/GizwitsiOSSDK.swiftmodule/arm64-apple-ios.abi.json +57489 -0
  121. package/ios/GizwitsiOSSDK.framework/Modules/GizwitsiOSSDK.swiftmodule/arm64-apple-ios.private.swiftinterface +1752 -0
  122. package/ios/GizwitsiOSSDK.framework/Modules/GizwitsiOSSDK.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  123. package/ios/GizwitsiOSSDK.framework/Modules/GizwitsiOSSDK.swiftmodule/arm64-apple-ios.swiftinterface +1752 -0
  124. package/ios/GizwitsiOSSDK.framework/Modules/GizwitsiOSSDK.swiftmodule/arm64-apple-ios.swiftmodule +0 -0
  125. package/ios/GizwitsiOSSDK.framework/Modules/module.modulemap +11 -0
  126. package/ios/GizwitsiOSSDK.framework/PrivacyInfo.xcprivacy +23 -0
  127. package/ios/GizwitsiOSSDK.framework/README.md +31 -0
  128. package/package.json +1 -1
  129. package/react-native-gizwits-sdk-v5.podspec +2 -2
@@ -0,0 +1,176 @@
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_FILTER_H
22
+ #define AUBIO_FILTER_H
23
+
24
+ /** \file
25
+
26
+ Digital filter
27
+
28
+ This object stores a digital filter of order \f$n\f$.
29
+ It contains the following data:
30
+ - \f$ n*1 b_i \f$ feedforward coefficients
31
+ - \f$ n*1 a_i \f$ feedback coefficients
32
+ - \f$ n*c x_i \f$ input signal
33
+ - \f$ n*c y_i \f$ output signal
34
+
35
+ For convenience, the samplerate of the input signal is also stored in the
36
+ object.
37
+
38
+ Feedforward and feedback parameters can be modified using
39
+ aubio_filter_get_feedback() and aubio_filter_get_feedforward().
40
+
41
+ The function aubio_filter_do_outplace() computes the following output signal
42
+ \f$ y[n] \f$ from the input signal \f$ x[n] \f$:
43
+
44
+ \f{eqnarray*}{
45
+ y[n] = b_0 x[n] & + & b_1 x[n-1] + b_2 x[n-2] + ... + b_P x[n-P] \\
46
+ & - & a_1 y[n-1] - a_2 y[n-2] - ... - a_P y[n-P] \\
47
+ \f}
48
+
49
+ The function aubio_filter_do() executes the same computation but modifies
50
+ directly the input signal (in-place).
51
+
52
+ The function aubio_filter_do_filtfilt() version runs the filter twice, first
53
+ forward then backward, to compensate with the phase shifting of the forward
54
+ operation.
55
+
56
+ Some convenience functions are provided:
57
+ - new_aubio_filter_a_weighting() and aubio_filter_set_a_weighting(),
58
+ - new_aubio_filter_c_weighting() and aubio_filter_set_c_weighting().
59
+ - new_aubio_filter_biquad() and aubio_filter_set_biquad().
60
+
61
+ \example temporal/test-filter.c
62
+
63
+ */
64
+
65
+ #ifdef __cplusplus
66
+ extern "C" {
67
+ #endif
68
+
69
+ /** Digital filter
70
+
71
+ */
72
+ typedef struct _aubio_filter_t aubio_filter_t;
73
+
74
+ /** filter input vector (in-place)
75
+
76
+ \param f filter object as returned by new_aubio_filter()
77
+ \param in input vector to filter
78
+
79
+ */
80
+ void aubio_filter_do (aubio_filter_t * f, fvec_t * in);
81
+
82
+ /** filter input vector (out-of-place)
83
+
84
+ \param f filter object as returned by new_aubio_filter()
85
+ \param in input vector to filter
86
+ \param out output vector to store filtered input
87
+
88
+ */
89
+ void aubio_filter_do_outplace (aubio_filter_t * f, const fvec_t * in, fvec_t * out);
90
+
91
+ /** filter input vector forward and backward
92
+
93
+ \param f ::aubio_filter_t object as returned by new_aubio_filter()
94
+ \param in ::fvec_t input vector to filter
95
+ \param tmp memory space to use for computation
96
+
97
+ */
98
+ void aubio_filter_do_filtfilt (aubio_filter_t * f, fvec_t * in, fvec_t * tmp);
99
+
100
+ /** returns a pointer to feedback coefficients \f$ a_i \f$
101
+
102
+ \param f filter object to get parameters from
103
+
104
+ \return a pointer to the \f$ a_0 ... a_i ... a_P \f$ coefficients
105
+
106
+ */
107
+ lvec_t *aubio_filter_get_feedback (const aubio_filter_t * f);
108
+
109
+ /** returns a pointer to feedforward coefficients \f$ b_i \f$
110
+
111
+ \param f filter object to get coefficients from
112
+
113
+ \return a pointer to the \f$ b_0 ... b_i ... b_P \f$ coefficients
114
+
115
+ */
116
+ lvec_t *aubio_filter_get_feedforward (const aubio_filter_t * f);
117
+
118
+ /** get order of the filter
119
+
120
+ \param f filter to get order from
121
+
122
+ \return the order of the filter
123
+
124
+ */
125
+ uint_t aubio_filter_get_order (const aubio_filter_t * f);
126
+
127
+ /** get sampling rate of the filter
128
+
129
+ \param f filter to get sampling rate from
130
+
131
+ \return the sampling rate of the filter, in Hz
132
+
133
+ */
134
+ uint_t aubio_filter_get_samplerate (const aubio_filter_t * f);
135
+
136
+ /** get sampling rate of the filter
137
+
138
+ \param f filter to get sampling rate from
139
+ \param samplerate sample rate to set the filter to
140
+
141
+ \return the sampling rate of the filter, in Hz
142
+
143
+ */
144
+ uint_t aubio_filter_set_samplerate (aubio_filter_t * f, uint_t samplerate);
145
+
146
+ /** reset filter memory
147
+
148
+ \param f filter object as returned by new_aubio_filter()
149
+
150
+ */
151
+ void aubio_filter_do_reset (aubio_filter_t * f);
152
+
153
+ /** create new filter object
154
+
155
+ This function creates a new ::aubio_filter_t object, given the order of the
156
+ filter.
157
+
158
+ \param order order of the filter (number of coefficients)
159
+
160
+ \return the newly created filter object
161
+
162
+ */
163
+ aubio_filter_t *new_aubio_filter (uint_t order);
164
+
165
+ /** delete a filter object
166
+
167
+ \param f filter object to delete
168
+
169
+ */
170
+ void del_aubio_filter (aubio_filter_t * f);
171
+
172
+ #ifdef __cplusplus
173
+ }
174
+ #endif
175
+
176
+ #endif /* AUBIO_FILTER_H */
@@ -0,0 +1,90 @@
1
+ /*
2
+ Copyright (C) 2007-2013 Paul Brossier <piem@aubio.org>
3
+ and Amaury Hazan <ahazan@iua.upf.edu>
4
+
5
+ This file is part of aubio.
6
+
7
+ aubio is free software: you can redistribute it and/or modify
8
+ it under the terms of the GNU General Public License as published by
9
+ the Free Software Foundation, either version 3 of the License, or
10
+ (at your option) any later version.
11
+
12
+ aubio is distributed in the hope that it will be useful,
13
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
+ GNU General Public License for more details.
16
+
17
+ You should have received a copy of the GNU General Public License
18
+ along with aubio. If not, see <http://www.gnu.org/licenses/>.
19
+
20
+ */
21
+
22
+ /** \file
23
+
24
+ Filterbank object
25
+
26
+ General-purpose spectral filterbank object.
27
+
28
+ \example spectral/test-filterbank.c
29
+
30
+ */
31
+
32
+ #ifndef AUBIO_FILTERBANK_H
33
+ #define AUBIO_FILTERBANK_H
34
+
35
+ #ifdef __cplusplus
36
+ extern "C"
37
+ {
38
+ #endif
39
+
40
+ /** filterbank object
41
+
42
+ This object stores a matrix of spectral filter coefficients.
43
+
44
+ */
45
+ typedef struct _aubio_filterbank_t aubio_filterbank_t;
46
+
47
+ /** create filterbank object
48
+
49
+ \param n_filters number of filters to create
50
+ \param win_s size of analysis buffer (and length the FFT transform)
51
+
52
+ */
53
+ aubio_filterbank_t *new_aubio_filterbank (uint_t n_filters, uint_t win_s);
54
+
55
+ /** destroy filterbank object
56
+
57
+ \param f filterbank object, as returned by new_aubio_filterbank()
58
+
59
+ */
60
+ void del_aubio_filterbank (aubio_filterbank_t * f);
61
+
62
+ /** compute filterbank
63
+
64
+ \param f filterbank object, as returned by new_aubio_filterbank()
65
+ \param in input spectrum containing an input spectrum of length `win_s`
66
+ \param out output vector containing the energy found in each band, `nfilt` output values
67
+
68
+ */
69
+ void aubio_filterbank_do (aubio_filterbank_t * f, const cvec_t * in, fvec_t * out);
70
+
71
+ /** return a pointer to the matrix object containing all filter coefficients
72
+
73
+ \param f filterbank object, as returned by new_aubio_filterbank()
74
+
75
+ */
76
+ fmat_t *aubio_filterbank_get_coeffs (const aubio_filterbank_t * f);
77
+
78
+ /** copy filter coefficients to the filterbank
79
+
80
+ \param f filterbank object, as returned by new_aubio_filterbank()
81
+ \param filters filter bank coefficients to copy from
82
+
83
+ */
84
+ uint_t aubio_filterbank_set_coeffs (aubio_filterbank_t * f, const fmat_t * filters);
85
+
86
+ #ifdef __cplusplus
87
+ }
88
+ #endif
89
+
90
+ #endif /* AUBIO_FILTERBANK_H */
@@ -0,0 +1,72 @@
1
+ /*
2
+ Copyright (C) 2007-2013 Paul Brossier <piem@aubio.org>
3
+ and Amaury Hazan <ahazan@iua.upf.edu>
4
+
5
+ This file is part of aubio.
6
+
7
+ aubio is free software: you can redistribute it and/or modify
8
+ it under the terms of the GNU General Public License as published by
9
+ the Free Software Foundation, either version 3 of the License, or
10
+ (at your option) any later version.
11
+
12
+ aubio is distributed in the hope that it will be useful,
13
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
+ GNU General Public License for more details.
16
+
17
+ You should have received a copy of the GNU General Public License
18
+ along with aubio. If not, see <http://www.gnu.org/licenses/>.
19
+
20
+ */
21
+
22
+ /** \file
23
+
24
+ Filterbank object coefficients initialization
25
+
26
+ Functions to create set the ::aubio_filterbank_t coefficients to
27
+ - ::aubio_filterbank_set_triangle_bands: overlapping triangular bands,
28
+ - ::aubio_filterbank_set_mel_coeffs_slaney: Mel frequency bands.
29
+
30
+ \example spectral/test-filterbank_mel.c
31
+
32
+ */
33
+
34
+ #ifndef AUBIO_FILTERBANK_MEL_H
35
+ #define AUBIO_FILTERBANK_MEL_H
36
+
37
+ #ifdef __cplusplus
38
+ extern "C"
39
+ {
40
+ #endif
41
+
42
+ /** filterbank initialization with triangular and overlapping bands
43
+
44
+ \param fb filterbank object
45
+ \param freqs arbitrary array of boundary frequencies
46
+ \param samplerate audio sampling rate
47
+
48
+ This function computes the coefficients of the filterbank based on the
49
+ boundaries found in freqs, in Hz, and using triangular overlapping bands.
50
+
51
+ */
52
+ uint_t aubio_filterbank_set_triangle_bands (aubio_filterbank_t * fb,
53
+ const fvec_t * freqs, smpl_t samplerate);
54
+
55
+ /** filterbank initialization for Mel filters using Slaney's coefficients
56
+
57
+ \param fb filterbank object
58
+ \param samplerate audio sampling rate
59
+
60
+ The filter coefficients are built according to Malcolm Slaney's Auditory
61
+ Toolbox, available at http://engineering.purdue.edu/~malcolm/interval/1998-010/
62
+ (see file mfcc.m).
63
+
64
+ */
65
+ uint_t aubio_filterbank_set_mel_coeffs_slaney (aubio_filterbank_t * fb,
66
+ smpl_t samplerate);
67
+
68
+ #ifdef __cplusplus
69
+ }
70
+ #endif
71
+
72
+ #endif /* AUBIO_FILTERBANK_MEL_H */
@@ -0,0 +1,172 @@
1
+ /*
2
+ Copyright (C) 2009-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_FMAT_H
22
+ #define AUBIO_FMAT_H
23
+
24
+ #ifdef __cplusplus
25
+ extern "C" {
26
+ #endif
27
+
28
+ /** \file
29
+
30
+ Matrix of real valued data
31
+
32
+ This file specifies the fmat_t type, which is used in aubio to store arrays
33
+ of floating point values.
34
+
35
+ \example test-fmat.c
36
+
37
+ */
38
+
39
+ /** Buffer for real data */
40
+ typedef struct {
41
+ uint_t length; /**< length of matrix */
42
+ uint_t height; /**< height of matrix */
43
+ smpl_t **data; /**< data array of size [length] * [height] */
44
+ } fmat_t;
45
+
46
+ /** fmat_t buffer creation function
47
+
48
+ \param length the length of the matrix to create
49
+ \param height the height of the matrix to create
50
+
51
+ */
52
+ fmat_t * new_fmat(uint_t height, uint_t length);
53
+
54
+ /** fmat_t buffer deletion function
55
+
56
+ \param s buffer to delete as returned by new_fmat()
57
+
58
+ */
59
+ void del_fmat(fmat_t *s);
60
+
61
+ /** read sample value in a buffer
62
+
63
+ \param s vector to read from
64
+ \param channel channel to read from
65
+ \param position sample position to read from
66
+
67
+ */
68
+ smpl_t fmat_get_sample(const fmat_t *s, uint_t channel, uint_t position);
69
+
70
+ /** write sample value in a buffer
71
+
72
+ \param s vector to write to
73
+ \param data value to write in s->data[channel][position]
74
+ \param channel channel to write to
75
+ \param position sample position to write to
76
+
77
+ */
78
+ void fmat_set_sample(fmat_t *s, smpl_t data, uint_t channel, uint_t position);
79
+
80
+ /** read channel vector from a buffer
81
+
82
+ \param s vector to read from
83
+ \param channel channel to read from
84
+ \param output ::fvec_t to output to
85
+
86
+ */
87
+ void fmat_get_channel (const fmat_t *s, uint_t channel, fvec_t *output);
88
+
89
+ /** get vector buffer from an fmat data
90
+
91
+ \param s vector to read from
92
+ \param channel channel to read from
93
+
94
+ */
95
+ smpl_t * fmat_get_channel_data (const fmat_t *s, uint_t channel);
96
+
97
+ /** read data from a buffer
98
+
99
+ \param s vector to read from
100
+
101
+ */
102
+ smpl_t ** fmat_get_data(const fmat_t *s);
103
+
104
+ /** print out fmat data
105
+
106
+ \param s vector to print out
107
+
108
+ */
109
+ void fmat_print(const fmat_t *s);
110
+
111
+ /** set all elements to a given value
112
+
113
+ \param s vector to modify
114
+ \param val value to set elements to
115
+
116
+ */
117
+ void fmat_set(fmat_t *s, smpl_t val);
118
+
119
+ /** set all elements to zero
120
+
121
+ \param s vector to modify
122
+
123
+ */
124
+ void fmat_zeros(fmat_t *s);
125
+
126
+ /** set all elements to ones
127
+
128
+ \param s vector to modify
129
+
130
+ */
131
+ void fmat_ones(fmat_t *s);
132
+
133
+ /** revert order of vector elements
134
+
135
+ \param s vector to revert
136
+
137
+ */
138
+ void fmat_rev(fmat_t *s);
139
+
140
+ /** apply weight to vector
141
+
142
+ If the weight vector is longer than s, only the first elements are used. If
143
+ the weight vector is shorter than s, the last elements of s are not weighted.
144
+
145
+ \param s vector to weight
146
+ \param weight weighting coefficients
147
+
148
+ */
149
+ void fmat_weight(fmat_t *s, const fmat_t *weight);
150
+
151
+ /** make a copy of a matrix
152
+
153
+ \param s source vector
154
+ \param t vector to copy to
155
+
156
+ */
157
+ void fmat_copy(const fmat_t *s, fmat_t *t);
158
+
159
+ /** compute the product of a matrix by a vector
160
+
161
+ \param s matrix to compute product with
162
+ \param scale vector to compute product with
163
+ \param output vector to store restults in
164
+
165
+ */
166
+ void fmat_vecmul(const fmat_t *s, const fvec_t *scale, fvec_t *output);
167
+
168
+ #ifdef __cplusplus
169
+ }
170
+ #endif
171
+
172
+ #endif /* AUBIO_FMAT_H */
@@ -0,0 +1,178 @@
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_FVEC_H
22
+ #define AUBIO_FVEC_H
23
+
24
+ #ifdef __cplusplus
25
+ extern "C" {
26
+ #endif
27
+
28
+ /** \file
29
+
30
+ Vector of real-valued data
31
+
32
+ This file specifies the ::fvec_t buffer type, which is used throughout aubio
33
+ to store vector of real-valued ::smpl_t.
34
+
35
+ \example test-fvec.c
36
+
37
+ */
38
+
39
+ /** Buffer for real data
40
+
41
+ Vector of real-valued data
42
+
43
+ ::fvec_t is is the structure used to store vector of real-valued data, ::smpl_t .
44
+
45
+ \code
46
+
47
+ uint_t buffer_size = 1024;
48
+
49
+ // create a vector of 512 values
50
+ fvec_t * input = new_fvec (buffer_size);
51
+
52
+ // set some values of the vector
53
+ input->data[23] = 2.;
54
+ // ..
55
+
56
+ // compute the mean of the vector
57
+ mean = fvec_mean(a_vector);
58
+
59
+ // destroy the vector
60
+ del_fvec(a_vector);
61
+
62
+ \endcode
63
+
64
+ See `examples/` and `tests/src` directories for more examples.
65
+
66
+ */
67
+ typedef struct {
68
+ uint_t length; /**< length of buffer */
69
+ smpl_t *data; /**< data vector of length ::fvec_t.length */
70
+ } fvec_t;
71
+
72
+ /** fvec_t buffer creation function
73
+
74
+ \param length the length of the buffer to create
75
+
76
+ */
77
+ fvec_t * new_fvec(uint_t length);
78
+
79
+ /** fvec_t buffer deletion function
80
+
81
+ \param s buffer to delete as returned by new_fvec()
82
+
83
+ */
84
+ void del_fvec(fvec_t *s);
85
+
86
+ /** read sample value in a buffer
87
+
88
+ \param s vector to read from
89
+ \param position sample position to read from
90
+
91
+ */
92
+ smpl_t fvec_get_sample(const fvec_t *s, uint_t position);
93
+
94
+ /** write sample value in a buffer
95
+
96
+ \param s vector to write to
97
+ \param data value to write in s->data[position]
98
+ \param position sample position to write to
99
+
100
+ */
101
+ void fvec_set_sample(fvec_t *s, smpl_t data, uint_t position);
102
+
103
+ /** read data from a buffer
104
+
105
+ \param s vector to read from
106
+
107
+ */
108
+ smpl_t * fvec_get_data(const fvec_t *s);
109
+
110
+ /** print out fvec data
111
+
112
+ \param s vector to print out
113
+
114
+ */
115
+ void fvec_print(const fvec_t *s);
116
+
117
+ /** set all elements to a given value
118
+
119
+ \param s vector to modify
120
+ \param val value to set elements to
121
+
122
+ */
123
+ void fvec_set_all (fvec_t *s, smpl_t val);
124
+
125
+ /** set all elements to zero
126
+
127
+ \param s vector to modify
128
+
129
+ */
130
+ void fvec_zeros(fvec_t *s);
131
+
132
+ /** set all elements to ones
133
+
134
+ \param s vector to modify
135
+
136
+ */
137
+ void fvec_ones(fvec_t *s);
138
+
139
+ /** revert order of vector elements
140
+
141
+ \param s vector to revert
142
+
143
+ */
144
+ void fvec_rev(fvec_t *s);
145
+
146
+ /** apply weight to vector
147
+
148
+ If the weight vector is longer than s, only the first elements are used. If
149
+ the weight vector is shorter than s, the last elements of s are not weighted.
150
+
151
+ \param s vector to weight
152
+ \param weight weighting coefficients
153
+
154
+ */
155
+ void fvec_weight(fvec_t *s, const fvec_t *weight);
156
+
157
+ /** make a copy of a vector
158
+
159
+ \param s source vector
160
+ \param t vector to copy to
161
+
162
+ */
163
+ void fvec_copy(const fvec_t *s, fvec_t *t);
164
+
165
+ /** make a copy of a vector, applying weights to each element
166
+
167
+ \param in input vector
168
+ \param weight weights vector
169
+ \param out output vector
170
+
171
+ */
172
+ void fvec_weighted_copy(const fvec_t *in, const fvec_t *weight, fvec_t *out);
173
+
174
+ #ifdef __cplusplus
175
+ }
176
+ #endif
177
+
178
+ #endif /* AUBIO_FVEC_H */