Przeglądaj źródła

update see revision.md

main
duff2013 6 lat temu
rodzic
commit
4e041dda10
5 zmienionych plików z 28 dodań i 7 usunięć
  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 Wyświetl plik

@@ -40,7 +40,7 @@ void AudioTuner::update( void ) {
}
/**
* "factor" is the new block size calculatedby
* "factor" is the new block size calculated by
* the decimated shift to incremnt the buffer
* address.
*/
@@ -86,8 +86,7 @@ void AudioTuner::process( int16_t *p ) {
int16_t * lag = p + tau;
// unrolling the inner loop by 8
blkCnt = inner_cycles >> 3;
do
{
do {
// a(n), b(n), c(n), d(n) each hold two samples
a1 = *__SIMD32( cur )++;
a2 = *__SIMD32( cur )++;
@@ -247,9 +246,10 @@ float AudioTuner::probability( void ) {
}

/**
* 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 ) {
//coeff_size = n;
@@ -267,3 +267,14 @@ void AudioTuner::threshold( float p ) {
yin_threshold = p;
__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 Wyświetl plik

@@ -133,6 +133,13 @@ private:
*/
void process( int16_t *p );
/**
* disable yin
*
* @return none
*/
void disable( void );
/**
* Variables
*/

+ 1
- 1
README.md Wyświetl plik

@@ -1,5 +1,5 @@
<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>
</p>


+ 1
- 1
library.properties Wyświetl plik

@@ -1,5 +1,5 @@
name=AudioTuner
version=3.1
version=3.2
author=Colin Duffy
maintainer=Colin Duffy
sentence=Yin algorithm

+ 3
- 0
revision.md Wyświetl plik

@@ -1,3 +1,6 @@
><b>Updated (1/12/18 v3.2)</b><br>
* Added disable function.<br>

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


Ładowanie…
Anuluj
Zapisz