Realtime Audio with Modern C++

Realtime Audio with Modern C++

About the Book

The concept of synthesis spans a broad spectrum of applications, ranging from chemistry and biology to the intricate realms of sound and music. While it's widely recognized in the creation of chemical compounds and electronic sounds, synthesis is also pivotal in fields like biology (e.g., protein synthesis) and physics.

This book, "Realtime Audio with Modern C++," concentrates on Sound Synthesis. It is pertinent to note that while synthesis manifests in various forms, including Texture, Video, Color, and Speech synthesizers, our exploration will be exclusively tuned towards sound, particularly in a real-time context.

Synthesis, as defined by the Cambridge Dictionary, is "the act of combining different ideas or things to make a whole that is new and different from the items considered separately.” In the sphere of sound, this concept takes an intriguing turn — it involves the art of manipulating existing sounds or generating new ones electronically or mechanically. Here, synthesis is not just a process; it's an artful science, intertwining musical creativity with expertise in mathematics, physics, and even biology.

Our journey through this book delves into the rich history and varied techniques of sound synthesis, encompassing the evolution from its nascent stages to contemporary methods like subtractive, additive, FM (Frequency Modulation), and granular synthesis. But there's a unique twist — we focus on real-time audio processing using Modern C++. This angle is particularly significant in today’s digital world where responsiveness and immediacy in audio production are paramount. Real-time audio processing allows for instant manipulation and generation of sounds, a crucial aspect in live performances, interactive applications, and modern music production.

The integration of Modern C++ in this realm brings forward an exciting synergy. This programming language, known for its efficiency and versatility, is particularly adept at handling the complexities and demands of real-time audio synthesis. We will explore how Modern C++ can be leveraged to create sophisticated audio synthesis algorithms that not only push the boundaries of creativity but also meet the high demands of real-time processing.

In essence, this book is not just about understanding sound synthesis as a technical concept; it's about mastering the art of bringing sounds to life, instantly and interactively, using the power of Modern C++.

About the Author

Håkan Blomqvist
Håkan Blomqvist

As an accomplished author and an expert in a diverse range of fields, including security, demoscene, machine learning, deep learning, quantum computing, sound synthesis, and real-time audio, Håkan Blomqvist brings a wealth of knowledge and a passion for innovation to the world of literature. Based in Sweden, Håkan Blomqvist is a multifaceted professional with a unique blend of technical expertise and creative flair.

With a career dedicated to the intricacies of security, encompassing physical, logical, and information security, Håkan Blomqvist has delved into the most complex challenges facing our interconnected world. His work extends beyond conventional boundaries, often focusing on cyber resilience and cyber defense, shaping the future of secure digital landscapes.

In addition to his groundbreaking work in the realm of security, Håkan Blomqvist is a dedicated demoscene enthusiast, where the art of real-time computer graphics and creative coding meets. His deep involvement in this vibrant subculture reflects a commitment to pushing the boundaries of what's possible in the digital realm.

Furthermore, Håkan Blomqvist's passion for machine learning and deep learning has led to valuable contributions in these fields, fostering innovation and progress in artificial intelligence. He's at the forefront of the ever-evolving landscape of quantum computing, exploring the potential of this revolutionary technology.

Håkan Blomqvist's expertise doesn't stop there. He is also a recognized authority in sound synthesis and real-time audio, bringing a unique blend of creativity and technical acumen to the world of audio production and digital music.

In his spare time, Håkan Blomqvist is an avid explorer of space-related topics. His curiosity knows no bounds, and he can engage in insightful discussions on a wide range of subjects.

Håkan Blomqvist's multifaceted expertise, spanning security, technology, art, and sound, makes him a captivating author. Whether you're interested in security, technology, the demoscene, or the intricacies of sound synthesis and real-time audio, Håkan Blomqvist's writings are sure to captivate and educate readers.

Join Håkan Blomqvist on a journey through the fascinating world of security, technology, innovation, and the art of sound. With his vast knowledge and unwavering enthusiasm, he is poised to make a lasting impact in both literature and the ever-evolving landscape of cutting-edge technology and audio production.

Table of Contents

  • Introduction
    • Why C++20?
    • So what is the definition of synthesis?
    • What was the first Sound Synthesizer?
    • What is sound?
    • What is Timbre?
    • Synthesis Chapters in the book
  • The Physics of string, wind and percussion Instruments
    • Strings
    • Wind
    • Percussion
  • Additive Synthesis
    • Additive Synthesis in C++
    • Additive Synthesis with a KAWAI K5
  • Subtractive Synthesis
    • Subtractive Synthesis in C++
    • Subtractive Synthesis with a Sequential Circuits Prophet 5
  • Formant Synthesis
    • Formant Synthesis in C++
    • Formant Synthesis with a Yamaha FS1R
  • Granular Synthesis
    • Granular Synthesis in C++
    • Granular Synthesis with a Portal by Output
  • Frequency Modulation (FM) Synthesis
    • Frequency Modulation (FM) Synthesis in C++
    • Frequency Modulation (FM) Synthesis with a Yamaha DX7
  • Linear Arithmetic Synthesis
    • Linear Arithmetic Synthesis in C++
    • Linear Arithmetic Synthesis with a Roland D-50
  • Phase Distortion Synthesis
    • Phase Distortion Synthesis in C++
    • Phase Distortion Synthesis with a Casio CZ-1000
  • Scanned Synthesis
    • Scanned Synthesis in C++
    • Scanned Synthesis with a Qu-Bit Scanned
  • Vector Synthesis
    • Vector Synthesis in C++
    • Vector Synthesis with a Sequential Circuits Prophet VS
  • Virtual Analog (VA) Synthesis
    • Virtual Analog (VA) Synthesis in C++
    • Virtual Analog (VA) Synthesis with a Access Virus TI
  • Wavetable Synthesis
    • Wavetable Synthesis in C++
    • Wavetable Synthesis with a PPG wave 2.2
  • Physical Modeling
    • Physical Modeling in C++
    • Physical Modeling with a Aodyo Anyma Phi
  • In the Rearview Mirror
  • Appendix A: C++20 Code
  • Appendix B: Audio Engineering Terminology (0 - 9 - A - Z)
  • Appendix C: URL for Source Code

The Leanpub 60 Day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

Now, this is technically risky for us, since you'll have the book or course files either way. But we're so confident in our products and services, and in our authors and readers, that we're happy to offer a full money back guarantee for everything we sell.

You can only find out how good something is by trying it, and because of our 100% money back guarantee there's literally no risk to do so!

So, there's no reason not to click the Add to Cart button, is there?

See full terms...

Earn $8 on a $10 Purchase, and $16 on a $20 Purchase

We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

In fact, authors have earnedover $14 millionwriting, publishing and selling on Leanpub.

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub