Selaa lähdekoodia

update see revision.md

main
duff2013 7 vuotta sitten
vanhempi
commit
4e041dda10
5 muutettua tiedostoa jossa 28 lisäystä ja 7 poistoa
  1. +16
    -5
      AudioTuner.cpp
  2. +7
    -0
      AudioTuner.h
  3. +1
    -1
      README.md
  4. +1
    -1
      library.properties
  5. +3
    -0
      revision.md

+ 16
- 5
AudioTuner.cpp Näytä tiedosto

} }
/** /**
* "factor" is the new block size calculatedby
* "factor" is the new block size calculated by
* the decimated shift to incremnt the buffer * the decimated shift to incremnt the buffer
* address. * address.
*/ */
int16_t * lag = p + tau; int16_t * lag = p + tau;
// unrolling the inner loop by 8 // unrolling the inner loop by 8
blkCnt = inner_cycles >> 3; blkCnt = inner_cycles >> 3;
do
{
do {
// a(n), b(n), c(n), d(n) each hold two samples // a(n), b(n), c(n), d(n) each hold two samples
a1 = *__SIMD32( cur )++; a1 = *__SIMD32( cur )++;
a2 = *__SIMD32( cur )++; a2 = *__SIMD32( cur )++;
} }


/** /**
* Initialise parameters.
* New LP coeffients for decimation.
* *
* @param thresh Allowed uncertainty
* @param p array pointer of coeffients.
* @param n array size.
*/ */
void AudioTuner::coeff( int16_t *p, int n ) { void AudioTuner::coeff( int16_t *p, int n ) {
//coeff_size = n; //coeff_size = n;
yin_threshold = p; yin_threshold = p;
__enable_irq( ); __enable_irq( );
} }

/**
* disable yin from processing data, use begin to start back up
*
* @return none
*/
void disable( void ) {
__disable_irq( );
enabled = false;
__enable_irq( );
}

+ 7
- 0
AudioTuner.h Näytä tiedosto

*/ */
void process( int16_t *p ); void process( int16_t *p );
/**
* disable yin
*
* @return none
*/
void disable( void );
/** /**
* Variables * Variables
*/ */

+ 1
- 1
README.md Näytä tiedosto

<p align="center"> <p align="center">
<b>Guitar and Bass Tuner Library v3.1</b><br>
<b>Guitar and Bass Tuner Library v3.2</b><br>
<b>Teensy 3.1/2</b><br> <b>Teensy 3.1/2</b><br>
</p> </p>



+ 1
- 1
library.properties Näytä tiedosto

name=AudioTuner name=AudioTuner
version=3.1
version=3.2
author=Colin Duffy author=Colin Duffy
maintainer=Colin Duffy maintainer=Colin Duffy
sentence=Yin algorithm sentence=Yin algorithm

+ 3
- 0
revision.md Näytä tiedosto

><b>Updated (1/12/18 v3.2)</b><br>
* Added disable function.<br>

><b>Updated (12/7/17 v3.1)</b><br> ><b>Updated (12/7/17 v3.1)</b><br>
* Fix wrong include.<br> * Fix wrong include.<br>



Loading…
Peruuta
Tallenna