History

starting to add skeleton for documentation comments

Matthew Wang committed 6 years ago

Commit e3e22cb1 parent 68a76693 files · +602 −120Browse files

Unified · Split

3 files
  1. TestPlugin/LEAF.jucer +2 −2
  2. leaf/Inc/leaf-filters.h +235 −116
  3. leaf/Inc/leaf-oscillators.h +365 −2
TestPlugin/LEAF.jucer+2−2
@@ -129,9 +129,9 @@ · 128 unmodified lines
129 <MODULEPATH id="juce_audio_utils" path="../../../../JUCE/modules"/>129 <MODULEPATH id="juce_audio_utils" path="../../../../JUCE/modules"/>
130 </MODULEPATHS>130 </MODULEPATHS>
131 </XCODE_MAC>131 </XCODE_MAC>
132 <XCODE_IPHONE targetFolder="Builds/iOS" iosScreenOrientation="portraitlandscape"132 <XCODE_IPHONE targetFolder="Builds/iOS" iosScreenOrientation="UIInterfaceOrientationPortrait,UIInterfaceOrientationLandscapeLeft,UIInterfaceOrientationLandscapeRight"
133 iosDevelopmentTeamID="QY96HSP2FJ" microphonePermissionNeeded="1"133 iosDevelopmentTeamID="QY96HSP2FJ" microphonePermissionNeeded="1"
134 iosBackgroundAudio="1" iPadScreenOrientation="portraitlandscape"134 iosBackgroundAudio="1" iPadScreenOrientation="UIInterfaceOrientationPortrait,UIInterfaceOrientationLandscapeLeft,UIInterfaceOrientationLandscapeRight"
135 iosDeviceFamily="1,2">135 iosDeviceFamily="1,2">
136 <CONFIGURATIONS>136 <CONFIGURATIONS>
137 <CONFIGURATION name="Debug" isDebug="1" optimisation="1" targetName="OOPS" enablePluginBinaryCopyStep="1"/>137 <CONFIGURATION name="Debug" isDebug="1" optimisation="1" targetName="OOPS" enablePluginBinaryCopyStep="1"/>
leaf/Inc/leaf-filters.h+235−116
@@ -30,7 +30,15 @@ extern "C" { · 29 unmodified lines
30 30
31 //==============================================================================31 //==============================================================================
32 32
33 /* tAllpass: Schroeder allpass. Comb-filter with feedforward and feedback. */33 /*!
34 @defgroup tallpass tAllpass
35 @ingroup filters
36 @brief Schroeder allpass. Comb-filter with feedforward and feedback.
37 @{
38 */
39
40 /*! @} */
41
34 typedef struct _tAllpass42 typedef struct _tAllpass
35 {43 {
36 tMempool mempool;44 tMempool mempool;
@@ -55,7 +63,15 @@ extern "C" { · 18 unmodified lines
55 63
56 //==============================================================================64 //==============================================================================
57 65
58 /* tOnePole: OnePole filter, reimplemented from STK (Cook and Scavone). */66 /*!
67 @defgroup tonepole tOnePole
68 @ingroup filters
69 @brief OnePole filter, reimplemented from STK (Cook and Scavone).
70 @{
71 */
72
73 /*! @} */
74
59 typedef struct _tOnePole75 typedef struct _tOnePole
60 {76 {
61 tMempool mempool;77 tMempool mempool;
@@ -81,7 +97,15 @@ extern "C" { · 19 unmodified lines
81 97
82 //==============================================================================98 //==============================================================================
83 99
84 /* TwoPole filter, reimplemented from STK (Cook and Scavone). */100 /*!
101 @defgroup ttwopole tTwoPole
102 @ingroup filters
103 @brief TwoPole filter, reimplemented from STK (Cook and Scavone).
104 @{
105 */
106
107 /*! @} */
108
85 typedef struct _tTwoPole109 typedef struct _tTwoPole
86 {110 {
87 tMempool mempool;111 tMempool mempool;
@@ -92,7 +116,7 @@ extern "C" { · 4 unmodified lines
92 116
93 float radius, frequency;117 float radius, frequency;
94 oBool normalize;118 oBool normalize;
95 119
96 float lastOut[2];120 float lastOut[2];
97 } _tTwoPole;121 } _tTwoPole;
98 122
@@ -112,7 +136,15 @@ extern "C" { · 13 unmodified lines
112 136
113 //==============================================================================137 //==============================================================================
114 138
115 /* OneZero filter, reimplemented from STK (Cook and Scavone). */139 /*!
140 @defgroup tonezero tOneZero
141 @ingroup filters
142 @brief OneZero filter, reimplemented from STK (Cook and Scavone).
143 @{
144 */
145
146 /*! @} */
147
116 typedef struct _tOneZero148 typedef struct _tOneZero
117 {149 {
118 tMempool mempool;150 tMempool mempool;
@@ -137,7 +169,15 @@ extern "C" { · 18 unmodified lines
137 169
138 //==============================================================================170 //==============================================================================
139 171
140 /* TwoZero filter, reimplemented from STK (Cook and Scavone). */172 /*!
173 @defgroup ttwozero tTwoZero
174 @ingroup filters
175 @brief TwoZero filter, reimplemented from STK (Cook and Scavone).
176 @{
177 */
178
179 /*! @} */
180
141 typedef struct _tTwoZero181 typedef struct _tTwoZero
142 {182 {
143 tMempool mempool;183 tMempool mempool;
@@ -166,7 +206,15 @@ extern "C" { · 22 unmodified lines
166 206
167 //==============================================================================207 //==============================================================================
168 208
169 /* PoleZero filter, reimplemented from STK (Cook and Scavone). */209 /*!
210 @defgroup tpolezero tPoleZero
211 @ingroup filters
212 @brief PoleZero filter, reimplemented from STK (Cook and Scavone).
213 @{
214 */
215
216 /*! @} */
217
170 typedef struct _tPoleZero218 typedef struct _tPoleZero
171 {219 {
172 tMempool mempool;220 tMempool mempool;
@@ -195,7 +243,15 @@ extern "C" { · 22 unmodified lines
195 243
196 //==============================================================================244 //==============================================================================
197 245
198 /* BiQuad filter, reimplemented from STK (Cook and Scavone). */246 /*!
247 @defgroup tbiquad tBiQuad
248 @ingroup filters
249 @brief BiQuad filter, reimplemented from STK (Cook and Scavone).
250 @{
251 */
252
253 /*! @} */
254
199 typedef struct _tBiQuad255 typedef struct _tBiQuad
200 {256 {
201 tMempool mempool;257 tMempool mempool;
@@ -230,7 +286,15 @@ extern "C" { · 28 unmodified lines
230 286
231 //==============================================================================287 //==============================================================================
232 288
233/* State Variable Filter, algorithm from Andy Simper. */289 /*!
290 @defgroup tsvf tSVF
291 @ingroup filters
292 @brief State Variable Filter, algorithm from Andy Simper.
293 @{
294 */
295
296 /*! @} */
297
234 typedef enum SVFType298 typedef enum SVFType
235 {299 {
236 SVFTypeHighpass = 0,300 SVFTypeHighpass = 0,
@@ -263,7 +327,15 @@ extern "C" { · 26 unmodified lines
263 void tSVF_setFreqAndQ (tSVF* const svff, float freq, float Q);327 void tSVF_setFreqAndQ (tSVF* const svff, float freq, float Q);
264 //==============================================================================328 //==============================================================================
265 329
266 /* Efficient State Variable Filter for 14-bit control input, [0, 4096). */330 /*!
331 @defgroup tefficientsvf tEfficientSVF
332 @ingroup filters
333 @brief Efficient State Variable Filter for 14-bit control input, [0, 4096).
334 @{
335 */
336
337 /*! @} */
338
267 typedef struct _tEfficientSVF339 typedef struct _tEfficientSVF
268 {340 {
269 tMempool mempool;341 tMempool mempool;
@@ -285,7 +357,15 @@ extern "C" { · 15 unmodified lines
285 357
286 //==============================================================================358 //==============================================================================
287 359
288 /* Simple Highpass filter. */360 /*!
361 @defgroup thighpass tHighpass
362 @ingroup filters
363 @brief Simple Highpass filter.
364 @{
365 */
366
367 /*! @} */
368
289 typedef struct _tHighpass369 typedef struct _tHighpass
290 {370 {
291 tMempool mempool;371 tMempool mempool;
@@ -305,7 +385,15 @@ extern "C" { · 13 unmodified lines
305 385
306 //==============================================================================386 //==============================================================================
307 387
308 // Butterworth Filter388 /*!
389 @defgroup tbutterworth tButterworth
390 @ingroup filters
391 @brief
392 @{
393 */
394
395 /*! @} */
396
309#define NUM_SVF_BW 16397#define NUM_SVF_BW 16
310 typedef struct _tButterworth398 typedef struct _tButterworth
311 {399 {
@@ -334,6 +422,15 @@ extern "C" { · 22 unmodified lines
334 422
335 //==============================================================================423 //==============================================================================
336 424
425 /*!
426 @defgroup tfir tFIR
427 @ingroup filters
428 @brief
429 @{
430 */
431
432 /*! @} */
433
337 typedef struct _tFIR434 typedef struct _tFIR
338 {435 {
339 tMempool mempool;436 tMempool mempool;
@@ -349,125 +446,146 @@ extern "C" { · 9 unmodified lines
349 void tFIR_free (tFIR* const);446 void tFIR_free (tFIR* const);
350 447
351 float tFIR_tick (tFIR* const, float input);448 float tFIR_tick (tFIR* const, float input);
352 449
353 450
354 //==============================================================================451 //==============================================================================
355 452
356 453 /*!
454 @defgroup tmedianfilter tMedianFilter
455 @ingroup filters
456 @brief
457 @{
458 */
459
460 /*! @} */
461
357 typedef struct _tMedianFilter462 typedef struct _tMedianFilter
358 {463 {
359 tMempool mempool;464 tMempool mempool;
360 float* val;465 float* val;
361 int* age;466 int* age;
362 int m;467 int m;
363 int size;468 int size;
364 int middlePosition;469 int middlePosition;
365 int last;470 int last;
366 int pos;471 int pos;
367 } _tMedianFilter;472 } _tMedianFilter;
368 473
369 typedef _tMedianFilter* tMedianFilter;474 typedef _tMedianFilter* tMedianFilter;
370 475
371 void tMedianFilter_init (tMedianFilter* const, int size);476 void tMedianFilter_init (tMedianFilter* const, int size);
372 void tMedianFilter_initToPool (tMedianFilter* const, int size, tMempool* const);477 void tMedianFilter_initToPool (tMedianFilter* const, int size, tMempool* const);
373 void tMedianFilter_free (tMedianFilter* const);478 void tMedianFilter_free (tMedianFilter* const);
374 479
375 float tMedianFilter_tick (tMedianFilter* const, float input);480 float tMedianFilter_tick (tMedianFilter* const, float input);
376 481
377 482
378 483 /*!
379 484 @defgroup tvzfilter tVZFilter
380 485 @ingroup filters
381 //Vadim Zavalishin style from VA book (from implementation in RSlib posted to kvr forum)486 @brief
382 487 @{
488 */
489
490 /*! @} */
491
492 //Vadim Zavalishin style from VA book (from implementation in RSlib posted to kvr forum)
493
383 typedef enum VZFilterType494 typedef enum VZFilterType
384 {495 {
385 Highpass = 0,496 Highpass = 0,
386 Lowpass,497 Lowpass,
387 BandpassSkirt,498 BandpassSkirt,
388 BandpassPeak,499 BandpassPeak,
389 BandReject,500 BandReject,
390 Bell,501 Bell,
391 Lowshelf,502 Lowshelf,
392 Highshelf,503 Highshelf,
393 Morph,504 Morph,
394 Bypass,505 Bypass,
395 Allpass506 Allpass
396 } VZFilterType;507 } VZFilterType;
397 508
398 509
399 typedef struct _tVZFilter510 typedef struct _tVZFilter
400 {511 {
401 tMempool mempool;512 tMempool mempool;
402 513
403 VZFilterType type;514 VZFilterType type;
404 // state:515 // state:
405 float s1, s2;516 float s1, s2;
406 517
407 // filter coefficients:518 // filter coefficients:
408 float g; // embedded integrator gain519 float g; // embedded integrator gain
409 float R2; // twice the damping coefficient (R2 == 2*R == 1/Q)520 float R2; // twice the damping coefficient (R2 == 2*R == 1/Q)
410 float h; // factor for feedback (== 1/(1+2*R*g+g*g))521 float h; // factor for feedback (== 1/(1+2*R*g+g*g))
411 float cL, cB, cH; // coefficients for low-, band-, and highpass signals522 float cL, cB, cH; // coefficients for low-, band-, and highpass signals
412 523
413 // parameters:524 // parameters:
414 float fc; // characteristic frequency525 float fc; // characteristic frequency
415 float G; // gain526 float G; // gain
416 float invG; //1/gain527 float invG; //1/gain
417 float B; // bandwidth (in octaves)528 float B; // bandwidth (in octaves)
418 float m; // morph parameter (0...1)529 float m; // morph parameter (0...1)
419 530
420 float sr; //local sampling rate of filter (may be different from leaf sr if oversampled)531 float sr; //local sampling rate of filter (may be different from leaf sr if oversampled)
421 float inv_sr;532 float inv_sr;
422 } _tVZFilter;533 } _tVZFilter;
423 534
424 typedef _tVZFilter* tVZFilter;535 typedef _tVZFilter* tVZFilter;
425 536
426 void tVZFilter_init (tVZFilter* const, VZFilterType type, float freq, float Q);537 void tVZFilter_init (tVZFilter* const, VZFilterType type, float freq, float Q);
427 void tVZFilter_initToPool (tVZFilter* const, VZFilterType type, float freq, float Q, tMempool* const);538 void tVZFilter_initToPool (tVZFilter* const, VZFilterType type, float freq, float Q, tMempool* const);
428 void tVZFilter_free (tVZFilter* const);539 void tVZFilter_free (tVZFilter* const);
429 540
430 void tVZFilter_setSampleRate (tVZFilter* const, float sampleRate);541 void tVZFilter_setSampleRate (tVZFilter* const, float sampleRate);
431 float tVZFilter_tick (tVZFilter* const, float input);542 float tVZFilter_tick (tVZFilter* const, float input);
432 float tVZFilter_tickEfficient (tVZFilter* const vf, float in);543 float tVZFilter_tickEfficient (tVZFilter* const vf, float in);
433 void tVZFilter_calcCoeffs (tVZFilter* const);544 void tVZFilter_calcCoeffs (tVZFilter* const);
434 void tVZFilter_setBandwidth (tVZFilter* const, float bandWidth);545 void tVZFilter_setBandwidth (tVZFilter* const, float bandWidth);
435 void tVZFilter_setFreq (tVZFilter* const, float freq);546 void tVZFilter_setFreq (tVZFilter* const, float freq);
436 void tVZFilter_setFreqAndBandwidth (tVZFilter* const vf, float freq, float bw);547 void tVZFilter_setFreqAndBandwidth (tVZFilter* const vf, float freq, float bw);
437 void tVZFilter_setGain (tVZFilter* const, float gain);548 void tVZFilter_setGain (tVZFilter* const, float gain);
438 void tVZFilter_setType (tVZFilter* const, VZFilterType type);549 void tVZFilter_setType (tVZFilter* const, VZFilterType type);
439 float tVZFilter_BandwidthToR (tVZFilter* const vf, float B);550 float tVZFilter_BandwidthToR (tVZFilter* const vf, float B);
440 551
441 552
442 553 /*!
443 554 @defgroup tdiodefilter tDiodeFilter
444 //diode ladder filter555 @ingroup filters
445 typedef struct _tDiodeFilter556 @brief
446 {557 @{
447 tMempool mempool;558 */
448 float f;559
449 float r;560 /*! @} */
450 float Vt;561
451 float n;562 //diode ladder filter
452 float gamma;563 typedef struct _tDiodeFilter
453 float zi;564 {
454 float g0inv;565 tMempool mempool;
455 float g1inv;566 float f;
456 float g2inv;567 float r;
457 float s0, s1, s2, s3;568 float Vt;
458 } _tDiodeFilter;569 float n;
459 570 float gamma;
460 typedef _tDiodeFilter* tDiodeFilter;571 float zi;
461 572 float g0inv;
462 void tDiodeFilter_init (tDiodeFilter* const, float freq, float Q);573 float g1inv;
463 void tDiodeFilter_initToPool (tDiodeFilter* const, float freq, float Q, tMempool* const);574 float g2inv;
464 void tDiodeFilter_free (tDiodeFilter* const);575 float s0, s1, s2, s3;
465 576 } _tDiodeFilter;
466 float tDiodeFilter_tick (tDiodeFilter* const, float input);577
467 void tDiodeFilter_setFreq (tDiodeFilter* const vf, float cutoff);578 typedef _tDiodeFilter* tDiodeFilter;
468 void tDiodeFilter_setQ (tDiodeFilter* const vf, float resonance);579
469 580 void tDiodeFilter_init (tDiodeFilter* const, float freq, float Q);
470 581 void tDiodeFilter_initToPool (tDiodeFilter* const, float freq, float Q, tMempool* const);
582 void tDiodeFilter_free (tDiodeFilter* const);
583
584 float tDiodeFilter_tick (tDiodeFilter* const, float input);
585 void tDiodeFilter_setFreq (tDiodeFilter* const vf, float cutoff);
586 void tDiodeFilter_setQ (tDiodeFilter* const vf, float resonance);
587
588
471#ifdef __cplusplus589#ifdef __cplusplus
472}590}
473#endif591#endif
@@ -476,3 +594,4 @@ extern "C" { · 2 unmodified lines
476 594
477//==============================================================================595//==============================================================================
478 596
597
leaf/Inc/leaf-oscillators.h+365−2
@@ -303,6 +303,51 @@ extern "C" { · 302 unmodified lines
303 void tSine_setFreq (tSine* const osc, float freq);303 void tSine_setFreq (tSine* const osc, float freq);
304 304
305 //==============================================================================305 //==============================================================================
306
307 /*!
308 @defgroup ttri tTri
309 @ingroup oscillators
310 @brief
311 @{
312 */
313
314 /*!
315 @fn void tTri_init (tTri* const osc)
316 @brief
317 @param
318 */
319
320 /*!
321 @fn void tTri_initToPool (tTri* const osc, tMempool* const pool)
322 @brief
323 @param
324 */
325
326 /*!
327 @fn void tTri_free (tTri* const osc)
328 @brief
329 @param
330 */
331
332 /*!
333 @fn float tTri_tick (tTri* const osc)
334 @brief
335 @param
336 */
337
338 /*!
339 @fn void tTri_setFreq (tTri* const osc, float freq)
340 @brief
341 @param
342 */
343
344 /*!
345 @fn void tTri_setSkew (tTri* const osc, float skew)
346 @brief
347 @param
348 */
349
350 /*! @} */
306 351
307 typedef struct _tTri352 typedef struct _tTri
308 {353 {
@@ -323,10 +368,53 @@ extern "C" { · 14 unmodified lines
323 void tTri_setFreq (tTri* const osc, float freq);368 void tTri_setFreq (tTri* const osc, float freq);
324 void tTri_setSkew (tTri* const osc, float skew);369 void tTri_setSkew (tTri* const osc, float skew);
325 370
326 /*! @} */
327
328 //==============================================================================371 //==============================================================================
329 372
373 /*!
374 @defgroup tpulse tPulse
375 @ingroup oscillators
376 @brief
377 @{
378 */
379
380 /*!
381 @fn void tPulse_init (tPulse* const osc)
382 @brief
383 @param
384 */
385
386 /*!
387 @fn void tPulse_initToPool (tPulse* const osc, tMempool* const)
388 @brief
389 @param
390 */
391
392 /*!
393 @fn void tPulse_free (tPulse* const osc)
394 @brief
395 @param
396 */
397
398 /*!
399 @fn float tPulse_tick (tPulse* const osc)
400 @brief
401 @param
402 */
403
404 /*!
405 @fn void tPulse_setFreq (tPulse* const osc, float freq)
406 @brief
407 @param
408 */
409
410 /*!
411 @fn void tPulse_setWidth (tPulse* const osc, float width)
412 @brief
413 @param
414 */
415
416 /*! @} */
417
330 typedef struct _tPulse418 typedef struct _tPulse
331 {419 {
332 tMempool mempool;420 tMempool mempool;
@@ -347,6 +435,45 @@ extern "C" { · 14 unmodified lines
347 435
348 //==============================================================================436 //==============================================================================
349 437
438 /*!
439 @defgroup tsaw tSaw
440 @ingroup oscillators
441 @brief
442 @{
443 */
444
445 /*!
446 @fn void tSaw_init (tSaw* const osc)
447 @brief
448 @param
449 */
450
451 /*!
452 @fn void tSaw_initToPool (tSaw* const osc, tMempool* const pool)
453 @brief
454 @param
455 */
456
457 /*!
458 @fn void tSaw_free (tSaw* const osc)
459 @brief
460 @param
461 */
462
463 /*!
464 @fn float tSaw_tick (tSaw* const osc)
465 @brief
466 @param
467 */
468
469 /*!
470 @fn void tSaw_setFreq (tSaw* const osc, float freq)
471 @brief
472 @param
473 */
474
475 /*! @} */
476
350 typedef struct _tSaw477 typedef struct _tSaw
351 {478 {
352 tMempool mempool;479 tMempool mempool;
@@ -365,6 +492,45 @@ extern "C" { · 12 unmodified lines
365 492
366 //==============================================================================493 //==============================================================================
367 494
495 /*!
496 @defgroup tphasor tPhasor
497 @ingroup oscillators
498 @brief
499 @{
500 */
501
502 /*!
503 @fn void tPhasor_init (tPhasor* const osc)
504 @brief
505 @param
506 */
507
508 /*!
509 @fn void tPhasor_initToPool (tPhasor* const osc, tMempool* const)
510 @brief
511 @param
512 */
513
514 /*!
515 @fn void tPhasor_free (tPhasor* const osc)
516 @brief
517 @param
518 */
519
520 /*!
521 @fn float tPhasor_tick (tPhasor* const osc)
522 @brief
523 @param
524 */
525
526 /*!
527 @fn void tPhasor_setFreq (tPhasor* const osc, float freq)
528 @brief
529 @param
530 */
531
532 /*! @} */
533
368 typedef struct _tPhasor534 typedef struct _tPhasor
369 {535 {
370 tMempool mempool;536 tMempool mempool;
@@ -384,6 +550,37 @@ extern "C" { · 13 unmodified lines
384 550
385 //==============================================================================551 //==============================================================================
386 552
553 /*!
554 @defgroup tnoise tNoise
555 @ingroup oscillators
556 @brief
557 @{
558 */
559
560 /*!
561 @fn void tNoise_init (tNoise* const noise, NoiseType type)
562 @brief
563 @param
564 */
565
566 /*!
567 @fn void tNoise_initToPool (tNoise* const noise, NoiseType type, tMempool* const)
568 @brief
569 @param
570 */
571
572 /*!
573 @fn void tNoise_free (tNoise* const noise)
574 @brief
575 @param
576 */
577
578 /*!
579 @fn float tNoise_tick (tNoise* const noise)
580 @brief
581 @param
582 */
583
387 /* tNoise. WhiteNoise, PinkNoise. */584 /* tNoise. WhiteNoise, PinkNoise. */
388 /*!585 /*!
389 * Noise types586 * Noise types
@@ -395,6 +592,8 @@ extern "C" { · 5 unmodified lines
395 NoiseTypeNil,592 NoiseTypeNil,
396 };593 };
397 594
595 /*! @} */
596
398 typedef enum NoiseType NoiseType;597 typedef enum NoiseType NoiseType;
399 598
400 typedef struct _tNoise599 typedef struct _tNoise
@@ -581,8 +780,66 @@ extern "C" { · 180 unmodified lines
581 780
582 //==============================================================================781 //==============================================================================
583 782
783
584#define FILLEN 256784#define FILLEN 256
585 785
786 /*!
787 @defgroup tmbpulse tMBPulse
788 @ingroup oscillators
789 @brief
790 @{
791 */
792
793 /*!
794 @fn void tMBPulse_init(tMBPulse* const osc)
795 @brief
796 @param
797 */
798
799 /*!
800 @fn void tMBPulse_initToPool(tMBPulse* const osc, tMempool* const pool)
801 @brief
802 @param
803 */
804
805 /*!
806 @fn void tMBPulse_free(tMBPulse* const osc)
807 @brief
808 @param
809 */
810
811 /*!
812 @fn float tMBPulse_tick(tMBPulse* const osc)
813 @brief
814 @param
815 */
816
817 /*!
818 @fn void tMBPulse_setFreq(tMBPulse* const osc, float f)
819 @brief
820 @param
821 */
822
823 /*!
824 @fn void tMBPulse_setWidth(tMBPulse* const osc, float w)
825 @brief
826 @param
827 */
828
829 /*!
830 @fn void tMBPulse_syncIn(tMBPulse* const osc, float sync)
831 @brief
832 @param
833 */
834
835 /*!
836 @fn float tMBPulse_syncOut(tMBPulse* const osc)
837 @brief
838 @param
839 */
840
841 /*! @} */
842
586 typedef struct _tMBPulse843 typedef struct _tMBPulse
587 {844 {
588 tMempool mempool;845 tMempool mempool;
@@ -611,6 +868,62 @@ extern "C" { · 22 unmodified lines
611 void tMBPulse_syncIn(tMBPulse* const osc, float sync);868 void tMBPulse_syncIn(tMBPulse* const osc, float sync);
612 float tMBPulse_syncOut(tMBPulse* const osc);869 float tMBPulse_syncOut(tMBPulse* const osc);
613 870
871 /*!
872 @defgroup tmbtriangle tMBTriangle
873 @ingroup oscillators
874 @brief
875 @{
876 */
877
878 /*!
879 @fn void tMBTriangle_init(tMBTriangle* const osc)
880 @brief
881 @param
882 */
883
884 /*!
885 @fn void tMBTriangle_initToPool(tMBTriangle* const osc, tMempool* const pool)
886 @brief
887 @param
888 */
889
890 /*!
891 @fn void tMBTriangle_free(tMBTriangle* const osc)
892 @brief
893 @param
894 */
895
896 /*!
897 @fn float tMBTriangle_tick(tMBTriangle* const osc)
898 @brief
899 @param
900 */
901
902 /*!
903 @fn void tMBTriangle_setFreq(tMBTriangle* const osc, float f)
904 @brief
905 @param
906 */
907
908 /*!
909 @fn void tMBTriangle_setWidth(tMBTriangle* const osc, float w)
910 @brief
911 @param
912 */
913
914 /*!
915 @fn void tMBTriangle_syncIn(tMBTriangle* const osc, float sync)
916 @brief
917 @param
918 */
919
920 /*!
921 @fn float tMBTriangle_syncOut(tMBTriangle* const osc)
922 @brief
923 @param
924 */
925
926 /*! @} */
614 927
615 typedef struct _tMBTriangle928 typedef struct _tMBTriangle
616 {929 {
@@ -641,6 +954,56 @@ extern "C" { · 24 unmodified lines
641 float tMBTriangle_syncOut(tMBTriangle* const osc);954 float tMBTriangle_syncOut(tMBTriangle* const osc);
642 955
643 956
957 /*!
958 @defgroup tmbsaw tMBSaw
959 @ingroup oscillators
960 @brief
961 @{
962 */
963
964 /*!
965 @fn void tMBSaw_init(tMBSaw* const osc)
966 @brief
967 @param
968 */
969
970 /*!
971 @fn void tMBSaw_initToPool(tMBSaw* const osc, tMempool* const pool)
972 @brief
973 @param
974 */
975
976 /*!
977 @fn void tMBSaw_free(tMBSaw* const osc)
978 @brief
979 @param
980 */
981
982 /*!
983 @fn float tMBSaw_tick(tMBSaw* const osc)
984 @brief
985 @param
986 */
987
988 /*!
989 @fn void tMBSaw_setFreq(tMBSaw* const osc, float f)
990 @brief
991 @param
992 */
993
994 /*!
995 @fn void tMBSaw_syncIn(tMBSaw* const osc, float sync)
996 @brief
997 @param
998 */
999
1000 /*!
1001 @fn float tMBSaw_syncOut(tMBSaw* const osc)
1002 @brief
1003 @param
1004 */
1005
1006 /*! @} */
644 1007
645 typedef struct _tMBSaw1008 typedef struct _tMBSaw
646 {1009 {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t