O'Reilly logo

Arduino Music and Audio Projects by Mike Cook

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

CHAPTER 12

image

Other Wave Shapes

Square is by far the simplest wave shape for a digital processor to produce, as we saw it the last chapter, it was a simple matter of setting a digital pin high and then setting it low or on and off. Also we saw when mixing two such waves a third intermediate level appeared, one that was halfway between high and low. This occurred when one signal was high and the other was low. The trick to producing other wave shapes and therefore different sounding noises is to have some mechanism to generate not only one intermediate level between high and low but many. The more levels you can generate, the finer precision you ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required