This is the featured image of the What Are Waveforms And How Do They Work? blog article.

What Are Waveforms And How Do They Work?

Last Edited: Dec 1, 2023

What is an Audio Waveform?

A waveform is a graph that displays amplitude or level changes over time. Amplitude is measured in a bipolar manner, with positive and negative values, not to be confused with level,  which can be the absolute value of amplitude changes or an average. This concept is abstract because waveforms typically contain tens of thousands of discrete changes within an unimaginably short period, crammed into a short block in a sequencer. As you probably already know, as you zoom in on a waveform, its contour becomes more and more visible.

  -----Zoom------>     

PCM and Nyquist Frequency

A waveform is a digitized recreation of very dynamic voltage changes over time. Here is how they are typically generated…. The discrete changes in an input signal are rectified instantly through a process called "Pulse Code Modulation" (PCM). Simply put, PCM assigns a bit value to each sample at whatever sampling rate you're running. Furthermore, the higher the bit depth, the more values the computer has to choose from, and the more accurate the rectification is. The sampling Rate for recording purposes is pretty standard - 44100 Hz, the Nyquist Frequency for audio. Here is why it is standard…

  • The highest audible frequency for humans is 20,000 Hz.
  • Every frequency has a positive and negative half (compression and rarefaction).
  • So, as long as we sample (analyze and generate) rapidly enough to catch both the positive and negative portions of the highest (most rapidly oscillating) audible frequency - we can confidently rectify just about every audible frequency.
  • This means at a sampling rate of 40000 Hz, we will catch both the positive and negative portions at 20,000 Hz. However, since sine waves are infinitely smooth and gradual, just one sample of each portion will not produce a very accurate waveform at very high and very low frequencies - but this gets pretty close. This is why the extra 4100 Hz in Nyquist Frequency exists. It accounts for any aliasing when sampling very low and high frequencies. 

Of course, at this point, you may ask yourself, "Why not just sample as frequently as possible? Why not just go to 50,000 Hz or 100,000 Hz?" The answer is negligence. We cannot hear the improvement past 44100 Hz. BUT THIS DOES NOT MEAN OTHER SAMPLE RATES ARE NOT USED. For example, when producing sound or music for film, the sample rate of the audio should match the video resolution rate - often over 90,000 Hz.   

Synthetic Waveforms

  Synthetic waveforms are MILES less complex than audio from an acoustic or electrical source. This is their beauty -  they allow us to create sounds from scratch without getting ahead of ourselves. After all, every frequency part of a sound - harmonic or not - can potentially send you down a path of unintentional, unfocused ideas that will do more harm than good in context. These are the four basic synthetic waveforms.  

Sine

One harmonic, one frequency. It is so straightforward that it cannot technically exist acoustically or electrically. Overall, even the purest-sounding oscillators and self-resonating filters have a little noise in their output. Y= Asinx describes it mathematically.

WF. Pic 5  

Square

Contains odd harmonics (odd whole number multiples of the fundamental). This means that if the fundamental frequency of a square wave is 200 Hz, it will also generate 600 Hz (3rd harmonic), 1000 Hz (5th harmonic), 1400 Hz (7th harmonic), and so on…..

WF. Pic 5  

Triangle

In short, the triangle is like a square wave containing odd harmonics, except the harmonic content is lower in amplitude than in a square wave. Meaning the harmonics have less influence on the overall shape of the wave.   WF. Pic 5  

Sawtooth

Contains all harmonics. This is the most complex of the four basic synthetic waveforms - but nowhere near as complex as natural sound. In addition, if the fundamental of a sawtooth is 100 Hz, it also contains 200 Hz, 300 Hz, 400 Hz ….etc. Each harmonic is a little lower in amplitude than the previous one.

WF. Pic 5

To conclude, IT IS IMPORTANT TO REALIZE that triangle, square, and sawtooth waves ARE MADE UP OF SINE WAVES - AS IS EVERY SOUND IN THE UNIVERSE. Essentially, one can synthesize a somewhat accurate square wave by adding odd multiples of the fundamental frequency to a sine wave. In the audio below, I have done just that! Listen to the sine wave gradually form into a square wave as I sweep in odd harmonics. The synthesized square wave plays in isolation at the end. I have isolated each partial on a different track and, in doing so, created a crude "spectrum" analysis of the sound.

WF. Pic 4

教育

精通音乐 制作

专家授课的课程,带你从基础到成片。

HOUSE Boot Camp 专辑封面图。

HOUSE从弹跳贝斯与扎实踢鼓出发,本课程教授最现代的 House 制作技术,助你成功并脱颖而出。

Trap Boot Camp 专辑封面图。

TRAP别再像千篇一律的 Trap,做出带东方点缀的“世界感”。打造民族音景,让你的 Trap 领先一整条街。

Ambient Boot Camp 专辑封面图。

AMBIENT制作放松、精致的 psy 风格 ambient。迷幻又耐听,打造冥想音景,把听众带进Zen。