aubio 0.2.2 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c1205ac8ee528dd696e6e47a1e4142d9084b1503
4
- data.tar.gz: d4e83251338fb803e2cefbffb29bcdf8499a87c8
3
+ metadata.gz: 48a28fd8e26d69beddf8d74b238fa31de32f5f00
4
+ data.tar.gz: 7758d79180d4cb152f3832e882a2193c8da69ce8
5
5
  SHA512:
6
- metadata.gz: 6c21ae1d5dd0ed0d7d8abcd8d0563219ff0b5e2ea60e53a278d67f8a3af3baaca105096571fe7df1ca95baf6cb12937aadc731ec74f8ab35be259d313e0fe2c1
7
- data.tar.gz: 3ed6634b08e249a44be6204fd8cc03a9c7749d846bd1e0cdc49c3c1725acd42221475579ceb0d3514c3dcd1757f941d83c025a7ffdb14f439ae9ec8bdd5e3eb1
6
+ metadata.gz: 89eabbc1f9f39344b8d2f6b63fb9ed185bd10e97048d6f4e79ed33beff35bd9dc565c498398146ecd5a9e1e5744879d3e8417e18976e774c7c9687e1202ba2e2
7
+ data.tar.gz: f9e6f608555f9a0e8ad38b2886206213211332dcdc3abfda72f392803fe670b4b0baacdd9b700f4045ba07d25dab8fa7bfe90bc5031b78a09683f085167b8053
data/README.md CHANGED
@@ -14,6 +14,15 @@ In their own words...
14
14
 
15
15
  `brew install aubio --with-libsndfile --with-fftw --with-libsamplerate`
16
16
 
17
+ ## Using `ffi_gen` to autogenerate bindings
18
+
19
+ ```
20
+ brew install aubio --with-libsndfile --with-fftw --with-libsamplerate
21
+ brew install llvm --with-clang --enable-shared
22
+ # clone this repo and cd into the root folder, then run
23
+ LD_LIBRARY_PATH="/usr/local/opt/llvm35/lib/llvm-3.5/lib" ruby aubio-ffi-generator.rb
24
+ ```
25
+
17
26
  ## Installation
18
27
 
19
28
  Add this line to your application's Gemfile:
@@ -0,0 +1,14 @@
1
+ # this needs to be set on the command line when running this script
2
+ # ENV['LD_LIBRARY_PATH'] = "/usr/local/opt/llvm35/lib/llvm-3.5/lib"
3
+ require 'ffi_gen'
4
+
5
+ FFIGen.generate(
6
+ module_name: "Aubio::Api",
7
+ ffi_lib: "/usr/local/Cellar/aubio/0.4.4/lib/libaubio.dylib",
8
+ headers: Dir["/usr/local/Cellar/aubio/0.4.4/include/aubio/**/*.h"],
9
+ cflags: `/usr/local/opt/llvm35/bin/llvm-config-3.5 --cflags`.split(" "),
10
+ # the following can be used to trim the aubio_ from the generated function names
11
+ # prefixes: ["aubio_", "CX"],
12
+ prefixes: [],
13
+ output: "lib/aubio/aubio-ffi.rb"
14
+ )
data/aubio.gemspec CHANGED
@@ -24,4 +24,6 @@ Gem::Specification.new do |spec|
24
24
  spec.add_development_dependency "bundler", "~> 1.11"
25
25
  spec.add_development_dependency "rake", "~> 10.0"
26
26
  spec.add_development_dependency "minitest", "~> 5.0"
27
+ spec.add_development_dependency "pry"
28
+ spec.add_development_dependency "ffi_gen"
27
29
  end
data/lib/aubio.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  require_relative "aubio/version"
2
- require_relative "aubio/api"
2
+ require_relative "aubio/aubio-ffi"
3
3
  require_relative "aubio/onsets"
4
4
  require_relative "aubio/pitches"
5
5
  require_relative "aubio/beats"
@@ -0,0 +1,3838 @@
1
+ # Generated by ffi_gen. Please do not change this file by hand.
2
+
3
+ require 'ffi'
4
+
5
+ module Aubio::Api
6
+ extend FFI::Library
7
+ ffi_lib "/usr/local/Cellar/aubio/0.4.4/lib/libaubio.dylib"
8
+
9
+ def self.attach_function(name, *_)
10
+ begin; super; rescue FFI::NotFoundError => e
11
+ (class << self; self; end).class_eval { define_method(name) { |*_| raise e } }
12
+ end
13
+ end
14
+
15
+ HAVE_AUBIO_DOUBLE = 0
16
+
17
+ AUBIO_SMPL_FMT = "%f"
18
+
19
+ AUBIO_LSMP_FMT = "%lf"
20
+
21
+ # (Not documented)
22
+ #
23
+ # = Fields:
24
+ # :length ::
25
+ # (Integer) < length of buffer
26
+ # :data ::
27
+ # (FFI::Pointer(*SmplT)) < data vector of length ::fvec_t.length
28
+ class FvecT < FFI::Struct
29
+ layout :length, :uint,
30
+ :data, :pointer
31
+ end
32
+
33
+ # (Not documented)
34
+ #
35
+ # @method new_fvec(length)
36
+ # @param [Integer] length
37
+ # @return [FvecT]
38
+ # @scope class
39
+ attach_function :new_fvec, :new_fvec, [:uint], FvecT
40
+
41
+ # (Not documented)
42
+ #
43
+ # @method del_fvec(s)
44
+ # @param [FvecT] s
45
+ # @return [nil]
46
+ # @scope class
47
+ attach_function :del_fvec, :del_fvec, [FvecT], :void
48
+
49
+ # (Not documented)
50
+ #
51
+ # @method fvec_get_sample(s, position)
52
+ # @param [FvecT] s
53
+ # @param [Integer] position
54
+ # @return [Float]
55
+ # @scope class
56
+ attach_function :fvec_get_sample, :fvec_get_sample, [FvecT, :uint], :float
57
+
58
+ # (Not documented)
59
+ #
60
+ # @method fvec_set_sample(s, data, position)
61
+ # @param [FvecT] s
62
+ # @param [Float] data
63
+ # @param [Integer] position
64
+ # @return [nil]
65
+ # @scope class
66
+ attach_function :fvec_set_sample, :fvec_set_sample, [FvecT, :float, :uint], :void
67
+
68
+ # (Not documented)
69
+ #
70
+ # @method fvec_get_data(s)
71
+ # @param [FvecT] s
72
+ # @return [FFI::Pointer(*SmplT)]
73
+ # @scope class
74
+ attach_function :fvec_get_data, :fvec_get_data, [FvecT], :pointer
75
+
76
+ # (Not documented)
77
+ #
78
+ # @method fvec_print(s)
79
+ # @param [FvecT] s
80
+ # @return [nil]
81
+ # @scope class
82
+ attach_function :fvec_print, :fvec_print, [FvecT], :void
83
+
84
+ # (Not documented)
85
+ #
86
+ # @method fvec_set_all(s, val)
87
+ # @param [FvecT] s
88
+ # @param [Float] val
89
+ # @return [nil]
90
+ # @scope class
91
+ attach_function :fvec_set_all, :fvec_set_all, [FvecT, :float], :void
92
+
93
+ # (Not documented)
94
+ #
95
+ # @method fvec_zeros(s)
96
+ # @param [FvecT] s
97
+ # @return [nil]
98
+ # @scope class
99
+ attach_function :fvec_zeros, :fvec_zeros, [FvecT], :void
100
+
101
+ # (Not documented)
102
+ #
103
+ # @method fvec_ones(s)
104
+ # @param [FvecT] s
105
+ # @return [nil]
106
+ # @scope class
107
+ attach_function :fvec_ones, :fvec_ones, [FvecT], :void
108
+
109
+ # (Not documented)
110
+ #
111
+ # @method fvec_rev(s)
112
+ # @param [FvecT] s
113
+ # @return [nil]
114
+ # @scope class
115
+ attach_function :fvec_rev, :fvec_rev, [FvecT], :void
116
+
117
+ # (Not documented)
118
+ #
119
+ # @method fvec_weight(s, weight)
120
+ # @param [FvecT] s
121
+ # @param [FvecT] weight
122
+ # @return [nil]
123
+ # @scope class
124
+ attach_function :fvec_weight, :fvec_weight, [FvecT, FvecT], :void
125
+
126
+ # (Not documented)
127
+ #
128
+ # @method fvec_copy(s, t)
129
+ # @param [FvecT] s
130
+ # @param [FvecT] t
131
+ # @return [nil]
132
+ # @scope class
133
+ attach_function :fvec_copy, :fvec_copy, [FvecT, FvecT], :void
134
+
135
+ # (Not documented)
136
+ #
137
+ # @method fvec_weighted_copy(in_, weight, out)
138
+ # @param [FvecT] in_
139
+ # @param [FvecT] weight
140
+ # @param [FvecT] out
141
+ # @return [nil]
142
+ # @scope class
143
+ attach_function :fvec_weighted_copy, :fvec_weighted_copy, [FvecT, FvecT, FvecT], :void
144
+
145
+ # (Not documented)
146
+ #
147
+ # = Fields:
148
+ # :length ::
149
+ # (Integer) < length of buffer = (requested length)/2 + 1
150
+ # :norm ::
151
+ # (FFI::Pointer(*SmplT)) < norm array of size ::cvec_t.length
152
+ # :phas ::
153
+ # (FFI::Pointer(*SmplT)) < phase array of size ::cvec_t.length
154
+ class CvecT < FFI::Struct
155
+ layout :length, :uint,
156
+ :norm, :pointer,
157
+ :phas, :pointer
158
+ end
159
+
160
+ # (Not documented)
161
+ #
162
+ # @method new_cvec(length)
163
+ # @param [Integer] length
164
+ # @return [CvecT]
165
+ # @scope class
166
+ attach_function :new_cvec, :new_cvec, [:uint], CvecT
167
+
168
+ # (Not documented)
169
+ #
170
+ # @method del_cvec(s)
171
+ # @param [CvecT] s
172
+ # @return [nil]
173
+ # @scope class
174
+ attach_function :del_cvec, :del_cvec, [CvecT], :void
175
+
176
+ # (Not documented)
177
+ #
178
+ # @method cvec_norm_set_sample(s, val, position)
179
+ # @param [CvecT] s
180
+ # @param [Float] val
181
+ # @param [Integer] position
182
+ # @return [nil]
183
+ # @scope class
184
+ attach_function :cvec_norm_set_sample, :cvec_norm_set_sample, [CvecT, :float, :uint], :void
185
+
186
+ # (Not documented)
187
+ #
188
+ # @method cvec_phas_set_sample(s, val, position)
189
+ # @param [CvecT] s
190
+ # @param [Float] val
191
+ # @param [Integer] position
192
+ # @return [nil]
193
+ # @scope class
194
+ attach_function :cvec_phas_set_sample, :cvec_phas_set_sample, [CvecT, :float, :uint], :void
195
+
196
+ # (Not documented)
197
+ #
198
+ # @method cvec_norm_get_sample(s, position)
199
+ # @param [CvecT] s
200
+ # @param [Integer] position
201
+ # @return [Float]
202
+ # @scope class
203
+ attach_function :cvec_norm_get_sample, :cvec_norm_get_sample, [CvecT, :uint], :float
204
+
205
+ # (Not documented)
206
+ #
207
+ # @method cvec_phas_get_sample(s, position)
208
+ # @param [CvecT] s
209
+ # @param [Integer] position
210
+ # @return [Float]
211
+ # @scope class
212
+ attach_function :cvec_phas_get_sample, :cvec_phas_get_sample, [CvecT, :uint], :float
213
+
214
+ # (Not documented)
215
+ #
216
+ # @method cvec_norm_get_data(s)
217
+ # @param [CvecT] s
218
+ # @return [FFI::Pointer(*SmplT)]
219
+ # @scope class
220
+ attach_function :cvec_norm_get_data, :cvec_norm_get_data, [CvecT], :pointer
221
+
222
+ # (Not documented)
223
+ #
224
+ # @method cvec_phas_get_data(s)
225
+ # @param [CvecT] s
226
+ # @return [FFI::Pointer(*SmplT)]
227
+ # @scope class
228
+ attach_function :cvec_phas_get_data, :cvec_phas_get_data, [CvecT], :pointer
229
+
230
+ # (Not documented)
231
+ #
232
+ # @method cvec_print(s)
233
+ # @param [CvecT] s
234
+ # @return [nil]
235
+ # @scope class
236
+ attach_function :cvec_print, :cvec_print, [CvecT], :void
237
+
238
+ # (Not documented)
239
+ #
240
+ # @method cvec_copy(s, t)
241
+ # @param [CvecT] s
242
+ # @param [CvecT] t
243
+ # @return [nil]
244
+ # @scope class
245
+ attach_function :cvec_copy, :cvec_copy, [CvecT, CvecT], :void
246
+
247
+ # (Not documented)
248
+ #
249
+ # @method cvec_norm_set_all(s, val)
250
+ # @param [CvecT] s
251
+ # @param [Float] val
252
+ # @return [nil]
253
+ # @scope class
254
+ attach_function :cvec_norm_set_all, :cvec_norm_set_all, [CvecT, :float], :void
255
+
256
+ # (Not documented)
257
+ #
258
+ # @method cvec_norm_zeros(s)
259
+ # @param [CvecT] s
260
+ # @return [nil]
261
+ # @scope class
262
+ attach_function :cvec_norm_zeros, :cvec_norm_zeros, [CvecT], :void
263
+
264
+ # (Not documented)
265
+ #
266
+ # @method cvec_norm_ones(s)
267
+ # @param [CvecT] s
268
+ # @return [nil]
269
+ # @scope class
270
+ attach_function :cvec_norm_ones, :cvec_norm_ones, [CvecT], :void
271
+
272
+ # (Not documented)
273
+ #
274
+ # @method cvec_phas_set_all(s, val)
275
+ # @param [CvecT] s
276
+ # @param [Float] val
277
+ # @return [nil]
278
+ # @scope class
279
+ attach_function :cvec_phas_set_all, :cvec_phas_set_all, [CvecT, :float], :void
280
+
281
+ # (Not documented)
282
+ #
283
+ # @method cvec_phas_zeros(s)
284
+ # @param [CvecT] s
285
+ # @return [nil]
286
+ # @scope class
287
+ attach_function :cvec_phas_zeros, :cvec_phas_zeros, [CvecT], :void
288
+
289
+ # (Not documented)
290
+ #
291
+ # @method cvec_phas_ones(s)
292
+ # @param [CvecT] s
293
+ # @return [nil]
294
+ # @scope class
295
+ attach_function :cvec_phas_ones, :cvec_phas_ones, [CvecT], :void
296
+
297
+ # (Not documented)
298
+ #
299
+ # @method cvec_zeros(s)
300
+ # @param [CvecT] s
301
+ # @return [nil]
302
+ # @scope class
303
+ attach_function :cvec_zeros, :cvec_zeros, [CvecT], :void
304
+
305
+ # (Not documented)
306
+ #
307
+ # = Fields:
308
+ # :length ::
309
+ # (Integer) < length of buffer
310
+ # :data ::
311
+ # (FFI::Pointer(*LsmpT)) < data array of size (length)
312
+ class LvecT < FFI::Struct
313
+ layout :length, :uint,
314
+ :data, :pointer
315
+ end
316
+
317
+ # (Not documented)
318
+ #
319
+ # @method new_lvec(length)
320
+ # @param [Integer] length
321
+ # @return [LvecT]
322
+ # @scope class
323
+ attach_function :new_lvec, :new_lvec, [:uint], LvecT
324
+
325
+ # (Not documented)
326
+ #
327
+ # @method del_lvec(s)
328
+ # @param [LvecT] s
329
+ # @return [nil]
330
+ # @scope class
331
+ attach_function :del_lvec, :del_lvec, [LvecT], :void
332
+
333
+ # (Not documented)
334
+ #
335
+ # @method lvec_get_sample(s, position)
336
+ # @param [LvecT] s
337
+ # @param [Integer] position
338
+ # @return [Float]
339
+ # @scope class
340
+ attach_function :lvec_get_sample, :lvec_get_sample, [LvecT, :uint], :double
341
+
342
+ # (Not documented)
343
+ #
344
+ # @method lvec_set_sample(s, data, position)
345
+ # @param [LvecT] s
346
+ # @param [Float] data
347
+ # @param [Integer] position
348
+ # @return [nil]
349
+ # @scope class
350
+ attach_function :lvec_set_sample, :lvec_set_sample, [LvecT, :double, :uint], :void
351
+
352
+ # (Not documented)
353
+ #
354
+ # @method lvec_get_data(s)
355
+ # @param [LvecT] s
356
+ # @return [FFI::Pointer(*LsmpT)]
357
+ # @scope class
358
+ attach_function :lvec_get_data, :lvec_get_data, [LvecT], :pointer
359
+
360
+ # (Not documented)
361
+ #
362
+ # @method lvec_print(s)
363
+ # @param [LvecT] s
364
+ # @return [nil]
365
+ # @scope class
366
+ attach_function :lvec_print, :lvec_print, [LvecT], :void
367
+
368
+ # (Not documented)
369
+ #
370
+ # @method lvec_set_all(s, val)
371
+ # @param [LvecT] s
372
+ # @param [Float] val
373
+ # @return [nil]
374
+ # @scope class
375
+ attach_function :lvec_set_all, :lvec_set_all, [LvecT, :float], :void
376
+
377
+ # (Not documented)
378
+ #
379
+ # @method lvec_zeros(s)
380
+ # @param [LvecT] s
381
+ # @return [nil]
382
+ # @scope class
383
+ attach_function :lvec_zeros, :lvec_zeros, [LvecT], :void
384
+
385
+ # (Not documented)
386
+ #
387
+ # @method lvec_ones(s)
388
+ # @param [LvecT] s
389
+ # @return [nil]
390
+ # @scope class
391
+ attach_function :lvec_ones, :lvec_ones, [LvecT], :void
392
+
393
+ # (Not documented)
394
+ #
395
+ # = Fields:
396
+ # :length ::
397
+ # (Integer) < length of matrix
398
+ # :height ::
399
+ # (Integer) < height of matrix
400
+ # :data ::
401
+ # (FFI::Pointer(**SmplT)) < data array of size (length) * (height)
402
+ class FmatT < FFI::Struct
403
+ layout :length, :uint,
404
+ :height, :uint,
405
+ :data, :pointer
406
+ end
407
+
408
+ # (Not documented)
409
+ #
410
+ # @method new_fmat(height, length)
411
+ # @param [Integer] height
412
+ # @param [Integer] length
413
+ # @return [FmatT]
414
+ # @scope class
415
+ attach_function :new_fmat, :new_fmat, [:uint, :uint], FmatT
416
+
417
+ # (Not documented)
418
+ #
419
+ # @method del_fmat(s)
420
+ # @param [FmatT] s
421
+ # @return [nil]
422
+ # @scope class
423
+ attach_function :del_fmat, :del_fmat, [FmatT], :void
424
+
425
+ # (Not documented)
426
+ #
427
+ # @method fmat_get_sample(s, channel, position)
428
+ # @param [FmatT] s
429
+ # @param [Integer] channel
430
+ # @param [Integer] position
431
+ # @return [Float]
432
+ # @scope class
433
+ attach_function :fmat_get_sample, :fmat_get_sample, [FmatT, :uint, :uint], :float
434
+
435
+ # (Not documented)
436
+ #
437
+ # @method fmat_set_sample(s, data, channel, position)
438
+ # @param [FmatT] s
439
+ # @param [Float] data
440
+ # @param [Integer] channel
441
+ # @param [Integer] position
442
+ # @return [nil]
443
+ # @scope class
444
+ attach_function :fmat_set_sample, :fmat_set_sample, [FmatT, :float, :uint, :uint], :void
445
+
446
+ # (Not documented)
447
+ #
448
+ # @method fmat_get_channel(s, channel, output)
449
+ # @param [FmatT] s
450
+ # @param [Integer] channel
451
+ # @param [FvecT] output
452
+ # @return [nil]
453
+ # @scope class
454
+ attach_function :fmat_get_channel, :fmat_get_channel, [FmatT, :uint, FvecT], :void
455
+
456
+ # (Not documented)
457
+ #
458
+ # @method fmat_get_channel_data(s, channel)
459
+ # @param [FmatT] s
460
+ # @param [Integer] channel
461
+ # @return [FFI::Pointer(*SmplT)]
462
+ # @scope class
463
+ attach_function :fmat_get_channel_data, :fmat_get_channel_data, [FmatT, :uint], :pointer
464
+
465
+ # (Not documented)
466
+ #
467
+ # @method fmat_get_data(s)
468
+ # @param [FmatT] s
469
+ # @return [FFI::Pointer(**SmplT)]
470
+ # @scope class
471
+ attach_function :fmat_get_data, :fmat_get_data, [FmatT], :pointer
472
+
473
+ # (Not documented)
474
+ #
475
+ # @method fmat_print(s)
476
+ # @param [FmatT] s
477
+ # @return [nil]
478
+ # @scope class
479
+ attach_function :fmat_print, :fmat_print, [FmatT], :void
480
+
481
+ # (Not documented)
482
+ #
483
+ # @method fmat_set(s, val)
484
+ # @param [FmatT] s
485
+ # @param [Float] val
486
+ # @return [nil]
487
+ # @scope class
488
+ attach_function :fmat_set, :fmat_set, [FmatT, :float], :void
489
+
490
+ # (Not documented)
491
+ #
492
+ # @method fmat_zeros(s)
493
+ # @param [FmatT] s
494
+ # @return [nil]
495
+ # @scope class
496
+ attach_function :fmat_zeros, :fmat_zeros, [FmatT], :void
497
+
498
+ # (Not documented)
499
+ #
500
+ # @method fmat_ones(s)
501
+ # @param [FmatT] s
502
+ # @return [nil]
503
+ # @scope class
504
+ attach_function :fmat_ones, :fmat_ones, [FmatT], :void
505
+
506
+ # (Not documented)
507
+ #
508
+ # @method fmat_rev(s)
509
+ # @param [FmatT] s
510
+ # @return [nil]
511
+ # @scope class
512
+ attach_function :fmat_rev, :fmat_rev, [FmatT], :void
513
+
514
+ # (Not documented)
515
+ #
516
+ # @method fmat_weight(s, weight)
517
+ # @param [FmatT] s
518
+ # @param [FmatT] weight
519
+ # @return [nil]
520
+ # @scope class
521
+ attach_function :fmat_weight, :fmat_weight, [FmatT, FmatT], :void
522
+
523
+ # (Not documented)
524
+ #
525
+ # @method fmat_copy(s, t)
526
+ # @param [FmatT] s
527
+ # @param [FmatT] t
528
+ # @return [nil]
529
+ # @scope class
530
+ attach_function :fmat_copy, :fmat_copy, [FmatT, FmatT], :void
531
+
532
+ # (Not documented)
533
+ #
534
+ # @method fmat_vecmul(s, scale, output)
535
+ # @param [FmatT] s
536
+ # @param [FvecT] scale
537
+ # @param [FvecT] output
538
+ # @return [nil]
539
+ # @scope class
540
+ attach_function :fmat_vecmul, :fmat_vecmul, [FmatT, FvecT, FvecT], :void
541
+
542
+ # (Not documented)
543
+ #
544
+ # @method new_aubio_window(window_type, size)
545
+ # @param [String] window_type
546
+ # @param [Integer] size
547
+ # @return [FvecT]
548
+ # @scope class
549
+ attach_function :new_aubio_window, :new_aubio_window, [:string, :uint], FvecT
550
+
551
+ # (Not documented)
552
+ #
553
+ # @method fvec_set_window(window, window_type)
554
+ # @param [FvecT] window
555
+ # @param [String] window_type
556
+ # @return [Integer]
557
+ # @scope class
558
+ attach_function :fvec_set_window, :fvec_set_window, [FvecT, :string], :uint
559
+
560
+ # (Not documented)
561
+ #
562
+ # @method aubio_unwrap2pi(phase)
563
+ # @param [Float] phase
564
+ # @return [Float]
565
+ # @scope class
566
+ attach_function :aubio_unwrap2pi, :aubio_unwrap2pi, [:float], :float
567
+
568
+ # (Not documented)
569
+ #
570
+ # @method aubio_bintomidi(bin, samplerate, fftsize)
571
+ # @param [Float] bin
572
+ # @param [Float] samplerate
573
+ # @param [Float] fftsize
574
+ # @return [Float]
575
+ # @scope class
576
+ attach_function :aubio_bintomidi, :aubio_bintomidi, [:float, :float, :float], :float
577
+
578
+ # (Not documented)
579
+ #
580
+ # @method aubio_miditobin(midi, samplerate, fftsize)
581
+ # @param [Float] midi
582
+ # @param [Float] samplerate
583
+ # @param [Float] fftsize
584
+ # @return [Float]
585
+ # @scope class
586
+ attach_function :aubio_miditobin, :aubio_miditobin, [:float, :float, :float], :float
587
+
588
+ # (Not documented)
589
+ #
590
+ # @method aubio_bintofreq(bin, samplerate, fftsize)
591
+ # @param [Float] bin
592
+ # @param [Float] samplerate
593
+ # @param [Float] fftsize
594
+ # @return [Float]
595
+ # @scope class
596
+ attach_function :aubio_bintofreq, :aubio_bintofreq, [:float, :float, :float], :float
597
+
598
+ # (Not documented)
599
+ #
600
+ # @method aubio_freqtobin(freq, samplerate, fftsize)
601
+ # @param [Float] freq
602
+ # @param [Float] samplerate
603
+ # @param [Float] fftsize
604
+ # @return [Float]
605
+ # @scope class
606
+ attach_function :aubio_freqtobin, :aubio_freqtobin, [:float, :float, :float], :float
607
+
608
+ # (Not documented)
609
+ #
610
+ # @method aubio_freqtomidi(freq)
611
+ # @param [Float] freq
612
+ # @return [Float]
613
+ # @scope class
614
+ attach_function :aubio_freqtomidi, :aubio_freqtomidi, [:float], :float
615
+
616
+ # (Not documented)
617
+ #
618
+ # @method aubio_miditofreq(midi)
619
+ # @param [Float] midi
620
+ # @return [Float]
621
+ # @scope class
622
+ attach_function :aubio_miditofreq, :aubio_miditofreq, [:float], :float
623
+
624
+ # (Not documented)
625
+ #
626
+ # @method aubio_cleanup()
627
+ # @return [nil]
628
+ # @scope class
629
+ attach_function :aubio_cleanup, :aubio_cleanup, [], :void
630
+
631
+ # (Not documented)
632
+ #
633
+ # @method aubio_zero_crossing_rate(v)
634
+ # @param [FvecT] v
635
+ # @return [Float]
636
+ # @scope class
637
+ attach_function :aubio_zero_crossing_rate, :aubio_zero_crossing_rate, [FvecT], :float
638
+
639
+ # (Not documented)
640
+ #
641
+ # @method aubio_level_lin(v)
642
+ # @param [FvecT] v
643
+ # @return [Float]
644
+ # @scope class
645
+ attach_function :aubio_level_lin, :aubio_level_lin, [FvecT], :float
646
+
647
+ # (Not documented)
648
+ #
649
+ # @method aubio_db_spl(v)
650
+ # @param [FvecT] v
651
+ # @return [Float]
652
+ # @scope class
653
+ attach_function :aubio_db_spl, :aubio_db_spl, [FvecT], :float
654
+
655
+ # (Not documented)
656
+ #
657
+ # @method aubio_silence_detection(v, threshold)
658
+ # @param [FvecT] v
659
+ # @param [Float] threshold
660
+ # @return [Integer]
661
+ # @scope class
662
+ attach_function :aubio_silence_detection, :aubio_silence_detection, [FvecT, :float], :uint
663
+
664
+ # (Not documented)
665
+ #
666
+ # @method aubio_level_detection(v, threshold)
667
+ # @param [FvecT] v
668
+ # @param [Float] threshold
669
+ # @return [Float]
670
+ # @scope class
671
+ attach_function :aubio_level_detection, :aubio_level_detection, [FvecT, :float], :float
672
+
673
+ # (Not documented)
674
+ #
675
+ # @method fvec_exp(s)
676
+ # @param [FvecT] s
677
+ # @return [nil]
678
+ # @scope class
679
+ attach_function :fvec_exp, :fvec_exp, [FvecT], :void
680
+
681
+ # (Not documented)
682
+ #
683
+ # @method fvec_cos(s)
684
+ # @param [FvecT] s
685
+ # @return [nil]
686
+ # @scope class
687
+ attach_function :fvec_cos, :fvec_cos, [FvecT], :void
688
+
689
+ # (Not documented)
690
+ #
691
+ # @method fvec_sin(s)
692
+ # @param [FvecT] s
693
+ # @return [nil]
694
+ # @scope class
695
+ attach_function :fvec_sin, :fvec_sin, [FvecT], :void
696
+
697
+ # (Not documented)
698
+ #
699
+ # @method fvec_abs(s)
700
+ # @param [FvecT] s
701
+ # @return [nil]
702
+ # @scope class
703
+ attach_function :fvec_abs, :fvec_abs, [FvecT], :void
704
+
705
+ # (Not documented)
706
+ #
707
+ # @method fvec_sqrt(s)
708
+ # @param [FvecT] s
709
+ # @return [nil]
710
+ # @scope class
711
+ attach_function :fvec_sqrt, :fvec_sqrt, [FvecT], :void
712
+
713
+ # (Not documented)
714
+ #
715
+ # @method fvec_log10(s)
716
+ # @param [FvecT] s
717
+ # @return [nil]
718
+ # @scope class
719
+ attach_function :fvec_log10, :fvec_log10, [FvecT], :void
720
+
721
+ # (Not documented)
722
+ #
723
+ # @method fvec_log(s)
724
+ # @param [FvecT] s
725
+ # @return [nil]
726
+ # @scope class
727
+ attach_function :fvec_log, :fvec_log, [FvecT], :void
728
+
729
+ # (Not documented)
730
+ #
731
+ # @method fvec_floor(s)
732
+ # @param [FvecT] s
733
+ # @return [nil]
734
+ # @scope class
735
+ attach_function :fvec_floor, :fvec_floor, [FvecT], :void
736
+
737
+ # (Not documented)
738
+ #
739
+ # @method fvec_ceil(s)
740
+ # @param [FvecT] s
741
+ # @return [nil]
742
+ # @scope class
743
+ attach_function :fvec_ceil, :fvec_ceil, [FvecT], :void
744
+
745
+ # (Not documented)
746
+ #
747
+ # @method fvec_round(s)
748
+ # @param [FvecT] s
749
+ # @return [nil]
750
+ # @scope class
751
+ attach_function :fvec_round, :fvec_round, [FvecT], :void
752
+
753
+ # (Not documented)
754
+ #
755
+ # @method fvec_pow(s, pow)
756
+ # @param [FvecT] s
757
+ # @param [Float] pow
758
+ # @return [nil]
759
+ # @scope class
760
+ attach_function :fvec_pow, :fvec_pow, [FvecT, :float], :void
761
+
762
+ # (Not documented)
763
+ class AubioResamplerT < FFI::Struct
764
+ layout :dummy, :char
765
+ end
766
+
767
+ # (Not documented)
768
+ #
769
+ # @method new_aubio_resampler(ratio, type)
770
+ # @param [Float] ratio
771
+ # @param [Integer] type
772
+ # @return [AubioResamplerT]
773
+ # @scope class
774
+ attach_function :new_aubio_resampler, :new_aubio_resampler, [:float, :uint], AubioResamplerT
775
+
776
+ # (Not documented)
777
+ #
778
+ # @method del_aubio_resampler(s)
779
+ # @param [AubioResamplerT] s
780
+ # @return [nil]
781
+ # @scope class
782
+ attach_function :del_aubio_resampler, :del_aubio_resampler, [AubioResamplerT], :void
783
+
784
+ # (Not documented)
785
+ #
786
+ # @method aubio_resampler_do(s, input, output)
787
+ # @param [AubioResamplerT] s
788
+ # @param [FvecT] input
789
+ # @param [FvecT] output
790
+ # @return [nil]
791
+ # @scope class
792
+ attach_function :aubio_resampler_do, :aubio_resampler_do, [AubioResamplerT, FvecT, FvecT], :void
793
+
794
+ # (Not documented)
795
+ class AubioFilterT < FFI::Struct
796
+ layout :dummy, :char
797
+ end
798
+
799
+ # (Not documented)
800
+ #
801
+ # @method aubio_filter_do(f, in_)
802
+ # @param [AubioFilterT] f
803
+ # @param [FvecT] in_
804
+ # @return [nil]
805
+ # @scope class
806
+ attach_function :aubio_filter_do, :aubio_filter_do, [AubioFilterT, FvecT], :void
807
+
808
+ # (Not documented)
809
+ #
810
+ # @method aubio_filter_do_outplace(f, in_, out)
811
+ # @param [AubioFilterT] f
812
+ # @param [FvecT] in_
813
+ # @param [FvecT] out
814
+ # @return [nil]
815
+ # @scope class
816
+ attach_function :aubio_filter_do_outplace, :aubio_filter_do_outplace, [AubioFilterT, FvecT, FvecT], :void
817
+
818
+ # (Not documented)
819
+ #
820
+ # @method aubio_filter_do_filtfilt(f, in_, tmp)
821
+ # @param [AubioFilterT] f
822
+ # @param [FvecT] in_
823
+ # @param [FvecT] tmp
824
+ # @return [nil]
825
+ # @scope class
826
+ attach_function :aubio_filter_do_filtfilt, :aubio_filter_do_filtfilt, [AubioFilterT, FvecT, FvecT], :void
827
+
828
+ # (Not documented)
829
+ #
830
+ # @method aubio_filter_get_feedback(f)
831
+ # @param [AubioFilterT] f
832
+ # @return [LvecT]
833
+ # @scope class
834
+ attach_function :aubio_filter_get_feedback, :aubio_filter_get_feedback, [AubioFilterT], LvecT
835
+
836
+ # (Not documented)
837
+ #
838
+ # @method aubio_filter_get_feedforward(f)
839
+ # @param [AubioFilterT] f
840
+ # @return [LvecT]
841
+ # @scope class
842
+ attach_function :aubio_filter_get_feedforward, :aubio_filter_get_feedforward, [AubioFilterT], LvecT
843
+
844
+ # (Not documented)
845
+ #
846
+ # @method aubio_filter_get_order(f)
847
+ # @param [AubioFilterT] f
848
+ # @return [Integer]
849
+ # @scope class
850
+ attach_function :aubio_filter_get_order, :aubio_filter_get_order, [AubioFilterT], :uint
851
+
852
+ # (Not documented)
853
+ #
854
+ # @method aubio_filter_get_samplerate(f)
855
+ # @param [AubioFilterT] f
856
+ # @return [Integer]
857
+ # @scope class
858
+ attach_function :aubio_filter_get_samplerate, :aubio_filter_get_samplerate, [AubioFilterT], :uint
859
+
860
+ # (Not documented)
861
+ #
862
+ # @method aubio_filter_set_samplerate(f, samplerate)
863
+ # @param [AubioFilterT] f
864
+ # @param [Integer] samplerate
865
+ # @return [Integer]
866
+ # @scope class
867
+ attach_function :aubio_filter_set_samplerate, :aubio_filter_set_samplerate, [AubioFilterT, :uint], :uint
868
+
869
+ # (Not documented)
870
+ #
871
+ # @method aubio_filter_do_reset(f)
872
+ # @param [AubioFilterT] f
873
+ # @return [nil]
874
+ # @scope class
875
+ attach_function :aubio_filter_do_reset, :aubio_filter_do_reset, [AubioFilterT], :void
876
+
877
+ # (Not documented)
878
+ #
879
+ # @method new_aubio_filter(order)
880
+ # @param [Integer] order
881
+ # @return [AubioFilterT]
882
+ # @scope class
883
+ attach_function :new_aubio_filter, :new_aubio_filter, [:uint], AubioFilterT
884
+
885
+ # (Not documented)
886
+ #
887
+ # @method del_aubio_filter(f)
888
+ # @param [AubioFilterT] f
889
+ # @return [nil]
890
+ # @scope class
891
+ attach_function :del_aubio_filter, :del_aubio_filter, [AubioFilterT], :void
892
+
893
+ # (Not documented)
894
+ #
895
+ # @method aubio_filter_set_biquad(f, b0, b1, b2, a1, a2)
896
+ # @param [AubioFilterT] f
897
+ # @param [Float] b0
898
+ # @param [Float] b1
899
+ # @param [Float] b2
900
+ # @param [Float] a1
901
+ # @param [Float] a2
902
+ # @return [Integer]
903
+ # @scope class
904
+ attach_function :aubio_filter_set_biquad, :aubio_filter_set_biquad, [AubioFilterT, :double, :double, :double, :double, :double], :uint
905
+
906
+ # (Not documented)
907
+ #
908
+ # @method new_aubio_filter_biquad(b0, b1, b2, a1, a2)
909
+ # @param [Float] b0
910
+ # @param [Float] b1
911
+ # @param [Float] b2
912
+ # @param [Float] a1
913
+ # @param [Float] a2
914
+ # @return [AubioFilterT]
915
+ # @scope class
916
+ attach_function :new_aubio_filter_biquad, :new_aubio_filter_biquad, [:double, :double, :double, :double, :double], AubioFilterT
917
+
918
+ # (Not documented)
919
+ #
920
+ # @method new_aubio_filter_a_weighting(samplerate)
921
+ # @param [Integer] samplerate
922
+ # @return [AubioFilterT]
923
+ # @scope class
924
+ attach_function :new_aubio_filter_a_weighting, :new_aubio_filter_a_weighting, [:uint], AubioFilterT
925
+
926
+ # (Not documented)
927
+ #
928
+ # @method aubio_filter_set_a_weighting(f, samplerate)
929
+ # @param [AubioFilterT] f
930
+ # @param [Integer] samplerate
931
+ # @return [Integer]
932
+ # @scope class
933
+ attach_function :aubio_filter_set_a_weighting, :aubio_filter_set_a_weighting, [AubioFilterT, :uint], :uint
934
+
935
+ # (Not documented)
936
+ #
937
+ # @method new_aubio_filter_c_weighting(samplerate)
938
+ # @param [Integer] samplerate
939
+ # @return [AubioFilterT]
940
+ # @scope class
941
+ attach_function :new_aubio_filter_c_weighting, :new_aubio_filter_c_weighting, [:uint], AubioFilterT
942
+
943
+ # (Not documented)
944
+ #
945
+ # @method aubio_filter_set_c_weighting(f, samplerate)
946
+ # @param [AubioFilterT] f
947
+ # @param [Integer] samplerate
948
+ # @return [Integer]
949
+ # @scope class
950
+ attach_function :aubio_filter_set_c_weighting, :aubio_filter_set_c_weighting, [AubioFilterT, :uint], :uint
951
+
952
+ # (Not documented)
953
+ class AubioFftT < FFI::Struct
954
+ layout :dummy, :char
955
+ end
956
+
957
+ # (Not documented)
958
+ #
959
+ # @method new_aubio_fft(size)
960
+ # @param [Integer] size
961
+ # @return [AubioFftT]
962
+ # @scope class
963
+ attach_function :new_aubio_fft, :new_aubio_fft, [:uint], AubioFftT
964
+
965
+ # (Not documented)
966
+ #
967
+ # @method del_aubio_fft(s)
968
+ # @param [AubioFftT] s
969
+ # @return [nil]
970
+ # @scope class
971
+ attach_function :del_aubio_fft, :del_aubio_fft, [AubioFftT], :void
972
+
973
+ # (Not documented)
974
+ #
975
+ # @method aubio_fft_do(s, input, spectrum)
976
+ # @param [AubioFftT] s
977
+ # @param [FvecT] input
978
+ # @param [CvecT] spectrum
979
+ # @return [nil]
980
+ # @scope class
981
+ attach_function :aubio_fft_do, :aubio_fft_do, [AubioFftT, FvecT, CvecT], :void
982
+
983
+ # (Not documented)
984
+ #
985
+ # @method aubio_fft_rdo(s, spectrum, output)
986
+ # @param [AubioFftT] s
987
+ # @param [CvecT] spectrum
988
+ # @param [FvecT] output
989
+ # @return [nil]
990
+ # @scope class
991
+ attach_function :aubio_fft_rdo, :aubio_fft_rdo, [AubioFftT, CvecT, FvecT], :void
992
+
993
+ # (Not documented)
994
+ #
995
+ # @method aubio_fft_do_complex(s, input, compspec)
996
+ # @param [AubioFftT] s
997
+ # @param [FvecT] input
998
+ # @param [FvecT] compspec
999
+ # @return [nil]
1000
+ # @scope class
1001
+ attach_function :aubio_fft_do_complex, :aubio_fft_do_complex, [AubioFftT, FvecT, FvecT], :void
1002
+
1003
+ # (Not documented)
1004
+ #
1005
+ # @method aubio_fft_rdo_complex(s, compspec, output)
1006
+ # @param [AubioFftT] s
1007
+ # @param [FvecT] compspec
1008
+ # @param [FvecT] output
1009
+ # @return [nil]
1010
+ # @scope class
1011
+ attach_function :aubio_fft_rdo_complex, :aubio_fft_rdo_complex, [AubioFftT, FvecT, FvecT], :void
1012
+
1013
+ # (Not documented)
1014
+ #
1015
+ # @method aubio_fft_get_spectrum(compspec, spectrum)
1016
+ # @param [FvecT] compspec
1017
+ # @param [CvecT] spectrum
1018
+ # @return [nil]
1019
+ # @scope class
1020
+ attach_function :aubio_fft_get_spectrum, :aubio_fft_get_spectrum, [FvecT, CvecT], :void
1021
+
1022
+ # (Not documented)
1023
+ #
1024
+ # @method aubio_fft_get_realimag(spectrum, compspec)
1025
+ # @param [CvecT] spectrum
1026
+ # @param [FvecT] compspec
1027
+ # @return [nil]
1028
+ # @scope class
1029
+ attach_function :aubio_fft_get_realimag, :aubio_fft_get_realimag, [CvecT, FvecT], :void
1030
+
1031
+ # (Not documented)
1032
+ #
1033
+ # @method aubio_fft_get_phas(compspec, spectrum)
1034
+ # @param [FvecT] compspec
1035
+ # @param [CvecT] spectrum
1036
+ # @return [nil]
1037
+ # @scope class
1038
+ attach_function :aubio_fft_get_phas, :aubio_fft_get_phas, [FvecT, CvecT], :void
1039
+
1040
+ # (Not documented)
1041
+ #
1042
+ # @method aubio_fft_get_imag(spectrum, compspec)
1043
+ # @param [CvecT] spectrum
1044
+ # @param [FvecT] compspec
1045
+ # @return [nil]
1046
+ # @scope class
1047
+ attach_function :aubio_fft_get_imag, :aubio_fft_get_imag, [CvecT, FvecT], :void
1048
+
1049
+ # (Not documented)
1050
+ #
1051
+ # @method aubio_fft_get_norm(compspec, spectrum)
1052
+ # @param [FvecT] compspec
1053
+ # @param [CvecT] spectrum
1054
+ # @return [nil]
1055
+ # @scope class
1056
+ attach_function :aubio_fft_get_norm, :aubio_fft_get_norm, [FvecT, CvecT], :void
1057
+
1058
+ # (Not documented)
1059
+ #
1060
+ # @method aubio_fft_get_real(spectrum, compspec)
1061
+ # @param [CvecT] spectrum
1062
+ # @param [FvecT] compspec
1063
+ # @return [nil]
1064
+ # @scope class
1065
+ attach_function :aubio_fft_get_real, :aubio_fft_get_real, [CvecT, FvecT], :void
1066
+
1067
+ # (Not documented)
1068
+ class AubioPvocT < FFI::Struct
1069
+ layout :dummy, :char
1070
+ end
1071
+
1072
+ # (Not documented)
1073
+ #
1074
+ # @method new_aubio_pvoc(win_s, hop_s)
1075
+ # @param [Integer] win_s
1076
+ # @param [Integer] hop_s
1077
+ # @return [AubioPvocT]
1078
+ # @scope class
1079
+ attach_function :new_aubio_pvoc, :new_aubio_pvoc, [:uint, :uint], AubioPvocT
1080
+
1081
+ # (Not documented)
1082
+ #
1083
+ # @method del_aubio_pvoc(pv)
1084
+ # @param [AubioPvocT] pv
1085
+ # @return [nil]
1086
+ # @scope class
1087
+ attach_function :del_aubio_pvoc, :del_aubio_pvoc, [AubioPvocT], :void
1088
+
1089
+ # (Not documented)
1090
+ #
1091
+ # @method aubio_pvoc_do(pv, in_, fftgrain)
1092
+ # @param [AubioPvocT] pv
1093
+ # @param [FvecT] in_
1094
+ # @param [CvecT] fftgrain
1095
+ # @return [nil]
1096
+ # @scope class
1097
+ attach_function :aubio_pvoc_do, :aubio_pvoc_do, [AubioPvocT, FvecT, CvecT], :void
1098
+
1099
+ # (Not documented)
1100
+ #
1101
+ # @method aubio_pvoc_rdo(pv, fftgrain, out)
1102
+ # @param [AubioPvocT] pv
1103
+ # @param [CvecT] fftgrain
1104
+ # @param [FvecT] out
1105
+ # @return [nil]
1106
+ # @scope class
1107
+ attach_function :aubio_pvoc_rdo, :aubio_pvoc_rdo, [AubioPvocT, CvecT, FvecT], :void
1108
+
1109
+ # (Not documented)
1110
+ #
1111
+ # @method aubio_pvoc_get_win(pv)
1112
+ # @param [AubioPvocT] pv
1113
+ # @return [Integer]
1114
+ # @scope class
1115
+ attach_function :aubio_pvoc_get_win, :aubio_pvoc_get_win, [AubioPvocT], :uint
1116
+
1117
+ # (Not documented)
1118
+ #
1119
+ # @method aubio_pvoc_get_hop(pv)
1120
+ # @param [AubioPvocT] pv
1121
+ # @return [Integer]
1122
+ # @scope class
1123
+ attach_function :aubio_pvoc_get_hop, :aubio_pvoc_get_hop, [AubioPvocT], :uint
1124
+
1125
+ # (Not documented)
1126
+ class AubioFilterbankT < FFI::Struct
1127
+ layout :dummy, :char
1128
+ end
1129
+
1130
+ # (Not documented)
1131
+ #
1132
+ # @method new_aubio_filterbank(n_filters, win_s)
1133
+ # @param [Integer] n_filters
1134
+ # @param [Integer] win_s
1135
+ # @return [AubioFilterbankT]
1136
+ # @scope class
1137
+ attach_function :new_aubio_filterbank, :new_aubio_filterbank, [:uint, :uint], AubioFilterbankT
1138
+
1139
+ # (Not documented)
1140
+ #
1141
+ # @method del_aubio_filterbank(f)
1142
+ # @param [AubioFilterbankT] f
1143
+ # @return [nil]
1144
+ # @scope class
1145
+ attach_function :del_aubio_filterbank, :del_aubio_filterbank, [AubioFilterbankT], :void
1146
+
1147
+ # (Not documented)
1148
+ #
1149
+ # @method aubio_filterbank_do(f, in_, out)
1150
+ # @param [AubioFilterbankT] f
1151
+ # @param [CvecT] in_
1152
+ # @param [FvecT] out
1153
+ # @return [nil]
1154
+ # @scope class
1155
+ attach_function :aubio_filterbank_do, :aubio_filterbank_do, [AubioFilterbankT, CvecT, FvecT], :void
1156
+
1157
+ # (Not documented)
1158
+ #
1159
+ # @method aubio_filterbank_get_coeffs(f)
1160
+ # @param [AubioFilterbankT] f
1161
+ # @return [FmatT]
1162
+ # @scope class
1163
+ attach_function :aubio_filterbank_get_coeffs, :aubio_filterbank_get_coeffs, [AubioFilterbankT], FmatT
1164
+
1165
+ # (Not documented)
1166
+ #
1167
+ # @method aubio_filterbank_set_coeffs(f, filters)
1168
+ # @param [AubioFilterbankT] f
1169
+ # @param [FmatT] filters
1170
+ # @return [Integer]
1171
+ # @scope class
1172
+ attach_function :aubio_filterbank_set_coeffs, :aubio_filterbank_set_coeffs, [AubioFilterbankT, FmatT], :uint
1173
+
1174
+ # (Not documented)
1175
+ #
1176
+ # @method aubio_filterbank_set_triangle_bands(fb, freqs, samplerate)
1177
+ # @param [AubioFilterbankT] fb
1178
+ # @param [FvecT] freqs
1179
+ # @param [Float] samplerate
1180
+ # @return [Integer]
1181
+ # @scope class
1182
+ attach_function :aubio_filterbank_set_triangle_bands, :aubio_filterbank_set_triangle_bands, [AubioFilterbankT, FvecT, :float], :uint
1183
+
1184
+ # (Not documented)
1185
+ #
1186
+ # @method aubio_filterbank_set_mel_coeffs_slaney(fb, samplerate)
1187
+ # @param [AubioFilterbankT] fb
1188
+ # @param [Float] samplerate
1189
+ # @return [Integer]
1190
+ # @scope class
1191
+ attach_function :aubio_filterbank_set_mel_coeffs_slaney, :aubio_filterbank_set_mel_coeffs_slaney, [AubioFilterbankT, :float], :uint
1192
+
1193
+ # (Not documented)
1194
+ class AubioMfccT < FFI::Struct
1195
+ layout :dummy, :char
1196
+ end
1197
+
1198
+ # (Not documented)
1199
+ #
1200
+ # @method new_aubio_mfcc(buf_size, n_filters, n_coeffs, samplerate)
1201
+ # @param [Integer] buf_size
1202
+ # @param [Integer] n_filters
1203
+ # @param [Integer] n_coeffs
1204
+ # @param [Integer] samplerate
1205
+ # @return [AubioMfccT]
1206
+ # @scope class
1207
+ attach_function :new_aubio_mfcc, :new_aubio_mfcc, [:uint, :uint, :uint, :uint], AubioMfccT
1208
+
1209
+ # (Not documented)
1210
+ #
1211
+ # @method del_aubio_mfcc(mf)
1212
+ # @param [AubioMfccT] mf
1213
+ # @return [nil]
1214
+ # @scope class
1215
+ attach_function :del_aubio_mfcc, :del_aubio_mfcc, [AubioMfccT], :void
1216
+
1217
+ # (Not documented)
1218
+ #
1219
+ # @method aubio_mfcc_do(mf, in_, out)
1220
+ # @param [AubioMfccT] mf
1221
+ # @param [CvecT] in_
1222
+ # @param [FvecT] out
1223
+ # @return [nil]
1224
+ # @scope class
1225
+ attach_function :aubio_mfcc_do, :aubio_mfcc_do, [AubioMfccT, CvecT, FvecT], :void
1226
+
1227
+ # (Not documented)
1228
+ class AubioSpecdescT < FFI::Struct
1229
+ layout :dummy, :char
1230
+ end
1231
+
1232
+ # (Not documented)
1233
+ #
1234
+ # @method aubio_specdesc_do(o, fftgrain, desc)
1235
+ # @param [AubioSpecdescT] o
1236
+ # @param [CvecT] fftgrain
1237
+ # @param [FvecT] desc
1238
+ # @return [nil]
1239
+ # @scope class
1240
+ attach_function :aubio_specdesc_do, :aubio_specdesc_do, [AubioSpecdescT, CvecT, FvecT], :void
1241
+
1242
+ # (Not documented)
1243
+ #
1244
+ # @method new_aubio_specdesc(method, buf_size)
1245
+ # @param [String] method
1246
+ # @param [Integer] buf_size
1247
+ # @return [AubioSpecdescT]
1248
+ # @scope class
1249
+ attach_function :new_aubio_specdesc, :new_aubio_specdesc, [:string, :uint], AubioSpecdescT
1250
+
1251
+ # (Not documented)
1252
+ #
1253
+ # @method del_aubio_specdesc(o)
1254
+ # @param [AubioSpecdescT] o
1255
+ # @return [nil]
1256
+ # @scope class
1257
+ attach_function :del_aubio_specdesc, :del_aubio_specdesc, [AubioSpecdescT], :void
1258
+
1259
+ # (Not documented)
1260
+ class AubioTssT < FFI::Struct
1261
+ layout :dummy, :char
1262
+ end
1263
+
1264
+ # (Not documented)
1265
+ #
1266
+ # @method new_aubio_tss(buf_size, hop_size)
1267
+ # @param [Integer] buf_size
1268
+ # @param [Integer] hop_size
1269
+ # @return [AubioTssT]
1270
+ # @scope class
1271
+ attach_function :new_aubio_tss, :new_aubio_tss, [:uint, :uint], AubioTssT
1272
+
1273
+ # (Not documented)
1274
+ #
1275
+ # @method del_aubio_tss(o)
1276
+ # @param [AubioTssT] o
1277
+ # @return [nil]
1278
+ # @scope class
1279
+ attach_function :del_aubio_tss, :del_aubio_tss, [AubioTssT], :void
1280
+
1281
+ # (Not documented)
1282
+ #
1283
+ # @method aubio_tss_do(o, input, trans, stead)
1284
+ # @param [AubioTssT] o
1285
+ # @param [CvecT] input
1286
+ # @param [CvecT] trans
1287
+ # @param [CvecT] stead
1288
+ # @return [nil]
1289
+ # @scope class
1290
+ attach_function :aubio_tss_do, :aubio_tss_do, [AubioTssT, CvecT, CvecT, CvecT], :void
1291
+
1292
+ # (Not documented)
1293
+ #
1294
+ # @method aubio_tss_set_threshold(o, thrs)
1295
+ # @param [AubioTssT] o
1296
+ # @param [Float] thrs
1297
+ # @return [Integer]
1298
+ # @scope class
1299
+ attach_function :aubio_tss_set_threshold, :aubio_tss_set_threshold, [AubioTssT, :float], :uint
1300
+
1301
+ # (Not documented)
1302
+ #
1303
+ # @method aubio_tss_set_alpha(o, alpha)
1304
+ # @param [AubioTssT] o
1305
+ # @param [Float] alpha
1306
+ # @return [Integer]
1307
+ # @scope class
1308
+ attach_function :aubio_tss_set_alpha, :aubio_tss_set_alpha, [AubioTssT, :float], :uint
1309
+
1310
+ # (Not documented)
1311
+ #
1312
+ # @method aubio_tss_set_beta(o, beta)
1313
+ # @param [AubioTssT] o
1314
+ # @param [Float] beta
1315
+ # @return [Integer]
1316
+ # @scope class
1317
+ attach_function :aubio_tss_set_beta, :aubio_tss_set_beta, [AubioTssT, :float], :uint
1318
+
1319
+ # (Not documented)
1320
+ class AubioPitchT < FFI::Struct
1321
+ layout :dummy, :char
1322
+ end
1323
+
1324
+ # (Not documented)
1325
+ #
1326
+ # @method aubio_pitch_do(o, in_, out)
1327
+ # @param [AubioPitchT] o
1328
+ # @param [FvecT] in_
1329
+ # @param [FvecT] out
1330
+ # @return [nil]
1331
+ # @scope class
1332
+ attach_function :aubio_pitch_do, :aubio_pitch_do, [AubioPitchT, FvecT, FvecT], :void
1333
+
1334
+ # (Not documented)
1335
+ #
1336
+ # @method aubio_pitch_set_tolerance(o, tol)
1337
+ # @param [AubioPitchT] o
1338
+ # @param [Float] tol
1339
+ # @return [Integer]
1340
+ # @scope class
1341
+ attach_function :aubio_pitch_set_tolerance, :aubio_pitch_set_tolerance, [AubioPitchT, :float], :uint
1342
+
1343
+ # (Not documented)
1344
+ #
1345
+ # @method aubio_pitch_get_tolerance(o)
1346
+ # @param [AubioPitchT] o
1347
+ # @return [Float]
1348
+ # @scope class
1349
+ attach_function :aubio_pitch_get_tolerance, :aubio_pitch_get_tolerance, [AubioPitchT], :float
1350
+
1351
+ # (Not documented)
1352
+ #
1353
+ # @method del_aubio_pitch(o)
1354
+ # @param [AubioPitchT] o
1355
+ # @return [nil]
1356
+ # @scope class
1357
+ attach_function :del_aubio_pitch, :del_aubio_pitch, [AubioPitchT], :void
1358
+
1359
+ # (Not documented)
1360
+ #
1361
+ # @method new_aubio_pitch(method, buf_size, hop_size, samplerate)
1362
+ # @param [String] method
1363
+ # @param [Integer] buf_size
1364
+ # @param [Integer] hop_size
1365
+ # @param [Integer] samplerate
1366
+ # @return [AubioPitchT]
1367
+ # @scope class
1368
+ attach_function :new_aubio_pitch, :new_aubio_pitch, [:string, :uint, :uint, :uint], AubioPitchT
1369
+
1370
+ # (Not documented)
1371
+ #
1372
+ # @method aubio_pitch_set_unit(o, mode)
1373
+ # @param [AubioPitchT] o
1374
+ # @param [String] mode
1375
+ # @return [Integer]
1376
+ # @scope class
1377
+ attach_function :aubio_pitch_set_unit, :aubio_pitch_set_unit, [AubioPitchT, :string], :uint
1378
+
1379
+ # (Not documented)
1380
+ #
1381
+ # @method aubio_pitch_set_silence(o, silence)
1382
+ # @param [AubioPitchT] o
1383
+ # @param [Float] silence
1384
+ # @return [Integer]
1385
+ # @scope class
1386
+ attach_function :aubio_pitch_set_silence, :aubio_pitch_set_silence, [AubioPitchT, :float], :uint
1387
+
1388
+ # (Not documented)
1389
+ #
1390
+ # @method aubio_pitch_get_silence(o)
1391
+ # @param [AubioPitchT] o
1392
+ # @return [Float]
1393
+ # @scope class
1394
+ attach_function :aubio_pitch_get_silence, :aubio_pitch_get_silence, [AubioPitchT], :float
1395
+
1396
+ # (Not documented)
1397
+ #
1398
+ # @method aubio_pitch_get_confidence(o)
1399
+ # @param [AubioPitchT] o
1400
+ # @return [Float]
1401
+ # @scope class
1402
+ attach_function :aubio_pitch_get_confidence, :aubio_pitch_get_confidence, [AubioPitchT], :float
1403
+
1404
+ # (Not documented)
1405
+ class AubioOnsetT < FFI::Struct
1406
+ layout :dummy, :char
1407
+ end
1408
+
1409
+ # (Not documented)
1410
+ #
1411
+ # @method new_aubio_onset(method, buf_size, hop_size, samplerate)
1412
+ # @param [String] method
1413
+ # @param [Integer] buf_size
1414
+ # @param [Integer] hop_size
1415
+ # @param [Integer] samplerate
1416
+ # @return [AubioOnsetT]
1417
+ # @scope class
1418
+ attach_function :new_aubio_onset, :new_aubio_onset, [:string, :uint, :uint, :uint], AubioOnsetT
1419
+
1420
+ # (Not documented)
1421
+ #
1422
+ # @method aubio_onset_do(o, input, onset)
1423
+ # @param [AubioOnsetT] o
1424
+ # @param [FvecT] input
1425
+ # @param [FvecT] onset
1426
+ # @return [nil]
1427
+ # @scope class
1428
+ attach_function :aubio_onset_do, :aubio_onset_do, [AubioOnsetT, FvecT, FvecT], :void
1429
+
1430
+ # (Not documented)
1431
+ #
1432
+ # @method aubio_onset_get_last(o)
1433
+ # @param [AubioOnsetT] o
1434
+ # @return [Integer]
1435
+ # @scope class
1436
+ attach_function :aubio_onset_get_last, :aubio_onset_get_last, [AubioOnsetT], :uint
1437
+
1438
+ # (Not documented)
1439
+ #
1440
+ # @method aubio_onset_get_last_s(o)
1441
+ # @param [AubioOnsetT] o
1442
+ # @return [Float]
1443
+ # @scope class
1444
+ attach_function :aubio_onset_get_last_s, :aubio_onset_get_last_s, [AubioOnsetT], :float
1445
+
1446
+ # (Not documented)
1447
+ #
1448
+ # @method aubio_onset_get_last_ms(o)
1449
+ # @param [AubioOnsetT] o
1450
+ # @return [Float]
1451
+ # @scope class
1452
+ attach_function :aubio_onset_get_last_ms, :aubio_onset_get_last_ms, [AubioOnsetT], :float
1453
+
1454
+ # (Not documented)
1455
+ #
1456
+ # @method aubio_onset_set_silence(o, silence)
1457
+ # @param [AubioOnsetT] o
1458
+ # @param [Float] silence
1459
+ # @return [Integer]
1460
+ # @scope class
1461
+ attach_function :aubio_onset_set_silence, :aubio_onset_set_silence, [AubioOnsetT, :float], :uint
1462
+
1463
+ # (Not documented)
1464
+ #
1465
+ # @method aubio_onset_get_silence(o)
1466
+ # @param [AubioOnsetT] o
1467
+ # @return [Float]
1468
+ # @scope class
1469
+ attach_function :aubio_onset_get_silence, :aubio_onset_get_silence, [AubioOnsetT], :float
1470
+
1471
+ # (Not documented)
1472
+ #
1473
+ # @method aubio_onset_get_descriptor(o)
1474
+ # @param [AubioOnsetT] o
1475
+ # @return [Float]
1476
+ # @scope class
1477
+ attach_function :aubio_onset_get_descriptor, :aubio_onset_get_descriptor, [AubioOnsetT], :float
1478
+
1479
+ # (Not documented)
1480
+ #
1481
+ # @method aubio_onset_get_thresholded_descriptor(o)
1482
+ # @param [AubioOnsetT] o
1483
+ # @return [Float]
1484
+ # @scope class
1485
+ attach_function :aubio_onset_get_thresholded_descriptor, :aubio_onset_get_thresholded_descriptor, [AubioOnsetT], :float
1486
+
1487
+ # (Not documented)
1488
+ #
1489
+ # @method aubio_onset_set_threshold(o, threshold)
1490
+ # @param [AubioOnsetT] o
1491
+ # @param [Float] threshold
1492
+ # @return [Integer]
1493
+ # @scope class
1494
+ attach_function :aubio_onset_set_threshold, :aubio_onset_set_threshold, [AubioOnsetT, :float], :uint
1495
+
1496
+ # (Not documented)
1497
+ #
1498
+ # @method aubio_onset_set_minioi(o, minioi)
1499
+ # @param [AubioOnsetT] o
1500
+ # @param [Integer] minioi
1501
+ # @return [Integer]
1502
+ # @scope class
1503
+ attach_function :aubio_onset_set_minioi, :aubio_onset_set_minioi, [AubioOnsetT, :uint], :uint
1504
+
1505
+ # (Not documented)
1506
+ #
1507
+ # @method aubio_onset_set_minioi_s(o, minioi)
1508
+ # @param [AubioOnsetT] o
1509
+ # @param [Float] minioi
1510
+ # @return [Integer]
1511
+ # @scope class
1512
+ attach_function :aubio_onset_set_minioi_s, :aubio_onset_set_minioi_s, [AubioOnsetT, :float], :uint
1513
+
1514
+ # (Not documented)
1515
+ #
1516
+ # @method aubio_onset_set_minioi_ms(o, minioi)
1517
+ # @param [AubioOnsetT] o
1518
+ # @param [Float] minioi
1519
+ # @return [Integer]
1520
+ # @scope class
1521
+ attach_function :aubio_onset_set_minioi_ms, :aubio_onset_set_minioi_ms, [AubioOnsetT, :float], :uint
1522
+
1523
+ # (Not documented)
1524
+ #
1525
+ # @method aubio_onset_set_delay(o, delay)
1526
+ # @param [AubioOnsetT] o
1527
+ # @param [Integer] delay
1528
+ # @return [Integer]
1529
+ # @scope class
1530
+ attach_function :aubio_onset_set_delay, :aubio_onset_set_delay, [AubioOnsetT, :uint], :uint
1531
+
1532
+ # (Not documented)
1533
+ #
1534
+ # @method aubio_onset_set_delay_s(o, delay)
1535
+ # @param [AubioOnsetT] o
1536
+ # @param [Float] delay
1537
+ # @return [Integer]
1538
+ # @scope class
1539
+ attach_function :aubio_onset_set_delay_s, :aubio_onset_set_delay_s, [AubioOnsetT, :float], :uint
1540
+
1541
+ # (Not documented)
1542
+ #
1543
+ # @method aubio_onset_set_delay_ms(o, delay)
1544
+ # @param [AubioOnsetT] o
1545
+ # @param [Float] delay
1546
+ # @return [Integer]
1547
+ # @scope class
1548
+ attach_function :aubio_onset_set_delay_ms, :aubio_onset_set_delay_ms, [AubioOnsetT, :float], :uint
1549
+
1550
+ # (Not documented)
1551
+ #
1552
+ # @method aubio_onset_get_minioi(o)
1553
+ # @param [AubioOnsetT] o
1554
+ # @return [Integer]
1555
+ # @scope class
1556
+ attach_function :aubio_onset_get_minioi, :aubio_onset_get_minioi, [AubioOnsetT], :uint
1557
+
1558
+ # (Not documented)
1559
+ #
1560
+ # @method aubio_onset_get_minioi_s(o)
1561
+ # @param [AubioOnsetT] o
1562
+ # @return [Float]
1563
+ # @scope class
1564
+ attach_function :aubio_onset_get_minioi_s, :aubio_onset_get_minioi_s, [AubioOnsetT], :float
1565
+
1566
+ # (Not documented)
1567
+ #
1568
+ # @method aubio_onset_get_minioi_ms(o)
1569
+ # @param [AubioOnsetT] o
1570
+ # @return [Float]
1571
+ # @scope class
1572
+ attach_function :aubio_onset_get_minioi_ms, :aubio_onset_get_minioi_ms, [AubioOnsetT], :float
1573
+
1574
+ # (Not documented)
1575
+ #
1576
+ # @method aubio_onset_get_delay(o)
1577
+ # @param [AubioOnsetT] o
1578
+ # @return [Integer]
1579
+ # @scope class
1580
+ attach_function :aubio_onset_get_delay, :aubio_onset_get_delay, [AubioOnsetT], :uint
1581
+
1582
+ # (Not documented)
1583
+ #
1584
+ # @method aubio_onset_get_delay_s(o)
1585
+ # @param [AubioOnsetT] o
1586
+ # @return [Float]
1587
+ # @scope class
1588
+ attach_function :aubio_onset_get_delay_s, :aubio_onset_get_delay_s, [AubioOnsetT], :float
1589
+
1590
+ # (Not documented)
1591
+ #
1592
+ # @method aubio_onset_get_delay_ms(o)
1593
+ # @param [AubioOnsetT] o
1594
+ # @return [Float]
1595
+ # @scope class
1596
+ attach_function :aubio_onset_get_delay_ms, :aubio_onset_get_delay_ms, [AubioOnsetT], :float
1597
+
1598
+ # (Not documented)
1599
+ #
1600
+ # @method aubio_onset_get_threshold(o)
1601
+ # @param [AubioOnsetT] o
1602
+ # @return [Float]
1603
+ # @scope class
1604
+ attach_function :aubio_onset_get_threshold, :aubio_onset_get_threshold, [AubioOnsetT], :float
1605
+
1606
+ # (Not documented)
1607
+ #
1608
+ # @method del_aubio_onset(o)
1609
+ # @param [AubioOnsetT] o
1610
+ # @return [nil]
1611
+ # @scope class
1612
+ attach_function :del_aubio_onset, :del_aubio_onset, [AubioOnsetT], :void
1613
+
1614
+ # (Not documented)
1615
+ class AubioTempoT < FFI::Struct
1616
+ layout :dummy, :char
1617
+ end
1618
+
1619
+ # (Not documented)
1620
+ #
1621
+ # @method new_aubio_tempo(method, buf_size, hop_size, samplerate)
1622
+ # @param [String] method
1623
+ # @param [Integer] buf_size
1624
+ # @param [Integer] hop_size
1625
+ # @param [Integer] samplerate
1626
+ # @return [AubioTempoT]
1627
+ # @scope class
1628
+ attach_function :new_aubio_tempo, :new_aubio_tempo, [:string, :uint, :uint, :uint], AubioTempoT
1629
+
1630
+ # (Not documented)
1631
+ #
1632
+ # @method aubio_tempo_do(o, input, tempo)
1633
+ # @param [AubioTempoT] o
1634
+ # @param [FvecT] input
1635
+ # @param [FvecT] tempo
1636
+ # @return [nil]
1637
+ # @scope class
1638
+ attach_function :aubio_tempo_do, :aubio_tempo_do, [AubioTempoT, FvecT, FvecT], :void
1639
+
1640
+ # (Not documented)
1641
+ #
1642
+ # @method aubio_tempo_get_last(o)
1643
+ # @param [AubioTempoT] o
1644
+ # @return [Integer]
1645
+ # @scope class
1646
+ attach_function :aubio_tempo_get_last, :aubio_tempo_get_last, [AubioTempoT], :uint
1647
+
1648
+ # (Not documented)
1649
+ #
1650
+ # @method aubio_tempo_get_last_s(o)
1651
+ # @param [AubioTempoT] o
1652
+ # @return [Float]
1653
+ # @scope class
1654
+ attach_function :aubio_tempo_get_last_s, :aubio_tempo_get_last_s, [AubioTempoT], :float
1655
+
1656
+ # (Not documented)
1657
+ #
1658
+ # @method aubio_tempo_get_last_ms(o)
1659
+ # @param [AubioTempoT] o
1660
+ # @return [Float]
1661
+ # @scope class
1662
+ attach_function :aubio_tempo_get_last_ms, :aubio_tempo_get_last_ms, [AubioTempoT], :float
1663
+
1664
+ # (Not documented)
1665
+ #
1666
+ # @method aubio_tempo_set_silence(o, silence)
1667
+ # @param [AubioTempoT] o
1668
+ # @param [Float] silence
1669
+ # @return [Integer]
1670
+ # @scope class
1671
+ attach_function :aubio_tempo_set_silence, :aubio_tempo_set_silence, [AubioTempoT, :float], :uint
1672
+
1673
+ # (Not documented)
1674
+ #
1675
+ # @method aubio_tempo_get_silence(o)
1676
+ # @param [AubioTempoT] o
1677
+ # @return [Float]
1678
+ # @scope class
1679
+ attach_function :aubio_tempo_get_silence, :aubio_tempo_get_silence, [AubioTempoT], :float
1680
+
1681
+ # (Not documented)
1682
+ #
1683
+ # @method aubio_tempo_set_threshold(o, threshold)
1684
+ # @param [AubioTempoT] o
1685
+ # @param [Float] threshold
1686
+ # @return [Integer]
1687
+ # @scope class
1688
+ attach_function :aubio_tempo_set_threshold, :aubio_tempo_set_threshold, [AubioTempoT, :float], :uint
1689
+
1690
+ # (Not documented)
1691
+ #
1692
+ # @method aubio_tempo_get_threshold(o)
1693
+ # @param [AubioTempoT] o
1694
+ # @return [Float]
1695
+ # @scope class
1696
+ attach_function :aubio_tempo_get_threshold, :aubio_tempo_get_threshold, [AubioTempoT], :float
1697
+
1698
+ # (Not documented)
1699
+ #
1700
+ # @method aubio_tempo_get_period(bt)
1701
+ # @param [AubioTempoT] bt
1702
+ # @return [Float]
1703
+ # @scope class
1704
+ attach_function :aubio_tempo_get_period, :aubio_tempo_get_period, [AubioTempoT], :float
1705
+
1706
+ # (Not documented)
1707
+ #
1708
+ # @method aubio_tempo_get_period_s(bt)
1709
+ # @param [AubioTempoT] bt
1710
+ # @return [Float]
1711
+ # @scope class
1712
+ attach_function :aubio_tempo_get_period_s, :aubio_tempo_get_period_s, [AubioTempoT], :float
1713
+
1714
+ # (Not documented)
1715
+ #
1716
+ # @method aubio_tempo_get_bpm(o)
1717
+ # @param [AubioTempoT] o
1718
+ # @return [Float]
1719
+ # @scope class
1720
+ attach_function :aubio_tempo_get_bpm, :aubio_tempo_get_bpm, [AubioTempoT], :float
1721
+
1722
+ # (Not documented)
1723
+ #
1724
+ # @method aubio_tempo_get_confidence(o)
1725
+ # @param [AubioTempoT] o
1726
+ # @return [Float]
1727
+ # @scope class
1728
+ attach_function :aubio_tempo_get_confidence, :aubio_tempo_get_confidence, [AubioTempoT], :float
1729
+
1730
+ # (Not documented)
1731
+ #
1732
+ # @method aubio_tempo_set_tatum_signature(o, signature)
1733
+ # @param [AubioTempoT] o
1734
+ # @param [Integer] signature
1735
+ # @return [Integer]
1736
+ # @scope class
1737
+ attach_function :aubio_tempo_set_tatum_signature, :aubio_tempo_set_tatum_signature, [AubioTempoT, :uint], :uint
1738
+
1739
+ # (Not documented)
1740
+ #
1741
+ # @method aubio_tempo_was_tatum(o)
1742
+ # @param [AubioTempoT] o
1743
+ # @return [Integer]
1744
+ # @scope class
1745
+ attach_function :aubio_tempo_was_tatum, :aubio_tempo_was_tatum, [AubioTempoT], :uint
1746
+
1747
+ # (Not documented)
1748
+ #
1749
+ # @method aubio_tempo_get_last_tatum(o)
1750
+ # @param [AubioTempoT] o
1751
+ # @return [Float]
1752
+ # @scope class
1753
+ attach_function :aubio_tempo_get_last_tatum, :aubio_tempo_get_last_tatum, [AubioTempoT], :float
1754
+
1755
+ # (Not documented)
1756
+ #
1757
+ # @method aubio_tempo_get_delay(o)
1758
+ # @param [AubioTempoT] o
1759
+ # @return [Integer]
1760
+ # @scope class
1761
+ attach_function :aubio_tempo_get_delay, :aubio_tempo_get_delay, [AubioTempoT], :uint
1762
+
1763
+ # (Not documented)
1764
+ #
1765
+ # @method aubio_tempo_get_delay_s(o)
1766
+ # @param [AubioTempoT] o
1767
+ # @return [Float]
1768
+ # @scope class
1769
+ attach_function :aubio_tempo_get_delay_s, :aubio_tempo_get_delay_s, [AubioTempoT], :float
1770
+
1771
+ # (Not documented)
1772
+ #
1773
+ # @method aubio_tempo_get_delay_ms(o)
1774
+ # @param [AubioTempoT] o
1775
+ # @return [Float]
1776
+ # @scope class
1777
+ attach_function :aubio_tempo_get_delay_ms, :aubio_tempo_get_delay_ms, [AubioTempoT], :float
1778
+
1779
+ # (Not documented)
1780
+ #
1781
+ # @method aubio_tempo_set_delay(o, delay)
1782
+ # @param [AubioTempoT] o
1783
+ # @param [Integer] delay
1784
+ # @return [Integer]
1785
+ # @scope class
1786
+ attach_function :aubio_tempo_set_delay, :aubio_tempo_set_delay, [AubioTempoT, :int], :uint
1787
+
1788
+ # (Not documented)
1789
+ #
1790
+ # @method aubio_tempo_set_delay_s(o, delay)
1791
+ # @param [AubioTempoT] o
1792
+ # @param [Float] delay
1793
+ # @return [Integer]
1794
+ # @scope class
1795
+ attach_function :aubio_tempo_set_delay_s, :aubio_tempo_set_delay_s, [AubioTempoT, :float], :uint
1796
+
1797
+ # (Not documented)
1798
+ #
1799
+ # @method aubio_tempo_set_delay_ms(o, delay)
1800
+ # @param [AubioTempoT] o
1801
+ # @param [Float] delay
1802
+ # @return [Integer]
1803
+ # @scope class
1804
+ attach_function :aubio_tempo_set_delay_ms, :aubio_tempo_set_delay_ms, [AubioTempoT, :float], :uint
1805
+
1806
+ # (Not documented)
1807
+ #
1808
+ # @method del_aubio_tempo(o)
1809
+ # @param [AubioTempoT] o
1810
+ # @return [nil]
1811
+ # @scope class
1812
+ attach_function :del_aubio_tempo, :del_aubio_tempo, [AubioTempoT], :void
1813
+
1814
+ # (Not documented)
1815
+ class AubioNotesT < FFI::Struct
1816
+ layout :dummy, :char
1817
+ end
1818
+
1819
+ # (Not documented)
1820
+ #
1821
+ # @method new_aubio_notes(method, buf_size, hop_size, samplerate)
1822
+ # @param [String] method
1823
+ # @param [Integer] buf_size
1824
+ # @param [Integer] hop_size
1825
+ # @param [Integer] samplerate
1826
+ # @return [AubioNotesT]
1827
+ # @scope class
1828
+ attach_function :new_aubio_notes, :new_aubio_notes, [:string, :uint, :uint, :uint], AubioNotesT
1829
+
1830
+ # (Not documented)
1831
+ #
1832
+ # @method del_aubio_notes(o)
1833
+ # @param [AubioNotesT] o
1834
+ # @return [nil]
1835
+ # @scope class
1836
+ attach_function :del_aubio_notes, :del_aubio_notes, [AubioNotesT], :void
1837
+
1838
+ # (Not documented)
1839
+ #
1840
+ # @method aubio_notes_do(o, input, output)
1841
+ # @param [AubioNotesT] o
1842
+ # @param [FvecT] input
1843
+ # @param [FvecT] output
1844
+ # @return [nil]
1845
+ # @scope class
1846
+ attach_function :aubio_notes_do, :aubio_notes_do, [AubioNotesT, FvecT, FvecT], :void
1847
+
1848
+ # (Not documented)
1849
+ #
1850
+ # @method aubio_notes_set_silence(o, silence)
1851
+ # @param [AubioNotesT] o
1852
+ # @param [Float] silence
1853
+ # @return [Integer]
1854
+ # @scope class
1855
+ attach_function :aubio_notes_set_silence, :aubio_notes_set_silence, [AubioNotesT, :float], :uint
1856
+
1857
+ # (Not documented)
1858
+ #
1859
+ # @method aubio_notes_get_silence(o)
1860
+ # @param [AubioNotesT] o
1861
+ # @return [Float]
1862
+ # @scope class
1863
+ attach_function :aubio_notes_get_silence, :aubio_notes_get_silence, [AubioNotesT], :float
1864
+
1865
+ # (Not documented)
1866
+ #
1867
+ # @method aubio_notes_get_minioi_ms(o)
1868
+ # @param [AubioNotesT] o
1869
+ # @return [Float]
1870
+ # @scope class
1871
+ attach_function :aubio_notes_get_minioi_ms, :aubio_notes_get_minioi_ms, [AubioNotesT], :float
1872
+
1873
+ # (Not documented)
1874
+ #
1875
+ # @method aubio_notes_set_minioi_ms(o, minioi_ms)
1876
+ # @param [AubioNotesT] o
1877
+ # @param [Float] minioi_ms
1878
+ # @return [Integer]
1879
+ # @scope class
1880
+ attach_function :aubio_notes_set_minioi_ms, :aubio_notes_set_minioi_ms, [AubioNotesT, :float], :uint
1881
+
1882
+ # (Not documented)
1883
+ class AubioSourceT < FFI::Struct
1884
+ layout :dummy, :char
1885
+ end
1886
+
1887
+ # (Not documented)
1888
+ #
1889
+ # @method new_aubio_source(uri, samplerate, hop_size)
1890
+ # @param [String] uri
1891
+ # @param [Integer] samplerate
1892
+ # @param [Integer] hop_size
1893
+ # @return [AubioSourceT]
1894
+ # @scope class
1895
+ attach_function :new_aubio_source, :new_aubio_source, [:string, :uint, :uint], AubioSourceT
1896
+
1897
+ # (Not documented)
1898
+ #
1899
+ # @method aubio_source_do(s, read_to, read)
1900
+ # @param [AubioSourceT] s
1901
+ # @param [FvecT] read_to
1902
+ # @param [FFI::Pointer(*UintT)] read
1903
+ # @return [nil]
1904
+ # @scope class
1905
+ attach_function :aubio_source_do, :aubio_source_do, [AubioSourceT, FvecT, :pointer], :void
1906
+
1907
+ # (Not documented)
1908
+ #
1909
+ # @method aubio_source_do_multi(s, read_to, read)
1910
+ # @param [AubioSourceT] s
1911
+ # @param [FmatT] read_to
1912
+ # @param [FFI::Pointer(*UintT)] read
1913
+ # @return [nil]
1914
+ # @scope class
1915
+ attach_function :aubio_source_do_multi, :aubio_source_do_multi, [AubioSourceT, FmatT, :pointer], :void
1916
+
1917
+ # (Not documented)
1918
+ #
1919
+ # @method aubio_source_get_samplerate(s)
1920
+ # @param [AubioSourceT] s
1921
+ # @return [Integer]
1922
+ # @scope class
1923
+ attach_function :aubio_source_get_samplerate, :aubio_source_get_samplerate, [AubioSourceT], :uint
1924
+
1925
+ # (Not documented)
1926
+ #
1927
+ # @method aubio_source_get_channels(s)
1928
+ # @param [AubioSourceT] s
1929
+ # @return [Integer]
1930
+ # @scope class
1931
+ attach_function :aubio_source_get_channels, :aubio_source_get_channels, [AubioSourceT], :uint
1932
+
1933
+ # (Not documented)
1934
+ #
1935
+ # @method aubio_source_seek(s, pos)
1936
+ # @param [AubioSourceT] s
1937
+ # @param [Integer] pos
1938
+ # @return [Integer]
1939
+ # @scope class
1940
+ attach_function :aubio_source_seek, :aubio_source_seek, [AubioSourceT, :uint], :uint
1941
+
1942
+ # (Not documented)
1943
+ #
1944
+ # @method aubio_source_get_duration(s)
1945
+ # @param [AubioSourceT] s
1946
+ # @return [Integer]
1947
+ # @scope class
1948
+ attach_function :aubio_source_get_duration, :aubio_source_get_duration, [AubioSourceT], :uint
1949
+
1950
+ # (Not documented)
1951
+ #
1952
+ # @method aubio_source_close(s)
1953
+ # @param [AubioSourceT] s
1954
+ # @return [Integer]
1955
+ # @scope class
1956
+ attach_function :aubio_source_close, :aubio_source_close, [AubioSourceT], :uint
1957
+
1958
+ # (Not documented)
1959
+ #
1960
+ # @method del_aubio_source(s)
1961
+ # @param [AubioSourceT] s
1962
+ # @return [nil]
1963
+ # @scope class
1964
+ attach_function :del_aubio_source, :del_aubio_source, [AubioSourceT], :void
1965
+
1966
+ # (Not documented)
1967
+ class AubioSinkT < FFI::Struct
1968
+ layout :dummy, :char
1969
+ end
1970
+
1971
+ # (Not documented)
1972
+ #
1973
+ # @method new_aubio_sink(uri, samplerate)
1974
+ # @param [String] uri
1975
+ # @param [Integer] samplerate
1976
+ # @return [AubioSinkT]
1977
+ # @scope class
1978
+ attach_function :new_aubio_sink, :new_aubio_sink, [:string, :uint], AubioSinkT
1979
+
1980
+ # (Not documented)
1981
+ #
1982
+ # @method aubio_sink_preset_samplerate(s, samplerate)
1983
+ # @param [AubioSinkT] s
1984
+ # @param [Integer] samplerate
1985
+ # @return [Integer]
1986
+ # @scope class
1987
+ attach_function :aubio_sink_preset_samplerate, :aubio_sink_preset_samplerate, [AubioSinkT, :uint], :uint
1988
+
1989
+ # (Not documented)
1990
+ #
1991
+ # @method aubio_sink_preset_channels(s, channels)
1992
+ # @param [AubioSinkT] s
1993
+ # @param [Integer] channels
1994
+ # @return [Integer]
1995
+ # @scope class
1996
+ attach_function :aubio_sink_preset_channels, :aubio_sink_preset_channels, [AubioSinkT, :uint], :uint
1997
+
1998
+ # (Not documented)
1999
+ #
2000
+ # @method aubio_sink_get_samplerate(s)
2001
+ # @param [AubioSinkT] s
2002
+ # @return [Integer]
2003
+ # @scope class
2004
+ attach_function :aubio_sink_get_samplerate, :aubio_sink_get_samplerate, [AubioSinkT], :uint
2005
+
2006
+ # (Not documented)
2007
+ #
2008
+ # @method aubio_sink_get_channels(s)
2009
+ # @param [AubioSinkT] s
2010
+ # @return [Integer]
2011
+ # @scope class
2012
+ attach_function :aubio_sink_get_channels, :aubio_sink_get_channels, [AubioSinkT], :uint
2013
+
2014
+ # (Not documented)
2015
+ #
2016
+ # @method aubio_sink_do(s, write_data, write)
2017
+ # @param [AubioSinkT] s
2018
+ # @param [FvecT] write_data
2019
+ # @param [Integer] write
2020
+ # @return [nil]
2021
+ # @scope class
2022
+ attach_function :aubio_sink_do, :aubio_sink_do, [AubioSinkT, FvecT, :uint], :void
2023
+
2024
+ # (Not documented)
2025
+ #
2026
+ # @method aubio_sink_do_multi(s, write_data, write)
2027
+ # @param [AubioSinkT] s
2028
+ # @param [FmatT] write_data
2029
+ # @param [Integer] write
2030
+ # @return [nil]
2031
+ # @scope class
2032
+ attach_function :aubio_sink_do_multi, :aubio_sink_do_multi, [AubioSinkT, FmatT, :uint], :void
2033
+
2034
+ # (Not documented)
2035
+ #
2036
+ # @method aubio_sink_close(s)
2037
+ # @param [AubioSinkT] s
2038
+ # @return [Integer]
2039
+ # @scope class
2040
+ attach_function :aubio_sink_close, :aubio_sink_close, [AubioSinkT], :uint
2041
+
2042
+ # (Not documented)
2043
+ #
2044
+ # @method del_aubio_sink(s)
2045
+ # @param [AubioSinkT] s
2046
+ # @return [nil]
2047
+ # @scope class
2048
+ attach_function :del_aubio_sink, :del_aubio_sink, [AubioSinkT], :void
2049
+
2050
+ # (Not documented)
2051
+ class AubioSamplerT < FFI::Struct
2052
+ layout :dummy, :char
2053
+ end
2054
+
2055
+ # (Not documented)
2056
+ #
2057
+ # @method new_aubio_sampler(samplerate, hop_size)
2058
+ # @param [Integer] samplerate
2059
+ # @param [Integer] hop_size
2060
+ # @return [AubioSamplerT]
2061
+ # @scope class
2062
+ attach_function :new_aubio_sampler, :new_aubio_sampler, [:uint, :uint], AubioSamplerT
2063
+
2064
+ # (Not documented)
2065
+ #
2066
+ # @method aubio_sampler_load(o, uri)
2067
+ # @param [AubioSamplerT] o
2068
+ # @param [String] uri
2069
+ # @return [Integer]
2070
+ # @scope class
2071
+ attach_function :aubio_sampler_load, :aubio_sampler_load, [AubioSamplerT, :string], :uint
2072
+
2073
+ # (Not documented)
2074
+ #
2075
+ # @method aubio_sampler_do(o, input, output)
2076
+ # @param [AubioSamplerT] o
2077
+ # @param [FvecT] input
2078
+ # @param [FvecT] output
2079
+ # @return [nil]
2080
+ # @scope class
2081
+ attach_function :aubio_sampler_do, :aubio_sampler_do, [AubioSamplerT, FvecT, FvecT], :void
2082
+
2083
+ # (Not documented)
2084
+ #
2085
+ # @method aubio_sampler_do_multi(o, input, output)
2086
+ # @param [AubioSamplerT] o
2087
+ # @param [FmatT] input
2088
+ # @param [FmatT] output
2089
+ # @return [nil]
2090
+ # @scope class
2091
+ attach_function :aubio_sampler_do_multi, :aubio_sampler_do_multi, [AubioSamplerT, FmatT, FmatT], :void
2092
+
2093
+ # (Not documented)
2094
+ #
2095
+ # @method aubio_sampler_get_playing(o)
2096
+ # @param [AubioSamplerT] o
2097
+ # @return [Integer]
2098
+ # @scope class
2099
+ attach_function :aubio_sampler_get_playing, :aubio_sampler_get_playing, [AubioSamplerT], :uint
2100
+
2101
+ # (Not documented)
2102
+ #
2103
+ # @method aubio_sampler_set_playing(o, playing)
2104
+ # @param [AubioSamplerT] o
2105
+ # @param [Integer] playing
2106
+ # @return [Integer]
2107
+ # @scope class
2108
+ attach_function :aubio_sampler_set_playing, :aubio_sampler_set_playing, [AubioSamplerT, :uint], :uint
2109
+
2110
+ # (Not documented)
2111
+ #
2112
+ # @method aubio_sampler_play(o)
2113
+ # @param [AubioSamplerT] o
2114
+ # @return [Integer]
2115
+ # @scope class
2116
+ attach_function :aubio_sampler_play, :aubio_sampler_play, [AubioSamplerT], :uint
2117
+
2118
+ # (Not documented)
2119
+ #
2120
+ # @method aubio_sampler_stop(o)
2121
+ # @param [AubioSamplerT] o
2122
+ # @return [Integer]
2123
+ # @scope class
2124
+ attach_function :aubio_sampler_stop, :aubio_sampler_stop, [AubioSamplerT], :uint
2125
+
2126
+ # (Not documented)
2127
+ #
2128
+ # @method del_aubio_sampler(o)
2129
+ # @param [AubioSamplerT] o
2130
+ # @return [nil]
2131
+ # @scope class
2132
+ attach_function :del_aubio_sampler, :del_aubio_sampler, [AubioSamplerT], :void
2133
+
2134
+ # (Not documented)
2135
+ class AubioWavetableT < FFI::Struct
2136
+ layout :dummy, :char
2137
+ end
2138
+
2139
+ # (Not documented)
2140
+ #
2141
+ # @method new_aubio_wavetable(samplerate, hop_size)
2142
+ # @param [Integer] samplerate
2143
+ # @param [Integer] hop_size
2144
+ # @return [AubioWavetableT]
2145
+ # @scope class
2146
+ attach_function :new_aubio_wavetable, :new_aubio_wavetable, [:uint, :uint], AubioWavetableT
2147
+
2148
+ # (Not documented)
2149
+ #
2150
+ # @method aubio_wavetable_load(o, uri)
2151
+ # @param [AubioWavetableT] o
2152
+ # @param [String] uri
2153
+ # @return [Integer]
2154
+ # @scope class
2155
+ attach_function :aubio_wavetable_load, :aubio_wavetable_load, [AubioWavetableT, :string], :uint
2156
+
2157
+ # (Not documented)
2158
+ #
2159
+ # @method aubio_wavetable_do(o, input, output)
2160
+ # @param [AubioWavetableT] o
2161
+ # @param [FvecT] input
2162
+ # @param [FvecT] output
2163
+ # @return [nil]
2164
+ # @scope class
2165
+ attach_function :aubio_wavetable_do, :aubio_wavetable_do, [AubioWavetableT, FvecT, FvecT], :void
2166
+
2167
+ # (Not documented)
2168
+ #
2169
+ # @method aubio_wavetable_do_multi(o, input, output)
2170
+ # @param [AubioWavetableT] o
2171
+ # @param [FmatT] input
2172
+ # @param [FmatT] output
2173
+ # @return [nil]
2174
+ # @scope class
2175
+ attach_function :aubio_wavetable_do_multi, :aubio_wavetable_do_multi, [AubioWavetableT, FmatT, FmatT], :void
2176
+
2177
+ # (Not documented)
2178
+ #
2179
+ # @method aubio_wavetable_get_playing(o)
2180
+ # @param [AubioWavetableT] o
2181
+ # @return [Integer]
2182
+ # @scope class
2183
+ attach_function :aubio_wavetable_get_playing, :aubio_wavetable_get_playing, [AubioWavetableT], :uint
2184
+
2185
+ # (Not documented)
2186
+ #
2187
+ # @method aubio_wavetable_set_playing(o, playing)
2188
+ # @param [AubioWavetableT] o
2189
+ # @param [Integer] playing
2190
+ # @return [Integer]
2191
+ # @scope class
2192
+ attach_function :aubio_wavetable_set_playing, :aubio_wavetable_set_playing, [AubioWavetableT, :uint], :uint
2193
+
2194
+ # (Not documented)
2195
+ #
2196
+ # @method aubio_wavetable_play(o)
2197
+ # @param [AubioWavetableT] o
2198
+ # @return [Integer]
2199
+ # @scope class
2200
+ attach_function :aubio_wavetable_play, :aubio_wavetable_play, [AubioWavetableT], :uint
2201
+
2202
+ # (Not documented)
2203
+ #
2204
+ # @method aubio_wavetable_stop(o)
2205
+ # @param [AubioWavetableT] o
2206
+ # @return [Integer]
2207
+ # @scope class
2208
+ attach_function :aubio_wavetable_stop, :aubio_wavetable_stop, [AubioWavetableT], :uint
2209
+
2210
+ # (Not documented)
2211
+ #
2212
+ # @method aubio_wavetable_set_freq(o, freq)
2213
+ # @param [AubioWavetableT] o
2214
+ # @param [Float] freq
2215
+ # @return [Integer]
2216
+ # @scope class
2217
+ attach_function :aubio_wavetable_set_freq, :aubio_wavetable_set_freq, [AubioWavetableT, :float], :uint
2218
+
2219
+ # (Not documented)
2220
+ #
2221
+ # @method aubio_wavetable_get_freq(o)
2222
+ # @param [AubioWavetableT] o
2223
+ # @return [Float]
2224
+ # @scope class
2225
+ attach_function :aubio_wavetable_get_freq, :aubio_wavetable_get_freq, [AubioWavetableT], :float
2226
+
2227
+ # (Not documented)
2228
+ #
2229
+ # @method aubio_wavetable_set_amp(o, amp)
2230
+ # @param [AubioWavetableT] o
2231
+ # @param [Float] amp
2232
+ # @return [Integer]
2233
+ # @scope class
2234
+ attach_function :aubio_wavetable_set_amp, :aubio_wavetable_set_amp, [AubioWavetableT, :float], :uint
2235
+
2236
+ # (Not documented)
2237
+ #
2238
+ # @method aubio_wavetable_get_amp(o)
2239
+ # @param [AubioWavetableT] o
2240
+ # @return [Float]
2241
+ # @scope class
2242
+ attach_function :aubio_wavetable_get_amp, :aubio_wavetable_get_amp, [AubioWavetableT], :float
2243
+
2244
+ # (Not documented)
2245
+ #
2246
+ # @method del_aubio_wavetable(o)
2247
+ # @param [AubioWavetableT] o
2248
+ # @return [nil]
2249
+ # @scope class
2250
+ attach_function :del_aubio_wavetable, :del_aubio_wavetable, [AubioWavetableT], :void
2251
+
2252
+ # (Not documented)
2253
+ class AubioParameterT < FFI::Struct
2254
+ layout :dummy, :char
2255
+ end
2256
+
2257
+ # (Not documented)
2258
+ #
2259
+ # @method new_aubio_parameter(min_value, max_value, steps)
2260
+ # @param [Float] min_value
2261
+ # @param [Float] max_value
2262
+ # @param [Integer] steps
2263
+ # @return [AubioParameterT]
2264
+ # @scope class
2265
+ attach_function :new_aubio_parameter, :new_aubio_parameter, [:float, :float, :uint], AubioParameterT
2266
+
2267
+ # (Not documented)
2268
+ #
2269
+ # @method aubio_parameter_set_target_value(param, value)
2270
+ # @param [AubioParameterT] param
2271
+ # @param [Float] value
2272
+ # @return [Integer]
2273
+ # @scope class
2274
+ attach_function :aubio_parameter_set_target_value, :aubio_parameter_set_target_value, [AubioParameterT, :float], :uint
2275
+
2276
+ # (Not documented)
2277
+ #
2278
+ # @method aubio_parameter_get_next_value(param)
2279
+ # @param [AubioParameterT] param
2280
+ # @return [Float]
2281
+ # @scope class
2282
+ attach_function :aubio_parameter_get_next_value, :aubio_parameter_get_next_value, [AubioParameterT], :float
2283
+
2284
+ # (Not documented)
2285
+ #
2286
+ # @method aubio_parameter_get_current_value(param)
2287
+ # @param [AubioParameterT] param
2288
+ # @return [Float]
2289
+ # @scope class
2290
+ attach_function :aubio_parameter_get_current_value, :aubio_parameter_get_current_value, [AubioParameterT], :float
2291
+
2292
+ # (Not documented)
2293
+ #
2294
+ # @method aubio_parameter_set_current_value(param, value)
2295
+ # @param [AubioParameterT] param
2296
+ # @param [Float] value
2297
+ # @return [Integer]
2298
+ # @scope class
2299
+ attach_function :aubio_parameter_set_current_value, :aubio_parameter_set_current_value, [AubioParameterT, :float], :uint
2300
+
2301
+ # (Not documented)
2302
+ #
2303
+ # @method aubio_parameter_set_steps(param, steps)
2304
+ # @param [AubioParameterT] param
2305
+ # @param [Integer] steps
2306
+ # @return [Integer]
2307
+ # @scope class
2308
+ attach_function :aubio_parameter_set_steps, :aubio_parameter_set_steps, [AubioParameterT, :uint], :uint
2309
+
2310
+ # (Not documented)
2311
+ #
2312
+ # @method aubio_parameter_get_steps(param)
2313
+ # @param [AubioParameterT] param
2314
+ # @return [Integer]
2315
+ # @scope class
2316
+ attach_function :aubio_parameter_get_steps, :aubio_parameter_get_steps, [AubioParameterT], :uint
2317
+
2318
+ # (Not documented)
2319
+ #
2320
+ # @method aubio_parameter_set_min_value(param, min_value)
2321
+ # @param [AubioParameterT] param
2322
+ # @param [Float] min_value
2323
+ # @return [Integer]
2324
+ # @scope class
2325
+ attach_function :aubio_parameter_set_min_value, :aubio_parameter_set_min_value, [AubioParameterT, :float], :uint
2326
+
2327
+ # (Not documented)
2328
+ #
2329
+ # @method aubio_parameter_get_min_value(param)
2330
+ # @param [AubioParameterT] param
2331
+ # @return [Float]
2332
+ # @scope class
2333
+ attach_function :aubio_parameter_get_min_value, :aubio_parameter_get_min_value, [AubioParameterT], :float
2334
+
2335
+ # (Not documented)
2336
+ #
2337
+ # @method aubio_parameter_set_max_value(param, max_value)
2338
+ # @param [AubioParameterT] param
2339
+ # @param [Float] max_value
2340
+ # @return [Integer]
2341
+ # @scope class
2342
+ attach_function :aubio_parameter_set_max_value, :aubio_parameter_set_max_value, [AubioParameterT, :float], :uint
2343
+
2344
+ # (Not documented)
2345
+ #
2346
+ # @method aubio_parameter_get_max_value(param)
2347
+ # @param [AubioParameterT] param
2348
+ # @return [Float]
2349
+ # @scope class
2350
+ attach_function :aubio_parameter_get_max_value, :aubio_parameter_get_max_value, [AubioParameterT], :float
2351
+
2352
+ # (Not documented)
2353
+ #
2354
+ # @method del_aubio_parameter(param)
2355
+ # @param [AubioParameterT] param
2356
+ # @return [nil]
2357
+ # @scope class
2358
+ attach_function :del_aubio_parameter, :del_aubio_parameter, [AubioParameterT], :void
2359
+
2360
+ # (Not documented)
2361
+ #
2362
+ # <em>This entry is only for documentation and no real method. The FFI::Enum can be accessed via #enum_type(:aubio_log_level).</em>
2363
+ #
2364
+ # === Options:
2365
+ # :err ::
2366
+ #
2367
+ # :inf ::
2368
+ # < critical errors
2369
+ # :msg ::
2370
+ # < infos
2371
+ # :dbg ::
2372
+ # < general messages
2373
+ # :wrn ::
2374
+ # < debug messages
2375
+ # :last_level ::
2376
+ # < warnings
2377
+ #
2378
+ # @method _enum_aubio_log_level_
2379
+ # @return [Symbol]
2380
+ # @scope class
2381
+ enum :aubio_log_level, [
2382
+ :err, 0,
2383
+ :inf, 1,
2384
+ :msg, 2,
2385
+ :dbg, 3,
2386
+ :wrn, 4,
2387
+ :last_level, 5
2388
+ ]
2389
+
2390
+ # (Not documented)
2391
+ #
2392
+ # <em>This entry is only for documentation and no real method.</em>
2393
+ #
2394
+ # @method _callback_aubio_log_function_t_(level, message, data)
2395
+ # @param [Integer] level
2396
+ # @param [String] message
2397
+ # @param [FFI::Pointer(*Void)] data
2398
+ # @return [Integer]
2399
+ # @scope class
2400
+ callback :aubio_log_function_t, [:int, :string, :pointer], :int
2401
+
2402
+ # (Not documented)
2403
+ #
2404
+ # @method aubio_log_set_function(fun, data)
2405
+ # @param [Proc(_callback_aubio_log_function_t_)] fun
2406
+ # @param [FFI::Pointer(*Void)] data
2407
+ # @return [nil]
2408
+ # @scope class
2409
+ attach_function :aubio_log_set_function, :aubio_log_set_function, [:aubio_log_function_t, :pointer], :void
2410
+
2411
+ # (Not documented)
2412
+ #
2413
+ # @method aubio_log_set_level_function(level, fun, data)
2414
+ # @param [Integer] level
2415
+ # @param [Proc(_callback_aubio_log_function_t_)] fun
2416
+ # @param [FFI::Pointer(*Void)] data
2417
+ # @return [Proc(_callback_aubio_log_function_t_)]
2418
+ # @scope class
2419
+ attach_function :aubio_log_set_level_function, :aubio_log_set_level_function, [:int, :aubio_log_function_t, :pointer], :aubio_log_function_t
2420
+
2421
+ # (Not documented)
2422
+ #
2423
+ # @method aubio_log_reset()
2424
+ # @return [nil]
2425
+ # @scope class
2426
+ attach_function :aubio_log_reset, :aubio_log_reset, [], :void
2427
+
2428
+ # (Not documented)
2429
+ class AubioAudioUnitT < FFI::Struct
2430
+ layout :dummy, :char
2431
+ end
2432
+
2433
+ # (Not documented)
2434
+ #
2435
+ # @method new_aubio_audio_unit(samplerate, inchannels, outchannels, blocksize)
2436
+ # @param [Integer] samplerate
2437
+ # @param [Integer] inchannels
2438
+ # @param [Integer] outchannels
2439
+ # @param [Integer] blocksize
2440
+ # @return [AubioAudioUnitT]
2441
+ # @scope class
2442
+ attach_function :new_aubio_audio_unit, :new_aubio_audio_unit, [:uint, :uint, :uint, :uint], AubioAudioUnitT
2443
+
2444
+ # (Not documented)
2445
+ #
2446
+ # <em>This entry is only for documentation and no real method.</em>
2447
+ #
2448
+ # @method _callback_aubio_device_callback_t_(uint_t, closure, ibuf, obuf)
2449
+ # @param [Integer] uint_t
2450
+ # @param [FFI::Pointer(*Void)] closure
2451
+ # @param [FmatT] ibuf
2452
+ # @param [FmatT] obuf
2453
+ # @return [Integer]
2454
+ # @scope class
2455
+ callback :aubio_device_callback_t, [:uint, :pointer, FmatT, FmatT], :uint
2456
+
2457
+ # (Not documented)
2458
+ #
2459
+ # @method aubio_audio_unit_set_callback(o, callback, closure)
2460
+ # @param [AubioAudioUnitT] o
2461
+ # @param [Proc(_callback_aubio_device_callback_t_)] callback
2462
+ # @param [FFI::Pointer(*Void)] closure
2463
+ # @return [Integer]
2464
+ # @scope class
2465
+ attach_function :aubio_audio_unit_set_callback, :aubio_audio_unit_set_callback, [AubioAudioUnitT, :aubio_device_callback_t, :pointer], :uint
2466
+
2467
+ # (Not documented)
2468
+ #
2469
+ # @method aubio_audio_unit_set_verbose(o, verbose)
2470
+ # @param [AubioAudioUnitT] o
2471
+ # @param [Integer] verbose
2472
+ # @return [Integer]
2473
+ # @scope class
2474
+ attach_function :aubio_audio_unit_set_verbose, :aubio_audio_unit_set_verbose, [AubioAudioUnitT, :uint], :int
2475
+
2476
+ # (Not documented)
2477
+ #
2478
+ # @method aubio_audio_unit_set_preferred_latency(o, latency)
2479
+ # @param [AubioAudioUnitT] o
2480
+ # @param [Float] latency
2481
+ # @return [Integer]
2482
+ # @scope class
2483
+ attach_function :aubio_audio_unit_set_preferred_latency, :aubio_audio_unit_set_preferred_latency, [AubioAudioUnitT, :float], :int
2484
+
2485
+ # (Not documented)
2486
+ #
2487
+ # @method aubio_audio_unit_set_prevent_feedback(o, prevent_feedback)
2488
+ # @param [AubioAudioUnitT] o
2489
+ # @param [Integer] prevent_feedback
2490
+ # @return [Integer]
2491
+ # @scope class
2492
+ attach_function :aubio_audio_unit_set_prevent_feedback, :aubio_audio_unit_set_prevent_feedback, [AubioAudioUnitT, :uint], :int
2493
+
2494
+ # (Not documented)
2495
+ #
2496
+ # @method aubio_audio_unit_get_info(o)
2497
+ # @param [AubioAudioUnitT] o
2498
+ # @return [Integer]
2499
+ # @scope class
2500
+ attach_function :aubio_audio_unit_get_info, :aubio_audio_unit_get_info, [AubioAudioUnitT], :int
2501
+
2502
+ # (Not documented)
2503
+ #
2504
+ # @method aubio_audio_unit_init(o)
2505
+ # @param [AubioAudioUnitT] o
2506
+ # @return [Integer]
2507
+ # @scope class
2508
+ attach_function :aubio_audio_unit_init, :aubio_audio_unit_init, [AubioAudioUnitT], :int
2509
+
2510
+ # (Not documented)
2511
+ #
2512
+ # @method aubio_audio_unit_start(o)
2513
+ # @param [AubioAudioUnitT] o
2514
+ # @return [Integer]
2515
+ # @scope class
2516
+ attach_function :aubio_audio_unit_start, :aubio_audio_unit_start, [AubioAudioUnitT], :int
2517
+
2518
+ # (Not documented)
2519
+ #
2520
+ # @method aubio_audio_unit_stop(o)
2521
+ # @param [AubioAudioUnitT] o
2522
+ # @return [Integer]
2523
+ # @scope class
2524
+ attach_function :aubio_audio_unit_stop, :aubio_audio_unit_stop, [AubioAudioUnitT], :int
2525
+
2526
+ # (Not documented)
2527
+ #
2528
+ # @method del_aubio_audio_unit(o)
2529
+ # @param [AubioAudioUnitT] o
2530
+ # @return [Integer]
2531
+ # @scope class
2532
+ attach_function :del_aubio_audio_unit, :del_aubio_audio_unit, [AubioAudioUnitT], :uint
2533
+
2534
+ # (Not documented)
2535
+ #
2536
+ # @method aubio_io_validate_samplerate(kind, path, samplerate)
2537
+ # @param [String] kind
2538
+ # @param [String] path
2539
+ # @param [Integer] samplerate
2540
+ # @return [Integer]
2541
+ # @scope class
2542
+ attach_function :aubio_io_validate_samplerate, :aubio_io_validate_samplerate, [:string, :string, :uint], :uint
2543
+
2544
+ # (Not documented)
2545
+ #
2546
+ # @method aubio_io_validate_channels(kind, path, channels)
2547
+ # @param [String] kind
2548
+ # @param [String] path
2549
+ # @param [Integer] channels
2550
+ # @return [Integer]
2551
+ # @scope class
2552
+ attach_function :aubio_io_validate_channels, :aubio_io_validate_channels, [:string, :string, :uint], :uint
2553
+
2554
+ # (Not documented)
2555
+ class AubioSinkAppleAudioT < FFI::Struct
2556
+ layout :dummy, :char
2557
+ end
2558
+
2559
+ # (Not documented)
2560
+ #
2561
+ # @method new_aubio_sink_apple_audio(uri, samplerate)
2562
+ # @param [String] uri
2563
+ # @param [Integer] samplerate
2564
+ # @return [AubioSinkAppleAudioT]
2565
+ # @scope class
2566
+ attach_function :new_aubio_sink_apple_audio, :new_aubio_sink_apple_audio, [:string, :uint], AubioSinkAppleAudioT
2567
+
2568
+ # (Not documented)
2569
+ #
2570
+ # @method aubio_sink_apple_audio_preset_samplerate(s, samplerate)
2571
+ # @param [AubioSinkAppleAudioT] s
2572
+ # @param [Integer] samplerate
2573
+ # @return [Integer]
2574
+ # @scope class
2575
+ attach_function :aubio_sink_apple_audio_preset_samplerate, :aubio_sink_apple_audio_preset_samplerate, [AubioSinkAppleAudioT, :uint], :uint
2576
+
2577
+ # (Not documented)
2578
+ #
2579
+ # @method aubio_sink_apple_audio_preset_channels(s, channels)
2580
+ # @param [AubioSinkAppleAudioT] s
2581
+ # @param [Integer] channels
2582
+ # @return [Integer]
2583
+ # @scope class
2584
+ attach_function :aubio_sink_apple_audio_preset_channels, :aubio_sink_apple_audio_preset_channels, [AubioSinkAppleAudioT, :uint], :uint
2585
+
2586
+ # (Not documented)
2587
+ #
2588
+ # @method aubio_sink_apple_audio_get_samplerate(s)
2589
+ # @param [AubioSinkAppleAudioT] s
2590
+ # @return [Integer]
2591
+ # @scope class
2592
+ attach_function :aubio_sink_apple_audio_get_samplerate, :aubio_sink_apple_audio_get_samplerate, [AubioSinkAppleAudioT], :uint
2593
+
2594
+ # (Not documented)
2595
+ #
2596
+ # @method aubio_sink_apple_audio_get_channels(s)
2597
+ # @param [AubioSinkAppleAudioT] s
2598
+ # @return [Integer]
2599
+ # @scope class
2600
+ attach_function :aubio_sink_apple_audio_get_channels, :aubio_sink_apple_audio_get_channels, [AubioSinkAppleAudioT], :uint
2601
+
2602
+ # (Not documented)
2603
+ #
2604
+ # @method aubio_sink_apple_audio_do(s, write_data, write)
2605
+ # @param [AubioSinkAppleAudioT] s
2606
+ # @param [FvecT] write_data
2607
+ # @param [Integer] write
2608
+ # @return [nil]
2609
+ # @scope class
2610
+ attach_function :aubio_sink_apple_audio_do, :aubio_sink_apple_audio_do, [AubioSinkAppleAudioT, FvecT, :uint], :void
2611
+
2612
+ # (Not documented)
2613
+ #
2614
+ # @method aubio_sink_apple_audio_do_multi(s, write_data, write)
2615
+ # @param [AubioSinkAppleAudioT] s
2616
+ # @param [FmatT] write_data
2617
+ # @param [Integer] write
2618
+ # @return [nil]
2619
+ # @scope class
2620
+ attach_function :aubio_sink_apple_audio_do_multi, :aubio_sink_apple_audio_do_multi, [AubioSinkAppleAudioT, FmatT, :uint], :void
2621
+
2622
+ # (Not documented)
2623
+ #
2624
+ # @method aubio_sink_apple_audio_close(s)
2625
+ # @param [AubioSinkAppleAudioT] s
2626
+ # @return [Integer]
2627
+ # @scope class
2628
+ attach_function :aubio_sink_apple_audio_close, :aubio_sink_apple_audio_close, [AubioSinkAppleAudioT], :uint
2629
+
2630
+ # (Not documented)
2631
+ #
2632
+ # @method del_aubio_sink_apple_audio(s)
2633
+ # @param [AubioSinkAppleAudioT] s
2634
+ # @return [nil]
2635
+ # @scope class
2636
+ attach_function :del_aubio_sink_apple_audio, :del_aubio_sink_apple_audio, [AubioSinkAppleAudioT], :void
2637
+
2638
+ # (Not documented)
2639
+ class AubioSinkSndfileT < FFI::Struct
2640
+ layout :dummy, :char
2641
+ end
2642
+
2643
+ # (Not documented)
2644
+ #
2645
+ # @method new_aubio_sink_sndfile(uri, samplerate)
2646
+ # @param [String] uri
2647
+ # @param [Integer] samplerate
2648
+ # @return [AubioSinkSndfileT]
2649
+ # @scope class
2650
+ attach_function :new_aubio_sink_sndfile, :new_aubio_sink_sndfile, [:string, :uint], AubioSinkSndfileT
2651
+
2652
+ # (Not documented)
2653
+ #
2654
+ # @method aubio_sink_sndfile_preset_samplerate(s, samplerate)
2655
+ # @param [AubioSinkSndfileT] s
2656
+ # @param [Integer] samplerate
2657
+ # @return [Integer]
2658
+ # @scope class
2659
+ attach_function :aubio_sink_sndfile_preset_samplerate, :aubio_sink_sndfile_preset_samplerate, [AubioSinkSndfileT, :uint], :uint
2660
+
2661
+ # (Not documented)
2662
+ #
2663
+ # @method aubio_sink_sndfile_preset_channels(s, channels)
2664
+ # @param [AubioSinkSndfileT] s
2665
+ # @param [Integer] channels
2666
+ # @return [Integer]
2667
+ # @scope class
2668
+ attach_function :aubio_sink_sndfile_preset_channels, :aubio_sink_sndfile_preset_channels, [AubioSinkSndfileT, :uint], :uint
2669
+
2670
+ # (Not documented)
2671
+ #
2672
+ # @method aubio_sink_sndfile_get_samplerate(s)
2673
+ # @param [AubioSinkSndfileT] s
2674
+ # @return [Integer]
2675
+ # @scope class
2676
+ attach_function :aubio_sink_sndfile_get_samplerate, :aubio_sink_sndfile_get_samplerate, [AubioSinkSndfileT], :uint
2677
+
2678
+ # (Not documented)
2679
+ #
2680
+ # @method aubio_sink_sndfile_get_channels(s)
2681
+ # @param [AubioSinkSndfileT] s
2682
+ # @return [Integer]
2683
+ # @scope class
2684
+ attach_function :aubio_sink_sndfile_get_channels, :aubio_sink_sndfile_get_channels, [AubioSinkSndfileT], :uint
2685
+
2686
+ # (Not documented)
2687
+ #
2688
+ # @method aubio_sink_sndfile_do(s, write_data, write)
2689
+ # @param [AubioSinkSndfileT] s
2690
+ # @param [FvecT] write_data
2691
+ # @param [Integer] write
2692
+ # @return [nil]
2693
+ # @scope class
2694
+ attach_function :aubio_sink_sndfile_do, :aubio_sink_sndfile_do, [AubioSinkSndfileT, FvecT, :uint], :void
2695
+
2696
+ # (Not documented)
2697
+ #
2698
+ # @method aubio_sink_sndfile_do_multi(s, write_data, write)
2699
+ # @param [AubioSinkSndfileT] s
2700
+ # @param [FmatT] write_data
2701
+ # @param [Integer] write
2702
+ # @return [nil]
2703
+ # @scope class
2704
+ attach_function :aubio_sink_sndfile_do_multi, :aubio_sink_sndfile_do_multi, [AubioSinkSndfileT, FmatT, :uint], :void
2705
+
2706
+ # (Not documented)
2707
+ #
2708
+ # @method aubio_sink_sndfile_close(s)
2709
+ # @param [AubioSinkSndfileT] s
2710
+ # @return [Integer]
2711
+ # @scope class
2712
+ attach_function :aubio_sink_sndfile_close, :aubio_sink_sndfile_close, [AubioSinkSndfileT], :uint
2713
+
2714
+ # (Not documented)
2715
+ #
2716
+ # @method del_aubio_sink_sndfile(s)
2717
+ # @param [AubioSinkSndfileT] s
2718
+ # @return [nil]
2719
+ # @scope class
2720
+ attach_function :del_aubio_sink_sndfile, :del_aubio_sink_sndfile, [AubioSinkSndfileT], :void
2721
+
2722
+ # (Not documented)
2723
+ class AubioSinkWavwriteT < FFI::Struct
2724
+ layout :dummy, :char
2725
+ end
2726
+
2727
+ # (Not documented)
2728
+ #
2729
+ # @method new_aubio_sink_wavwrite(uri, samplerate)
2730
+ # @param [String] uri
2731
+ # @param [Integer] samplerate
2732
+ # @return [AubioSinkWavwriteT]
2733
+ # @scope class
2734
+ attach_function :new_aubio_sink_wavwrite, :new_aubio_sink_wavwrite, [:string, :uint], AubioSinkWavwriteT
2735
+
2736
+ # (Not documented)
2737
+ #
2738
+ # @method aubio_sink_wavwrite_preset_samplerate(s, samplerate)
2739
+ # @param [AubioSinkWavwriteT] s
2740
+ # @param [Integer] samplerate
2741
+ # @return [Integer]
2742
+ # @scope class
2743
+ attach_function :aubio_sink_wavwrite_preset_samplerate, :aubio_sink_wavwrite_preset_samplerate, [AubioSinkWavwriteT, :uint], :uint
2744
+
2745
+ # (Not documented)
2746
+ #
2747
+ # @method aubio_sink_wavwrite_preset_channels(s, channels)
2748
+ # @param [AubioSinkWavwriteT] s
2749
+ # @param [Integer] channels
2750
+ # @return [Integer]
2751
+ # @scope class
2752
+ attach_function :aubio_sink_wavwrite_preset_channels, :aubio_sink_wavwrite_preset_channels, [AubioSinkWavwriteT, :uint], :uint
2753
+
2754
+ # (Not documented)
2755
+ #
2756
+ # @method aubio_sink_wavwrite_get_samplerate(s)
2757
+ # @param [AubioSinkWavwriteT] s
2758
+ # @return [Integer]
2759
+ # @scope class
2760
+ attach_function :aubio_sink_wavwrite_get_samplerate, :aubio_sink_wavwrite_get_samplerate, [AubioSinkWavwriteT], :uint
2761
+
2762
+ # (Not documented)
2763
+ #
2764
+ # @method aubio_sink_wavwrite_get_channels(s)
2765
+ # @param [AubioSinkWavwriteT] s
2766
+ # @return [Integer]
2767
+ # @scope class
2768
+ attach_function :aubio_sink_wavwrite_get_channels, :aubio_sink_wavwrite_get_channels, [AubioSinkWavwriteT], :uint
2769
+
2770
+ # (Not documented)
2771
+ #
2772
+ # @method aubio_sink_wavwrite_do(s, write_data, write)
2773
+ # @param [AubioSinkWavwriteT] s
2774
+ # @param [FvecT] write_data
2775
+ # @param [Integer] write
2776
+ # @return [nil]
2777
+ # @scope class
2778
+ attach_function :aubio_sink_wavwrite_do, :aubio_sink_wavwrite_do, [AubioSinkWavwriteT, FvecT, :uint], :void
2779
+
2780
+ # (Not documented)
2781
+ #
2782
+ # @method aubio_sink_wavwrite_do_multi(s, write_data, write)
2783
+ # @param [AubioSinkWavwriteT] s
2784
+ # @param [FmatT] write_data
2785
+ # @param [Integer] write
2786
+ # @return [nil]
2787
+ # @scope class
2788
+ attach_function :aubio_sink_wavwrite_do_multi, :aubio_sink_wavwrite_do_multi, [AubioSinkWavwriteT, FmatT, :uint], :void
2789
+
2790
+ # (Not documented)
2791
+ #
2792
+ # @method aubio_sink_wavwrite_close(s)
2793
+ # @param [AubioSinkWavwriteT] s
2794
+ # @return [Integer]
2795
+ # @scope class
2796
+ attach_function :aubio_sink_wavwrite_close, :aubio_sink_wavwrite_close, [AubioSinkWavwriteT], :uint
2797
+
2798
+ # (Not documented)
2799
+ #
2800
+ # @method del_aubio_sink_wavwrite(s)
2801
+ # @param [AubioSinkWavwriteT] s
2802
+ # @return [nil]
2803
+ # @scope class
2804
+ attach_function :del_aubio_sink_wavwrite, :del_aubio_sink_wavwrite, [AubioSinkWavwriteT], :void
2805
+
2806
+ # (Not documented)
2807
+ class AubioSourceAppleAudioT < FFI::Struct
2808
+ layout :dummy, :char
2809
+ end
2810
+
2811
+ # (Not documented)
2812
+ #
2813
+ # @method new_aubio_source_apple_audio(uri, samplerate, hop_size)
2814
+ # @param [String] uri
2815
+ # @param [Integer] samplerate
2816
+ # @param [Integer] hop_size
2817
+ # @return [AubioSourceAppleAudioT]
2818
+ # @scope class
2819
+ attach_function :new_aubio_source_apple_audio, :new_aubio_source_apple_audio, [:string, :uint, :uint], AubioSourceAppleAudioT
2820
+
2821
+ # (Not documented)
2822
+ #
2823
+ # @method aubio_source_apple_audio_do(s, read_to, read)
2824
+ # @param [AubioSourceAppleAudioT] s
2825
+ # @param [FvecT] read_to
2826
+ # @param [FFI::Pointer(*UintT)] read
2827
+ # @return [nil]
2828
+ # @scope class
2829
+ attach_function :aubio_source_apple_audio_do, :aubio_source_apple_audio_do, [AubioSourceAppleAudioT, FvecT, :pointer], :void
2830
+
2831
+ # (Not documented)
2832
+ #
2833
+ # @method aubio_source_apple_audio_do_multi(s, read_to, read)
2834
+ # @param [AubioSourceAppleAudioT] s
2835
+ # @param [FmatT] read_to
2836
+ # @param [FFI::Pointer(*UintT)] read
2837
+ # @return [nil]
2838
+ # @scope class
2839
+ attach_function :aubio_source_apple_audio_do_multi, :aubio_source_apple_audio_do_multi, [AubioSourceAppleAudioT, FmatT, :pointer], :void
2840
+
2841
+ # (Not documented)
2842
+ #
2843
+ # @method aubio_source_apple_audio_get_samplerate(s)
2844
+ # @param [AubioSourceAppleAudioT] s
2845
+ # @return [Integer]
2846
+ # @scope class
2847
+ attach_function :aubio_source_apple_audio_get_samplerate, :aubio_source_apple_audio_get_samplerate, [AubioSourceAppleAudioT], :uint
2848
+
2849
+ # (Not documented)
2850
+ #
2851
+ # @method aubio_source_apple_audio_get_channels(s)
2852
+ # @param [AubioSourceAppleAudioT] s
2853
+ # @return [Integer]
2854
+ # @scope class
2855
+ attach_function :aubio_source_apple_audio_get_channels, :aubio_source_apple_audio_get_channels, [AubioSourceAppleAudioT], :uint
2856
+
2857
+ # (Not documented)
2858
+ #
2859
+ # @method aubio_source_apple_audio_get_duration(s)
2860
+ # @param [AubioSourceAppleAudioT] s
2861
+ # @return [Integer]
2862
+ # @scope class
2863
+ attach_function :aubio_source_apple_audio_get_duration, :aubio_source_apple_audio_get_duration, [AubioSourceAppleAudioT], :uint
2864
+
2865
+ # (Not documented)
2866
+ #
2867
+ # @method aubio_source_apple_audio_seek(s, pos)
2868
+ # @param [AubioSourceAppleAudioT] s
2869
+ # @param [Integer] pos
2870
+ # @return [Integer]
2871
+ # @scope class
2872
+ attach_function :aubio_source_apple_audio_seek, :aubio_source_apple_audio_seek, [AubioSourceAppleAudioT, :uint], :uint
2873
+
2874
+ # (Not documented)
2875
+ #
2876
+ # @method aubio_source_apple_audio_close(s)
2877
+ # @param [AubioSourceAppleAudioT] s
2878
+ # @return [Integer]
2879
+ # @scope class
2880
+ attach_function :aubio_source_apple_audio_close, :aubio_source_apple_audio_close, [AubioSourceAppleAudioT], :uint
2881
+
2882
+ # (Not documented)
2883
+ #
2884
+ # @method del_aubio_source_apple_audio(s)
2885
+ # @param [AubioSourceAppleAudioT] s
2886
+ # @return [nil]
2887
+ # @scope class
2888
+ attach_function :del_aubio_source_apple_audio, :del_aubio_source_apple_audio, [AubioSourceAppleAudioT], :void
2889
+
2890
+ # (Not documented)
2891
+ class AubioSourceAvcodecT < FFI::Struct
2892
+ layout :dummy, :char
2893
+ end
2894
+
2895
+ # (Not documented)
2896
+ #
2897
+ # @method new_aubio_source_avcodec(uri, samplerate, hop_size)
2898
+ # @param [String] uri
2899
+ # @param [Integer] samplerate
2900
+ # @param [Integer] hop_size
2901
+ # @return [AubioSourceAvcodecT]
2902
+ # @scope class
2903
+ attach_function :new_aubio_source_avcodec, :new_aubio_source_avcodec, [:string, :uint, :uint], AubioSourceAvcodecT
2904
+
2905
+ # (Not documented)
2906
+ #
2907
+ # @method aubio_source_avcodec_do(s, read_to, read)
2908
+ # @param [AubioSourceAvcodecT] s
2909
+ # @param [FvecT] read_to
2910
+ # @param [FFI::Pointer(*UintT)] read
2911
+ # @return [nil]
2912
+ # @scope class
2913
+ attach_function :aubio_source_avcodec_do, :aubio_source_avcodec_do, [AubioSourceAvcodecT, FvecT, :pointer], :void
2914
+
2915
+ # (Not documented)
2916
+ #
2917
+ # @method aubio_source_avcodec_do_multi(s, read_to, read)
2918
+ # @param [AubioSourceAvcodecT] s
2919
+ # @param [FmatT] read_to
2920
+ # @param [FFI::Pointer(*UintT)] read
2921
+ # @return [nil]
2922
+ # @scope class
2923
+ attach_function :aubio_source_avcodec_do_multi, :aubio_source_avcodec_do_multi, [AubioSourceAvcodecT, FmatT, :pointer], :void
2924
+
2925
+ # (Not documented)
2926
+ #
2927
+ # @method aubio_source_avcodec_get_samplerate(s)
2928
+ # @param [AubioSourceAvcodecT] s
2929
+ # @return [Integer]
2930
+ # @scope class
2931
+ attach_function :aubio_source_avcodec_get_samplerate, :aubio_source_avcodec_get_samplerate, [AubioSourceAvcodecT], :uint
2932
+
2933
+ # (Not documented)
2934
+ #
2935
+ # @method aubio_source_avcodec_get_channels(s)
2936
+ # @param [AubioSourceAvcodecT] s
2937
+ # @return [Integer]
2938
+ # @scope class
2939
+ attach_function :aubio_source_avcodec_get_channels, :aubio_source_avcodec_get_channels, [AubioSourceAvcodecT], :uint
2940
+
2941
+ # (Not documented)
2942
+ #
2943
+ # @method aubio_source_avcodec_seek(s, pos)
2944
+ # @param [AubioSourceAvcodecT] s
2945
+ # @param [Integer] pos
2946
+ # @return [Integer]
2947
+ # @scope class
2948
+ attach_function :aubio_source_avcodec_seek, :aubio_source_avcodec_seek, [AubioSourceAvcodecT, :uint], :uint
2949
+
2950
+ # (Not documented)
2951
+ #
2952
+ # @method aubio_source_avcodec_get_duration(s)
2953
+ # @param [AubioSourceAvcodecT] s
2954
+ # @return [Integer]
2955
+ # @scope class
2956
+ attach_function :aubio_source_avcodec_get_duration, :aubio_source_avcodec_get_duration, [AubioSourceAvcodecT], :uint
2957
+
2958
+ # (Not documented)
2959
+ #
2960
+ # @method aubio_source_avcodec_close(s)
2961
+ # @param [AubioSourceAvcodecT] s
2962
+ # @return [Integer]
2963
+ # @scope class
2964
+ attach_function :aubio_source_avcodec_close, :aubio_source_avcodec_close, [AubioSourceAvcodecT], :uint
2965
+
2966
+ # (Not documented)
2967
+ #
2968
+ # @method del_aubio_source_avcodec(s)
2969
+ # @param [AubioSourceAvcodecT] s
2970
+ # @return [nil]
2971
+ # @scope class
2972
+ attach_function :del_aubio_source_avcodec, :del_aubio_source_avcodec, [AubioSourceAvcodecT], :void
2973
+
2974
+ # (Not documented)
2975
+ class AubioSourceSndfileT < FFI::Struct
2976
+ layout :dummy, :char
2977
+ end
2978
+
2979
+ # (Not documented)
2980
+ #
2981
+ # @method new_aubio_source_sndfile(uri, samplerate, hop_size)
2982
+ # @param [String] uri
2983
+ # @param [Integer] samplerate
2984
+ # @param [Integer] hop_size
2985
+ # @return [AubioSourceSndfileT]
2986
+ # @scope class
2987
+ attach_function :new_aubio_source_sndfile, :new_aubio_source_sndfile, [:string, :uint, :uint], AubioSourceSndfileT
2988
+
2989
+ # (Not documented)
2990
+ #
2991
+ # @method aubio_source_sndfile_do(s, read_to, read)
2992
+ # @param [AubioSourceSndfileT] s
2993
+ # @param [FvecT] read_to
2994
+ # @param [FFI::Pointer(*UintT)] read
2995
+ # @return [nil]
2996
+ # @scope class
2997
+ attach_function :aubio_source_sndfile_do, :aubio_source_sndfile_do, [AubioSourceSndfileT, FvecT, :pointer], :void
2998
+
2999
+ # (Not documented)
3000
+ #
3001
+ # @method aubio_source_sndfile_do_multi(s, read_to, read)
3002
+ # @param [AubioSourceSndfileT] s
3003
+ # @param [FmatT] read_to
3004
+ # @param [FFI::Pointer(*UintT)] read
3005
+ # @return [nil]
3006
+ # @scope class
3007
+ attach_function :aubio_source_sndfile_do_multi, :aubio_source_sndfile_do_multi, [AubioSourceSndfileT, FmatT, :pointer], :void
3008
+
3009
+ # (Not documented)
3010
+ #
3011
+ # @method aubio_source_sndfile_get_samplerate(s)
3012
+ # @param [AubioSourceSndfileT] s
3013
+ # @return [Integer]
3014
+ # @scope class
3015
+ attach_function :aubio_source_sndfile_get_samplerate, :aubio_source_sndfile_get_samplerate, [AubioSourceSndfileT], :uint
3016
+
3017
+ # (Not documented)
3018
+ #
3019
+ # @method aubio_source_sndfile_get_channels(s)
3020
+ # @param [AubioSourceSndfileT] s
3021
+ # @return [Integer]
3022
+ # @scope class
3023
+ attach_function :aubio_source_sndfile_get_channels, :aubio_source_sndfile_get_channels, [AubioSourceSndfileT], :uint
3024
+
3025
+ # (Not documented)
3026
+ #
3027
+ # @method aubio_source_sndfile_seek(s, pos)
3028
+ # @param [AubioSourceSndfileT] s
3029
+ # @param [Integer] pos
3030
+ # @return [Integer]
3031
+ # @scope class
3032
+ attach_function :aubio_source_sndfile_seek, :aubio_source_sndfile_seek, [AubioSourceSndfileT, :uint], :uint
3033
+
3034
+ # (Not documented)
3035
+ #
3036
+ # @method aubio_source_sndfile_get_duration(s)
3037
+ # @param [AubioSourceSndfileT] s
3038
+ # @return [Integer]
3039
+ # @scope class
3040
+ attach_function :aubio_source_sndfile_get_duration, :aubio_source_sndfile_get_duration, [AubioSourceSndfileT], :uint
3041
+
3042
+ # (Not documented)
3043
+ #
3044
+ # @method aubio_source_sndfile_close(s)
3045
+ # @param [AubioSourceSndfileT] s
3046
+ # @return [Integer]
3047
+ # @scope class
3048
+ attach_function :aubio_source_sndfile_close, :aubio_source_sndfile_close, [AubioSourceSndfileT], :uint
3049
+
3050
+ # (Not documented)
3051
+ #
3052
+ # @method del_aubio_source_sndfile(s)
3053
+ # @param [AubioSourceSndfileT] s
3054
+ # @return [nil]
3055
+ # @scope class
3056
+ attach_function :del_aubio_source_sndfile, :del_aubio_source_sndfile, [AubioSourceSndfileT], :void
3057
+
3058
+ # (Not documented)
3059
+ class AubioSourceWavreadT < FFI::Struct
3060
+ layout :dummy, :char
3061
+ end
3062
+
3063
+ # (Not documented)
3064
+ #
3065
+ # @method new_aubio_source_wavread(uri, samplerate, hop_size)
3066
+ # @param [String] uri
3067
+ # @param [Integer] samplerate
3068
+ # @param [Integer] hop_size
3069
+ # @return [AubioSourceWavreadT]
3070
+ # @scope class
3071
+ attach_function :new_aubio_source_wavread, :new_aubio_source_wavread, [:string, :uint, :uint], AubioSourceWavreadT
3072
+
3073
+ # (Not documented)
3074
+ #
3075
+ # @method aubio_source_wavread_do(s, read_to, read)
3076
+ # @param [AubioSourceWavreadT] s
3077
+ # @param [FvecT] read_to
3078
+ # @param [FFI::Pointer(*UintT)] read
3079
+ # @return [nil]
3080
+ # @scope class
3081
+ attach_function :aubio_source_wavread_do, :aubio_source_wavread_do, [AubioSourceWavreadT, FvecT, :pointer], :void
3082
+
3083
+ # (Not documented)
3084
+ #
3085
+ # @method aubio_source_wavread_do_multi(s, read_to, read)
3086
+ # @param [AubioSourceWavreadT] s
3087
+ # @param [FmatT] read_to
3088
+ # @param [FFI::Pointer(*UintT)] read
3089
+ # @return [nil]
3090
+ # @scope class
3091
+ attach_function :aubio_source_wavread_do_multi, :aubio_source_wavread_do_multi, [AubioSourceWavreadT, FmatT, :pointer], :void
3092
+
3093
+ # (Not documented)
3094
+ #
3095
+ # @method aubio_source_wavread_get_samplerate(s)
3096
+ # @param [AubioSourceWavreadT] s
3097
+ # @return [Integer]
3098
+ # @scope class
3099
+ attach_function :aubio_source_wavread_get_samplerate, :aubio_source_wavread_get_samplerate, [AubioSourceWavreadT], :uint
3100
+
3101
+ # (Not documented)
3102
+ #
3103
+ # @method aubio_source_wavread_get_channels(s)
3104
+ # @param [AubioSourceWavreadT] s
3105
+ # @return [Integer]
3106
+ # @scope class
3107
+ attach_function :aubio_source_wavread_get_channels, :aubio_source_wavread_get_channels, [AubioSourceWavreadT], :uint
3108
+
3109
+ # (Not documented)
3110
+ #
3111
+ # @method aubio_source_wavread_seek(s, pos)
3112
+ # @param [AubioSourceWavreadT] s
3113
+ # @param [Integer] pos
3114
+ # @return [Integer]
3115
+ # @scope class
3116
+ attach_function :aubio_source_wavread_seek, :aubio_source_wavread_seek, [AubioSourceWavreadT, :uint], :uint
3117
+
3118
+ # (Not documented)
3119
+ #
3120
+ # @method aubio_source_wavread_get_duration(s)
3121
+ # @param [AubioSourceWavreadT] s
3122
+ # @return [Integer]
3123
+ # @scope class
3124
+ attach_function :aubio_source_wavread_get_duration, :aubio_source_wavread_get_duration, [AubioSourceWavreadT], :uint
3125
+
3126
+ # (Not documented)
3127
+ #
3128
+ # @method aubio_source_wavread_close(s)
3129
+ # @param [AubioSourceWavreadT] s
3130
+ # @return [Integer]
3131
+ # @scope class
3132
+ attach_function :aubio_source_wavread_close, :aubio_source_wavread_close, [AubioSourceWavreadT], :uint
3133
+
3134
+ # (Not documented)
3135
+ #
3136
+ # @method del_aubio_source_wavread(s)
3137
+ # @param [AubioSourceWavreadT] s
3138
+ # @return [nil]
3139
+ # @scope class
3140
+ attach_function :del_aubio_source_wavread, :del_aubio_source_wavread, [AubioSourceWavreadT], :void
3141
+
3142
+ # (Not documented)
3143
+ #
3144
+ # @method fvec_mean(s)
3145
+ # @param [FvecT] s
3146
+ # @return [Float]
3147
+ # @scope class
3148
+ attach_function :fvec_mean, :fvec_mean, [FvecT], :float
3149
+
3150
+ # (Not documented)
3151
+ #
3152
+ # @method fvec_max(s)
3153
+ # @param [FvecT] s
3154
+ # @return [Float]
3155
+ # @scope class
3156
+ attach_function :fvec_max, :fvec_max, [FvecT], :float
3157
+
3158
+ # (Not documented)
3159
+ #
3160
+ # @method fvec_min(s)
3161
+ # @param [FvecT] s
3162
+ # @return [Float]
3163
+ # @scope class
3164
+ attach_function :fvec_min, :fvec_min, [FvecT], :float
3165
+
3166
+ # (Not documented)
3167
+ #
3168
+ # @method fvec_min_elem(s)
3169
+ # @param [FvecT] s
3170
+ # @return [Integer]
3171
+ # @scope class
3172
+ attach_function :fvec_min_elem, :fvec_min_elem, [FvecT], :uint
3173
+
3174
+ # (Not documented)
3175
+ #
3176
+ # @method fvec_max_elem(s)
3177
+ # @param [FvecT] s
3178
+ # @return [Integer]
3179
+ # @scope class
3180
+ attach_function :fvec_max_elem, :fvec_max_elem, [FvecT], :uint
3181
+
3182
+ # (Not documented)
3183
+ #
3184
+ # @method fvec_shift(v)
3185
+ # @param [FvecT] v
3186
+ # @return [nil]
3187
+ # @scope class
3188
+ attach_function :fvec_shift, :fvec_shift, [FvecT], :void
3189
+
3190
+ # (Not documented)
3191
+ #
3192
+ # @method fvec_ishift(v)
3193
+ # @param [FvecT] v
3194
+ # @return [nil]
3195
+ # @scope class
3196
+ attach_function :fvec_ishift, :fvec_ishift, [FvecT], :void
3197
+
3198
+ # (Not documented)
3199
+ #
3200
+ # @method fvec_sum(v)
3201
+ # @param [FvecT] v
3202
+ # @return [Float]
3203
+ # @scope class
3204
+ attach_function :fvec_sum, :fvec_sum, [FvecT], :float
3205
+
3206
+ # (Not documented)
3207
+ #
3208
+ # @method fvec_local_hfc(v)
3209
+ # @param [FvecT] v
3210
+ # @return [Float]
3211
+ # @scope class
3212
+ attach_function :fvec_local_hfc, :fvec_local_hfc, [FvecT], :float
3213
+
3214
+ # (Not documented)
3215
+ #
3216
+ # @method fvec_alpha_norm(v, p)
3217
+ # @param [FvecT] v
3218
+ # @param [Float] p
3219
+ # @return [Float]
3220
+ # @scope class
3221
+ attach_function :fvec_alpha_norm, :fvec_alpha_norm, [FvecT, :float], :float
3222
+
3223
+ # (Not documented)
3224
+ #
3225
+ # @method fvec_alpha_normalise(v, p)
3226
+ # @param [FvecT] v
3227
+ # @param [Float] p
3228
+ # @return [nil]
3229
+ # @scope class
3230
+ attach_function :fvec_alpha_normalise, :fvec_alpha_normalise, [FvecT, :float], :void
3231
+
3232
+ # (Not documented)
3233
+ #
3234
+ # @method fvec_add(v, c)
3235
+ # @param [FvecT] v
3236
+ # @param [Float] c
3237
+ # @return [nil]
3238
+ # @scope class
3239
+ attach_function :fvec_add, :fvec_add, [FvecT, :float], :void
3240
+
3241
+ # (Not documented)
3242
+ #
3243
+ # @method fvec_min_removal(v)
3244
+ # @param [FvecT] v
3245
+ # @return [nil]
3246
+ # @scope class
3247
+ attach_function :fvec_min_removal, :fvec_min_removal, [FvecT], :void
3248
+
3249
+ # (Not documented)
3250
+ #
3251
+ # @method fvec_moving_thres(v, tmp, post, pre, pos)
3252
+ # @param [FvecT] v
3253
+ # @param [FvecT] tmp
3254
+ # @param [Integer] post
3255
+ # @param [Integer] pre
3256
+ # @param [Integer] pos
3257
+ # @return [Float]
3258
+ # @scope class
3259
+ attach_function :fvec_moving_thres, :fvec_moving_thres, [FvecT, FvecT, :uint, :uint, :uint], :float
3260
+
3261
+ # (Not documented)
3262
+ #
3263
+ # @method fvec_adapt_thres(v, tmp, post, pre)
3264
+ # @param [FvecT] v
3265
+ # @param [FvecT] tmp
3266
+ # @param [Integer] post
3267
+ # @param [Integer] pre
3268
+ # @return [nil]
3269
+ # @scope class
3270
+ attach_function :fvec_adapt_thres, :fvec_adapt_thres, [FvecT, FvecT, :uint, :uint], :void
3271
+
3272
+ # (Not documented)
3273
+ #
3274
+ # @method fvec_median(v)
3275
+ # @param [FvecT] v
3276
+ # @return [Float]
3277
+ # @scope class
3278
+ attach_function :fvec_median, :fvec_median, [FvecT], :float
3279
+
3280
+ # (Not documented)
3281
+ #
3282
+ # @method fvec_quadratic_peak_pos(x, p)
3283
+ # @param [FvecT] x
3284
+ # @param [Integer] p
3285
+ # @return [Float]
3286
+ # @scope class
3287
+ attach_function :fvec_quadratic_peak_pos, :fvec_quadratic_peak_pos, [FvecT, :uint], :float
3288
+
3289
+ # (Not documented)
3290
+ #
3291
+ # @method fvec_quadratic_peak_mag(x, p)
3292
+ # @param [FvecT] x
3293
+ # @param [Float] p
3294
+ # @return [Float]
3295
+ # @scope class
3296
+ attach_function :fvec_quadratic_peak_mag, :fvec_quadratic_peak_mag, [FvecT, :float], :float
3297
+
3298
+ # (Not documented)
3299
+ #
3300
+ # @method aubio_quadfrac(s0, s1, s2, pf)
3301
+ # @param [Float] s0
3302
+ # @param [Float] s1
3303
+ # @param [Float] s2
3304
+ # @param [Float] pf
3305
+ # @return [Float]
3306
+ # @scope class
3307
+ attach_function :aubio_quadfrac, :aubio_quadfrac, [:float, :float, :float, :float], :float
3308
+
3309
+ # (Not documented)
3310
+ #
3311
+ # @method fvec_peakpick(v, p)
3312
+ # @param [FvecT] v
3313
+ # @param [Integer] p
3314
+ # @return [Integer]
3315
+ # @scope class
3316
+ attach_function :fvec_peakpick, :fvec_peakpick, [FvecT, :uint], :uint
3317
+
3318
+ # (Not documented)
3319
+ #
3320
+ # @method aubio_is_power_of_two(a)
3321
+ # @param [Integer] a
3322
+ # @return [Integer]
3323
+ # @scope class
3324
+ attach_function :aubio_is_power_of_two, :aubio_is_power_of_two, [:uint], :uint
3325
+
3326
+ # (Not documented)
3327
+ #
3328
+ # @method aubio_next_power_of_two(a)
3329
+ # @param [Integer] a
3330
+ # @return [Integer]
3331
+ # @scope class
3332
+ attach_function :aubio_next_power_of_two, :aubio_next_power_of_two, [:uint], :uint
3333
+
3334
+ # (Not documented)
3335
+ #
3336
+ # @method aubio_autocorr(input, output)
3337
+ # @param [FvecT] input
3338
+ # @param [FvecT] output
3339
+ # @return [nil]
3340
+ # @scope class
3341
+ attach_function :aubio_autocorr, :aubio_autocorr, [FvecT, FvecT], :void
3342
+
3343
+ # (Not documented)
3344
+ class AubioPeakpickerT < FFI::Struct
3345
+ layout :dummy, :char
3346
+ end
3347
+
3348
+ # (Not documented)
3349
+ #
3350
+ # @method new_aubio_peakpicker()
3351
+ # @return [AubioPeakpickerT]
3352
+ # @scope class
3353
+ attach_function :new_aubio_peakpicker, :new_aubio_peakpicker, [], AubioPeakpickerT
3354
+
3355
+ # (Not documented)
3356
+ #
3357
+ # @method aubio_peakpicker_do(p, in_, out)
3358
+ # @param [AubioPeakpickerT] p
3359
+ # @param [FvecT] in_
3360
+ # @param [FvecT] out
3361
+ # @return [nil]
3362
+ # @scope class
3363
+ attach_function :aubio_peakpicker_do, :aubio_peakpicker_do, [AubioPeakpickerT, FvecT, FvecT], :void
3364
+
3365
+ # (Not documented)
3366
+ #
3367
+ # @method del_aubio_peakpicker(p)
3368
+ # @param [AubioPeakpickerT] p
3369
+ # @return [nil]
3370
+ # @scope class
3371
+ attach_function :del_aubio_peakpicker, :del_aubio_peakpicker, [AubioPeakpickerT], :void
3372
+
3373
+ # (Not documented)
3374
+ #
3375
+ # @method aubio_peakpicker_get_thresholded_input(p)
3376
+ # @param [AubioPeakpickerT] p
3377
+ # @return [FvecT]
3378
+ # @scope class
3379
+ attach_function :aubio_peakpicker_get_thresholded_input, :aubio_peakpicker_get_thresholded_input, [AubioPeakpickerT], FvecT
3380
+
3381
+ # (Not documented)
3382
+ #
3383
+ # @method aubio_peakpicker_set_threshold(p, threshold)
3384
+ # @param [AubioPeakpickerT] p
3385
+ # @param [Float] threshold
3386
+ # @return [Integer]
3387
+ # @scope class
3388
+ attach_function :aubio_peakpicker_set_threshold, :aubio_peakpicker_set_threshold, [AubioPeakpickerT, :float], :uint
3389
+
3390
+ # (Not documented)
3391
+ #
3392
+ # @method aubio_peakpicker_get_threshold(p)
3393
+ # @param [AubioPeakpickerT] p
3394
+ # @return [Float]
3395
+ # @scope class
3396
+ attach_function :aubio_peakpicker_get_threshold, :aubio_peakpicker_get_threshold, [AubioPeakpickerT], :float
3397
+
3398
+ # (Not documented)
3399
+ class AubioPitchfcombT < FFI::Struct
3400
+ layout :dummy, :char
3401
+ end
3402
+
3403
+ # (Not documented)
3404
+ #
3405
+ # @method aubio_pitchfcomb_do(p, input, output)
3406
+ # @param [AubioPitchfcombT] p
3407
+ # @param [FvecT] input
3408
+ # @param [FvecT] output
3409
+ # @return [nil]
3410
+ # @scope class
3411
+ attach_function :aubio_pitchfcomb_do, :aubio_pitchfcomb_do, [AubioPitchfcombT, FvecT, FvecT], :void
3412
+
3413
+ # (Not documented)
3414
+ #
3415
+ # @method new_aubio_pitchfcomb(buf_size, hop_size)
3416
+ # @param [Integer] buf_size
3417
+ # @param [Integer] hop_size
3418
+ # @return [AubioPitchfcombT]
3419
+ # @scope class
3420
+ attach_function :new_aubio_pitchfcomb, :new_aubio_pitchfcomb, [:uint, :uint], AubioPitchfcombT
3421
+
3422
+ # (Not documented)
3423
+ #
3424
+ # @method del_aubio_pitchfcomb(p)
3425
+ # @param [AubioPitchfcombT] p
3426
+ # @return [nil]
3427
+ # @scope class
3428
+ attach_function :del_aubio_pitchfcomb, :del_aubio_pitchfcomb, [AubioPitchfcombT], :void
3429
+
3430
+ # (Not documented)
3431
+ class AubioPitchmcombT < FFI::Struct
3432
+ layout :dummy, :char
3433
+ end
3434
+
3435
+ # (Not documented)
3436
+ #
3437
+ # @method aubio_pitchmcomb_do(p, in_fftgrain, out_cands)
3438
+ # @param [AubioPitchmcombT] p
3439
+ # @param [CvecT] in_fftgrain
3440
+ # @param [FvecT] out_cands
3441
+ # @return [nil]
3442
+ # @scope class
3443
+ attach_function :aubio_pitchmcomb_do, :aubio_pitchmcomb_do, [AubioPitchmcombT, CvecT, FvecT], :void
3444
+
3445
+ # (Not documented)
3446
+ #
3447
+ # @method new_aubio_pitchmcomb(buf_size, hop_size)
3448
+ # @param [Integer] buf_size
3449
+ # @param [Integer] hop_size
3450
+ # @return [AubioPitchmcombT]
3451
+ # @scope class
3452
+ attach_function :new_aubio_pitchmcomb, :new_aubio_pitchmcomb, [:uint, :uint], AubioPitchmcombT
3453
+
3454
+ # (Not documented)
3455
+ #
3456
+ # @method del_aubio_pitchmcomb(p)
3457
+ # @param [AubioPitchmcombT] p
3458
+ # @return [nil]
3459
+ # @scope class
3460
+ attach_function :del_aubio_pitchmcomb, :del_aubio_pitchmcomb, [AubioPitchmcombT], :void
3461
+
3462
+ # (Not documented)
3463
+ class AubioPitchschmittT < FFI::Struct
3464
+ layout :dummy, :char
3465
+ end
3466
+
3467
+ # (Not documented)
3468
+ #
3469
+ # @method aubio_pitchschmitt_do(p, samples_in, cands_out)
3470
+ # @param [AubioPitchschmittT] p
3471
+ # @param [FvecT] samples_in
3472
+ # @param [FvecT] cands_out
3473
+ # @return [nil]
3474
+ # @scope class
3475
+ attach_function :aubio_pitchschmitt_do, :aubio_pitchschmitt_do, [AubioPitchschmittT, FvecT, FvecT], :void
3476
+
3477
+ # (Not documented)
3478
+ #
3479
+ # @method new_aubio_pitchschmitt(buf_size)
3480
+ # @param [Integer] buf_size
3481
+ # @return [AubioPitchschmittT]
3482
+ # @scope class
3483
+ attach_function :new_aubio_pitchschmitt, :new_aubio_pitchschmitt, [:uint], AubioPitchschmittT
3484
+
3485
+ # (Not documented)
3486
+ #
3487
+ # @method del_aubio_pitchschmitt(p)
3488
+ # @param [AubioPitchschmittT] p
3489
+ # @return [nil]
3490
+ # @scope class
3491
+ attach_function :del_aubio_pitchschmitt, :del_aubio_pitchschmitt, [AubioPitchschmittT], :void
3492
+
3493
+ # (Not documented)
3494
+ class AubioPitchspecacfT < FFI::Struct
3495
+ layout :dummy, :char
3496
+ end
3497
+
3498
+ # (Not documented)
3499
+ #
3500
+ # @method aubio_pitchspecacf_do(o, samples_in, cands_out)
3501
+ # @param [AubioPitchspecacfT] o
3502
+ # @param [FvecT] samples_in
3503
+ # @param [FvecT] cands_out
3504
+ # @return [nil]
3505
+ # @scope class
3506
+ attach_function :aubio_pitchspecacf_do, :aubio_pitchspecacf_do, [AubioPitchspecacfT, FvecT, FvecT], :void
3507
+
3508
+ # (Not documented)
3509
+ #
3510
+ # @method new_aubio_pitchspecacf(buf_size)
3511
+ # @param [Integer] buf_size
3512
+ # @return [AubioPitchspecacfT]
3513
+ # @scope class
3514
+ attach_function :new_aubio_pitchspecacf, :new_aubio_pitchspecacf, [:uint], AubioPitchspecacfT
3515
+
3516
+ # (Not documented)
3517
+ #
3518
+ # @method del_aubio_pitchspecacf(o)
3519
+ # @param [AubioPitchspecacfT] o
3520
+ # @return [nil]
3521
+ # @scope class
3522
+ attach_function :del_aubio_pitchspecacf, :del_aubio_pitchspecacf, [AubioPitchspecacfT], :void
3523
+
3524
+ # (Not documented)
3525
+ #
3526
+ # @method aubio_pitchspecacf_get_tolerance(o)
3527
+ # @param [AubioPitchspecacfT] o
3528
+ # @return [Float]
3529
+ # @scope class
3530
+ attach_function :aubio_pitchspecacf_get_tolerance, :aubio_pitchspecacf_get_tolerance, [AubioPitchspecacfT], :float
3531
+
3532
+ # (Not documented)
3533
+ #
3534
+ # @method aubio_pitchspecacf_set_tolerance(o, tol)
3535
+ # @param [AubioPitchspecacfT] o
3536
+ # @param [Float] tol
3537
+ # @return [Integer]
3538
+ # @scope class
3539
+ attach_function :aubio_pitchspecacf_set_tolerance, :aubio_pitchspecacf_set_tolerance, [AubioPitchspecacfT, :float], :uint
3540
+
3541
+ # (Not documented)
3542
+ #
3543
+ # @method aubio_pitchspecacf_get_confidence(o)
3544
+ # @param [AubioPitchspecacfT] o
3545
+ # @return [Float]
3546
+ # @scope class
3547
+ attach_function :aubio_pitchspecacf_get_confidence, :aubio_pitchspecacf_get_confidence, [AubioPitchspecacfT], :float
3548
+
3549
+ # (Not documented)
3550
+ class AubioPitchyinT < FFI::Struct
3551
+ layout :dummy, :char
3552
+ end
3553
+
3554
+ # (Not documented)
3555
+ #
3556
+ # @method new_aubio_pitchyin(buf_size)
3557
+ # @param [Integer] buf_size
3558
+ # @return [AubioPitchyinT]
3559
+ # @scope class
3560
+ attach_function :new_aubio_pitchyin, :new_aubio_pitchyin, [:uint], AubioPitchyinT
3561
+
3562
+ # (Not documented)
3563
+ #
3564
+ # @method del_aubio_pitchyin(o)
3565
+ # @param [AubioPitchyinT] o
3566
+ # @return [nil]
3567
+ # @scope class
3568
+ attach_function :del_aubio_pitchyin, :del_aubio_pitchyin, [AubioPitchyinT], :void
3569
+
3570
+ # (Not documented)
3571
+ #
3572
+ # @method aubio_pitchyin_do(o, samples_in, cands_out)
3573
+ # @param [AubioPitchyinT] o
3574
+ # @param [FvecT] samples_in
3575
+ # @param [FvecT] cands_out
3576
+ # @return [nil]
3577
+ # @scope class
3578
+ attach_function :aubio_pitchyin_do, :aubio_pitchyin_do, [AubioPitchyinT, FvecT, FvecT], :void
3579
+
3580
+ # (Not documented)
3581
+ #
3582
+ # @method aubio_pitchyin_set_tolerance(o, tol)
3583
+ # @param [AubioPitchyinT] o
3584
+ # @param [Float] tol
3585
+ # @return [Integer]
3586
+ # @scope class
3587
+ attach_function :aubio_pitchyin_set_tolerance, :aubio_pitchyin_set_tolerance, [AubioPitchyinT, :float], :uint
3588
+
3589
+ # (Not documented)
3590
+ #
3591
+ # @method aubio_pitchyin_get_tolerance(o)
3592
+ # @param [AubioPitchyinT] o
3593
+ # @return [Float]
3594
+ # @scope class
3595
+ attach_function :aubio_pitchyin_get_tolerance, :aubio_pitchyin_get_tolerance, [AubioPitchyinT], :float
3596
+
3597
+ # (Not documented)
3598
+ #
3599
+ # @method aubio_pitchyin_get_confidence(o)
3600
+ # @param [AubioPitchyinT] o
3601
+ # @return [Float]
3602
+ # @scope class
3603
+ attach_function :aubio_pitchyin_get_confidence, :aubio_pitchyin_get_confidence, [AubioPitchyinT], :float
3604
+
3605
+ # (Not documented)
3606
+ class AubioPitchyinfftT < FFI::Struct
3607
+ layout :dummy, :char
3608
+ end
3609
+
3610
+ # (Not documented)
3611
+ #
3612
+ # @method aubio_pitchyinfft_do(o, samples_in, cands_out)
3613
+ # @param [AubioPitchyinfftT] o
3614
+ # @param [FvecT] samples_in
3615
+ # @param [FvecT] cands_out
3616
+ # @return [nil]
3617
+ # @scope class
3618
+ attach_function :aubio_pitchyinfft_do, :aubio_pitchyinfft_do, [AubioPitchyinfftT, FvecT, FvecT], :void
3619
+
3620
+ # (Not documented)
3621
+ #
3622
+ # @method new_aubio_pitchyinfft(samplerate, buf_size)
3623
+ # @param [Integer] samplerate
3624
+ # @param [Integer] buf_size
3625
+ # @return [AubioPitchyinfftT]
3626
+ # @scope class
3627
+ attach_function :new_aubio_pitchyinfft, :new_aubio_pitchyinfft, [:uint, :uint], AubioPitchyinfftT
3628
+
3629
+ # (Not documented)
3630
+ #
3631
+ # @method del_aubio_pitchyinfft(o)
3632
+ # @param [AubioPitchyinfftT] o
3633
+ # @return [nil]
3634
+ # @scope class
3635
+ attach_function :del_aubio_pitchyinfft, :del_aubio_pitchyinfft, [AubioPitchyinfftT], :void
3636
+
3637
+ # (Not documented)
3638
+ #
3639
+ # @method aubio_pitchyinfft_get_tolerance(o)
3640
+ # @param [AubioPitchyinfftT] o
3641
+ # @return [Float]
3642
+ # @scope class
3643
+ attach_function :aubio_pitchyinfft_get_tolerance, :aubio_pitchyinfft_get_tolerance, [AubioPitchyinfftT], :float
3644
+
3645
+ # (Not documented)
3646
+ #
3647
+ # @method aubio_pitchyinfft_set_tolerance(o, tol)
3648
+ # @param [AubioPitchyinfftT] o
3649
+ # @param [Float] tol
3650
+ # @return [Integer]
3651
+ # @scope class
3652
+ attach_function :aubio_pitchyinfft_set_tolerance, :aubio_pitchyinfft_set_tolerance, [AubioPitchyinfftT, :float], :uint
3653
+
3654
+ # (Not documented)
3655
+ #
3656
+ # @method aubio_pitchyinfft_get_confidence(o)
3657
+ # @param [AubioPitchyinfftT] o
3658
+ # @return [Float]
3659
+ # @scope class
3660
+ attach_function :aubio_pitchyinfft_get_confidence, :aubio_pitchyinfft_get_confidence, [AubioPitchyinfftT], :float
3661
+
3662
+ # (Not documented)
3663
+ class AubioBeattrackingT < FFI::Struct
3664
+ layout :dummy, :char
3665
+ end
3666
+
3667
+ # (Not documented)
3668
+ #
3669
+ # @method new_aubio_beattracking(winlen, hop_size, samplerate)
3670
+ # @param [Integer] winlen
3671
+ # @param [Integer] hop_size
3672
+ # @param [Integer] samplerate
3673
+ # @return [AubioBeattrackingT]
3674
+ # @scope class
3675
+ attach_function :new_aubio_beattracking, :new_aubio_beattracking, [:uint, :uint, :uint], AubioBeattrackingT
3676
+
3677
+ # (Not documented)
3678
+ #
3679
+ # @method aubio_beattracking_do(bt, dfframes, out)
3680
+ # @param [AubioBeattrackingT] bt
3681
+ # @param [FvecT] dfframes
3682
+ # @param [FvecT] out
3683
+ # @return [nil]
3684
+ # @scope class
3685
+ attach_function :aubio_beattracking_do, :aubio_beattracking_do, [AubioBeattrackingT, FvecT, FvecT], :void
3686
+
3687
+ # (Not documented)
3688
+ #
3689
+ # @method aubio_beattracking_get_period(bt)
3690
+ # @param [AubioBeattrackingT] bt
3691
+ # @return [Float]
3692
+ # @scope class
3693
+ attach_function :aubio_beattracking_get_period, :aubio_beattracking_get_period, [AubioBeattrackingT], :float
3694
+
3695
+ # (Not documented)
3696
+ #
3697
+ # @method aubio_beattracking_get_period_s(bt)
3698
+ # @param [AubioBeattrackingT] bt
3699
+ # @return [Float]
3700
+ # @scope class
3701
+ attach_function :aubio_beattracking_get_period_s, :aubio_beattracking_get_period_s, [AubioBeattrackingT], :float
3702
+
3703
+ # (Not documented)
3704
+ #
3705
+ # @method aubio_beattracking_get_bpm(bt)
3706
+ # @param [AubioBeattrackingT] bt
3707
+ # @return [Float]
3708
+ # @scope class
3709
+ attach_function :aubio_beattracking_get_bpm, :aubio_beattracking_get_bpm, [AubioBeattrackingT], :float
3710
+
3711
+ # (Not documented)
3712
+ #
3713
+ # @method aubio_beattracking_get_confidence(bt)
3714
+ # @param [AubioBeattrackingT] bt
3715
+ # @return [Float]
3716
+ # @scope class
3717
+ attach_function :aubio_beattracking_get_confidence, :aubio_beattracking_get_confidence, [AubioBeattrackingT], :float
3718
+
3719
+ # (Not documented)
3720
+ #
3721
+ # @method del_aubio_beattracking(p)
3722
+ # @param [AubioBeattrackingT] p
3723
+ # @return [nil]
3724
+ # @scope class
3725
+ attach_function :del_aubio_beattracking, :del_aubio_beattracking, [AubioBeattrackingT], :void
3726
+
3727
+ # (Not documented)
3728
+ class AubioHistT < FFI::Struct
3729
+ layout :dummy, :char
3730
+ end
3731
+
3732
+ # (Not documented)
3733
+ #
3734
+ # @method new_aubio_hist(flow, fhig, nelems)
3735
+ # @param [Float] flow
3736
+ # @param [Float] fhig
3737
+ # @param [Integer] nelems
3738
+ # @return [AubioHistT]
3739
+ # @scope class
3740
+ attach_function :new_aubio_hist, :new_aubio_hist, [:float, :float, :uint], AubioHistT
3741
+
3742
+ # (Not documented)
3743
+ #
3744
+ # @method del_aubio_hist(s)
3745
+ # @param [AubioHistT] s
3746
+ # @return [nil]
3747
+ # @scope class
3748
+ attach_function :del_aubio_hist, :del_aubio_hist, [AubioHistT], :void
3749
+
3750
+ # (Not documented)
3751
+ #
3752
+ # @method aubio_hist_do(s, input)
3753
+ # @param [AubioHistT] s
3754
+ # @param [FvecT] input
3755
+ # @return [nil]
3756
+ # @scope class
3757
+ attach_function :aubio_hist_do, :aubio_hist_do, [AubioHistT, FvecT], :void
3758
+
3759
+ # (Not documented)
3760
+ #
3761
+ # @method aubio_hist_do_notnull(s, input)
3762
+ # @param [AubioHistT] s
3763
+ # @param [FvecT] input
3764
+ # @return [nil]
3765
+ # @scope class
3766
+ attach_function :aubio_hist_do_notnull, :aubio_hist_do_notnull, [AubioHistT, FvecT], :void
3767
+
3768
+ # (Not documented)
3769
+ #
3770
+ # @method aubio_hist_mean(s)
3771
+ # @param [AubioHistT] s
3772
+ # @return [Float]
3773
+ # @scope class
3774
+ attach_function :aubio_hist_mean, :aubio_hist_mean, [AubioHistT], :float
3775
+
3776
+ # (Not documented)
3777
+ #
3778
+ # @method aubio_hist_weight(s)
3779
+ # @param [AubioHistT] s
3780
+ # @return [nil]
3781
+ # @scope class
3782
+ attach_function :aubio_hist_weight, :aubio_hist_weight, [AubioHistT], :void
3783
+
3784
+ # (Not documented)
3785
+ #
3786
+ # @method aubio_hist_dyn_notnull(s, input)
3787
+ # @param [AubioHistT] s
3788
+ # @param [FvecT] input
3789
+ # @return [nil]
3790
+ # @scope class
3791
+ attach_function :aubio_hist_dyn_notnull, :aubio_hist_dyn_notnull, [AubioHistT, FvecT], :void
3792
+
3793
+ # (Not documented)
3794
+ class AubioScaleT < FFI::Struct
3795
+ layout :dummy, :char
3796
+ end
3797
+
3798
+ # create a scale object
3799
+ #
3800
+ # @method new_aubio_scale(flow, fhig, ilow, ihig)
3801
+ # @param [Float] flow lower value of output function
3802
+ # @param [Float] fhig higher value of output function
3803
+ # @param [Float] ilow lower value of input function
3804
+ # @param [Float] ihig higher value of output function
3805
+ # @return [AubioScaleT]
3806
+ # @scope class
3807
+ attach_function :new_aubio_scale, :new_aubio_scale, [:float, :float, :float, :float], AubioScaleT
3808
+
3809
+ # delete a scale object
3810
+ #
3811
+ # @method del_aubio_scale(s)
3812
+ # @param [AubioScaleT] s scale object as returned by new_aubio_scale
3813
+ # @return [nil]
3814
+ # @scope class
3815
+ attach_function :del_aubio_scale, :del_aubio_scale, [AubioScaleT], :void
3816
+
3817
+ # scale input vector
3818
+ #
3819
+ # @method aubio_scale_do(s, input)
3820
+ # @param [AubioScaleT] s scale object as returned by new_aubio_scale
3821
+ # @param [FvecT] input vector to scale
3822
+ # @return [nil]
3823
+ # @scope class
3824
+ attach_function :aubio_scale_do, :aubio_scale_do, [AubioScaleT, FvecT], :void
3825
+
3826
+ # modify scale parameters after object creation
3827
+ #
3828
+ # @method aubio_scale_set_limits(s, ilow, ihig, olow, ohig)
3829
+ # @param [AubioScaleT] s scale object as returned by new_aubio_scale
3830
+ # @param [Float] ilow lower value of input function
3831
+ # @param [Float] ihig higher value of output function
3832
+ # @param [Float] olow lower value of output function
3833
+ # @param [Float] ohig higher value of output function
3834
+ # @return [Integer]
3835
+ # @scope class
3836
+ attach_function :aubio_scale_set_limits, :aubio_scale_set_limits, [AubioScaleT, :float, :float, :float, :float], :uint
3837
+
3838
+ end