eYFi-Mega based Audio Synthesizer

Mentor(s) : Sourav, Prasad, eYRDC
Interns : Aravinda Harithsa, Marefat Abbas


Project Image

Abstract

The objective of this project is to develop an Audio Synthesizer and Spectrum Analyzer using eYFi-Mega development board .

Audio Synthesizer

Now let us dive into world of audio processing techniques where we will learn most commonly used terms and components which are required in analog based audio synthesis . The practical demonstration of our project will be in digitally generated sound,But let us get a glimpse of what audio synthesis is

Audio Synthesizer is an electronic musical instrument that generates audio signals. Synthesizers generate audio through methods including subtractive synthesis, additive synthesis, and frequency modulation synthesis. Synthesizers are typically played with keyboards or controlled by sequencers, software, or other instruments, often via MIDI.

I: Oscillator

If anything is the heart of a synthesizer then it will be its oscillator. It produces a raw, unfiltered sound wave. An oscillator will generate a saw wave, square wave, sine wave, triangle wave, or noise. In digital synthesizers, the core of the oscillator can be a wavetable ( predefined set of values ) or even a recorded sample. The sound sample below is a saw wave, the way you would hear it if you directly tapped the audio output of an analog oscillator. Here in our demonstration we have generated musical tones wavetable with 8-bit configuration .

II: Amplifier

Every synthesizer has an amplifier, or more accurately, a variety of amplifiers. Often seen abbreviated as VCA (voltage-controlled amplifier) and DCA (digitally controlled amplifier), the amplifiers are the components that determine exactly how much signal from the oscillator gets passed on to the next part of the synthesizer.

The name amplifier is a bit misleading and confusing, though. Technically speaking, an amplifier is part of a circuit that boosts signal, but in synthesizers, the amplifier actually attenuates, or reduces, any signal coming through it. In most analog and analog-modeling synthesizers, each oscillator is fed into an amplifier that keeps the oscillator signal completely attenuated until the amplifier is stimulated by an incoming control voltage (CV). That way, we only hear the oscillator when the amplifier is activated somehow. That’s how we get separation between notes rather than a constant tone.

Synthesizers have a keyboard that generates a gate signal when a key is pressed, which triggers an envelope, which then stimulates the amplifier to allow signal to pass through. Here’s what that sounds like, if you were to tap the output of an amplifier that is responding to a gate signal generated by a keyboard or a sequencer.

III: Filter

In the context of a synthesizer, a filter is a module that removes certain frequencies from the audio signal, much like an equalizer on a stereo or a recording console. The most commonly found filter types on an analog synthesizer are lowpass (LP) filters, which filter out high frequencies and let low frequencies pass (hence the name) and highpass (HP) filters, which filter out low frequencies and allow high frequencies to pass. You may also see bandpass (BP) and all-pass filters on certain synthesizer. Filters are used to alter the timbre or tone of a sound. Minimally, a synthesizer will give you control over the cutoff frequency of the filter (the frequency at which the filter starts cutting off) and the resonance of the filter, which is a boost or bump that occurs at the cutoff frequency.

IV: Envelope

An envelope generator is a module that alters incoming voltage over time. This can be used in a lot of ways, such as to open up an amplifier circuit in order to give a volume contour to a sound. Listen to the difference between an oscillator going through an amplifier circuit that’s simply being opened and closed by a gate signal. compared with an oscillator going through an amplifier circuit that’s being opened and closed by an envelope generator that’s reacting to that same gate signal.

Most synthesizers have multiple envelope generators — minimally one that controls the amplifier, and thus the volume of each note over time, and one that controls the filter and the frequency content of each note over time. However, some synthesizers, specifically modular synthesizers, allow you to patch envelope generators into practically anything.


When it comes to envelopes, they come in many shapes and sizes, but most frequently you’ll see envelopes represented by the letters ADSR when they appear on synthesizers.

A: Attack. This is the time it takes for the envelope to reach its maximum value after the note begins its attack.

D: Decay. This is the time it takes for the envelope to fall from maximum value to the sustain level. The decay stage does a lot to define whether a sound is snappy and transient or long and flowing.

S: Sustain. This one is tricky, because it’s the only part of the envelope that’s a measure of amplitude rather than time. The sustain level is the value at which the envelope rests after the decay stage, until the key is released. This is often expressed as a percentage of maximum value. When it comes to amplitude and filter envelopes, patches emulating plucked or struck instruments like drums or mallets would have zero sustain. Bowed instruments and brass and woodwind sounds, on the other hand, would have a higher sustain value.

R: Release. Release is the time it takes for the envelope to fall back to zero after the key is released (or technically, after the gate signal ends). Think of an acoustic guitar — this instrument would have a very sharp attack, a short decay stage, zero sustain, but a long release when strummed as the strings slowly lose energy and volume. On the other hand, a marimba would have a much shorter release time. An aggressive modern synth bass or lead patch might have essentially zero release.

What is Gate and Trig ?

Gate signal tells the synthesizer when a note starts and when it ends.

Here’s an example — a keyboard can generate a gate signal, which begins when the key is pressed and ends when the key is released. A sequencer could generate gate signals, and it could have various ways of controlling the length of the signal (and thus the length of the note, provided that the gate signal is patched to the gate input of an envelope generator that’s connected to the CV input of an amplifier).

Trig stands for trigger. A trigger resembles a gate signal, but instead of having an element of time to it, it’s instantaneous. Put another way, a gate opens at one time and closes later, for instance, when you take your hand off a key. A trigger signal is an instantaneous pulse. For this reason, trigger signal is seen frequently on analog sequencers designed to drive drum machines and isn’t as suitable for melodic instruments.