Code a Wavetable Synth with Python in 6 Minutes Tutorial [Synth

Published: 01 October 2021
on channel: WolfSound
20,129
590

✅ Check out the full article & code on TheWolfSound.com: https://www.thewolfsound.com/sound-sy...
➡️ Wavetable Synthesis theory video:    • Wavetable Synthesis Algorithm Explain...  
✅ Check out Aalto Acoustics Lab: https://www.aalto.fi/en/aalto-acousti...
✅ Sign up for WolfSound's newsletter: https://thewolfsound.com/newsletter/
✅ Please subscribe to WolfSound to let the little Wolf 🐺 grow:
https://www.youtube.com/c/WolfSoundAu...
🎧 Listen to my music: https://thewolfofficial.com/

Hi, my name is Jan Wilczek and I am an audio programmer and a researcher. Welcome to WolfSound!

WolfSound's mission is to provide high-quality, informative, and entertaining videos, articles, and courses on how to process sound by exploring mathematics, applying algorithms, and creating code in various programming languages. Topics include sound synthesis, digital signal processing, programming languages for audio (C, C++, Python, Rust), and audio effects. I am also sharing tips on how to learn fast and effectively. Make sure to visit https://www.thewolfsound.com/.

WolfSound enables everybody to learn about audio programming!

In this video, we are implementing the wavetable synthesis algorithm (a wavetable synthesizer) in Python. We deal with wave table generation, wave table looping, linear interpolation of samples, gain application, fade-in, and fade-out. Ultimately, we obtain a sine generator and a sawtooth generator. To implement the code in this video, you need just Python, a text editor (IDE), and SciPy and NumPy Python packages.

In case of any doubt in understanding, please, refer to the article above or ask a question in the comments 🙂

Note: The gains of the generated sines are not 0 dB and -20 dB respectively. I have adjusted them during editing so that the video is more pleasant to listen to. However, if you generate them with the presented code, you will get the described effect.

ABOUT ME

My name is Jan Wilczek. I am an audio programmer, a researcher, a musician and currently a student of the Elite Master's Study Programme Advanced Signal Processing and Communications Engineering at University of Erlangen-Nürnberg. Additionally, I am a visitng student at Aalto University in Finland, where I put finishing touches on my master thesis under the supervision of prof. Emanuël Habets, prof. Vesa Välimäki, and Alec Wright.

TIME CODES

00:00 Introduction
00:33 Packages import
01:06 Processing parameters
01:34 Wave table generation
02:53 Looping over the wave table
05:38 Storing the output in a .wav file with SciPy's wavfile
06:26 Sine generated with 0th-order interpolation
06:54 Adjusting the gain of the generated signal
07:59 How to reduce noise in wavetable synthesis?
08:34 Linear interpolation implementation
12:43 Sine generated using linear interpolation
13:10 Fade-in and fade-out implementation
15:52 Sawtooth generation
17:48 Summary

#python #synthesis #sound


Watch video Code a Wavetable Synth with Python in 6 Minutes Tutorial [Synth online without registration, duration hours minute second in high quality. This video was added by user WolfSound 01 October 2021, don't forget to share it with your friends and acquaintances, it has been viewed on our site 20,12 once and liked it 59 people.