This is an experimental code with no particular goal. It does not use Teensy audio library (except for the feeding AudioStream
object).
The code assumes an I2S audio interface connected to the Teensy4.0 board. I use UDA1334 break-out board from Adafuit (https://www.adafruit.com/product/3678)
Check the board info and pinout diagram (https://www.pjrc.com/store/teensy40.html)
Teensy 4.0 | UDA1334 |
---|---|
pin 7 | DIN |
pin 20 | WSEL |
pin 21 | BCLK |
3V | VIN |
GND | GND |
- Make sure to have Arduino adn Teensyduino add-on installed (see https://www.pjrc.com/teensy/td_download.html)
- Copy build tools to
./tools
folder - You'll need to have a
make
tool to compile the code. On Windows you may useMsys
package (https://www.msys2.org/). - Connect Teensy4 board via USB and run:
$ cd src
$ make
This will build the code and program the board. No need to run Arduino IDE.
Currently the code enabled USB MIDI and Serial interfaces. When board is connected via USB cable you should see Teensy MIDI
interface where you can send MIDI commands to. USB virtual serial port is used to print debug info.
Recorded directly from the audio output.
https://soundcloud.com/arthur-benilov/moszkowski-etincelles-op-36-no-6