Nota — a free DAW for macOS, Windows and Linux. No subscription, no account — just open it and make music.
C# audioaudio-unitavaloniacpp20cross-platformdawdigital-audio-workstationdspjucelinux-audiomcp-servermidimusicmusic-productionpiano-rollplugin-hostsequencersynthesizervstvst3
Contract: project format v28 and preset fields
Project (project.json, ProjectService.CurrentFormatVersion 27 → 28)
- Migration: append
new Migration(27, _ => { })(ProjectMigrations.cs:25-50pattern). A v27 document has nowavetables, and the DTO defaults to null. - Save of a top-level Aurora (kind 5,
ProjectService.cs:150-153branch):instrument.statecomes fromnota_track_aurora_state(include_tables = 0), throughRegisterBlob.- For each oscillator with a table: read the frames (
nota_track_aurora_table_read) and write them through a WAV writer as float32 mono with aclmchunk (frame size 2048). Name the file by content hash (BundleContent.SampleRel), skip it if it is already on disk, and add aWavetableDto(../data-model.md). - A missing slot is saved as
{ Missing: true, Sample: "", Name }.
- Load:
- Create the track, then
SetPluginState(blob). - For each
WavetableDto: ifMissing, callnota_track_aurora_set_missingand add the warning. Otherwise decode the WAV (nota_file_decode_mono, exact for float32) and callnota_aurora_table_from_frames, thennota_track_aurora_set_table(checkpoint = 0)andnota_track_aurora_set_source(UseCustom). - On a failure (file absent, unreadable, or frame count mismatch), add the warning
"Track {n}: Aurora Osc {o} table \"{Name}\" is missing — it plays its built-in table.", thenset_missing(Name)andset_source(0).
- Create the track, then
- History and pruning:
samples/<hash>.wavfiles referenced bywavetablesare pinned like other sample references (ProjectHistory.cs:4-18,BundleContent.PruneUnreferenced). - Older Nota: a v28 file is refused by the existing "higher version" check
(
ProjectService.cs:34-40doc comment). That is expected behaviour and needs no change.
Presets (PresetDocument)
- New:
[JsonIgnore(Condition = WhenWritingNull)] List<PresetAuroraTable>? AuroraTables, placed besideMosaicProgram(PresetModel.cs:47-49).FormatVersionstays 1, because unknown fields round-trip (PresetModel.csforward-compat note). - Save (
PresetService.cs:62neighbourhood): when kind 5 has any table, write one entry per slot withData = base64(float32 LE frames). - Apply: first the named parameters, then:
- if
AuroraTablesis null:clear_tablefor both slots andset_source(0); - otherwise
from_frames, thenset_table, thenset_source. The whole apply is one undo group with the parameter change.
- if
- Factory presets carry no
AuroraTables, so they always play the built-in tables.