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 ...

Get Arduino Music and Audio Projects now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.