Uploaded November 2025 | Updated November 2026, 6 hours ago
Learn how to add sample playback to your JUCE plugin using the Synthesiser, SamplerVoice and SamplerSound classes. We go from silent gray rectangle to actually playing sounds.
⏰ Timestamps:
0:00 Intro
0:43 GitHub Overview
2:19 Getting Sounds into Your Project with BinaryData
3:52 Creating MIDI Playback Engine
11:30 Loading and Playing One Sample
26:16 Using BigInteger
29:40 Creating a Function for Loading Samples
39:35 Summary
💾 Download the code:
github.com/TheAudioProgrammer/JuceSamplerAudioPlugin/tree/2-loading-and-playing-samples
🎯 What You'll Learn:
- How JUCE's Synthesiser architecture works
- Loading audio files using BinaryData
- Creating SamplerSound and SamplerVoice objects
- Mapping samples across MIDI notes with BigInteger
- Building a reusable sample loading function
📺 Watch Part 1 first:
youtu.be/XkRVCiaRFEA?si=akoXN4fwcNCYLbJk
====
📚 Learn Audio Programming
theaudioprogrammer.com/books
🎤 Join our Community
theaudioprogrammer.com/community
💼 Hire Audio Programmers & Music Tech Professionals
theaudioprogrammer.com/recruitment
🏭 Create Your Own Audio Plug-in with Our Experienced Team
theaudioprogrammer.com/development
Stay connected with us
Instagram: instagram.com/theaudioprogrammer
Facebook: facebook.com/theaudioprogrammer
Twitter: twitter.com/audioprogrammer
Learn how to add sample playback to your JUCE plugin using the Synthesiser, SamplerVoice and SamplerSound classes. We go from silent gray rectangle to actually playing sounds.
⏰ Timestamps:
0:00 Intro
0:43 GitHub Overview
2:19 Getting Sounds into Your Project with BinaryData
3:52 Creating MIDI Playback Engine
11:30 Loading and Playing One Sample
26:16 Using BigInteger
29:40 Creating a Function for Loading Samples
39:35 Summary
💾 Download the code:
github.com/TheAudioProgrammer/JuceSamplerAudioPlugin/tree/2-loading-and-playing-samples
🎯 What You'll Learn:
- How JUCE's Synthesiser architecture works
- Loading audio files using BinaryData
- Creating SamplerSound and SamplerVoice objects
- Mapping samples across MIDI notes with BigInteger
- Building a reusable sample loading function
📺 Watch Part 1 first:
youtu.be/XkRVCiaRFEA?si=akoXN4fwcNCYLbJk
====
📚 Learn Audio Programming
theaudioprogrammer.com/books
🎤 Join our Community
theaudioprogrammer.com/community
💼 Hire Audio Programmers & Music Tech Professionals
theaudioprogrammer.com/recruitment
🏭 Create Your Own Audio Plug-in with Our Experienced Team
theaudioprogrammer.com/development
Stay connected with us
Instagram: instagram.com/theaudioprogrammer
Facebook: facebook.com/theaudioprogrammer
Twitter: twitter.com/audioprogrammer










