About
About StudioSim
StudioSim is a shared 3D space for playing music, and a workstation for recording and mixing what is played in it. I designed and built it, and it is free and open source.
What it is
Most music software shows you a mixer and a timeline. StudioSim starts with a room. Instruments stand in it, you walk around it in first person, and what you hear is worked out from where you stand: how far each instrument is, which way you face, what is between you and it, and how the room rings.
The room is also a studio. Microphones hear it from where they are put, amps play what you plug in, and a Record room has a timeline, an edit window and a mix window that work the way a DAW's do, with Pro Tools as the model. Other players can join the room over a network and hear it from where they stand.
How it's built
StudioSim is two programs working together.
- The room is a Godot project, written in GDScript: the world you see, the player, the instruments, the menus, the mix and edit windows.
- The sound is an audio engine written in C++, running on its own real-time thread in blocks of 128 samples. Godot tells it where everything is; it works out how sound travels through the room. Commands reach the audio thread through a lock-free queue, so a dropped frame of graphics never glitches the sound.
The engine does its own synthesis, amp and pedal modelling, microphone models, recording to disk, disk streaming, delay compensation and plug-in hosting. Steam Audio provides the binaural rendering and room simulation, miniaudio the audio devices, and Opus the sound between players.
It is checked as it is built: offline tests render audio through the engine and measure it, and the game is driven by pretend key presses and clicks to check its controls and menus. Every change to the engine is also built and tested on Windows.
There is more in the guide: How it's put together.
More of my work
More of my work is on GitHub.
Where it's going
StudioSim 0.2.0 is out for macOS and Windows, its source on GitHub. Next I'll make demonstration videos, sign the apps so that they open without warnings, and bring ASIO to Windows; then more for playing and recording music, virtual reality among the first. The roadmap has the details.
Built with
- Godot Engine and godot-cpp (MIT)
- Steam Audio (Apache 2.0)
- miniaudio (public domain / MIT-0)
- VST 3 SDK (MIT)
- Opus (BSD 3-clause)