Electra One MIDI & Lua Crash Course
by Martin
Preface
This book is a companion guide for Electra One users who want to go beyond loading presets and creating simple projects with CC messages only.
The User Guide describes the controller's features, buttons, and functions in a structured and systematic way. It serves as a reference, a place you can turn to when you need to know what something does or where to find it.
This book has a different purpose. It provides a broader perspective. It explains not only how individual features work, but why they work the way they do, how they relate to each other, and how to use them creatively and effectively. It also explores the underlying technology that makes it all possible. We will take here a guided journey through three key areas:
- MIDI protocol
- Lua scripting
- and building practical projects on Electra One
The goal is not to overwhelm you with abstract theory. Instead, we will build knowledge step by step, using real-world examples and practical patterns that you can immediately apply in your own projects.
If you are reading this, you are probably a musician, producer, or sound designer who has become curious. You may have wondered: What else could Electra One do for me if I understood it a little more deeply? This book is written precisely for that moment.
You do not need any prior programming experience. In fact, you'll pick up the fundamentals as we go.
Technical topics may seem intimidating at first, but when explained clearly and explored gradually, they become surprisingly approachable. At the same time, some areas will require you to get your hands dirty. For example, if you want to receive and visualize synthesizer patches, a certain level of technical understanding is necessary.
When we begin working with Lua, we will not only learn how to write scripts that function correctly, but also how to structure them in a clean and maintainable way. If I have learned one important lesson during my programming career, it is this: how you organize your code and how disciplined you are matters just as much as knowing the language itself.
Although this guide is written for Electra One users - and all examples are tailored to run on the controller - the concepts you learn about MIDI, Lua, and coding style are universal. They can be applied to many other devices and software platforms.
We will also briefly touch on the topic of artificial intelligence (AI). Today, AI tools can generate code that would have required years of programming experience not long ago. That is powerful. However, there are also pitfalls. Understanding at least the basics yourself will allow you to use AI effectively, instead of being misled by it.
This guide is structured as a book. If you are new to MIDI or scripting, I recommend reading it from beginning to end. The chapters are carefully ordered so that each new concept builds on the previous ones. More experienced readers may choose to skip ahead but in my own experience, revisiting fundamentals often reveals new insights.
With that, let’s begin. In the first part, we explore the foundations of the MIDI protocol.