I have a Teensy 4.0 and have built the circuit on the
AudioTuner github page. I'm working out of the example Sample_Guitar_Tunning_Notes. But when I verify it, I get errors, see below.
I have used an Arduino code developed by Amanda Ghassaei and got that to work, but it's jumpy. I am hoping the Teensy will give me better results at developing a solid guitar/bass tuner.
Is the Sample_Guitar_Tunning_Notes example the best place to start? It has a lot of output simulations that I probably don't need... I only want to read an analog input.
Thanks!
***
In file included from C:\Users\rgw\AppData\Local\Temp\1\.arduinoIDE-unsaved2023911-12792-nd89vl.of4bg\Sample_Guitar_Tunning_Notes\Sample_Guitar_Tunning_Notes.ino:23:
c:\Users\rgw\Dropbox (Personal)\Ryan\Circuits\libraries\AudioTuner/AudioTuner.h: In constructor 'AudioTuner::AudioTuner()':
c:\Users\rgw\Dropbox (Personal)\Ryan\Circuits\libraries\AudioTuner/AudioTuner.h:153:47: warning: 'AudioTuner::enabled' will be initialized after [-Wreorder]
153 | volatile bool new_output, process_buffer, enabled;
| ^~~~~~~
c:\Users\rgw\Dropbox (Personal)\Ryan\Circuits\libraries\AudioTuner/AudioTuner.h:153:19: warning: 'volatile bool AudioTuner::new_output' [-Wreorder]
153 | volatile bool new_output, process_buffer, enabled;
| ^~~~~~~~~~
c:\Users\rgw\Dropbox (Personal)\Ryan\Circuits\libraries\AudioTuner/AudioTuner.h:53:5: warning: when initialized here [-Wreorder]
53 | AudioTuner( void ) : AudioStream( 1, inputQueueArray ),
| ^~~~~~~~~~
c:\Users\rgw\Dropbox (Personal)\Ryan\Circuits\libraries\AudioTuner/AudioTuner.h:153:19: warning: 'AudioTuner::new_output' will be initialized after [-Wreorder]
153 | volatile bool new_output, process_buffer, enabled;
| ^~~~~~~~~~
c:\Users\rgw\Dropbox (Personal)\Ryan\Circuits\libraries\AudioTuner/AudioTuner.h:152:30: warning: 'uint8_t AudioTuner::coeff_size' [-Wreorder]
152 | uint8_t yin_idx, state, coeff_size, decimation_factor, decimation_shift;
| ^~~~~~~~~~
c:\Users\rgw\Dropbox (Personal)\Ryan\Circuits\libraries\AudioTuner/AudioTuner.h:53:5: warning: when initialized here [-Wreorder]
53 | AudioTuner( void ) : AudioStream( 1, inputQueueArray ),
| ^~~~~~~~~~
Memory Usage on Teensy 4.0:
FLASH: code:77700, data:226492, headers:9148 free for files:1718276
RAM1: variables:237536, code:75640, padding:22664 free for local variables:188448
RAM2: variables:20224 free for malloc/new:504064
***