Mozzi  version v2.0
sound synthesis library for Arduino
Mozzi on Teensy 3.0/3.1/3.2/3.4/3.5/LC boards.

port by Tim Barrass

Note
For Teensy 4.x see Mozzi on Teensy 4.x boards.

Port status and ussage notes

This port requires the following two libraries (which should be part of a default installtion, however):

Some of the differences for Teensy 3.* which will affect users include:

  • twi_nonblock code by Marije Baalman for non-blocking I2C is not compatible with Teensy 3.0/3.1/3.2.

Output modes

The following audio modes (see MOZZI_AUDIO_MODE) are currently supported on this hardware:

  • MOZZI_OUTPUT_EXTERNAL_TIMED
  • MOZZI_OUTPUT_EXTERNAL_CUSTOM
  • MOZZI_OUTPUT_INTERNAL_DAC

The default mode is MOZZI_OUTPUT_INTERNAL_DAC .

MOZZI_OUTPUT_INTERNAL_DAC

Output is to the inbuilt DAC. Output resolution is 12 bits. Mono, only. The DAC output pin differs from board to boards. In most cases the appropriate pin will be set outmatically. If needed, you can specify the DAC pin, explicitly:

#define MOZZI_AUDIO_PIN_1 ... // Default: A14, A12, or A21, depending on board

MOZZI_OUTPUT_EXTERNAL_TIMED and MOZZI_OUTPUT_EXTERNAL_CUSTOM

See External audio output