Skip to main content
  • 3589 Accesses

Abstract

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 can sculpt your waveform.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 59.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 79.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Author information

Authors and Affiliations

Authors

Electronic Supplementary Material

Below is the link to the electronic supplementary material.

978-1-4842-1720-7-CH12 code.zip (zip 7 kb)

Rights and permissions

Reprints and permissions

Copyright information

© 2015 Mike Cook

About this chapter

Cite this chapter

Cook, M. (2015). Other Wave Shapes. In: Arduino Music and Audio Projects. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-1721-4_12

Download citation

Publish with us

Policies and ethics