In this lab we began by recalling the information from codes that we studied in last weeks lab. We then took one of the codes we used and began to look in depth at the functions and the variables of that code to make more sense of it.
Next we took time to look at different softwares/libraries that are available to produce sound on Arduino. I looked at Teensy and Mozzi. These two are similar audio libraries that enhance the function of the one we have on our board. They don’t need any external boards to work and can produce a variety of sounds and sounds can be altered using the builtin audio toolkit which includes things like synthesisers, oscillators and delays.
(Individual research task)
What is mozzi about?
Mozzi allows the production of more complex and interesting growls, sweeps and chorusing atmospherics. These sounds can be quickly and easily constructed from familiar synthesis units like oscillators, delays, filters and envelopes.
You can use Mozzi to generate algorithmic music for an installation or performance, or make interactive sonifications of sensors and can be done without additional boards.
From listening to the sounds, there is the ability to:
- modulate amplitude
- change shapes of waves
- change sounds using oscillators
What are key features?
- variable control rate
- designed to be easy to use & extendable
- has a broad audio toolkit: oscilators, samples lines, filters etc.
Weird Behaviours
audio glitches can be caused when calling delay or other functions that wait.
analogRead() is replaced by mozziAnalogRead(), which works in the background instead of blocking the processor.