瀏覽代碼

update see revision.md

main
duff2013 6 年之前
父節點
當前提交
4e041dda10
共有 5 個檔案被更改,包括 28 行新增7 行删除
  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 查看文件

@@ -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 查看文件

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

+ 1
- 1
README.md 查看文件

@@ -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 查看文件

@@ -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 查看文件

@@ -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>


Loading…
取消
儲存