duff2013 9 лет назад
Родитель
Сommit
7d5fb0de90
1 измененных файлов: 49 добавлений и 30 удалений
  1. +49
    -30
      README.md

+ 49
- 30
README.md Просмотреть файл

@@ -1,39 +1,58 @@
#Guitar and Bass Tuner Library for Teensy 3.1 v2.0

>Software algorithm ([YIN]) for guitar and bass tuning using a Teensy Audio Library. This audio object's algorithm can be some what memory and processor hungry but will allow you to detect with fairly good accurcey the lower fundumential frequencies from electric guitars and basses. You can install this as a normal Arduino Library and will work with the Audio Library, no need to edit the Audio libraries source now.
>Software algorithm ([YIN]) for guitar and bass tuning using a Teensy Audio Library. This audio object's algorithm can be some what memory and processor hungry but will allow you to detect with fairly good accurcey the fundumential frequencies from electric guitars and basses. You can install this as a normal Arduino Library and will work with the Audio Library, no need to edit the Audio libraries source now.

>Many optimizations have been done to the [YIN] algorithm for frequencies between 29-360Hz. While its still using a brute force method (n<sup>2</sup>)for finding fundemential frequency f(o) it is tuned to skip <b>tau</b> values that are out of its frequency range and focus mostly on frequencies found in bass and guitar. There a few parameters that can be adjusted to "dial in" the algorithm better use. Te defaults are what I find that have the trade off for speed and accurcy.

```
In AudioTuner.h you can edit these paratemters:
/****************************************************************
* Safe to adjust these values below *
****************************************************************/
// Adjust number of samples to collect in buffer here, also effects
// convergence speed and resolution.
#define NUM_SAMPLES 2048 // make a power of two

// larger the divide-by, less resolution and lower the frequency for
// a given number of samples that can be detected. Also effects
// convergence speed.
#define SAMPLE_SKIP SAMPLE_RATE_DIVIDE_BY_2
/****************************************************************/
```

<!-- language: lang-none -->
Hookup Guide - 1.2v DC Bias and High Pass Filter - No Amplification


*-------------------------------------------------|
| | | |
*------------/\/\/\------------| _|___|_ |
| 47K | |` ` ` `| |
*---)|+--* | | ` ` ` | |
| 10uF | | |` ` ` `| |
| | | | ` ` ` | |
_______________ *-/\/\/\-* | |` ` ` `| |
|GND |___| Vin| | 2.2K | | | ` ` ` | |
|0 T AGND|<-| | | |` ` ` `| |
|1 E 3.3V|<--/\/\/\--*--/\/\/\---| | | ` ` ` | |
|2 E 23| 10K 47K | | |` ` ` `| |
|3 N 22| | | | ` ` ` | |
|4 S 21| | | \_`_`_/ |
|5 Y 20| | | | :`| |
|6 3.1 19| | | | S`| |
|7 18| | REMOVE| | H`| |
|8 17| | DC | | I`| |
|9 A2/16|<---SIGNAL-1.2v-BIAS---*----+|(--* | E`|<--ANGD--|
|10 --- 15| 1.2V 10uF | | L`|
|11 |(`)| 14| DC | | D`|
|12 --- 13| | | :`|
--------------- | |===|
| \_/
| /T\
| - I -
| \ P /
|---->\_/
*--------------------------------------------------*
| |
| | ' | |
*------------/\/\/\-------------* |' '| |
| 47K | _|_'_|_ |
| | |` ` ` `| |
*---)|+--* | | ` ` ` | |
| 10uF | | |` ` ` `| |
| | | | ` ` ` | |
_______________ *-/\/\/\-* | |` ` ` `| |
|GND |___| Vin| | 2.2K | | | ` ` ` | |
|0 T AGND|<-* | | |` ` ` `| |
|1 E 3.3V|>--/\/\/\--*--/\/\/\---* | | ` ` ` | |
|2 E 23| 10K 47K | | |` ` ` `| |
|3 N 22| | | | ` ` ` | |
|4 S 21| | | \_`_`_/ |
|5 Y 20| | | | :`| |
|6 3.1 19| | | | S`| |
|7 18| | REMOVE | | H`| |
|8 17| | DC | | I`| |
|9 A2/16|<---SIGNAL-1.2v-BIAS---*---+|(----* | E`|>--ANGD--*
|10 --- 15| 1.2V 10uF | | L`|
|11 |(`)| 14| DC | | D`|
|12 --- 13| | | :`|
--------------- | |===|
| \_/
| /T\
| - I -
*---<\ P /
\_/




Загрузка…
Отмена
Сохранить