
PROJECTS: Autotune Kazoo
higher value means that it will give you a guess
more often, but it might not be as accurate.
3. Next we initialize the Bluetooth MIDI library
(line 204). We provide callback functions for
when a connected host sends us MIDI data
and tell it to start advertising and accepting
connections.
4. The rest of the setup function (lines 214–277)
is just boilerplate to initialize the I2S sound
streams: input from the microphone, and
output to the speaker. Beware that the pin
number may need to change if you wire things
differently!
The main loop (Figure
F
) does the following:
1. First, read a buffer (line 284) full of bytes from ...