You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

README.md 3.9KB

9 vuotta sitten
9 vuotta sitten
9 vuotta sitten
9 vuotta sitten
9 vuotta sitten
9 vuotta sitten
9 vuotta sitten
9 vuotta sitten
9 vuotta sitten
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. #Guitar and Bass Tuner Library for Teensy 3.1 v2.0
  2. >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.
  3. >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.
  4. ```
  5. In AudioTuner.h you can edit these paratemters:
  6. /****************************************************************
  7. * Safe to adjust these values below *
  8. ****************************************************************/
  9. // Adjust number of samples to collect in buffer here, also effects
  10. // convergence speed and resolution.
  11. #define NUM_SAMPLES 2048 // make a power of two
  12. // larger the divide-by, less resolution and lower the frequency for
  13. // a given number of samples that can be detected. Also effects
  14. // convergence speed.
  15. #define SAMPLE_SKIP SAMPLE_RATE_DIVIDE_BY_2
  16. /****************************************************************/
  17. ```
  18. <!-- language: lang-none -->
  19. Hookup Guide - 1.2v DC Bias and High Pass Filter - No Amplification
  20. *--------------------------------------------------*
  21. | |
  22. | | ' | |
  23. *------------/\/\/\-------------* |' '| |
  24. | 47K | _|_'_|_ |
  25. | | |` ` ` `| |
  26. *---)|+--* | | ` ` ` | |
  27. | 10uF | | |` ` ` `| |
  28. | | | | ` ` ` | |
  29. _______________ *-/\/\/\-* | |` ` ` `| |
  30. |GND |___| Vin| | 2.2K | | | ` ` ` | |
  31. |0 T AGND|<-* | | |` ` ` `| |
  32. |1 E 3.3V|>--/\/\/\--*--/\/\/\---* | | ` ` ` | |
  33. |2 E 23| 10K 47K | | |` ` ` `| |
  34. |3 N 22| | | | ` ` ` | |
  35. |4 S 21| | | \_`_`_/ |
  36. |5 Y 20| | | | :`| |
  37. |6 3.1 19| | | | S`| |
  38. |7 18| | REMOVE | | H`| |
  39. |8 17| | DC | | I`| |
  40. |9 A2/16|<---SIGNAL-1.2v-BIAS---*---+|(----* | E`|>--ANGD--*
  41. |10 --- 15| 1.2V 10uF | | L`|
  42. |11 |(`)| 14| DC | | D`|
  43. |12 --- 13| | | :`|
  44. --------------- | |===|
  45. | \_/
  46. | /T\
  47. | - I -
  48. *---<\ P /
  49. \_/
  50. [YIN]:http://recherche.ircam.fr/equipes/pcm/cheveign/pss/2002_JASA_YIN.pdf