Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions PROGRESS.md
Original file line number Diff line number Diff line change
Expand Up @@ -591,3 +591,14 @@ The source texture and exact generation prompt live in `docs/art/textures/`; the
uses it at lower strength behind feature and architecture cards. App source, screenshots,
installation identities and settings are unchanged. The website uses compressed versions of
the same material in its own repository.

### 2026-11-14: export to MP3

- The Export dialog's Format segments now pick WAV or MP3 for Mixdown and Stems. With MP3 the second segments pick the
bitrate (192 or 320 kbps, 320 by default) in place of the bit depth; the sample rate and range choices work as for
WAV, the Name field ends in ".mp3", and the size estimate follows the bitrate. A Project export (Live set) stays WAV.
- `src/mp3.rs`: constant-bitrate joint stereo through LAME (`mp3lame-encoder` 0.3.0, LAME built from source by
`mp3lame-sys`, LGPL), quality setting 2, with LAME's Info tag in the first frame so decoders trim the encoder delay
and padding and the file has exactly the rendered length.
- Tests: `mp3::tests` encodes one second of a sine at both bitrates and reads it back through the engine's MP3
decoder (same frame count, peak within 0.05 of the source, size within 5 % of the estimate).
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ wgpu.
power switch and choose Automate. Draw lanes with points, curves or freehand, or record your moves with
touch-write. Lanes read in the parameter's own units (Hz, dB, ms, choice names, On/Off), and mute, mono and device
on/off lanes switch exactly on their points.
- **Export.** Mix down the arrangement, or export each track as its own stem, as 16- or 24-bit WAV at 44.1 or 48 kHz
(converted from the engine's rate), over the whole project or just the loop region (an exact-length file that loops
- **Export.** Mix down the arrangement, or export each track as its own stem, as 16- or 24-bit WAV or 192 or 320 kbps
MP3 at 44.1 or 48 kHz (converted from the engine's rate), over the whole project or just the loop region (an exact-length file that loops
seamlessly), or export the project as an Ableton Live set that keeps its return tracks and sends.
- **Undo for everything.** Every edit is a validated, invertible command, so undo and redo cover the whole project.
- **Assistant.** An optional side panel that can explain the app (Teach) or make edits for you (Assist), each turn as
Expand Down Expand Up @@ -163,7 +163,7 @@ decisions behind rendering, recording, plugins, delay compensation and automatio
| Mixer | ✅ | |
| Automation | ✅ | |
| Delay compensation | ✅ | |
| Export | 🚧 | MP3 |
| Export | ✅ | |
| Assistant | 🚧 | Tested only with a fixture provider, not yet against the live API |
| Windows and Linux audio | 🚧 | Linux streams run in CI on a headless PipeWire server; neither has run on a physical sound card; no ASIO |
| Releases and branding | 🚧 | Packages are built (unsigned); code signing, original icons, a first tagged release |
Expand Down Expand Up @@ -293,6 +293,7 @@ network, you must offer them the modified source too.

Third-party code keeps its own license. The engine's dependencies, the VST3 SDK, CLAP headers and Signalsmith libraries
(MIT), dr_libs (public domain or MIT-0) and stb_vorbis (public domain or MIT), are fetched at build time and listed in
[engine/third_party_licenses.md](engine/third_party_licenses.md). The app uses Slint under its
[engine/third_party_licenses.md](engine/third_party_licenses.md). MP3 export uses the LAME encoder (LGPL), built from
source by the `mp3lame-sys` crate and listed there too. The app uses Slint under its
[GPL-3.0 licence](https://github.com/slint-ui/slint/blob/master/LICENSE.md) (compatible with the AGPL), and the bundled
Inter font is under the SIL Open Font License.
2 changes: 2 additions & 0 deletions crates/dstudio-app/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ flate2 = "1.1"
# Already in the tree; local date and time for Edit › Undo History.
chrono = { version = "0.4.45", default-features = false, features = ["clock"] }
roxmltree = "0.21"
# MP3 export: LAME (LGPL), built from source; see engine/third_party_licenses.md.
mp3lame-encoder = "=0.3.0"
serde_json.workspace = true
serde.workspace = true

Expand Down
2 changes: 1 addition & 1 deletion crates/dstudio-app/src/clip_render.rs
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ fn write_render(
let (path, target, bits) = match out {
Output::New { dir, stem } => {
std::fs::create_dir_all(dir).map_err(|e| failed(dir, e.to_string()))?;
let (path, _) = create_free_file(dir, stem).map_err(|e| failed(dir, e))?;
let (path, _) = create_free_file(dir, stem, "wav").map_err(|e| failed(dir, e))?;
(path.clone(), path, 24)
}
Output::Export { path, bits } => {
Expand Down
Loading
Loading