התחל במצב לא מקוון עם האפליקציה Player FM !
Creating a Guitar Synthesizer & Generating WAV Files With Python
Manage episode 426092263 series 2637014
What techniques go into synthesizing a guitar sound in Python? What higher-level programming and Python concepts can you practice while building advanced projects? This week on the show, we talk with Real Python author and core team member Bartosz Zaczyński about his recent step-by-step project, Build a Guitar Synthesizer: Play Musical Tablature in Python.
Bartosz shares how he had built an early prototype of the guitar synth using a different language. He describes recreating the Karplus-Strong algorithm in Python to create the plucked guitar sounds. We discuss teaching advanced Python concepts while guiding readers through constructing a complete project.
We also dig into reading and writing WAV files in Python, using Spotify’s pedalboard library, implementing Poetry in a project, and designing a file format for guitar tablature.
This episode is sponsored by Mailtrap.
Course Spotlight: Playing and Recording Sound in Python
In this course, you’ll learn about libraries that can be used for playing and recording sound in Python, such as PyAudio and python-sounddevice. You’ll also see code snippets for playing and recording sound files and arrays, as well as for converting between different sound file formats.
Topics:
- 00:00:00 – Introduction
- 00:02:04 – Reading and writing WAV files in Python
- 00:04:48 – What did you want to learn about the topic?
- 00:08:02 – Finding new ways to explain Python concepts
- 00:09:52 – Turning audio into plots and visualizations
- 00:12:11 – Using Python for synthesis and the guitar synth project
- 00:13:19 – What is your music background?
- 00:18:36 – Sponsor: Mailtrap
- 00:19:11 – First prototype of the project
- 00:22:23 – What does the project cover?
- 00:25:08 – Audio examples of the output
- 00:26:31 – Digging into the algorithm
- 00:31:40 – Convolution reverb
- 00:34:15 – Physical modeling and pedalboard
- 00:38:08 – Video Course Spotlight
- 00:39:31 – What Python concepts are you practicing?
- 00:41:11 – Using Python poetry
- 00:43:00 – Why use YAML for the TAB files?
- 00:46:13 – What does it mean to be a polyglot programmer?
- 00:48:37 – Potential upcoming Real Python resources
- 00:52:10 – How can people follow your work online?
- 00:52:30 – What do you want to learn next?
- 00:54:56 – Thanks and goodbye
Show Links:
- Build a Guitar Synthesizer: Play Musical Tablature in Python – Real Python
- Reading and Writing WAV Files in Python – Real Python
- Episode #200: Avoiding Error Culture and Getting Help Inside Python – The Real Python Podcast
- ActionScript - Wikipedia
- Apache Flex® - Home Page
- Too Many Zooz - Official Website
- Watch Reverb - Watch the Sound With Mark Ronson (Season 1, Episode 3) - Apple TV+
- Longest Reverb In the World - Inchindown - YouTube
- Karplus–Strong string synthesis - Wikipedia
- Physical modeling synthesis - Wikipedia
- pedalboard: 🎛 🔊 A Python library for audio - Spotify
- Poetry - Python dependency management and packaging made easy
- Dependency Management With Python Poetry – Real Python
- YAML: The Missing Battery in Python – Real Python
- Guitar Tabs with Rhythm - Songsterr
- It Starts with Food - The Whole30® Program
- Bartosz Zaczyński - LinkedIn
Level up your Python skills with our expert-led courses:
257 פרקים
Manage episode 426092263 series 2637014
What techniques go into synthesizing a guitar sound in Python? What higher-level programming and Python concepts can you practice while building advanced projects? This week on the show, we talk with Real Python author and core team member Bartosz Zaczyński about his recent step-by-step project, Build a Guitar Synthesizer: Play Musical Tablature in Python.
Bartosz shares how he had built an early prototype of the guitar synth using a different language. He describes recreating the Karplus-Strong algorithm in Python to create the plucked guitar sounds. We discuss teaching advanced Python concepts while guiding readers through constructing a complete project.
We also dig into reading and writing WAV files in Python, using Spotify’s pedalboard library, implementing Poetry in a project, and designing a file format for guitar tablature.
This episode is sponsored by Mailtrap.
Course Spotlight: Playing and Recording Sound in Python
In this course, you’ll learn about libraries that can be used for playing and recording sound in Python, such as PyAudio and python-sounddevice. You’ll also see code snippets for playing and recording sound files and arrays, as well as for converting between different sound file formats.
Topics:
- 00:00:00 – Introduction
- 00:02:04 – Reading and writing WAV files in Python
- 00:04:48 – What did you want to learn about the topic?
- 00:08:02 – Finding new ways to explain Python concepts
- 00:09:52 – Turning audio into plots and visualizations
- 00:12:11 – Using Python for synthesis and the guitar synth project
- 00:13:19 – What is your music background?
- 00:18:36 – Sponsor: Mailtrap
- 00:19:11 – First prototype of the project
- 00:22:23 – What does the project cover?
- 00:25:08 – Audio examples of the output
- 00:26:31 – Digging into the algorithm
- 00:31:40 – Convolution reverb
- 00:34:15 – Physical modeling and pedalboard
- 00:38:08 – Video Course Spotlight
- 00:39:31 – What Python concepts are you practicing?
- 00:41:11 – Using Python poetry
- 00:43:00 – Why use YAML for the TAB files?
- 00:46:13 – What does it mean to be a polyglot programmer?
- 00:48:37 – Potential upcoming Real Python resources
- 00:52:10 – How can people follow your work online?
- 00:52:30 – What do you want to learn next?
- 00:54:56 – Thanks and goodbye
Show Links:
- Build a Guitar Synthesizer: Play Musical Tablature in Python – Real Python
- Reading and Writing WAV Files in Python – Real Python
- Episode #200: Avoiding Error Culture and Getting Help Inside Python – The Real Python Podcast
- ActionScript - Wikipedia
- Apache Flex® - Home Page
- Too Many Zooz - Official Website
- Watch Reverb - Watch the Sound With Mark Ronson (Season 1, Episode 3) - Apple TV+
- Longest Reverb In the World - Inchindown - YouTube
- Karplus–Strong string synthesis - Wikipedia
- Physical modeling synthesis - Wikipedia
- pedalboard: 🎛 🔊 A Python library for audio - Spotify
- Poetry - Python dependency management and packaging made easy
- Dependency Management With Python Poetry – Real Python
- YAML: The Missing Battery in Python – Real Python
- Guitar Tabs with Rhythm - Songsterr
- It Starts with Food - The Whole30® Program
- Bartosz Zaczyński - LinkedIn
Level up your Python skills with our expert-led courses:
257 פרקים
כל הפרקים
×

1 Solving Problems and Saving Time in Chemistry With Python 1:13:10


1 Structuring Python Scripts & Exciting Non-LLM Software Trends 54:07


1 Scaling Python Web Applications With Kubernetes and Karpenter 1:04:47


1 Starting With marimo Notebooks & Python App Config Management 51:41


1 Rodrigo Girão Serrão: Python Training, itertools, and Idioms 1:02:49


1 Python Thread Safety & Managing Projects With uv 34:48


1 DjangoCon Europe 2025: Live Recording From Dublin 57:19


1 Going Beyond requirements.txt With pylock.toml and PEP 751 1:31:46


1 Experiments With Gen AI, Knowledge Graphs, Workflows, and Python 59:18


1 Exploring DuckDB & Comparing Python Expressions vs Statements 52:01


1 Learning Intermediate Python With a Deep Dive Course 56:26


1 GUIs & TUIs: Choosing a User Interface for Your Python Project 46:39


1 A Decade of Automating the Boring Stuff With Python 1:06:01


1 Manage Projects With pyproject.toml & Explore Polars LazyFrames 48:43


1 Eric Matthes: Maybe Don't Start With Unit Tests 1:10:48
ברוכים הבאים אל Player FM!
Player FM סורק את האינטרנט עבור פודקאסטים באיכות גבוהה בשבילכם כדי שתהנו מהם כרגע. זה יישום הפודקאסט הטוב ביותר והוא עובד על אנדרואיד, iPhone ואינטרנט. הירשמו לסנכרון מנויים במכשירים שונים.